X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=distrib%2Finitscripts%2FMakefile.am;h=2d1cb3ab566b63d8fc30e744faa794c1a6d5a210;hb=539bab5ea7c47c713759aac42cc0a0d9806ba73f;hp=0987865f8861586b2d58d7986ef16bc21c6ab50e;hpb=8e89b0cc792ec9a91267fc310eb2d4fd00be53f2;p=netatalk.git diff --git a/distrib/initscripts/Makefile.am b/distrib/initscripts/Makefile.am index 0987865f..2d1cb3ab 100644 --- a/distrib/initscripts/Makefile.am +++ b/distrib/initscripts/Makefile.am @@ -13,6 +13,7 @@ pkgconfdir = @PKGCONFDIR@ -e s@:SBINDIR:@${sbindir}@ \ -e s@:ETCDIR:@${pkgconfdir}@ \ -e s@:NETATALK_VERSION:@${NETATALK_VERSION}@ \ + -e s@:PATH_NETATALK_LOCK:@${PATH_NETATALK_LOCK}@ \ <$< >$@ GENERATED_FILES = \ @@ -23,7 +24,8 @@ GENERATED_FILES = \ rc.redhat \ rc.solaris \ rc.suse \ - service.systemd + service.systemd \ + netatalk.xml TEMPLATES = \ rc.bsd.tmpl \ @@ -33,10 +35,12 @@ TEMPLATES = \ rc.redhat.tmpl \ rc.solaris.tmpl \ rc.suse.tmpl \ - service.systemd.tmpl + service.systemd.tmpl \ + netatalk.xml.tmpl CLEANFILES = $(GENERATED_FILES) $(sysv_SCRIPTS) $(service_DATA) afpd cnid_metad EXTRA_DIST = $(TEMPLATES) +noinst_DATA = $(GENERATED_FILES) # overwrite automake uninstall # not beautiful, but this way we can call the OS specific init script @@ -137,23 +141,14 @@ endif if USE_SOLARIS -sysvdir = /etc/init.d -sysv_SCRIPTS = netatalk - -$(sysv_SCRIPTS): rc.solaris - cp -f rc.solaris $@ - chmod a+x $@ +servicedir = /lib/svc/manifest/network/ +service_DATA = netatalk.xml install-data-hook: - rm -f $(DESTDIR)/etc/rc2.d/S90$(sysv_SCRIPTS) - -ln -s ../init.d/$(sysv_SCRIPTS) $(DESTDIR)/etc/rc2.d/S90$(sysv_SCRIPTS) - rm -f $(DESTDIR)/etc/rc0.d/K04$(sysv_SCRIPTS) - -ln -s ../init.d/$(sysv_SCRIPTS) $(DESTDIR)/etc/rc0.d/K04$(sysv_SCRIPTS) + svccfg import netatalk.xml uninstall-startup: - rm -f $(DESTDIR)$(sysvdir)/$(sysv_SCRIPTS) \ - $(DESTDIR)/etc/rc2.d/S90$(sysv_SCRIPTS) \ - $(DESTDIR)/etc/rc0.d/K04$(sysv_SCRIPTS) + svccfg delete network/netatalk endif