X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Frules;h=215401dd15dd5f6e95fdef72eab9c7df1ae279f8;hp=757468e95238ef6ad08cbdf8106ba34f3d6cdbb5;hb=afdaac552004aa553336a1775ed047896701b4e9;hpb=d884956a17347585f26fbfa1492ab396d2f41897 diff --git a/debian/rules b/debian/rules index 757468e..215401d 100755 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,9 @@ # Parsing of DEB_BUILD_OPTIONS flags. # Note that nostrip is handled automatically by debhelper. -CFLAGS := -g -Wall +CFLAGS := -g -Wall -DPIPEFS_DIR=\\\"/run/rpc_pipefs\\\" \ + -DGSSD_PIPEFS_DIR=\\\"/run/rpc_pipefs\\\" + ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else @@ -27,7 +29,6 @@ build-stamp: --enable-nfsv41 \ --enable-ipv6 \ --enable-libmount-mount \ - --with-gssglue \ --with-tcp-wrappers $(MAKE) $(MAKEFLAGS) touch build-stamp @@ -53,7 +54,11 @@ binary-arch: build dh_install -Xman --fail-missing dh_installdocs -A dh_installdocs -pnfs-common debian/README.Debian.nfsv4 - install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common + dh_systemd_enable -p nfs-common nfs-client.target + dh_systemd_enable -p nfs-kernel-server nfs-server.service + dh_installinit -pnfs-common -R + dh_systemd_start -p nfs-common --restart-after-upgrade nfs-utils.service + dh_systemd_start -p nfs-kernel-server --restart-after-upgrade nfs-server.service install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server install -m 0644 debian/nfs-common.bugcontrol debian/nfs-common/usr/share/bug/nfs-common/control install -m 0755 debian/nfs-common.bugscript debian/nfs-common/usr/share/bug/nfs-common/script @@ -66,6 +71,7 @@ binary-arch: build dh_strip dh_compress dh_fixperms + chmod +x debian/nfs-common/usr/lib/systemd/scripts/nfs-utils_env.sh chmod u+s debian/nfs-common/sbin/mount.nfs dh_installdeb dh_shlibdeps