2006-11-24 16:14:29 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2006/11/24 21:14:29 steven Exp $
|
2004-08-03 13:47:12 -04:00
|
|
|
|
2006-11-24 16:14:29 -05:00
|
|
|
COMMENT-main= "extendable SNMP implementation"
|
2004-08-03 13:47:12 -04:00
|
|
|
COMMENT-perl= "SNMP modules for Perl"
|
|
|
|
|
2005-11-05 14:09:38 -05:00
|
|
|
DISTNAME= net-snmp-5.1.3
|
2006-11-24 16:14:29 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}p5
|
|
|
|
PKGNAME-perl= p5-SNMP-5.1.3p3
|
2006-01-03 12:37:18 -05:00
|
|
|
SHARED_LIBS= netsnmp 6.3 \
|
|
|
|
netsnmpagent 6.3 \
|
|
|
|
netsnmphelpers 6.3 \
|
|
|
|
netsnmpmibs 6.3 \
|
|
|
|
netsnmptrapd 6.3
|
2006-11-24 16:14:29 -05:00
|
|
|
CATEGORIES= net perl5
|
2004-08-03 13:47:12 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/}
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.net-snmp.org
|
|
|
|
|
|
|
|
MAINTAINER= Tim Kornau <opti@openbsd.de>
|
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2006-06-18 08:00:03 -04:00
|
|
|
WANTLIB= crypto kvm m wrap z
|
2004-08-03 13:47:12 -04:00
|
|
|
|
2006-11-24 16:14:29 -05:00
|
|
|
MULTI_PACKAGES= -main -perl
|
2004-08-03 13:47:12 -04:00
|
|
|
|
2006-11-24 16:14:29 -05:00
|
|
|
LIB_DEPENDS-perl= netsnmpmibs,netsnmphelpers,netsnmpagent,netsnmp::net/net-snmp,-main
|
|
|
|
WANTLIB-main= ${WANTLIB} c
|
2004-08-03 13:47:12 -04:00
|
|
|
|
|
|
|
NET_SNMP_MIB_LIST= host disman/event-mib smux mibII/mta_sendmail
|
|
|
|
|
2006-01-03 12:37:18 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2004-08-03 13:47:12 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --with-libwrap --with-perl-modules \
|
|
|
|
--with-copy-persistent-files="no" \
|
|
|
|
--with-mib-modules="${NET_SNMP_MIB_LIST}" \
|
|
|
|
--with-default-snmp-version="3" \
|
|
|
|
--with-sys-contact="nobody@nowhere.invalid" \
|
|
|
|
--with-sys-location="somewhere" \
|
|
|
|
--with-logfile="/var/log/snmpd" \
|
|
|
|
--with-persistent-directory="/var/net-snmp"
|
|
|
|
REGRESS_TARGET= test
|
|
|
|
|
|
|
|
post-install:
|
2004-10-08 12:30:52 -04:00
|
|
|
@perl -pi -e 's,^(#define[ ]PACKAGE_.*)$$,/* $$1 */,' \
|
|
|
|
${PREFIX}/include/net-snmp/net-snmp-config.h
|
2004-10-08 14:41:39 -04:00
|
|
|
@touch ${PREFIX}/share/snmp/mibs/.index
|
2004-08-03 13:47:12 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/net-snmp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/net-snmp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.snmpv3 ${PREFIX}/share/doc/net-snmp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/net-snmp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/AGENT.txt ${PREFIX}/share/doc/net-snmp
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/net-snmp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \
|
|
|
|
${PREFIX}/share/examples/net-snmp
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|