1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add given user prefix to make target install_initscripts

Avoid files to be written into the live system if lvm was
configured with different --prefix.

Use initdir for install target path.
This commit is contained in:
Zdenek Kabelac 2010-11-05 16:13:18 +00:00
parent 335d694791
commit afcae0664e
2 changed files with 6 additions and 4 deletions

View File

@ -64,6 +64,8 @@ localedir = $(DESTDIR)@LOCALEDIR@
staticdir = $(DESTDIR)@STATICDIR@ staticdir = $(DESTDIR)@STATICDIR@
udevdir = $(DESTDIR)@udevdir@ udevdir = $(DESTDIR)@udevdir@
pkgconfigdir = $(usrlibdir)/pkgconfig pkgconfigdir = $(usrlibdir)/pkgconfig
initdir = $(DESTDIR)@sysconfdir@/rc.d/init.d
USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \ USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \
$(AWK) -f $(top_srcdir)/scripts/relpath.awk) $(AWK) -f $(top_srcdir)/scripts/relpath.awk)

View File

@ -33,13 +33,13 @@ install: install_lvm2
# FIXME Customise for other distributions # FIXME Customise for other distributions
install_initscripts: install_initscripts:
$(INSTALL_DIR) $(DESTDIR)/etc/rc.d/init.d $(INSTALL_DIR) $(initdir)
$(INSTALL_SCRIPT) lvm2_monitoring_init_red_hat $(DESTDIR)/etc/rc.d/init.d/lvm2-monitor $(INSTALL_SCRIPT) lvm2_monitoring_init_red_hat $(initdir)/lvm2-monitor
ifneq ("@CLVMD@", "none") ifneq ("@CLVMD@", "none")
$(INSTALL_SCRIPT) clvmd_init_red_hat $(DESTDIR)/etc/rc.d/init.d/clvmd $(INSTALL_SCRIPT) clvmd_init_red_hat $(initdir)/clvmd
endif endif
ifeq ("@BUILD_CMIRRORD@", "yes") ifeq ("@BUILD_CMIRRORD@", "yes")
$(INSTALL_SCRIPT) cmirrord_init_red_hat $(DESTDIR)/etc/rc.d/init.d/cmirrord $(INSTALL_SCRIPT) cmirrord_init_red_hat $(initdir)/cmirrord
endif endif
DISTCLEAN_TARGETS += clvmd_init_red_hat cmirrord_init_red_hat lvm2_monitoring_init_red_hat DISTCLEAN_TARGETS += clvmd_init_red_hat cmirrord_init_red_hat lvm2_monitoring_init_red_hat