From: NeilBrown Date: Thu, 17 May 2012 12:14:57 +0000 (-0400) Subject: osd_login - ensure /sbin is created before installation. X-Git-Tag: debian/1%1.2.8-1~11^2^2~118 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d4d392087f8ee049ed8f476e5ae780cbc0d0012a;p=nfs-utils.git osd_login - ensure /sbin is created before installation. If we use a more standard approach to describing the osd_login script, the automake infrastructure will create /sbin before attempting installation. This is important for: make DESTDIR=/empty-dir install Signed-off-by: NeilBrown Signed-off-by: Steve Dickson --- diff --git a/utils/osd_login/Makefile.am b/utils/osd_login/Makefile.am index adc493a..20c2d8c 100644 --- a/utils/osd_login/Makefile.am +++ b/utils/osd_login/Makefile.am @@ -1,12 +1,9 @@ ## Process this file with automake to produce Makefile.in -OSD_LOGIN_FILES= osd_login +# These binaries go in /sbin (not /usr/sbin), and that cannot be +# overridden at config time. +sbindir = /sbin -EXTRA_DIST= $(OSD_LOGIN_FILES) - -all-local: $(OSD_LOGIN_FILES) - -install-data-hook: - $(INSTALL) --mode 755 osd_login $(DESTDIR)/sbin/osd_login +sbin_SCRIPTS = osd_login MAINTAINERCLEANFILES = Makefile.in