aboutsummaryrefslogtreecommitdiffstats
path: root/net/ucd-snmp
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>1998-10-20 06:43:09 +0800
committernectar <nectar@FreeBSD.org>1998-10-20 06:43:09 +0800
commitadb7750598580cd3f499a6cdd2f6634f35ce43db (patch)
tree7bc5b0a4a24fd23822fecbaa1be1a8d2cf140609 /net/ucd-snmp
parent4f528a9922b377c41fc49f0daf79854e5f9b415f (diff)
downloadfreebsd-ports-gnome-adb7750598580cd3f499a6cdd2f6634f35ce43db.tar.gz
freebsd-ports-gnome-adb7750598580cd3f499a6cdd2f6634f35ce43db.tar.zst
freebsd-ports-gnome-adb7750598580cd3f499a6cdd2f6634f35ce43db.zip
* Upgrade to 3.5.3.
* Patch for ELF. * Create ${PREFIX}/etc/snmpd.sh.sample instead of ${PREFIX}/etc/snmp.sh.
Diffstat (limited to 'net/ucd-snmp')
-rw-r--r--net/ucd-snmp/Makefile33
-rw-r--r--net/ucd-snmp/distinfo2
-rw-r--r--net/ucd-snmp/files/patch-aa14
-rw-r--r--net/ucd-snmp/pkg-plist8
4 files changed, 42 insertions, 15 deletions
diff --git a/net/ucd-snmp/Makefile b/net/ucd-snmp/Makefile
index 6ea9e12a3e68..f9c8ac74ffc0 100644
--- a/net/ucd-snmp/Makefile
+++ b/net/ucd-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/ucd-snmp/distinfo b/net/ucd-snmp/distinfo
index 77e78e6d0bcc..e05322c5e4f7 100644
--- a/net/ucd-snmp/distinfo
+++ b/net/ucd-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/ucd-snmp/files/patch-aa b/net/ucd-snmp/files/patch-aa
new file mode 100644
index 000000000000..26a99aa30842
--- /dev/null
+++ b/net/ucd-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/ucd-snmp/pkg-plist b/net/ucd-snmp/pkg-plist
index 8ebb03c37437..284e144e9a09 100644
--- a/net/ucd-snmp/pkg-plist
+++ b/net/ucd-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