From 5f120db647e59eada6b434243d796bd31792bdad Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 23 Nov 2007 14:42:19 +0000 Subject: Fix install permissions a little --- src/Makefile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 8e0e233f..3f2b6ac6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -130,28 +130,28 @@ $(ALL_LINKS): rc links: $(ALL_LINKS) install:: $(TARGET) - install -m 0755 -d $(DESTDIR)/$(LIB) - install -m 0755 $(LIB_TARGETS) $(DESTDIR)/$(LIB) - install -m 0755 -d $(DESTDIR)/usr/$(LIB) - install -m 0644 $(ULIB_TARGETS) $(DESTDIR)/usr/$(LIB) + install -d $(DESTDIR)/$(LIB) + install -m 0444 $(LIB_TARGETS) $(DESTDIR)/$(LIB) + install -d $(DESTDIR)/usr/$(LIB) + install -m 0444 $(ULIB_TARGETS) $(DESTDIR)/usr/$(LIB) ln -sf /$(LIB)/$(LIBEINFOSO) $(DESTDIR)/usr/$(LIB)/libeinfo.so ln -sf /$(LIB)/$(LIBRCSO) $(DESTDIR)/usr/$(LIB)/librc.so - install -m 0755 -d $(DESTDIR)/usr/include - install -m 0644 einfo.h rc.h $(DESTDIR)/usr/include - install -m 0755 -d $(DESTDIR)/bin - install -m 0755 -d $(DESTDIR)/sbin - install -m 0755 $(SBIN_TARGETS) $(DESTDIR)/sbin + install -d $(DESTDIR)/usr/include + install -m 0444 einfo.h rc.h $(DESTDIR)/usr/include + install -d $(DESTDIR)/bin + install -d $(DESTDIR)/sbin + install -m 0555 $(SBIN_TARGETS) $(DESTDIR)/sbin ln -sf rc-update $(DESTDIR)/sbin/update-rc - 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 - install -m 0755 -d $(DESTDIR)/$(RC_LIB)/sbin + install -d $(DESTDIR)/$(RC_LIB)/conf.d + install -m 0444 $(SYS_WHITELIST) $(DESTDIR)/$(RC_LIB)/conf.d + install -d $(DESTDIR)/$(RC_LIB)/bin + install -d $(DESTDIR)/$(RC_LIB)/sbin 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 $(RC_BINLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(RC_LIB)/bin/$$x; done for x in $(RC_SBINLINKS); do ln -sf ../../../sbin/rc $(DESTDIR)/$(RC_LIB)/sbin/$$x; done if test "$(PAM)" = "pam" ; then \ - install -m 0755 -d $(DESTDIR)/etc/pam.d ; \ + install -d $(DESTDIR)/etc/pam.d ; \ install -m 0644 start-stop-daemon.pam $(DESTDIR)/etc/pam.d/start-stop-daemon ; \ fi -- cgit v1.2.3