diff options
author | John Marino <marino@FreeBSD.org> | 2014-07-28 23:46:40 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-07-28 23:46:40 +0000 |
commit | ff3e33cfcc182da8797eb71b79975fc895623eed (patch) | |
tree | 857454ff359e669999055cc9a0e2caee71beb134 /net-mgmt/mrtg | |
parent | a14c0668720dcafde3f60b7659a01d99ec693a41 (diff) | |
download | ports-ff3e33cfcc182da8797eb71b79975fc895623eed.tar.gz ports-ff3e33cfcc182da8797eb71b79975fc895623eed.zip |
Notes
Diffstat (limited to 'net-mgmt/mrtg')
-rw-r--r-- | net-mgmt/mrtg/Makefile | 60 | ||||
-rw-r--r-- | net-mgmt/mrtg/pkg-plist | 20 |
2 files changed, 46 insertions, 34 deletions
diff --git a/net-mgmt/mrtg/Makefile b/net-mgmt/mrtg/Makefile index 2d03d6eeda52..1b9b79f42c69 100644 --- a/net-mgmt/mrtg/Makefile +++ b/net-mgmt/mrtg/Makefile @@ -3,7 +3,7 @@ PORTNAME= mrtg PORTVERSION= 2.17.4 -PORTREVISION= 4 +PORTREVISION= 5 PORTEPOCH= 1 CATEGORIES= net-mgmt ipv6 MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \ @@ -12,14 +12,14 @@ MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \ ftp://ftp.chg.ru/pub/networking/monitoring/mrtg/ MAINTAINER= ports@subnets.ru -COMMENT= The multi-router traffic grapher - -# slave ports override with languages specific gd -GD_PORT?= graphics/gd +COMMENT= Multi-router traffic grapher LIB_DEPENDS= libgd.so:${PORTSDIR}/${GD_PORT} RUN_DEPENDS= p5-SNMP_Session>=0:${PORTSDIR}/net-mgmt/p5-SNMP_Session +# slave ports override with languages specific gd +GD_PORT?= graphics/gd + CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \ --with-gd-inc=${LOCALBASE}/include @@ -43,7 +43,7 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall GNU_CONFIGURE= YES CONFIGURE_ENV= PERL=${PERL} -MANPAGE= cfgmaker.1 indexmaker.1 mrtg-contrib.1 mrtg-faq.1 mrtg-forum.1 \ +MANPAGE= cfgmaker.1 indexmaker.1 mrtg-contrib.1 mrtg-faq.1 mrtg-forum.1 \ mrtg-ipv6.1 mrtg-logfile.1 mrtg-mibhelp.1 mrtg-nt-guide.1 \ mrtg-nw-guide.1 mrtg-reference.1 mrtg-rrd.1 mrtg-squid.1 \ mrtg-unix-guide.1 mrtg-webserver.1 mrtg.1 mrtglib.1 @@ -66,19 +66,12 @@ SCRIPTS= cfgmaker indexmaker mrtg mrtg-traffic-sum OPTIONS_DEFINE= DOCS EXAMPLES IPV6 SNMPV3 +IPV6_RUN_DEPENDS= p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 +SNMPV3_RUN_DEPENDS= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP + PORTDOCS= * PORTEXAMPLES= * -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MIPV6} -RUN_DEPENDS+= p5-IO-Socket-INET6>=0:${PORTSDIR}/net/p5-IO-Socket-INET6 -.endif - -.if ${PORT_OPTIONS:MSNMPV3} -RUN_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP -.endif - post-extract: @${FIND} ${WRKSRC} -type f -name "*.orig" -delete @@ -86,21 +79,24 @@ post-patch: @${RM} ${WRKSRC}/lib/mrtg2/BER.pm ${WRKSRC}/lib/mrtg2/SNMP_*.pm do-install: - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/doc ${STAGEDIR}${EXAMPLESDIR}/images - @${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${EXAMPLESDIR}/doc/ - @${INSTALL_DATA} ${IMAGES:S,^,${WRKSRC}/images/,} ${STAGEDIR}${EXAMPLESDIR}/images/ - @${MKDIR} ${STAGEDIR}${ETCDIR} - @${INSTALL_DATA} ${WRKSRC}/contrib/mrtgmk/cfg/mrtg.cfg ${STAGEDIR}${ETCDIR}/mrtg.cfg.sample - @${INSTALL_DATA} ${MANPAGE:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${PREFIX}/man/man1 - @${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} - @${CP} -p ${WRKSRC}/lib/mrtg2/*.pm ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} - @${INSTALL_PROGRAM} ${WRKSRC}/bin/rateup ${STAGEDIR}${PREFIX}/bin - @${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/bin/,} ${STAGEDIR}${PREFIX}/bin - -post-install: - @${SETENV} @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${DOCSDIR} \ + ${STAGEDIR}${EXAMPLESDIR}/doc \ + ${STAGEDIR}${EXAMPLESDIR}/images \ + ${STAGEDIR}${ETCDIR} \ + ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/doc/,} \ + ${STAGEDIR}${EXAMPLESDIR}/doc/ + ${INSTALL_DATA} ${IMAGES:S,^,${WRKSRC}/images/,} \ + ${STAGEDIR}${EXAMPLESDIR}/images/ + ${INSTALL_DATA} ${WRKSRC}/contrib/mrtgmk/cfg/mrtg.cfg \ + ${STAGEDIR}${ETCDIR}/mrtg.cfg.sample + ${INSTALL_DATA} ${MANPAGE:S,^,${WRKSRC}/doc/,} \ + ${STAGEDIR}${PREFIX}/man/man1 + cd ${WRKSRC}/lib/mrtg2 && \ + ${COPYTREE_SHARE} "*.pm" ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/rateup ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${SCRIPTS:S,^,${WRKSRC}/bin/,} \ + ${STAGEDIR}${PREFIX}/bin .include <bsd.port.mk> diff --git a/net-mgmt/mrtg/pkg-plist b/net-mgmt/mrtg/pkg-plist index 1e5747987f90..eee5ee831fdf 100644 --- a/net-mgmt/mrtg/pkg-plist +++ b/net-mgmt/mrtg/pkg-plist @@ -3,9 +3,25 @@ bin/indexmaker bin/mrtg bin/mrtg-traffic-sum bin/rateup +%%ETCDIR%%/mrtg.cfg.sample %%SITE_PERL%%/MRTG_lib.pm %%SITE_PERL%%/Net_SNMP_util.pm %%SITE_PERL%%/locales_mrtg.pm -%%ETCDIR%%/mrtg.cfg.sample -@dirrmtry %%SITE_PERL%% +man/man1/cfgmaker.1.gz +man/man1/indexmaker.1.gz +man/man1/mrtg-contrib.1.gz +man/man1/mrtg-faq.1.gz +man/man1/mrtg-forum.1.gz +man/man1/mrtg-ipv6.1.gz +man/man1/mrtg-logfile.1.gz +man/man1/mrtg-mibhelp.1.gz +man/man1/mrtg-nt-guide.1.gz +man/man1/mrtg-nw-guide.1.gz +man/man1/mrtg-reference.1.gz +man/man1/mrtg-rrd.1.gz +man/man1/mrtg-squid.1.gz +man/man1/mrtg-unix-guide.1.gz +man/man1/mrtg-webserver.1.gz +man/man1/mrtg.1.gz +man/man1/mrtglib.1.gz @dirrmtry %%ETCDIR%% |