Commit 562b2f87 authored by Mike Hibler's avatar Mike Hibler
Browse files

Fix some symlink targets to work correctly when DESTDIR is set.

parent 49a93222
......@@ -105,8 +105,8 @@ sysetc-install: ifcfgs dir-install
# See ntpd.service below.
rm -f $(RCDIR)/init.d/ntpd
rm -f $(DEFRUNLVLDIR)/S58ntpd
ln -sf $(SYSETCDIR)/dhclient-enter-hooks $(SYSETCDIR)/dhcp/
ln -sf $(SYSETCDIR)/dhclient-exit-hooks $(SYSETCDIR)/dhcp/
ln -sf /etc/dhclient-enter-hooks $(SYSETCDIR)/dhcp/
ln -sf /etc/dhclient-exit-hooks $(SYSETCDIR)/dhcp/
$(INSTALL) -m 644 $(SRCDIR)/ntp.conf $(SYSETCDIR)/ntp.conf
$(INSTALL) -m 644 $(SRCDIR)/ifcfg-eth99 $(SYSETCDIR)/sysconfig/network-scripts
$(INSTALL) -m 644 ifcfg-eth[0-9]* $(SYSETCDIR)/sysconfig/network-scripts
......@@ -282,7 +282,7 @@ vserver-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/vserver/ $(VSDIR)/
$(INSTALL) -m 755 $(SRCDIR)/vserver/ $(VSDIR)/
$(INSTALL) -m 755 $(SRCDIR)/ $(BINDIR)/
-ln -sf $(BINDIR)/ $(BINDIR)/
-ln -sf $(CLIENT_BINDIR)/ $(BINDIR)/
openvz-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/ $(BINDIR)/
......@@ -91,7 +91,7 @@ sysetc-fixup:
$(INSTALL) -m 755 $(SRCDIR)/dhclient-enter-hooks \
rm -f $(RRCDIR)/rc.local $(SYSETCDIR)/rc.local
rm -f $(SYSETCDIR)/rc.local
$(INSTALL) -m 644 $(SRCDIR)/rc-sysinit.conf $(SYSETCDIR)/init
$(INSTALL) -m 644 $(SRCDIR)/rsyslog-emulab.conf $(SYSETCDIR)/rsyslog.d/60-emulab.conf
$(INSTALL) -m 755 $(SRCDIR)/rc.local $(SYSETCDIR)/rc.local
......@@ -103,10 +103,10 @@ script-install: dir-install $(SCRIPTS)
(cd ../linux; $(MAKE) DESTDIR=$(DESTDIR) RCDIR=$(RCDIR) genirack-install)
$(INSTALL) -m 755 $(SRCDIR)/ $(RCDIR)/init.d/
-ln -sf $(RCDIR)/init.d/ $(DEFRUNLVLDIR)/
-ln -sf $(RCDIR)/init.d/ $(SYSETCDIR)/rc2.d/
-ln -sf $(RCDIR)/init.d/ $(SYSETCDIR)/rc4.d/
-ln -sf $(RCDIR)/init.d/ $(SYSETCDIR)/rc5.d/
-ln -sf $(RRCDIR)/init.d/ $(DEFRUNLVLDIR)/
-ln -sf $(RRCDIR)/init.d/ $(SYSETCDIR)/rc2.d/
-ln -sf $(RRCDIR)/init.d/ $(SYSETCDIR)/rc4.d/
-ln -sf $(RRCDIR)/init.d/ $(SYSETCDIR)/rc5.d/
$(INSTALL) -m 644 $(SRCDIR)/interfaces-genirack $(SYSETCDIR)/network/interfaces
$(INSTALL) -m 644 $(SRCDIR)/isc-dhcp-server $(SYSETCDIR)/default/
$(INSTALL) -m 644 $(SRCDIR)/dhcpd.conf $(SYSETCDIR)/dhcp/
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment