[Pkg-samba-maint] r3452 - branches/samba/backports-unofficial/lenny-latest/debian

bubulle at alioth.debian.org bubulle at alioth.debian.org
Tue May 4 11:46:17 UTC 2010


Author: bubulle
Date: 2010-05-04 11:46:16 +0000 (Tue, 04 May 2010)
New Revision: 3452

Removed:
   branches/samba/backports-unofficial/lenny-latest/debian/smbfs.NEWS
   branches/samba/backports-unofficial/lenny-latest/debian/smbfs.TODO
   branches/samba/backports-unofficial/lenny-latest/debian/smbfs.dirs
   branches/samba/backports-unofficial/lenny-latest/debian/smbfs.files
   branches/samba/backports-unofficial/lenny-latest/debian/smbfs.links
   branches/samba/backports-unofficial/lenny-latest/debian/smbfs.lintian
Modified:
   branches/samba/backports-unofficial/lenny-latest/debian/changelog
   branches/samba/backports-unofficial/lenny-latest/debian/control
   branches/samba/backports-unofficial/lenny-latest/debian/mount.smbfs
   branches/samba/backports-unofficial/lenny-latest/debian/rules
Log:
Drop smbfs


Modified: branches/samba/backports-unofficial/lenny-latest/debian/changelog
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/changelog	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/changelog	2010-05-04 11:46:16 UTC (rev 3452)
@@ -3,7 +3,6 @@
   * Backport to lenny. Do our best to resync all packaging changes
     with what we have in squeeze
   * Drop PAM profile for winbind (not supported in lenny)
-  * Reintroduce smbfs package (there is no cifs-utils in lenny)
 
  -- Christian Perrier <bubulle at debian.org>  Sat, 10 Apr 2010 20:14:54 +0200
 

Modified: branches/samba/backports-unofficial/lenny-latest/debian/control
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/control	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/control	2010-05-04 11:46:16 UTC (rev 3452)
@@ -37,7 +37,7 @@
  Directory realm, you will also need the winbind package.
  .
  This package is not required for connecting to existing SMB/CIFS servers
- (see smbclient) or for mounting remote filesystems (see smbfs).
+ (see smbclient) or for mounting remote filesystems (see cifs-utils).
 
 Package: samba-common-bin
 Architecture: any
@@ -81,7 +81,7 @@
 Depends: samba-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
 Replaces: samba (<< 2.999+3.0.alpha21-4), smbget
 Provides: samba-client
-Suggests: smbfs
+Suggests: cifs-utils
 Conflicts: samba4-clients
 Description: command-line SMB/CIFS clients for Unix
  Samba is an implementation of the SMB/CIFS protocol for Unix systems,
@@ -90,7 +90,8 @@
  .
  This package contains command-line utilities for accessing Microsoft
  Windows and Samba servers, including smbclient, smbtar, and smbspool.
- Utilities for mounting shares locally are found in the package smbfs.
+ Utilities for mounting shares locally are found in the package
+ cifs-utils.
 
 Package: swat
 Architecture: any
@@ -134,22 +135,6 @@
  .
  This package contains all the PDF documentation for the Samba suite.
 
-Package: smbfs
-Section: otherosfs
-Priority: optional
-Architecture: any
-Depends: netbase (>= 2.02), samba-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
-Suggests: smbclient
-Replaces: smbfsx
-Description: Samba file system utilities
- Samba is an implementation of the SMB/CIFS protocol for Unix systems,
- providing support for cross-platform file and printer sharing with
- Microsoft Windows, OS X, and other Unix systems.
- .
- This package provides utilities for mounting and unmounting cifs network
- file systems. Other command-line utilities such as smbclient, smbtar
- and smbspool are in the package smbclient.
-
 Package: libpam-smbpass
 Section: admin
 Priority: extra

Modified: branches/samba/backports-unofficial/lenny-latest/debian/mount.smbfs
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/mount.smbfs	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/mount.smbfs	2010-05-04 11:46:16 UTC (rev 3452)
@@ -113,118 +113,3 @@
 USER="$(reverse_username_workgroup "$USER")"
 
 exec /sbin/mount.cifs "${args[@]}"
-#!/bin/bash
-# Debian mount.smbfs compatibility wrapper
-# Copyright 2007, Steve Langasek <vorlon at debian.org>
-# Licensed under the GNU General Public License, version 2.  See the
-# file /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
-
-# This script accepts all documented mount options for mount.smbfs,
-# passing through those that are also recognized by mount.cifs,
-# converting those that are not recognized but map to available cifs
-# options, and warning about the use of options for which no equivalent
-# exists.
-
-# known bugs: quoted spaces in arguments are not passed intact
-
-set -e
-
-# reverse the order of username and password in a "username" parameter,
-# taking care to leave any "%password" bit intact
-
-reverse_username_workgroup() {
-	local workgroup password username
-
-	username="$1"
-	case "$username" in
-	*%*)	password="${username#*%}"
-		username="${username%%%*}"
-		;;
-	*) ;;
-	esac
-	case "$username" in
-	*/*)	workgroup="${username#*/}"
-		username="${username%%/*}"
-		;;
-	*) ;;
-	esac
-	if [ -n "$workgroup" ]; then
-		username="$workgroup\\$username"
-	fi
-	if [ -n "$password" ]; then
-		username="$username%$password"
-	fi
-	echo "$username"
-}
-
-
-# parse out the mount options that have been specified using -o, and if
-# necessary, convert them for use by mount.cifs
-
-parse_mount_options () {
-	local OLD_IFS IFS options option username
-	OLD_IFS="$IFS"
-	IFS=","
-	options=""
-	workgroup=""
-	password=""
-
-	for option in $@; do
-		case "$option" in
-		sockopt=* | scope=* | codepage=* | ttl=* | debug=*)
-			echo "Warning: ignoring deprecated smbfs option '$option'" >&2
-			;;
-
-		krb)
-			options="$options${options:+,}sec=krb5"
-			;;
-
-		guest)
-			echo "Warning: mapping 'guest' to 'guest,sec=none'" >&2
-			options="$options${options:+,}guest,sec=none"
-			;;
-
-		# username and workgroup are reversed in username= arguments,
-		# so need to be parsed out
-		username=*/*)
-			IFS="$OLD_IFS"
-			username="${option#username=}"
-			username="$(reverse_username_workgroup "$username")"
-			IFS=","
-			options="$options${options:+,}username=$username"
-			;;
-
-		*)
-			options="$options${options:+,}$option"
-			;;
-		esac
-	done
-	IFS="$OLD_IFS"
-	echo $options
-}
-
-args=()
-while [ "$#" -gt 0 ]; do
-	case "$1" in
-	-o*)
-		arg=${1#-o}
-		shift
-		if [ -z "$arg" ]; then
-			arg=$1
-			shift
-		fi
-		arg="$(parse_mount_options "$arg")"
-		if [ -n "$arg" ]; then
-			args=("${args[@]}" "-o" "$arg")
-		fi
-		;;
-	*)
-		args=("${args[@]}" "$1")
-		shift
-		;;
-	esac
-done
-
-USER="$(reverse_username_workgroup "$USER")"
-
-exec /sbin/mount.cifs "${args[@]}"

Modified: branches/samba/backports-unofficial/lenny-latest/debian/rules
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/rules	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/rules	2010-05-04 11:46:16 UTC (rev 3452)
@@ -68,17 +68,12 @@
 ifeq ($(DEB_HOST_ARCH_OS),linux)
   conf_args += \
 		--with-ctdb=/usr --with-cluster-support=yes \
-		--with-cifsmount \
-		--with-cifsupcall \
-		--with-cifsumount \
 		--with-acl-support \
-		--with-quotas
-  mount_cifs	= yes
-  smbfs		= yes
-else
+		--with-quotas \
+		--without-cifsumount \
+		--without-cifsupcall
+	  else
   conf_args +=	--without-quotas --without-cifsmount
-  mount_cifs	= no
-  smbfs		= no
 endif
 
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
@@ -131,10 +126,6 @@
   DH_EXTRAS=-Nsmbfs
 endif
 
-ifeq ($(smbfs),no)
-  DH_EXTRAS=-Nsmbfs
-endif
-
 install: DH_OPTIONS=$(DH_EXTRAS)
 install: build
 	dh_testdir
@@ -187,10 +178,6 @@
 	install -m 0755 debian/mount.smbfs $(DESTDIR)/sbin/mount.smbfs
 endif
 
-ifeq ($(mount_cifs),yes)
-	install -m 0755 debian/mount.smbfs $(DESTDIR)/sbin/mount.smbfs
-endif
-
 	# For CUPS to support printing to samba printers, it's necessary
 	#	to make the following symlink (according to
 	#	Erich Schubert <debian at vitavonni.de> in #109509):

Deleted: branches/samba/backports-unofficial/lenny-latest/debian/smbfs.NEWS
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/smbfs.NEWS	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/smbfs.NEWS	2010-05-04 11:46:16 UTC (rev 3452)
@@ -1,10 +0,0 @@
-smbfs (2:3.4.5~dfsg-2) unstable; urgency=low
-
-  * As of this version, the mount.cifs binary is no longer setuid.
-    Upstream has always been increasingly unsupportive of this
-    configuration over time. For instance, in bugs like
-    https://bugzilla.samba.org/show_bug.cgi?id=6853, it is clearly
-    mentioned that having it setuid root is discouraged.
-    
- -- Christian Perrier <bubulle at debian.org>  Sat, 06 Feb 2010 15:09:00 +0100
-    
\ No newline at end of file

Deleted: branches/samba/backports-unofficial/lenny-latest/debian/smbfs.TODO
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/smbfs.TODO	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/smbfs.TODO	2010-05-04 11:46:16 UTC (rev 3452)
@@ -1,7 +0,0 @@
-- There is concern about the setuid status of binaries in this package.
-  The audit status of the concerned binaries is unclear.  We should
-  figure out whether it is reasonable to provide the flexible user mount
-  capabilities or whether a more restricted setup is better, at least by
-  default.
-
-Last change: 2006-01-25

Deleted: branches/samba/backports-unofficial/lenny-latest/debian/smbfs.dirs
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/smbfs.dirs	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/smbfs.dirs	2010-05-04 11:46:16 UTC (rev 3452)
@@ -1,2 +0,0 @@
-sbin
-sbin

Deleted: branches/samba/backports-unofficial/lenny-latest/debian/smbfs.files
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/smbfs.files	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/smbfs.files	2010-05-04 11:46:16 UTC (rev 3452)
@@ -1,14 +0,0 @@
-sbin/mount.smbfs
-sbin/mount.cifs
-sbin/umount.cifs
-usr/sbin/cifs.upcall
-usr/share/man/man8/mount.cifs.8
-usr/share/man/man8/umount.cifs.8
-usr/share/man/man8/cifs.upcall.8
-sbin/mount.smbfs
-sbin/mount.cifs
-sbin/umount.cifs
-usr/sbin/cifs.upcall
-usr/share/man/man8/mount.cifs.8
-usr/share/man/man8/umount.cifs.8
-usr/share/man/man8/cifs.upcall.8

Deleted: branches/samba/backports-unofficial/lenny-latest/debian/smbfs.links
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/smbfs.links	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/smbfs.links	2010-05-04 11:46:16 UTC (rev 3452)
@@ -1,10 +0,0 @@
-sbin/mount.smbfs usr/bin/smbmount
-sbin/umount.cifs usr/bin/smbumount
-usr/share/man/man8/umount.cifs.8 usr/share/man/man8/smbumount.8
-usr/share/man/man8/mount.cifs.8 usr/share/man/man8/smbmount.8
-usr/share/man/man8/mount.cifs.8 usr/share/man/man8/mount.smbfs.8
-sbin/mount.smbfs usr/bin/smbmount
-sbin/umount.cifs usr/bin/smbumount
-usr/share/man/man8/umount.cifs.8 usr/share/man/man8/smbumount.8
-usr/share/man/man8/mount.cifs.8 usr/share/man/man8/smbmount.8
-usr/share/man/man8/mount.cifs.8 usr/share/man/man8/mount.smbfs.8

Deleted: branches/samba/backports-unofficial/lenny-latest/debian/smbfs.lintian
===================================================================
--- branches/samba/backports-unofficial/lenny-latest/debian/smbfs.lintian	2010-05-04 11:37:37 UTC (rev 3451)
+++ branches/samba/backports-unofficial/lenny-latest/debian/smbfs.lintian	2010-05-04 11:46:16 UTC (rev 3452)
@@ -1,2 +0,0 @@
-smbfs: setuid-binary sbin/mount.cifs 4755 root/root
-smbfs: setuid-binary sbin/umount.cifs 4755 root/root





More information about the Pkg-samba-maint mailing list