diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-07-30 21:04:58 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-07-30 21:04:58 +0000 |
commit | 9516bd5b9a45816594b993916e47dcf357ae0f07 (patch) | |
tree | b7b5faeb88da435923b8c2fabaeeddfd64b5549f /net/ucd-snmp/Makefile | |
parent | f08cc49fbe9b63de1284b4a54b785a5f8f258bf8 (diff) | |
download | pkgsrc-9516bd5b9a45816594b993916e47dcf357ae0f07.tar.gz |
Convert to the bsd.pkg.install.mk framework:
- Honour PKG_SYSCONFDIR.
- Use RCD_SCRIPTS to automatically handle rc.d scripts.
Also convert the two installed rc.d scripts to the rc.subr framework (keeping
some compatibility if not present).
Bump PKGREVISION to 1.
Diffstat (limited to 'net/ucd-snmp/Makefile')
-rw-r--r-- | net/ucd-snmp/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/net/ucd-snmp/Makefile b/net/ucd-snmp/Makefile index 965b31986eb..52e55682369 100644 --- a/net/ucd-snmp/Makefile +++ b/net/ucd-snmp/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.50 2003/07/17 22:51:58 grant Exp $ +# $NetBSD: Makefile,v 1.51 2003/07/30 21:04:58 jmmv Exp $ DISTNAME= ucd-snmp-4.2.4 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/} \ ftp://ucd-snmp.ucdavis.edu/ \ @@ -17,6 +18,7 @@ BUILD_DEFS+= USE_INET6 USE_BUILDLINK2= # defined USE_PERL5= build +USE_PKGINSTALL= yes .include "../../mk/bsd.prefs.mk" @@ -52,6 +54,11 @@ CONFIGURE_ARGS+= --with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tcl/tnm CFLAGS+= -Dnetbsd1 .endif +RCD_SCRIPTS= snmpd snmptrapd + +PKG_SYSCONFSUBDIR= snmp +EGDIR= ${PREFIX}/share/examples/ucd-snmp + # Deal with libwrap bogosity by providing these variables to programs which # do not supply them. # @@ -83,16 +90,10 @@ pre-configure: ${MV} -f ${CONFIGURE_SCRIPT}.orig ${CONFIGURE_SCRIPT} .endif -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} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf ${EGDIR} ${INSTALL_DATA_DIR} ${PREFIX}/lib/snmp/dlmod - ${INSTALL_SCRIPT} ${WRKDIR}/snmpd ${PREFIX}/etc/rc.d - ${INSTALL_SCRIPT} ${WRKDIR}/snmptrapd ${PREFIX}/etc/rc.d .include "../../lang/perl5/buildlink2.mk" .include "../../security/openssl/buildlink2.mk" |