* Upgrade to 3.5.3.

* Patch for ELF.
* Create ${PREFIX}/etc/snmpd.sh.sample instead of ${PREFIX}/etc/snmp.sh.
This commit is contained in:
Jacques Vidrine 1998-10-19 22:43:09 +00:00
parent 4b00ded032
commit 1ba8503392
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14088
28 changed files with 294 additions and 105 deletions

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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

View file

@ -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}

View file

@ -1 +1 @@
MD5 (ucd-snmp-3.5.tar.gz) = 96b50f6e41da6f78ae7f0de158823fa8
MD5 (ucd-snmp-3.5.3.tar.gz) = af2e8d7a4975d9ef207d9342391249a6

View file

@ -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:

View file

@ -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