1 From d4d392087f8ee049ed8f476e5ae780cbc0d0012a Mon Sep 17 00:00:00 2001
2 From: NeilBrown <neilb@suse.de>
3 Date: Thu, 17 May 2012 08:14:57 -0400
4 Subject: [PATCH] osd_login - ensure /sbin is created before installation.
6 If we use a more standard approach to describing the osd_login
7 script, the automake infrastructure will create /sbin before
8 attempting installation.
9 This is important for: make DESTDIR=/empty-dir install
11 Signed-off-by: NeilBrown <neilb@suse.de>
12 Signed-off-by: Steve Dickson <steved@redhat.com>
14 utils/osd_login/Makefile.am | 11 ++++-------
15 1 files changed, 4 insertions(+), 7 deletions(-)
17 diff --git a/utils/osd_login/Makefile.am b/utils/osd_login/Makefile.am
18 index adc493a..20c2d8c 100644
19 --- a/utils/osd_login/Makefile.am
20 +++ b/utils/osd_login/Makefile.am
22 ## Process this file with automake to produce Makefile.in
24 -OSD_LOGIN_FILES= osd_login
25 +# These binaries go in /sbin (not /usr/sbin), and that cannot be
26 +# overridden at config time.
29 -EXTRA_DIST= $(OSD_LOGIN_FILES)
31 -all-local: $(OSD_LOGIN_FILES)
34 - $(INSTALL) --mode 755 osd_login $(DESTDIR)/sbin/osd_login
35 +sbin_SCRIPTS = osd_login
37 MAINTAINERCLEANFILES = Makefile.in