* [Drbd-dev] DRBD 8.3.7 user/Makefile.in patch
@ 2010-09-25 11:01 Deftunix
2010-10-05 19:19 ` Lars Ellenberg
0 siblings, 1 reply; 2+ messages in thread
From: Deftunix @ 2010-09-25 11:01 UTC (permalink / raw)
To: drbd-user
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
Hi all,
i've found a little problem when installing drbd 8.3.7 from
source. It installs binary only related to $(DESTDIR) disregarding
$(sbindir).
Kind regards,
-- deftunix
[-- Attachment #2: user_Makefile.in.patch --]
[-- Type: text/plain, Size: 1862 bytes --]
--- drbd-8.3.7/user/Makefile.in.orig 2010-01-13 17:04:50.000000000 +0100
+++ drbd-8.3.7/user/Makefile.in 2010-09-25 12:26:17.963038793 +0200
@@ -98,23 +98,24 @@ distclean: clean
install:
ifeq ($(WITH_UTILS),yes)
- install -d $(DESTDIR)/sbin/
+ install -d $(DESTDIR)$(sbindir)
install -d $(DESTDIR)$(localstatedir)/lib/drbd
install -d $(DESTDIR)$(localstatedir)/lock
if getent group haclient > /dev/null 2> /dev/null ; then \
- install -g haclient -m 4750 drbdsetup $(DESTDIR)/sbin/ ; \
- install -g haclient -m 4750 drbdmeta $(DESTDIR)/sbin/ ; \
- install -m 755 drbdadm $(DESTDIR)/sbin/ ; \
+ install -g haclient -m 4750 drbdsetup $(DESTDIR)$(sbindir)/ ; \
+ install -g haclient -m 4750 drbdmeta $(DESTDIR)$(sbindir)/ ; \
+ install -m 755 drbdadm $(DESTDIR)$(sbindir)/ ; \
else \
- install -m 755 drbdsetup $(DESTDIR)/sbin/ ; \
- install -m 755 drbdmeta $(DESTDIR)/sbin/ ; \
- install -m 755 drbdadm $(DESTDIR)/sbin/ ; \
+ install -m 755 drbdsetup $(DESTDIR)$(sbindir)/ ; \
+ install -m 755 drbdmeta $(DESTDIR)$(sbindir)/ ; \
+ install -m 755 drbdadm $(DESTDIR)$(sbindir)/ ; \
fi
endif
uninstall:
- rm -f $(DESTDIR)/sbin/drbdsetup
- rm -f $(DESTDIR)/sbin/drbdadm
+ rm -f $(DESTDIR)$(sbindir)/drbdsetup
+ rm -f $(DESTDIR)$(sbindir)/drbdmeta
+ rm -f $(DESTDIR)$(sbindir)/drbdadm
spell:
for f in drbdadm_adjust.c drbdadm_main.c drbdadm_parser.c drbdadm_usage_cnt.c drbdmeta.c drbdsetup.c drbdtool_common.c; do \
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Drbd-dev] DRBD 8.3.7 user/Makefile.in patch
2010-09-25 11:01 [Drbd-dev] DRBD 8.3.7 user/Makefile.in patch Deftunix
@ 2010-10-05 19:19 ` Lars Ellenberg
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2010-10-05 19:19 UTC (permalink / raw)
To: drbd-dev, drbd-user
On Sat, Sep 25, 2010 at 01:01:07PM +0200, Deftunix wrote:
> Hi all,
>
> i've found a little problem when installing drbd 8.3.7 from
> source. It installs binary only related to $(DESTDIR) disregarding
> $(sbindir).
>
> Kind regards,
>
> -- deftunix
I think that has been intentional, as drbdsetup may be necessary early
during boot, we really want it in /sbin, not in /usr/sbin, or
/usr/local/sbin/ or whatever.
If there is a "autofoo configure" variable for /sbin/ equivalent
(as opposed to /usr/sbin/ equivalent), please let me know.
> --- drbd-8.3.7/user/Makefile.in.orig 2010-01-13 17:04:50.000000000 +0100
> +++ drbd-8.3.7/user/Makefile.in 2010-09-25 12:26:17.963038793 +0200
> @@ -98,23 +98,24 @@ distclean: clean
>
> install:
> ifeq ($(WITH_UTILS),yes)
> - install -d $(DESTDIR)/sbin/
> + install -d $(DESTDIR)$(sbindir)
...
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list -- I'm subscribed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-05 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-25 11:01 [Drbd-dev] DRBD 8.3.7 user/Makefile.in patch Deftunix
2010-10-05 19:19 ` Lars Ellenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox