summaryrefslogtreecommitdiffstats
path: root/utils/mount
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-03-16 11:56:59 +1100
committerNeil Brown <neilb@suse.de>2007-03-16 11:56:59 +1100
commit8ab0b89f09dff407101a6f22265873a283e73901 (patch)
treedd63c738e972bc20749f3432537a3760c69bb61f /utils/mount
parent08964495c2a65f6228426e4565a50dae5b75834d (diff)
downloadnfs-utils-8ab0b89f09dff407101a6f22265873a283e73901.tar.gz
nfs-utils-8ab0b89f09dff407101a6f22265873a283e73901.tar.xz
nfs-utils-8ab0b89f09dff407101a6f22265873a283e73901.zip
Install mount.nfs* in /sbin instead of /usr/sbin
This patch is now hard-coded in the Makefile.am and cannot be changed by configure. But as it needs to match what util-linux does, that is probably a good thing.
Diffstat (limited to 'utils/mount')
-rw-r--r--utils/mount/Makefile.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/utils/mount/Makefile.am b/utils/mount/Makefile.am
index 4a2f437..500c429 100644
--- a/utils/mount/Makefile.am
+++ b/utils/mount/Makefile.am
@@ -1,5 +1,9 @@
## Process this file with automake to produce Makefile.in
+# These binaries go in /sbin (not /usr/sbin), and that cannot be
+# overriden at config time.
+sbindir = /sbin
+
man8_MANS = mount.nfs.man umount.nfs.man
sbin_PROGRAMS = mount.nfs
@@ -14,9 +18,9 @@ MAINTAINERCLEANFILES = Makefile.in
install-exec-hook:
(cd $(DESTDIR)$(sbindir) && \
- ln -sf $(sbin_PROGRAMS) mount.nfs4 && \
- ln -sf $(sbin_PROGRAMS) umount.nfs && \
- ln -sf $(sbin_PROGRAMS) umount.nfs4)
+ ln -sf mount.nfs mount.nfs4 && \
+ ln -sf mount.nfs umount.nfs && \
+ ln -sf mount.nfs umount.nfs4)
uninstall-hook:
(cd $(DESTDIR)$(sbindir) && \
rm -f mount.nfs4 umount.nfs umount.nfs4)