1 ## Makefile for distrib/initscripts/
5 pkgconfdir = @PKGCONFDIR@
12 sed -e s@:BINDIR:@${bindir}@ \
13 -e s@:SBINDIR:@${sbindir}@ \
14 -e s@:ETCDIR:@${pkgconfdir}@ \
24 rc.cnid_metad.netbsd \
32 rc.atalk.redhat.tmpl \
35 rc.atalkd.netbsd.tmpl \
37 rc.cnid_metad.netbsd.tmpl \
39 rc.timelord.netbsd.tmpl \
43 CLEANFILES = $(GENERATED_FILES) atalk afpd atalkd papd timelord
44 EXTRA_DIST = $(TEMPLATES) rc.atalk.cobalt
46 # overwrite automake uninstall
47 # not beautiful, but this way we can call the OS specific init script
48 # tools, like chkconfig, insserv or rc-update
50 uninstall: uninstall-startup
53 # checking for "redhat" style sysv scripts:
58 sysvdir = /etc/rc.d/init.d
61 atalk: rc.atalk.redhat
62 cp -f rc.atalk.redhat atalk
66 -chkconfig --add atalk
69 -chkconfig --del atalk
70 rm -f /etc/rc.d/init.d/atalk
75 # checking for "SuSE" style sysv scripts:
84 cp -f rc.atalk.suse atalk
92 rm -f /etc/init.d/atalk
97 # checking for "cobalt" style sysv scripts:
102 sysvdir = /etc/rc.d/init.d
105 atalk: rc.atalk.cobalt
106 cp -f rc.atalk.cobalt atalk
113 uninstall-startup: uninstall-am
118 # checking for "tru64" style sysv scripts:
123 sysvdir = /sbin/init.d
126 atalk: rc.atalk.tru64
127 cp -f rc.atalk.tru64 atalk
134 uninstall-startup: uninstall-am
139 # checking for NetBSD init scripts
145 sysv_SCRIPTS = afpd atalkd papd timelord
150 atalkd: rc.atalkd.netbsd
158 timelord: rc.timelord.netbsd
166 uninstall-startup: uninstall-am
171 # checking for Solaris init scripts
176 sysvdir = /etc/init.d
180 cp -f rc.atalk.sysv $@
184 rm -f /etc/rc2.d/S90atalk
185 -ln -s ../init.d/atalk /etc/rc2.d/S90atalk
186 rm -f /etc/rc0.d/K04atalk
187 -ln -s ../init.d/atalk /etc/rc0.d/K04atalk
190 rm -f /etc/init.d/atalk /etc/rc2.d/S90atalk /etc/rc0.d/K04atalk
195 # checking for "Gentoo" style sysv scripts:
200 sysvdir = /etc/init.d
203 atalk: rc.atalk.gentoo
204 cp -f rc.atalk.gentoo atalk
208 -rc-update add atalk default
211 -rc-update del atalk default
212 rm -f /etc/init.d/atalk
217 # defaults, no init scripts installed
226 uninstall-startup: uninstall-am