From 72913e3a0498e2099800de53871b696c72feda1b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 28 Mar 2006 02:57:23 +0200 Subject: [PATCH] Imported Debian patch 1.0.7-5 --- confdefs.h | 4 --- debian/changelog | 42 ++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 2 +- debian/nfs-common.init | 2 +- debian/nfs-common.install | 8 ++++-- debian/nfs-common.links | 4 +++ debian/nfs-common.manpages | 8 ++++++ debian/nfs-kernel-server.install | 4 +++ debian/nfs-kernel-server.links | 4 +++ debian/nfs-kernel-server.manpages | 6 +++++ debian/nhfsstone.install | 2 ++ debian/rules | 43 +++++++++++-------------------- utils/gssd/Makefile | 2 +- utils/svcgssd/Makefile | 2 +- 15 files changed, 96 insertions(+), 38 deletions(-) delete mode 100644 confdefs.h create mode 100644 debian/compat create mode 100644 debian/nfs-common.links create mode 100644 debian/nfs-common.manpages create mode 100644 debian/nfs-kernel-server.install create mode 100644 debian/nfs-kernel-server.links create mode 100644 debian/nfs-kernel-server.manpages create mode 100644 debian/nhfsstone.install diff --git a/confdefs.h b/confdefs.h deleted file mode 100644 index 0010349..0000000 --- a/confdefs.h +++ /dev/null @@ -1,4 +0,0 @@ - -#define NFS3_SUPPORTED 1 -#define NFS4_SUPPORTED 1 -#define GSS_SUPPORTED 1 diff --git a/debian/changelog b/debian/changelog index 76571be..1c256fd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,45 @@ +nfs-utils (1:1.0.7-5) unstable; urgency=low + + * Non-non-maintainer-upload this time, it seems. :-) + * Don't let the init script fail if there wasn't any lockd threads to kill; + this could cause the package to fail configuration. + * Move to debhelper compatibility level 5. + * Use dh_install instead of dh_movefiles (actually a combination was used + earlier). Move stuff from *.files accordingly into *.install. + * mkdir debian/tmp manually before doing make install, and remove it + in the clean target. + * Use straight cp -a instead of dh_install for the files that _don't_ + come from debian/tmp/ (the two /etc files). + * Fix the "fixups" part in debian/rules to reflect the behaviour of + dh_install compared to dh_movefiles (ie. don't rm lots of stuff in + debian/tmp, etc.). + * Make a debian/nfs-kernel-server.install listing explicitly the files + we want in that package; with dh_movefiles everything from make install + was implicitly put there. This has the side effect that the man pages + for rpc.gssd and idmap.conf are no longer put in nfs-kernel-server, but + in nfs-common, where they should be. + * Use dh_installman to install the manpages, to make sure they're in the + right place (and move the manpage lists from *.files to *.manpages + accordingly). List the rpc.* variants of the manpages in *.links, + instead of assuming dh_compress (!) will make them for us. Bonus points + for then not including the nonsensical rpc.* variants, such as + rpc.idmapd.conf(5). + * Don't mv lockd, statd and showmount manually from /usr/sbin to /sbin; + let the .install file do it for us. + * Remove *.conffiles; debhelper now sets everything in /etc as conffiles + automatically. + * Extend the debian/rules rm hack to the files we removed in this version + (ick). + * In debian/control, make nfs-common replace nfs-kernel-server + (<< 1:1.0.7-5), since the idmapd manpage switched packages. + * Remove old cruft in debian/rules file: + * Remove non-used dh_* programs. + * Remove obsolete source and diff targets. + * Remove SETGCC hack. + * Don't set rpath for rpc.gssd and rpc.svcgssd (fixes lintian warnings). + + -- Steinar H. Gunderson Tue, 28 Mar 2006 02:57:23 +0200 + nfs-utils (1:1.0.7-4) unstable; urgency=low * Ack NMU. Thanks Steinar H. Gunderson. diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control index 2a8ba4a..d4283b9 100644 --- a/debian/control +++ b/debian/control @@ -28,7 +28,7 @@ Architecture: any Depends: portmap, sysvinit (>= 2.80-1), ${shlibs:Depends} Provides: nfs-client Conflicts: nfs-client -Replaces: nfs-client +Replaces: nfs-client, nfs-kernel-server (<< 1:1.0.7-5) Description: NFS support files common to client and server Use this package on any machine that does NFS either as client or server. Programs included: lockd, statd, showmount, and nfsstat. diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 4098d1c..0f25166 100755 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -133,7 +133,7 @@ case "$1" in start-stop-daemon --stop --oknodo --quiet \ --name rpc.lockd || true else - pkill -KILL -u root -x lockd + pkill -KILL -u root -x lockd || true fi printf " statd" start-stop-daemon --stop --oknodo --quiet \ diff --git a/debian/nfs-common.install b/debian/nfs-common.install index 8d81caa..915964a 100644 --- a/debian/nfs-common.install +++ b/debian/nfs-common.install @@ -1,2 +1,6 @@ -debian/idmapd.conf etc -debian/gssapi_mech.conf etc +usr/sbin/rpc.lockd sbin/ +usr/sbin/rpc.statd sbin/ +usr/sbin/showmount sbin/ +usr/sbin/nfsstat +usr/sbin/rpc.gssd +usr/sbin/rpc.idmapd diff --git a/debian/nfs-common.links b/debian/nfs-common.links new file mode 100644 index 0000000..5532df3 --- /dev/null +++ b/debian/nfs-common.links @@ -0,0 +1,4 @@ +/usr/share/man/man8/gssd.8 /usr/share/man/man8/rpc.gssd.8 +/usr/share/man/man8/lockd.8 /usr/share/man/man8/rpc.lockd.8 +/usr/share/man/man8/statd.8 /usr/share/man/man8/rpc.statd.8 +/usr/share/man/man8/idmapd.8 /usr/share/man/man8/rpc.idmapd.8 diff --git a/debian/nfs-common.manpages b/debian/nfs-common.manpages new file mode 100644 index 0000000..0e57332 --- /dev/null +++ b/debian/nfs-common.manpages @@ -0,0 +1,8 @@ +debian/tmp/usr/share/man/man5/idmapd.conf* +debian/tmp/usr/share/man/man8/gssd.8 +debian/tmp/usr/share/man/man8/idmapd.8 +debian/tmp/usr/share/man/man8/lockd.8 +debian/tmp/usr/share/man/man8/statd.8 +debian/tmp/usr/share/man/man8/nfsstat* +debian/tmp/usr/share/man/man8/showmount* +debian/tmp/usr/share/man/man8/idmapd* diff --git a/debian/nfs-kernel-server.install b/debian/nfs-kernel-server.install new file mode 100644 index 0000000..8ef5f09 --- /dev/null +++ b/debian/nfs-kernel-server.install @@ -0,0 +1,4 @@ +usr/sbin/exportfs +usr/sbin/rpc.mountd +usr/sbin/rpc.nfsd +usr/sbin/rpc.svcgssd diff --git a/debian/nfs-kernel-server.links b/debian/nfs-kernel-server.links new file mode 100644 index 0000000..a720bd0 --- /dev/null +++ b/debian/nfs-kernel-server.links @@ -0,0 +1,4 @@ +/usr/share/man/man8/mountd.8 /usr/share/man/man8/rpc.mountd.8 +/usr/share/man/man8/nfsd.8 /usr/share/man/man8/rpc.nfsd.8 +/usr/share/man/man8/svcgssd.8 /usr/share/man/man8/rpc.svcgssd.8 + diff --git a/debian/nfs-kernel-server.manpages b/debian/nfs-kernel-server.manpages new file mode 100644 index 0000000..f8edbae --- /dev/null +++ b/debian/nfs-kernel-server.manpages @@ -0,0 +1,6 @@ +debian/tmp/usr/share/man/man5/exports.5 +debian/tmp/usr/share/man/man7/nfsd.7 +debian/tmp/usr/share/man/man8/mountd.8 +debian/tmp/usr/share/man/man8/exportfs.8 +debian/tmp/usr/share/man/man8/nfsd.8 +debian/tmp/usr/share/man/man8/svcgssd.8 diff --git a/debian/nhfsstone.install b/debian/nhfsstone.install new file mode 100644 index 0000000..5d2c329 --- /dev/null +++ b/debian/nhfsstone.install @@ -0,0 +1,2 @@ +usr/sbin/nhfs* +usr/share/man/man8/nhfs* diff --git a/debian/rules b/debian/rules index cea6176..70877a8 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,8 @@ #!/usr/bin/make -f # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. -#export DH_COMPAT=5 export DH_VERBOSE=1 -# You can use gcc 2.7.2 if it's installed, -# but I don't think that's necessary any more. -#SETGCC := CC=$(notdir $(shell which gcc272 gcc 2>/dev/null | sed '1q')) - # Temporary root DEBTMP := $(shell pwd)/debian/tmp @@ -15,17 +10,20 @@ build: build-stamp build-stamp: # Debian source diffs don't reflect removals. # This kludge will suffice until the next upstream version. *sigh* - rm -f debian/nfs-common.config \ + rm -f debian/nfs-common.conffiles \ + debian/nfs-common.config \ + debian/nfs-common.files \ debian/nfs-common.templates \ + debian/nfs-kernel-server.conffiles\ debian/nfs-kernel-server.config \ - debian/nfs-kernel-server.templates + debian/nfs-kernel-server.templates\ + debian/nhfsstone.files dh_testdir - # Add here commands to compile the package. -test -r /usr/share/misc/config.sub && cp -f /usr/share/misc/config.sub config.sub -test -r /usr/share/misc/config.guess && cp -f /usr/share/misc/config.guess config.guess autoconf - $(SETGCC) ./configure \ + ./configure \ --mandir='$${prefix}/share/man' \ --enable-secure-statd $(MAKE) @@ -35,6 +33,7 @@ clean: dh_testdir dh_testroot rm -f build-stamp + rm -rf $(DEBTMP) # Add here commands to clean up after the build process. -test -r /usr/share/misc/config.sub && rm -f config.sub -test -r /usr/share/misc/config.guess && rm -f config.guess @@ -42,52 +41,40 @@ clean: rm -f config.log configure dh_clean -# Build architecture-independent files here. binary-indep: build -# We have nothing to do by default. - -# Build architecture-dependent files here. binary-arch: build dh_testdir dh_testroot dh_clean -k dh_installdirs - dh_install + mkdir $(DEBTMP) # Add here commands to install the files into debian/tmp $(MAKE) install_prefix='$(DEBTMP)' install - dh_movefiles + dh_install --sourcedir=debian/tmp/ # Fixups Start Here # cd debian && \ for f in lockd statd showmount; do \ - mv tmp/usr/sbin/*$$f nfs-common/sbin; \ perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \ nfs-common/usr/share/man/man8/$$f.8; \ done; \ - rm -f tmp/usr/sbin/*quota*; \ - rm -f tmp/usr/share/man/man8/*quota*; \ - rm -rf tmp/var/lib/nfs/*; \ - cp --preserve=timestamps etc.exports tmp/etc/exports + cp --preserve=timestamps etc.exports nfs-kernel-server/etc/exports; \ + cp --preserve=timestamps idmapd.conf nfs-common/etc/; \ + cp --preserve=timestamps gssapi_mech.conf nfs-common/etc/; \ # Fixups End Here # dh_installdocs -A dh_installexamples -# dh_installmenu dh_installinit -n -# dh_installcron -# dh_installmanpages -# dh_undocumented + dh_installman + dh_link dh_installchangelogs ChangeLog dh_strip dh_compress dh_fixperms dh_installdeb -# dh_makeshlibs dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb -source diff: - @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false - binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary diff --git a/utils/gssd/Makefile b/utils/gssd/Makefile index 6eba0f5..22493e0 100644 --- a/utils/gssd/Makefile +++ b/utils/gssd/Makefile @@ -7,7 +7,7 @@ PREFIX = rpc. OBJS = gssd.o gssd_main_loop.o gssd_proc.o err_util.o gss_util.o \ gss_oids.o context.o context_heimdal.o krb5_util.o LIBDEPS = $(TOP)support/lib/librpc.a $(TOP)support/lib/libgssapi.a -LIBS = -Wl,-rpath=$(KRBDIR)/lib -lrpc -lgssapi -ldl $(KRBLIB) +LIBS = -lrpc -lgssapi -ldl $(KRBLIB) MAN8 = gssd include $(TOP)rules.mk diff --git a/utils/svcgssd/Makefile b/utils/svcgssd/Makefile index a864de0..a979a77 100644 --- a/utils/svcgssd/Makefile +++ b/utils/svcgssd/Makefile @@ -7,7 +7,7 @@ PREFIX = rpc. OBJS = svcgssd.o svcgssd_main_loop.o svcgssd_proc.o err_util.o gss_util.o \ gss_oids.o context.o context_heimdal.o cacheio.o svcgssd_mech2file.o LIBDEPS = $(TOP)support/lib/librpc.a $(TOP)support/lib/libgssapi.a -LIBS = -Wl,-rpath=$(KRBDIR)/lib -lrpc -lgssapi -ldl $(KRBLIB) -lnfsidmap +LIBS = -lrpc -lgssapi -ldl $(KRBLIB) -lnfsidmap MAN8 = svcgssd LINKED = err_util.c gss_util.c gss_oids.c context.c context_heimdal.c -- 2.39.5