+uninstall-startup:
+ -chkconfig --del $(sysv_SCRIPTS)
+ rm -f $(DESTDIR)$(sysvdir)/$(sysv_SCRIPTS)
+
+endif
+
+#
+# checking for general systemd scripts:
+#
+
+if USE_SYSTEMD
+
+servicedir = /lib/systemd/system
+service_DATA = netatalk.service
+
+netatalk.service: service.systemd
+ cp -f service.systemd netatalk.service
+
+install-data-hook:
+ -systemctl daemon-reload
+
+uninstall-startup:
+ -systemctl disable $(service_DATA)
+ rm -f $(DESTDIR)$(servicedir)/netatalk.service
+ -systemctl daemon-reload