From 0d8e0228b67771f67945e7dc5a4fc661a3b31323 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Jun 28 2010 13:07:47 +0000 Subject: rebased to 0.9.38 --- diff --git a/.cvsignore b/.cvsignore index fffbaf8..6cbf683 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -lldpad-0.9.32.tar.gz +lldpad-0.9.38.tar.gz diff --git a/lldpad-0.9.19-init-lsb.patch b/lldpad-0.9.19-init-lsb.patch index aa61278..5a4082a 100644 --- a/lldpad-0.9.19-init-lsb.patch +++ b/lldpad-0.9.19-init-lsb.patch @@ -1,12 +1,12 @@ ---- lldpad-0.9.26/lldpad.init.orig 2010-02-25 10:32:30.000000000 +0100 -+++ lldpad-0.9.26/lldpad.init 2010-02-25 10:52:52.000000000 +0100 +--- lldpad-0.9.38/lldpad.init.orig 2010-06-23 10:52:43.000000000 +0200 ++++ lldpad-0.9.38/lldpad.init 2010-06-23 11:01:02.000000000 +0200 @@ -151,6 +151,7 @@ # See how we were called. case "$1" in start) + [ "$EUID" = "0" ] || exit 4 echo -n $"Starting $LLDPAD: " - $LLDPAD_BIN -k + $LLDPAD_BIN -k start_daemon $LLDPAD_BIN -d $OPTIONS @@ -158,6 +159,7 @@ [ $? -eq 0 ] && touch /var/lock/subsys/lldpad @@ -16,22 +16,27 @@ echo -n $"Shutting down $LLDPAD: " killproc $LLDPAD rc_status -v -@@ -177,6 +179,14 @@ - - # NOTE: checkproc returns LSB compliant status values. - checkproc $LLDPAD_BIN +@@ -166,6 +168,19 @@ + status) + echo -n "Checking for service $LLDPAD: " + p=`pidof $LLDPAD` + RC=$? -+ if [ "$RC" = "3" -a -f /var/lock/subsys/lldpad ]; then -+ rc_failed 2 -+ elif [ "$RC" = "3" ]; then -+ rc_failed 3 -+ elif [ "$RC" = "1" ]; then -+ rc_failed 1 ++ if [ "$RC" = "1" ]; then ++ echo "stopped" ++ if [ -f /var/lock/subsys/lldpad ]; then ++ rc_failed 2 ++ elif [ -f /var/run/lldpad.pid ]; then ++ rc_failed 1 ++ else ++ rc_failed 3 ++ fi ++ else ++ echo "running" + fi - # NOTE: rc_status knows that we called this init script with - # "status" option and adapts its messages accordingly. rc_status -v -@@ -236,9 +246,13 @@ + ;; + try-restart|condrestart) +@@ -226,9 +238,13 @@ rc_failed 3 rc_status -v ;; diff --git a/lldpad-0.9.7-init.patch b/lldpad-0.9.7-init.patch index d1c15d4..34093da 100644 --- a/lldpad-0.9.7-init.patch +++ b/lldpad-0.9.7-init.patch @@ -7,7 +7,7 @@ diff -Nurp dcbd-0.9.7-current/dcbd.init dcbd-0.9.7-corrected/dcbd.init # -# chkconfig: 345 20 80 +# chkconfig: - 20 80 - # description: Data Center Bridging Exchange protocol daemon + # description: Link Layer Discovery Protocol Agent Daemon # ### BEGIN INIT INFO # Provides: lldpad @@ -16,7 +16,7 @@ diff -Nurp dcbd-0.9.7-current/dcbd.init dcbd-0.9.7-corrected/dcbd.init -# Default-Start: 3 5 +# Default-Start: # Default-Stop: -+# Short-Description: Data Center Bridging Exchange protocol daemon - # Description: Data Center Bridging Exchange protocol daemon ++# Short-Description: Link Layer Discovery Protocol Agent Daemon + # Description: Link Layer Discovery Protocol Agent Daemon ### END INIT INFO diff --git a/lldpad.spec b/lldpad.spec index cc7da84..c9ee8f1 100644 --- a/lldpad.spec +++ b/lldpad.spec @@ -1,6 +1,6 @@ Name: lldpad -Version: 0.9.32 -Release: 2%{?dist} +Version: 0.9.38 +Release: 1%{?dist} Summary: Intel LLDP Agent Group: System Environment/Daemons @@ -105,6 +105,10 @@ test -e %{_includedir}/dcbd && `rm -f %{_includedir}/dcbd` %changelog +* Mon Jun 28 2010 Jan Zeleny - 0.9.38-1 +- rebased to 0.9.38 (various enhancements and bugfixes, see + lldpad-0.9.38-relnotes.txt on http://e1000.sf.net for complete list) + * Mon May 10 2010 Jan Zeleny - 0.9.32-2 - rebuild to match new libconfig diff --git a/sources b/sources index c2fb1cd..24a2770 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -72cb15898847b76ae8d2aaf5da00c7ad lldpad-0.9.32.tar.gz +a55178979b523c02d0bb90bb36f3a693 lldpad-0.9.38.tar.gz