diff options
author | tv <tv@pkgsrc.org> | 1999-05-04 03:51:57 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1999-05-04 03:51:57 +0000 |
commit | a4e21b17ce97d989413303a517646deaf5ff56c8 (patch) | |
tree | a9351fad1396a8c31c6a0a354ab3065be8a0e63b /net/ucd-snmp/Makefile | |
parent | af08529f7979137ea5e93136066a849132041e9b (diff) | |
download | pkgsrc-a4e21b17ce97d989413303a517646deaf5ff56c8.tar.gz |
Build libsnmp as a shared object with libtool. Bump version to "...p1".
Diffstat (limited to 'net/ucd-snmp/Makefile')
-rw-r--r-- | net/ucd-snmp/Makefile | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/net/ucd-snmp/Makefile b/net/ucd-snmp/Makefile index 0ffd2e91f98..5954236f809 100644 --- a/net/ucd-snmp/Makefile +++ b/net/ucd-snmp/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.11 1999/04/21 20:47:22 abs Exp $ +# $NetBSD: Makefile,v 1.12 1999/05/04 03:51:57 tv Exp $ # FreeBSD Id: Makefile,v 1.18 1998/04/06 20:50:31 andreas Exp # DISTNAME= ucd-snmp-3.6.1 +PKGNAME= ucd-snmp-3.6.1p1 CATEGORIES= net MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \ ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ @@ -10,35 +11,25 @@ MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.ece.ucdavis.edu/ucd-snmp/ -BUILD_DEPENDS+= autoconf:../../devel/autoconf +USE_LIBTOOL= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-defaults -CONFIGURE_ARGS+= --with-libwrap -# note the default appends a redundant and silly ".log" -CONFIGURE_ARGS+= --with-logfile="/var/log/snmpd" -# this might make it easier to use scotty's mibs, and local ones too -CONFIGURE_ARGS+= --with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs" +CONFIGURE_ARGS+=--with-defaults --with-libwrap --with-logfile="/var/log/snmpd" -# pass down PKG_PREFIX to simulate pkg_add's environment -MAKE_ENV+= PKG_PREFIX="${PREFIX}" +# this might make it easier to use scotty's mibs, and local ones too +CONFIGURE_ARGS+=--with-mibdirs="${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs" -.include "../../mk/bsd.prefs.mk" +# provide path to libtool's lib directory: +MAKE_ENV= CC_RUNTIME_ARG="-L../snmplib/.libs -L../../snmplib/.libs" -pre-configure: - (cd ${WRKSRC}; autoreconf --force) +# 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 -# Need to run INSTALL script as this doesn't happen automagically from pkgsrc. post-install: @${MKDIR} ${PREFIX}/share/examples/ucd-snmp - @for F in ${WRKSRC}/etc/* ; do \ - ${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; \ - done - ${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} 755 ${PREFIX}/etc/rc.d/snmpd.sh + ${INSTALL_DATA} ${WRKSRC}/etc/* ${PREFIX}/share/examples/ucd-snmp ${INSTALL_DATA_DIR} ${PREFIX}/lib/snmp/dlmod - ${TOUCH} ${PREFIX}/lib/snmp/dlmod/.keepme .include "../../mk/bsd.pkg.mk" |