pkgsrc/net/p5-SNMP/Makefile
fredb 0cab25b605 In ucd-snmp's shared libraries, the SONAME is the filename, which contains
the version of ucd-snmp. Therefore, adjust the wildcard dependencies in
dependents to match exactly (barring "nb" version changes), and bump the
dependent's "nb" versions to reflect the change in dependencies. Otherwise,
an "ethereal" binary package (for example) built against ucd-snmp-4.2.4
will happily install against ucd-snmp-4.2.3nb1, but will fail at run-time
with, ``shared object "libucdsnmp-0.4.2.3.so" not found.''
2002-04-20 18:46:06 +00:00

41 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2002/04/20 18:46:07 fredb Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1997/06/27 01:53:13 jfitz Exp
#
DISTNAME= SNMP-3.1.0
PKGNAME= p5-SNMP-3.1.0
PKGREVISION= 1
SVR4_PKGNAME= p5snm
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=SNMP/}
MAINTAINER= packages@netbsd.org
COMMENT= Perl5 module for interfacing to the UCD SNMP library
DEPENDS= ucd-snmp-4.2.4*:../../net/ucd-snmp
USE_PERL5= # defined
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/SNMP/.packlist
# Until the source catches up to the current Perl API, we need PERL_POLLUTE
# to look like an older perl.
#MAKE_PARAMS= DEFINE="-DPERL_POLLUTE=1"
PLFILES= async1.pl async2.pl ipforward.pl mibtree.pl mibwalk.pl
PLFILES+= pingmib.pl tablewalk.pl testleak.pl
do-configure:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL ${MAKE_PARAMS}
post-build:
@for i in ${PLFILES} ; do ${ECHO} "#! ${PREFIX}/bin/perl" | ${CAT} - ${WRKSRC}/examples/$$i > ${WRKDIR}/$$i ; done
post-install:
@${INSTALL_DATA} ${WRKSRC}/README ${PERL5_SITELIB}/README.SNMP
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-SNMP
@for i in ${PLFILES} ; do ${INSTALL_SCRIPT} ${WRKDIR}/$$i ${PREFIX}/share/examples/p5-SNMP/$$i ; done
test:
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} test
.include "../../mk/bsd.pkg.mk"