From 77f9015f0bf09c5ef3c51009e21d8e687006c3e4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 19 Sep 2007 13:53:40 +0000 Subject: /lib/rcscripts -> /lib/rc --- src/Makefile | 11 ++++++----- src/rc-misc.h | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 93e71d26..4da64061 100644 --- a/src/Makefile +++ b/src/Makefile @@ -41,6 +41,7 @@ CFLAGS += -pedantic -std=c99 \ DESTDIR = LIB = lib +RC_LIB = /$(LIB)/rc # Set PAM = pam for pam support PAM = @@ -134,13 +135,13 @@ install: $(TARGET) install -m 0755 -d $(DESTDIR)/sbin install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin ln -sf rc-update $(DESTDIR)/sbin/update-rc - install -m 0755 -d $(DESTDIR)/$(LIB)/rcscripts/conf.d - install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(LIB)/rcscripts/conf.d - install -m 0755 -d $(DESTDIR)/$(LIB)/rcscripts/bin + install -m 0755 -d $(DESTDIR)/$(RC_LIB)/conf.d + install -m 0644 $(SYS_WHITELIST) $(DESTDIR)/$(RC_LIB)/conf.d + install -m 0755 -d $(DESTDIR)/$(RC_LIB)/bin for x in $(BINLINKS); do ln -sf ../sbin/rc $(DESTDIR)/bin/$$x; done for x in $(SBINLINKS); do ln -sf rc $(DESTDIR)/sbin/$$x; done - for x in $(RCLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(LIB)/rcscripts/bin/$$x; done - if test "$(PAM)" != "pam" ; then \ + for x in $(RCLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(RC_LIB)/bin/$$x; done + if test "$(PAM)" = "pam" ; then \ install -m 0755 -d $(DESTDIR)/etc/pam.d ; \ install -m 0644 start-stop-daemon.pam $(DESTDIR)/etc/pam.d/start-stop-daemon ; \ fi diff --git a/src/rc-misc.h b/src/rc-misc.h index ec29987e..0df58b5c 100644 --- a/src/rc-misc.h +++ b/src/rc-misc.h @@ -14,7 +14,7 @@ #define RC_LEVEL_BOOT "boot" #define RC_LEVEL_DEFAULT "default" -#define RC_LIBDIR "/" LIB "/rcscripts" +#define RC_LIBDIR "/" LIB "/rc" #define RC_SVCDIR RC_LIBDIR "/init.d" #define RC_DEPTREE RC_SVCDIR "/deptree" #define RC_RUNLEVELDIR "/etc/runlevels" -- cgit v1.2.3