* UPD: afpd: distribute SIGHUP from parent afpd to children and force
reload shares
* FIX: netatalk: refresh Zeroconf registration when receiving SIGHUP
+* NEW: configure option "--with-init-style=debian-systemd" for Debian 8 jessieand later.
+ "--with-init-style=debian" is renamed "--with-init-style=debian-sysv".
Changes in 3.1.5
================
endif
+#
+# checking for "Debian" style systemd scripts:
+#
+
+if USE_DEBIAN_SYSTEMD
+
+servicedir = $(INIT_DIR)
+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
+
+endif
+
#
# checking for "SuSE" style sysv scripts:
#
# checking for "Debian" style sysv scripts:
#
-if USE_DEBIAN
+if USE_DEBIAN_SYSV
sysvdir = $(INIT_DIR)
sysv_SCRIPTS = netatalk
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="installation">
<chapterinfo>
- <date>4.8.2013</date>
+ <date>22.8.2014</date>
</chapterinfo>
<title>Installation</title>
<itemizedlist>
<listitem>
- <para><option>--with-init-style</option>=redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian|solaris|systemd</para>
+ <para><option>--with-init-style</option>=redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian-sysv|debian-systemd|solaris|systemd</para>
<para>This option helps netatalk to determine where to install the
start scripts.</para>
dnl Check for optional initscript install
AC_DEFUN([AC_NETATALK_INIT_STYLE], [
AC_ARG_WITH(init-style,
- [ --with-init-style use OS specific init config [[redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian|solaris|systemd]]],
+ [ --with-init-style use OS specific init config [[redhat-sysv|redhat-systemd|suse-sysv|suse-systemd|gentoo|netbsd|debian-sysv|debian-systemd|solaris|systemd]]],
init_style="$withval", init_style=none
)
case "$init_style" in
ac_cv_init_dir="/etc/rc.d"
;;
"debian")
- AC_MSG_RESULT([enabling debian-style initscript support])
+ AC_MSG_ERROR([--with-init-style=debian is obsoleted. Use debian-sysv or debian-systemd.])
+ ;;
+ "debian-sysv")
+ AC_MSG_RESULT([enabling debian-style sysv initscript support])
ac_cv_init_dir="/etc/init.d"
;;
+ "debian-systemd")
+ AC_MSG_RESULT([enabling debian-style systemd support])
+ ac_cv_init_dir="/lib/systemd/system"
+ ;;
"solaris")
AC_MSG_RESULT([enabling solaris-style SMF support])
ac_cv_init_dir="/lib/svc/manifest/network/"
AM_CONDITIONAL(USE_SUSE_SYSV, test x$init_style = xsuse-sysv)
AM_CONDITIONAL(USE_SOLARIS, test x$init_style = xsolaris)
AM_CONDITIONAL(USE_GENTOO, test x$init_style = xgentoo)
- AM_CONDITIONAL(USE_DEBIAN, test x$init_style = xdebian)
+ AM_CONDITIONAL(USE_DEBIAN_SYSV, test x$init_style = xdebian-sysv)
AM_CONDITIONAL(USE_SYSTEMD, test x$init_style = xsystemd || test x$init_style = xredhat-systemd || test x$init_style = xsuse-systemd)
+ AM_CONDITIONAL(USE_DEBIAN_SYSTEMD, test x$init_style = xdebian-systemd)
AM_CONDITIONAL(USE_UNDEF, test x$init_style = xnone)
AC_ARG_WITH(init-dir,