summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwrstuden <wrstuden@pkgsrc.org>2001-09-11 01:33:22 +0000
committerwrstuden <wrstuden@pkgsrc.org>2001-09-11 01:33:22 +0000
commit6a4a7ae1371c3a6116caf141d63853de2b52d1b3 (patch)
treecd5540c2b9a175e1cb5dcfdd23cd7d8fe226ade9 /net
parent9f14972b6617322ed9cb71ee6c40c9c50418bd65 (diff)
downloadpkgsrc-6a4a7ae1371c3a6116caf141d63853de2b52d1b3.tar.gz
Second try at reviving.
Original message: Bring ucd-snmp-current back to life. This is a package of ucd-snmp 4.2.1, the latest release of the net-snmp project (the name change is still in progress).
Diffstat (limited to 'net')
-rw-r--r--net/ucd-snmp-current/Makefile74
1 files changed, 74 insertions, 0 deletions
diff --git a/net/ucd-snmp-current/Makefile b/net/ucd-snmp-current/Makefile
new file mode 100644
index 00000000000..1b2ece33cce
--- /dev/null
+++ b/net/ucd-snmp-current/Makefile
@@ -0,0 +1,74 @@
+# $NetBSD: Makefile,v 1.13 2001/09/11 01:33:22 wrstuden Exp $
+#
+
+DISTNAME= ucd-snmp-4.2.1
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/} \
+ ftp://ucd-snmp.ucdavis.edu/ \
+ ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
+ ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://net-snmp.sourceforge.net/
+COMMENT= Extensible SNMP implementation
+
+BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf
+
+BUILD_DEFS+= USE_INET6
+
+USE_BUILDLINK_ONLY=
+
+.include "../../mk/bsd.prefs.mk"
+
+USE_LIBTOOL= yes
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+
+#CPPFLAGS+= -I${BUILDLINK_DIR}/include
+#LDFLAGS+= -L${BUILDLINK_DIR}/lib
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--with-defaults --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers} --with-logfile="/var/log/snmpd"
+CONFIGURE_ARGS+=--with-mib-modules="smux host"
+# NOTE: if you do not allow dummy values some tools such as
+# scotty/tkined may ignore results when they shouldn't.
+CONFIGURE_ARGS+=--with-dummy-values
+# NOTE: without this the default is USER@DOMAINNAME of the package builder
+CONFIGURE_ARGS+=--with-sys-contact="default_user@contact.domain"
+CONFIGURE_ARGS+=--with-sys-location="defaultlocation"
+CONFIGURE_ARGS+=--enable-shared
+.if defined(USE_INET6) && ${USE_INET6} == "YES"
+CONFIGURE_ARGS+=--enable-ipv6
+.else
+CONFIGURE_ARGS+=--disable-ipv6
+.endif
+
+# this might make it easier to use scotty's mibs, and local ones too
+CONFIGURE_ARGS+=--with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tcl/tnm2.1.10/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs"
+
+# deal with libwrap bogosity by providing these variables to programs which
+# do not supply them:
+post-extract:
+ @${ECHO} 'int allow_severity, deny_severity;' >${WRKSRC}/snmplib/libwrap.c
+
+pre-configure:
+ cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf
+
+post-build:
+ ${SED} 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/snmpd.sh > ${WRKDIR}/snmpd
+ ${SED} 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/snmptrapd.sh > ${WRKDIR}/snmptrapd
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ucd-snmp
+ ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf ${PREFIX}/share/examples/ucd-snmp
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/snmp/dlmod
+ ${INSTALL_SCRIPT} ${WRKDIR}/snmpd ${PREFIX}/etc/rc.d
+ ${INSTALL_SCRIPT} ${WRKDIR}/snmptrapd ${PREFIX}/etc/rc.d
+
+.if (${OPSYS} == "NetBSD")
+CFLAGS+= -Dnetbsd1
+.endif
+
+.include "../../security/openssl/buildlink.mk" # USE_SSL= yes
+.include "../../security/tcp_wrappers/buildlink.mk"
+
+.include "../../mk/bsd.pkg.mk"