From 63d9e35e1acad06a03078fbc44a74594214b7e15 Mon Sep 17 00:00:00 2001 From: HAT Date: Wed, 19 Sep 2012 22:05:56 +0900 Subject: [PATCH] gentoo initscript from portage netatalk.init,v 1.1 2012/09/10 14:28:03 jlec http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-fs/netatalk/files/netatalk.init?revision=1.1 --- NEWS | 1 + distrib/initscripts/rc.gentoo.tmpl | 28 +++++++++------------------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/NEWS b/NEWS index e73877ea..0c2f5580 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,7 @@ Changes in 3.0.1 * UPD: libevent configure args to pick up installed version. Removed configure arg --disable-libevent, added configure args --with-libevent-header|lib. +* UPD: gentoo initscript: merge from portage netatalk.init,v 1.1 * REM: Remove --with-smbsharemodes configure option, it was an empty stub not yet implemented diff --git a/distrib/initscripts/rc.gentoo.tmpl b/distrib/initscripts/rc.gentoo.tmpl index c66e1e95..b8f64606 100644 --- a/distrib/initscripts/rc.gentoo.tmpl +++ b/distrib/initscripts/rc.gentoo.tmpl @@ -1,24 +1,14 @@ #!/sbin/runscript - +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# # Netatalk :NETATALK_VERSION: daemons. -depend() { - need net - use logger dns -} - -netatalk_startup () { - ebegin "Starting netatalk" - start-stop-daemon --start --quiet --exec :SBINDIR:/netatalk - eend $? -} - -start () { - netatalk_startup -} +command=":SBINDIR:/${SVCNAME}" -stop () { - ebegin "Stopping netatalk" - start-stop-daemon --stop --quiet --exec :SBINDIR:/netatalk - eend $? +depend() { + need net + use avahi-daemon + use logger dns + after entropy } -- 2.39.2