summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>1998-10-19 22:43:09 +0000
committerJacques Vidrine <nectar@FreeBSD.org>1998-10-19 22:43:09 +0000
commit1ba85033920c91b4518e9a9f3d92f4d78237f86f (patch)
tree57940e2f493995c7edb3f563f9bfd6d7fd5e7fec /net-mgmt/net-snmp
parentDepends on config.txt to not confuse with pgp5 installed (diff)
* Upgrade to 3.5.3.
* Patch for ELF. * Create ${PREFIX}/etc/snmpd.sh.sample instead of ${PREFIX}/etc/snmp.sh.
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile33
-rw-r--r--net-mgmt/net-snmp/distinfo2
-rw-r--r--net-mgmt/net-snmp/files/patch-aa14
-rw-r--r--net-mgmt/net-snmp/pkg-plist8
4 files changed, 42 insertions, 15 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 6ea9e12a3e68..f9c8ac74ffc0 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -3,14 +3,14 @@
# Date created: 26 June 1996
# Whom: gpalmer
#
-# $Id: Makefile,v 1.20 1998/08/26 21:20:40 asami Exp $
+# $Id: Makefile,v 1.21 1998/08/30 15:51:13 steve Exp $
#
-DISTNAME= ucd-snmp-3.5
+DISTNAME= ucd-snmp-3.5.3
CATEGORIES= net
MASTER_SITES= ftp://ftp.ece.ucdavis.edu/pub/snmp/ \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
- ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
+ ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
MAINTAINER= gpalmer@FreeBSD.ORG
@@ -34,18 +34,29 @@ BIN= snmpbulkwalk snmpget snmpgetnext snmpnetstat snmpset \
snmpstatus snmptest snmptranslate snmptrap snmpwalk
SBIN= snmpd snmptrapd
+STARTUP_FILE= ${PREFIX}/etc/rc.d/snmpd.sh.sample
+
post-install:
- ( cd ${PREFIX}/bin; strip ${BIN} )
- ( cd ${PREFIX}/sbin; strip ${SBIN} )
- (cd ${PREFIX}/lib && ${LN} -f libsnmp.so libsnmp.so.3.5)
+ ( cd ${PREFIX}/bin && strip ${BIN} )
+ ( cd ${PREFIX}/sbin && strip ${SBIN} )
+ ( cd ${PREFIX}/lib && ${LN} -f libsnmp.so libsnmp.so.${SHLIB_VERSION} )
@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
@for F in ${WRKSRC}/etc/* ; do \
${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
- @if [ ! -f ${PREFIX}/etc/rc.d/snmpd.sh ]; then \
- echo "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
- echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/snmpd.sh; \
- echo "[ -x /usr/local/sbin/snmpd ] && /usr/local/sbin/snmpd && echo -n ' snmpd'" >> ${PREFIX}/etc/rc.d/snmpd.sh; \
- chmod 751 ${PREFIX}/etc/rc.d/snmpd.sh; \
+ @if [ ! -f ${STARTUP_FILE} ]; then \
+ ${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
+ ${ECHO} "#!/bin/sh" > ${STARTUP_FILE}; \
+ ${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
+ chmod 751 ${STARTUP_FILE}; \
fi
+ ${SETENV} OBJFORMAT="${PORTOBJFORMAT}" ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>
+
+.if (${PORTOBJFORMAT} == "aout")
+SHLIB_VERSION=3.5
+PATCHDIR=patches.aout
+.else
+SHLIB_VERSION=3
+.endif
+MAKE_ENV+= SHLIB_VERSION=${SHLIB_VERSION}
diff --git a/net-mgmt/net-snmp/distinfo b/net-mgmt/net-snmp/distinfo
index 77e78e6d0bcc..e05322c5e4f7 100644
--- a/net-mgmt/net-snmp/distinfo
+++ b/net-mgmt/net-snmp/distinfo
@@ -1 +1 @@
-MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
+MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6
diff --git a/net-mgmt/net-snmp/files/patch-aa b/net-mgmt/net-snmp/files/patch-aa
new file mode 100644
index 000000000000..26a99aa30842
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-aa
@@ -0,0 +1,14 @@
+--- snmplib/Makefile.in.orig Mon Sep 7 16:19:24 1998
++++ snmplib/Makefile.in Mon Oct 19 16:16:19 1998
+@@ -23,7 +23,10 @@
+ all: $(TARG)
+
+ libsnmp.$(SHLIB_EXTENSION): ${OBJS}
+- $(SHLIB_LD_CMD) libsnmp.$(SHLIB_EXTENSION) ${OBJS}
++ ld -Bshareable -soname libsnmp.$(SHLIB_EXTENSION).$(SHLIB_VERSION) \
++ -o libsnmp.$(SHLIB_EXTENSION) ${OBJS}
++ ln -f libsnmp.$(SHLIB_EXTENSION) \
++ libsnmp.$(SHLIB_EXTENSION).$(SHLIB_VERSION)
+ $(RANLIB) libsnmp.$(SHLIB_EXTENSION)
+
+ installdirs:
diff --git a/net-mgmt/net-snmp/pkg-plist b/net-mgmt/net-snmp/pkg-plist
index 8ebb03c37437..284e144e9a09 100644
--- a/net-mgmt/net-snmp/pkg-plist
+++ b/net-mgmt/net-snmp/pkg-plist
@@ -12,7 +12,7 @@ bin/snmpdelta
bin/snmptable
bin/snmpcheck
bin/tkmib
-etc/rc.d/snmpd.sh
+etc/rc.d/snmpd.sh.sample
include/ucd-snmp/asn1.h
include/ucd-snmp/snmp_api.h
include/ucd-snmp/snmp_client.h
@@ -20,10 +20,10 @@ include/ucd-snmp/snmp_impl.h
include/ucd-snmp/snmp.h
include/ucd-snmp/parse.h
include/ucd-snmp/mib.h
+include/ucd-snmp/ucd-snmp-config.h
@dirrm include/ucd-snmp
lib/libsnmp.so
-@exec ln %D/lib/libsnmp.so %D/lib/libsnmp.so.3.5
-@unexec rm -f %D/lib/libsnmp.so.3.5
+lib/libsnmp.so.3.5
sbin/snmpd
sbin/snmptrapd
share/examples/ucd-snmp/README
@@ -61,3 +61,5 @@ share/snmp/mibs/IPFWACC-MIB.txt
@unexec rm -f %D/share/snmp/mibs/.index
@dirrm share/snmp/mibs
@dirrm share/snmp
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R