diff options
author | David Kaspar [Dee'Kej] <dkaspar@redhat.com> | 2018-06-04 11:00:03 +0200 |
---|---|---|
committer | Dee'Kej <deekej@linuxmail.org> | 2018-06-04 13:55:36 +0200 |
commit | bfbd7950f097af33d87ff4ad31ba67576601f60d (patch) | |
tree | c9dc394c9ba8d36ce5f35ab0ab1c9f83865467e3 /Makefile | |
parent | 9cb02497d4c4ef55bd18e096ce3169724eec657d (diff) | |
download | initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar.gz initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar.bz2 initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.tar.xz initscripts-bfbd7950f097af33d87ff4ad31ba67576601f60d.zip |
Makefile: make the creation of symlinks relative to path again
Resolves: RHBZ#1585321
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -73,10 +73,8 @@ install-usr: install-network-scripts: install-usr install-etc install -m 0755 -d $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts cp -a network-scripts/* $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/ - (cd $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts; \ - ln -sf ifup-ippp ifup-isdn ; \ - ln -sf ifdown-ippp ifdown-isdn ; \ - ) + ln -srf $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/{ifup-ippp,ifup-isdn} + ln -srf $(DESTDIR)$(sysconfdir)/sysconfig/network-scripts/{ifdown-ippp,ifdown-isdn} install-man: install-usr install -m 0755 -d $(DESTDIR)$(mandir)/man1 @@ -97,7 +95,7 @@ install-post: install-etc for idx in {0..6}; do \ dir=$(DESTDIR)$(sysconfdir)/rc.d/rc$$idx.d; \ install -m 0755 -d $$dir; \ - ln -sf $(sysconfdir)/rc.d/rc$$idx.d $(DESTDIR)$(sysconfdir)/; \ + ln -srf $(DESTDIR)$(sysconfdir)/rc.d/rc$$idx.d $(DESTDIR)$(sysconfdir)/; \ done touch $(DESTDIR)$(sysconfdir)/rc.d/rc.local chmod 0755 $(DESTDIR)$(sysconfdir)/rc.d/rc.local |