summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index b2e6a8b..ea79f75 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -47,7 +47,17 @@ install: all
install -m 755 in.ivyd $(PREFIX)/usr/bin/in.ivyd
install -m 755 ivyd $(PREFIX)/usr/bin/ivyd
install -m 755 inecho $(PREFIX)/usr/bin/ivyecho
- install -m 755 ivycat $(PREFIX)/usr/bin/ivycat
+ test -d $(PREFIX)/etc/rc.d/init.d || mkdirhier $(PREFIX)/etc/rc.d/init.d
+ test -d $(PREFIX)/etc/rc.d/rc2.d || mkdirhier $(PREFIX)/etc/rc.d/rc2.d
+ test -d $(PREFIX)/etc/rc.d/rc3.d || mkdirhier $(PREFIX)/etc/rc.d/rc3.d
+ test -d $(PREFIX)/etc/rc.d/rc4.d || mkdirhier $(PREFIX)/etc/rc.d/rc4.d
+ test -d $(PREFIX)/etc/rc.d/rc5.d || mkdirhier $(PREFIX)/etc/rc.d/rc5.d
+ install -m755 ivyd.init $(PREFIX)/etc/rc.d/init.d/ivyd
+ ln -s /etc/rc.d/init.d/ivyd $(PREFIX)/etc/rc.d/rc2.d/S97ivyd
+ ln -s /etc/rc.d/init.d/ivyd $(PREFIX)/etc/rc.d/rc3.d/S97ivyd
+ ln -s /etc/rc.d/init.d/ivyd $(PREFIX)/etc/rc.d/rc4.d/S97ivyd
+ ln -s /etc/rc.d/init.d/ivyd $(PREFIX)/etc/rc.d/rc5.d/S97ivyd
+
rpm::
/usr/bin/rpmize