[csw-devel] SF.net SVN: gar:[21396] csw/mgar/pkg/netsnmp/trunk/Makefile
cgrzemba at users.sourceforge.net
cgrzemba at users.sourceforge.net
Wed Jun 26 16:47:16 CEST 2013
Revision: 21396
http://gar.svn.sourceforge.net/gar/?rev=21396&view=rev
Author: cgrzemba
Date: 2013-06-26 14:47:13 +0000 (Wed, 26 Jun 2013)
Log Message:
-----------
netsnmp/trunk: fixing bug4770 bug4932 bug4442
Modified Paths:
--------------
csw/mgar/pkg/netsnmp/trunk/Makefile
Modified: csw/mgar/pkg/netsnmp/trunk/Makefile
===================================================================
--- csw/mgar/pkg/netsnmp/trunk/Makefile 2013-06-26 14:22:48 UTC (rev 21395)
+++ csw/mgar/pkg/netsnmp/trunk/Makefile 2013-06-26 14:47:13 UTC (rev 21396)
@@ -18,9 +18,14 @@
SF_PROJECT = net-snmp
MASTER_SITES = $(SF_MIRRORS)
-DISTNAME = $(SF_PROJ)-$(VERSION)
+DISTNAME = $(SF_PROJECT)-$(VERSION)
DISTFILES = $(DISTNAME).tar.gz
+REINPLACE_USRLOCAL = dist/snmp*init.d
+REINPLACE_USRLOCAL += perl/TrapReceiver/TrapReceiver.pm
+REINPLACE_USRLOCAL += local/ipf-mod.pl
+REINPLACE_USRLOCAL += local/traptoemail
+
# Patch for perl modules
PATCHFILES = perl_makefiles.diff
# Patch for python module
@@ -33,6 +38,9 @@
BUILD_DEP_PKGS = CSWpysetuptools
PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
+INITSMF = /etc/init.d/snmpd
+INITSMF = /etc/init.d/snmptrapd
+
PACKAGES += CSWnetsnmp-dev
CATALOGNAME_CSWnetsnmp-dev = netsnmp_dev
SPKG_DESC_CSWnetsnmp-dev += $(DESCRIPTION), development files
@@ -42,7 +50,7 @@
RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmptrapd25
RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmp25
RUNTIME_DEP_PKGS_CSWnetsnmp-dev += CSWlibnetsnmpagent25
-CHECKPKG_OVERRIDES_CSWnetsnmp-dev += file-with-bad-content|/usr/local|root/opt/csw/share/man/man3/NetSNMP::TrapReceiver.3perl
+# CHECKPKG_OVERRIDES_CSWnetsnmp-dev += file-with-bad-content|/usr/local|root/opt/csw/share/man/man3/NetSNMP::TrapReceiver.3perl
PACKAGES += CSWlibnetsnmp25
CATALOGNAME_CSWlibnetsnmp25 = libnetsnmp25
@@ -89,7 +97,7 @@
RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmptrapd25
RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmp25
RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibnetsnmpagent25
-CHECKPKG_OVERRIDES_CSWpmnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/lib/perl/site_perl/NetSNMP/TrapReceiver.pm
+# CHECKPKG_OVERRIDES_CSWpmnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/lib/perl/site_perl/NetSNMP/TrapReceiver.pm
RUNTIME_DEP_PKGS_CSWpmnetsnmp += CSWlibssl1-0-0
EXTRA_MERGE_EXCLUDE_FILES += .*/*.pyc
@@ -110,13 +118,13 @@
RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibnetsnmpagent25
RUNTIME_DEP_PKGS_CSWnetsnmp += CSWlibssl1-0-0
RUNTIME_DEP_PKGS_CSWnetsnmp += CSWperl
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpcmd.1
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpconf.1
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/snmpd.8
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/snmpd.conf.5
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/traptoemail
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/ipf-mod.pl
-CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/snmp/mib2c-data/mfd-makefile.m2m
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpcmd.1
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/snmpconf.1
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/snmpd.8
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/snmpd.conf.5
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/traptoemail
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/bin/ipf-mod.pl
+# CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/local|root/opt/csw/share/snmp/mib2c-data/mfd-makefile.m2m
CHECKPKG_OVERRIDES_CSWnetsnmp += file-with-bad-content|/usr/share|root/opt/csw/bin/net-snmp-cert
# BUILD64 = 1
@@ -124,11 +132,12 @@
NOISALIST = 1
# The -I/opt/csw/include pulls in installed version before built version and breaks testsuite
-CPPFLAGS =
+# CPPFLAGS =
EXTRA_CFLAGS = $(INCLUDE_FLAGS)
# link not to the old already installed libs
-LD_OPTIONS =
+# LD_OPTIONS =
EXTRA_LINKER_FLAGS = $(RUNPATH_LINKER_FLAGS) -xnorunpath
+# EXTRA_LDFLAGS = $(LD_OPTIONS)
CONFIGURE_ARGS_mm-32 = --disable-embedded-perl
CONFIGURE_ARGS_mm-32 += --with-perl-modules=yes
@@ -192,6 +201,14 @@
CFLAGS := $(filter-out -I/opt/csw/include,$(CFLAGS))
# LDFLAGS := $(filter-out -R/opt/csw/lib% -L/opt/csw/lib,$(LDFLAGS))
+post-install:
+ ginstall -d $(DESTDIR)/etc/init.d
+ ginstall -d $(DESTDIR)/$(syconfdir)/snmp
+ ginstall -m 755 $(WORKSRC)/dist/snmpd-init.d $(DESTDIR)/etc/init.d/snmpd
+ ginstall -m 755 $(WORKSRC)/dist/snmptrapd-init.d $(DESTDIR)/etc/init.d/snmptrapd
+ ginstall -m 755 $(WORKSRC)/EXAMPLE.conf $(DESTDIR)/$(syconfdir)/snmp/snmpd
+ @$(MAKECOOKIE)
+
#post-install-isa-sparcv8:
# ( cd $(INSTALLISADIR)$(libdir) ; gzip -dc $(DESTDIR)/../../$(FILEDIR)/old_libs_s.tar.gz |tar xf -)
# ln -s libnetsnmp.so.10.0.1 $(INSTALLISADIR)$(libdir)/libnetsnmp.so.10
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