From adb7750598580cd3f499a6cdd2f6634f35ce43db Mon Sep 17 00:00:00 2001 From: nectar Date: Mon, 19 Oct 1998 22:43:09 +0000 Subject: * Upgrade to 3.5.3. * Patch for ELF. * Create ${PREFIX}/etc/snmpd.sh.sample instead of ${PREFIX}/etc/snmp.sh. --- net-mgmt/net-snmp/Makefile | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'net-mgmt/net-snmp/Makefile') 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 + +.if (${PORTOBJFORMAT} == "aout") +SHLIB_VERSION=3.5 +PATCHDIR=patches.aout +.else +SHLIB_VERSION=3 +.endif +MAKE_ENV+= SHLIB_VERSION=${SHLIB_VERSION} -- cgit