[csw-devel] SF.net SVN: gar:[21820] csw/mgar/pkg/netsnmp/trunk

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Thu Aug 22 10:03:49 CEST 2013


Revision: 21820
          http://gar.svn.sourceforge.net/gar/?rev=21820&view=rev
Author:   cgrzemba
Date:     2013-08-22 08:03:48 +0000 (Thu, 22 Aug 2013)
Log Message:
-----------
netsnmp/trunk: add patch workaround-ksh-stop-alias-problem

Modified Paths:
--------------
    csw/mgar/pkg/netsnmp/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/netsnmp/trunk/files/0002-workaround-ksh-stop-alias-problem.patch

Modified: csw/mgar/pkg/netsnmp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/Makefile	2013-08-21 11:55:07 UTC (rev 21819)
+++ csw/mgar/pkg/netsnmp/trunk/Makefile	2013-08-22 08:03:48 UTC (rev 21820)
@@ -32,6 +32,7 @@
 PATCHFILES += Makefile.in.diff
 PATCHFILES += setup-py.patch
 PATCHFILES += 0001-fixing-init-scripts.patch
+PATCHFILES += 0002-workaround-ksh-stop-alias-problem.patch
 
 VENDOR_URL = http://www.net-snmp.org/
 

Added: csw/mgar/pkg/netsnmp/trunk/files/0002-workaround-ksh-stop-alias-problem.patch
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/files/0002-workaround-ksh-stop-alias-problem.patch	                        (rev 0)
+++ csw/mgar/pkg/netsnmp/trunk/files/0002-workaround-ksh-stop-alias-problem.patch	2013-08-22 08:03:48 UTC (rev 21820)
@@ -0,0 +1,43 @@
+From d96a1551d777bb117dc2641f5a91c8b13aec7b88 Mon Sep 17 00:00:00 2001
+From: Carsten Grzemba <cgrzemba at opencsw.org>
+Date: Thu, 22 Aug 2013 10:00:49 +0200
+Subject: [PATCH 2/2] workaround ksh stop alias problem
+
+---
+ dist/snmpd-init.d     | 4 ++++
+ dist/snmptrapd-init.d | 4 ++++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/dist/snmpd-init.d b/dist/snmpd-init.d
+index 9e25f6c..08d9ec9 100755
+--- a/dist/snmpd-init.d
++++ b/dist/snmpd-init.d
+@@ -5,6 +5,10 @@
+ #
+ # chkconfig: - 26 74
+ # description: snmpd is net-snmp SNMP daemon.
++alias stop > /dev/null 2>&1
++if [ $? -eq 0 ]; then
++  unalias stop
++fi
+ 
+ RETVAL=0
+ prog="/opt/csw/sbin/snmpd"
+diff --git a/dist/snmptrapd-init.d b/dist/snmptrapd-init.d
+index 160ce5b..e45600d 100644
+--- a/dist/snmptrapd-init.d
++++ b/dist/snmptrapd-init.d
+@@ -5,6 +5,10 @@
+ #
+ # chkconfig: - 25 75
+ # description: snmptrapd is net-snmp SNMPTRAP daemon.
++alias stop > /dev/null 2>&1
++if [ $? -eq 0 ]; then
++  unalias stop
++fi
+ 
+ RETVAL=0
+ prog="/opt/csw/sbin/snmptrapd"
+-- 
+1.8.3.4
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list