diff options
author | hubertf <hubertf@pkgsrc.org> | 1998-05-24 12:31:11 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1998-05-24 12:31:11 +0000 |
commit | 46a3040b2eb35869e31ca55ee0124db80fa3a98d (patch) | |
tree | 8b37041af1e3edf4d5e0e92eb78ce2a07d72e040 /net/ucd-snmp/Makefile | |
parent | 97866e6aeb2d8dce7d8eb108d8419790d83015f4 (diff) | |
download | pkgsrc-46a3040b2eb35869e31ca55ee0124db80fa3a98d.tar.gz |
Add pkg for UCD SNMP implementation, based on FreeBSD port.
Diffstat (limited to 'net/ucd-snmp/Makefile')
-rw-r--r-- | net/ucd-snmp/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/net/ucd-snmp/Makefile b/net/ucd-snmp/Makefile new file mode 100644 index 00000000000..389f11b6225 --- /dev/null +++ b/net/ucd-snmp/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 1998/05/24 12:31:11 hubertf Exp $ +# FreeBSD Id: Makefile,v 1.18 1998/04/06 20:50:31 andreas Exp +# + +DISTNAME= ucd-snmp +PKGNAME= ucd-snmp-3.4 +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/ +WRKSRC= ${WRKDIR}/ucd-snmp-3.4 + +MAINTAINER= packages@netbsd.org + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-defaults + +MAN1= snmpbulkwalk.1 snmpd.1 snmpdelta.1 snmpget.1 snmpgetnext.1 \ + snmpnetstat.1 snmpset.1 snmpstatus.1 snmptable.1 snmptest.1 \ + snmptranslate.1 snmptrap.1 snmpwalk.1 +MAN3= mib_api.3 snmp_api.3 +MAN5= snmpd.conf.5 variables.5 +MAN8= snmptrapd.8 +BIN= snmpbulkwalk snmpget snmpgetnext snmpnetstat snmpset \ + snmpstatus snmptest snmptranslate snmptrap snmpwalk +SBIN= snmpd snmptrapd + +post-install: + ( cd ${PREFIX}/bin; strip ${BIN} ) + ( cd ${PREFIX}/sbin; strip ${SBIN} ) + @${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 ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'" >> ${PREFIX}/etc/rc.d/snmpd.sh; \ + chmod 751 ${PREFIX}/etc/rc.d/snmpd.sh; \ + fi + +.include "../../mk/bsd.pkg.mk" |