diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-10-31 14:17:06 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-10-31 14:17:06 +0000 |
commit | c16eb5d5cf8d887f2f32d5bb29831dfb7b0b14a2 (patch) | |
tree | 9b94011c8a7ba6ffe829f6d1d4c3662bb1e98671 /net-mgmt/net-snmp/Makefile | |
parent | - Rename bin/quake2 to bin/q2f because it conflicts with (diff) |
o Add WITHOUT_PERL knob (and unbreak at unusual variable situation).
o Fix pkg-message message.
PR: ports/56716, ports/58109
Submitted by: Vivek Khera <khera@kcilink.com>,
Matt Peterson <matt@peterson.org>
Diffstat (limited to 'net-mgmt/net-snmp/Makefile')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index a5943c74fba1..e2f62c844727 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -7,6 +7,7 @@ PORTNAME= net-snmp PORTVERSION= 5.0.9 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= net-snmp @@ -14,7 +15,6 @@ MASTER_SITE_SUBDIR= net-snmp MAINTAINER= kuriyama@FreeBSD.org COMMENT= An extendable SNMP implementation -USE_PERL5= yes USE_REINPLACE= yes USE_AUTOCONF_VER=213 USE_LIBTOOL= yes @@ -22,6 +22,9 @@ USE_RC_SUBR= yes INSTALLS_SHLIB= yes LIBTOOLFLAGS= --disable-ltlibs --release-ignore NO_LATEST_LINK= yes +.if !defined(WITHOUT_PERL) +USE_PERL5= yes +.endif CONFIGURE_ARGS+= --enable-shared --with-mib-modules="host ucd-snmp/diskio" \ --with-default-snmp-version="${DEFAULT_SNMP_VERSION}" \ @@ -29,10 +32,15 @@ CONFIGURE_ARGS+= --enable-shared --with-mib-modules="host ucd-snmp/diskio" \ --with-sys-location="${NET_SNMP_SYS_LOCATION}" \ --with-logfile="${NET_SNMP_LOGFILE}" \ --with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \ - --with-perl-modules \ --with-gnu-ld --with-libwrap --with-libs="-lkvm -ldevstat" +.if defined(WITHOUT_PERL) +PLIST_SUB+= WITHPERL="@comment " +.else +CONFIGURE_ARGS+= --with-perl-modules +PLIST_SUB+= WITHPERL="" +.endif .if defined(BATCH) -CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where +CONFIGURE_ARGS+= --with-defaults .else IS_INTERACTIVE= yes .endif @@ -75,12 +83,14 @@ MAN3= add_mibdir.3 add_module_replacement.3 default_store.3 \ snmp_sess_send.3 snmp_sess_session.3 snmp_sess_timeout.3 \ snmp_set_mib_warnings.3 snmp_set_save_descriptions.3 \ snmp_timeout.3 snmp_trap_api.3 +.if !defined(WITHOUT_PERL) MAN3PERL= NetSNMP::default_store.3 NetSNMP::ASN.3 NetSNMP::OID.3 \ NetSNMP::agent::default_store.3 \ NetSNMP::netsnmp_request_infoPtr.3 \ NetSNMP::agent.3 SNMP.3 MAN3PERLPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} _MANPAGES+= ${MAN3PERL:S%^%${MAN3PERLPREFIX}/man/man3/%} +.endif MAN5= snmp.conf.5 snmp_config.5 snmpd.conf.5 \ snmptrapd.conf.5 variables.5 MAN8= snmpd.8 snmptrapd.8 @@ -107,9 +117,11 @@ post-patch: -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \ ${WRKSRC}/aclocal.m4 +.if !defined(WITHOUT_PERL) post-build: @${FIND} ${CONFIGURE_WRKSRC}/perl -name Makefile | \ ${XARGS} ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' +.endif pre-install: -@[ -f ${STARTUP_FILE} ] && \ |