diff --git a/netatalk-2.0.3-lsb.patch b/netatalk-2.0.3-lsb.patch new file mode 100644 index 0000000..ddd98da --- /dev/null +++ b/netatalk-2.0.3-lsb.patch @@ -0,0 +1,50 @@ +diff -up netatalk-2.0.3/distrib/initscripts/rc.atalk.redhat.lsb netatalk-2.0.3/distrib/initscripts/rc.atalk.redhat +--- netatalk-2.0.3/distrib/initscripts/rc.atalk.redhat.lsb 2008-02-25 15:29:38.000000000 +0100 ++++ netatalk-2.0.3/distrib/initscripts/rc.atalk.redhat 2008-02-25 16:07:36.000000000 +0100 +@@ -1,8 +1,19 @@ + #! /bin/sh ++# ++### BEGIN INIT INFO ++# Provides: netatalk ++# Required-Start: $local_fs $network $syslog ++# Required-Stop: $local_fs $network $syslog ++# Short-Description: AppleTalk networking programs ++# Description: This package enables Linux to talk to Macintosh computers via the ++# AppleTalk networking protocol. It includes a daemon to allow Linux ++# to act as a file server over EtherTalk or IP for Mac's. ++### END INIT INFO ++ + # chkconfig: - 91 35 +-# description: This package enables Linux to talk to Macintosh +-# computers via the AppleTalk networking protocol and +-# provides printer, file sharing, and AppleTalk routing ++# description: This package enables Linux to talk to Macintosh \ ++# computers via the AppleTalk networking protocol and \ ++# provides printer, file sharing, and AppleTalk routing \ + # services. + # + # AppleTalk daemons. Make sure not to start atalkd in the background: +@@ -27,12 +38,12 @@ ATALK_SBIN=/usr/sbin + + if [ ! -x ${ATALK_SBIN}/atalkd ]; then + echo "[${ATALK_SBIN}/atalkd not found. Did it compile?]"; +- exit 0; ++ exit 1; + fi + + if [ ! -f ${ATALK_CONF_DIR}/netatalk.conf ]; then + echo "[${ATALK_CONF_DIR}/netatalk.conf not found]"; +- exit 0; ++ exit 6; + fi + + # read in netatalk configuration +@@ -41,7 +52,7 @@ fi + # Check that networking is up. + if [ ${NETWORKING} = "no" ]; then + echo "[Network isn't started]"; +- exit 0; ++ exit 1; + fi + + # initialize return values diff --git a/netatalk.spec b/netatalk.spec index 4a330c1..393b9ce 100644 --- a/netatalk.spec +++ b/netatalk.spec @@ -1,7 +1,7 @@ Summary: AppleTalk networking programs Name: netatalk Version: 2.0.3 -Release: 17%{?dist} +Release: 18%{?dist} Epoch: 4 License: GPL Group: System Environment/Daemons @@ -190,6 +190,9 @@ fi %{_mandir}/man*/netatalk-config.1* %changelog +* Mon Feb 25 2008 Martin Nagy - 4:2.0.3-18 +- make init script LSB compliant (#246993) + * Mon Feb 25 2008 Martin Nagy - 4:2.0.3-17 - fix unowned directories (#233889)