43ac3e28ab
A big Thank You to the original contributors of these ports: * @BABOLO <.@babolo.ru> * Alex Samorukov, samm@freebsd.org * Alexander Kriventsov <avk@vl.ru> * Alexander Sulfrian <alexander@sulfrian.net> * Alexander Y. Grigoryev <alexander.4mail@gmail.com> * Alexandre Biancalana <ale@biancalanas.net> * Alexandre Snarskii <snar@paranoia.ru> * Alexandre Snarskii <snar@snar.spb.ru> * Alexey Bobkov <mr.deadlystorm@gmail.com> * Alexey Dokuchaev <danfe@FreeBSD.org> * Alexey V. Degtyarev * Anders Nordby <anders@FreeBSD.org> * Anders Troback * Andreas Klemm <andreas@klemm.gtn.com> * Andrew 'derfi' Sidorov <derfi@vei.ru> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Andrew Thompson <andy@fud.org.nz> * Andrew Thompson <thompsa@freebsd.org> * Anton Berezin <tobez@FreeBSD.org> * Anton Berezin <tobez@tobez.org> * Athanasios Douitsis <aduitsis@cpan.org> * Babak Farrokhi <farrokhi@FreeBSD.org> * Bartlomiej Rutkowski <r@robakdesign.com> * Bill Fenner <fenner@FreeBSD.org> * Blaz Zupan <blaz@si.FreeBSD.org> * BluePex Security Solutions <freebsd-ports@bluepex.com> * Boris Samorodov <bsam@FreeBSDD.org> * Brad Davis <brd@FreeBSD.org> * Brad Hendrickse <bradh@uunet.co.za> * Brian Somers <brian@FreeBSD.org> * Bruce M Simpson <bms@FreeBSD.org> * Bruce Simpson * Chris S.J. Peron <maneo@bsdpro.com> * Chris St Denis <chris@smartt.com> * Christer Edwards <christer.edwards@gmail.com> * Christopher N. Harrell <cnh@ivmg.net> * Clement Laforet <sheepkiller@cultdeadsheep.org> * Corey Smith <corsmith@gmail.com> * Craig Boston <craig@yekse.gank.org> * Dave Cottlehuber <dch@FreeBSD.org> * Dave Cottlehuber <dch@skunkwerks.at> * David O'Brien (obrien@NUXI.com) * David Shane Holden <dpejesh@yahoo.com> * David Yeske <dyeske@gmail.com> * Denis Shaposhnikov <dsh@vlink.ru> * Dennis Herrmann <adox@mcx2.org> * Dikshie <dikshie@sfc.wide.ad.jp> * Dmitry Sivachenko <demon@FreeBSD.org> * Domas Mituzas <midom@dammit.lt> * Douglas Fraser <doug@idmf.net> * Douglas K. Rand <rand@iteris.com> * Douglas K. Rand <rand@meridian-enviro.com> * Edwin Groothuis <edwin@mavetju.org> * El Vampiro <vampiro@rootshell.ru> * Emanuel Haupt <ehaupt@FreeBSD.org> * Eric F Crist <ecrist@secure-computing.net> * Eric Turgeon <ericturgeon.bsd@gmail.org> * Eugene Grosbein <eugen@FreeBSD.org> * Fotis Zabaras <fotis@zabaras.eu> * Frank Wall <freebsd@moov.de> * Frank Wall <fw@moov.de> * Gea-Suan Lin <gslin@gslin.org> * Geoffroy Desvernay <dgeo@centrale-marseille.fr> * George Reid <greid@ukug.uk.freebsd.org> * Gerrit Beine <gerrit.beine@gmx.de> * Henrik Brix Andersen <henrik@brixandersen.dk> * Holger Lamm <holger@eit.uni-kl.de> * Hsin-Han You <hhyou@cs.nctu.edu.tw> * Hung-Yi Chen <gaod@hychen.org> * Inacio <nacho319+freebsdZilla@gmail.com> * J.R. Oldroyd <fbsd@opal.com> * JJ Behrens <jj@nttmcl.com> * Jake Smith <jake@xz.cx> * James FitzGibbon <jfitz@FreeBSD.org> * James Flemer <jflemer@acm.jhu.edu> * Janos Mohacsi <janos.mohacsi@bsd.hu> * Janos Mohacsi <mohacsi@niif.hu> * Janos.Mohacsi@bsd.hu * Janos.Mohacsi@dante.org.uk * Jason Helfman <jgh@FreeBSD.org> * Jeremy Chadwick <koitsu@FreeBSD.org> * Jerry A! <jerry@thehutt.org> * Jev Björsell <ports@ecadlabs.com> * Joe Clarke <marcus@marcuscom.com * Joe Clarke <marcus@marcuscom.com> * Johannes Jost Meixner <johannes@FreeBSD.org> * Johannes Jost Meixner <johannes@perceivon.net> * Josh Carroll <josh.carroll@gmail.com> * KIKUCHI Koichiro <koichiro@rworks.jp> * Kevin Hung <khung@nullaxiom.com> * Kian Mohageri <kian.mohageri@gmail.com> * Kimura Fuyuki <fuyuki@hadaly.org> * Kirill Ponomarew <ponomarew@oberon.net> * Kris Kennaway <kris@FreeBSD.org> * Lars Engels <lars.engels@0x20.net> * Lars Thegler <lars@thegler.dk> * Lawrence Chen <beastie@tardisi.com> * Lev Walkin <vlm@lionet.info> * Luca Pizzamiglio <pizzamig@FreeBSD.org> * Mahdi Mokhtari <mokhi63@gmail.com> * Manuel Kreutz <mk@nomtec.net> * Marcin Cieslak <saper@system.pl> * Mark Felder <feld@FreeBSD.org> * Mark Pulford <mark@kyne.com.au> * Martin Jackson <mhjacks@swbell.net> * Martin Matuska <mm@FreeBSD.org> * Mathieu Simon <freebsd@simweb.ch> * Matt Moriarity <matt@mattmoriarity.com> * Matt Peterson <matt@peterson.org> * Matthew Seaman <matthew@FreeBSD.org> * Michael L. Hostbaek (mich@freebsdcluster.org) * Michael Lyngbøl <lyngbol@wheel.dk> * Michael Reifenberger <mr@FreeBSD.org> * Michal Hanula <michal@hanu.la> * Mike Bristow <mike@urgle.com> * Mikhail T. <mi@aldan.algebra.com> * Mikolaj Golub <to.my.trociny@gmail.com> * Muhammad Moinur Rahman <5u623l20@gmail.com> * Muhammad Moinur Rahman <bofh@FreeBSD.org> * Nicholas Esborn <nick@netdot.net> * Nick F <ffault@gmail.com> * Nick Hilliard * Nick Hilliard <nick@foobar.org> * Pakhom Golynga <pg@pakhom.spb.ru> * Paul Chvostek <paul@it.ca> * Paul Dlug <paul@nerdlabs.com> * Paul Dlug<paul@nerdlabs.com> * Pavel I Volkov * Peter C. Lai <cowbert@gmail.com> * Phil Phillips * Pierre David <pdagog@gmail.com>, Jean Benoit <jean@unistra.fr> * Rihaz Jerrin <rihaz.jerrin@gmail.com> * Roar Pettersen <roar@uib.no> * Russell A. Jackson <rjackson@cserv62.csub.edu> * Ryan Steinmetz * Ryan Steinmetz <rpsfa@rit.edu> * Ryan Steinmetz <zi@FreeBSD.org> * Serge Maslov <serge@maslov.biz> * Sergey Skvortsov <skv@protey.ru> * Sevan Janiyan <venture37@geeklan.co.uk> * Shaun Amott <shaun@inerd.com> * Simon 'corecode' Schubert <corecode@corecode.ath.cx> * Stefan Esser <se@FreeBSD.org> * Stefan Lambrev <cheffo@freebsd-bg.org> * Stephen J. Roznowski <sjr@home.net> * Steve Wills <swills@FreeBSD.org> * Steven Kreuzer <skreuzer@FreeBSD.org> * Tassilo Philipp <tphilipp@potion-studios.com> * Thomas Spreng <spreng@socket.ch> * Tim Bishop <tdb@FreeBSD.org> * Timur I. Bakeyev <bat@cpan.org> * Tom Judge <tj@FreeBSD.org> * Tor Halvard "Squat" Furulund <squat@squat.no> * Tsung-Han Yeh <snowfly@yuntech.edu.tw> * Tsung-Han Yeh <snowfly@yunteche.du.tw> * Tuc <freebsd-ports@t-b-o-h.net> * Vaida Bogdan * Veniamin Gvozdikov <vg@FreeBSD.org> * Vladimir Ermakov <samflanker@gmail.com> * Vladimir Kotal <vlada@devnull.cz> * Wei-chun Chao * Xavier Beaudouin <kiwi@oav.net> * Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw> * Yuan-Chung Hsiao <ychsiao@ychsiao.org> * anarcat@anarcat.ath.cx * arved * babak@farrokhi.net * brock@cotcomsol.com * clement@FreeBSD.org * cnh@ivmg.net * dom@happygiraffe.net * dpejesh@yahoo.com * ecronin@gizmolabs.org * ehaupt@FreeBSD.org * gpalmer * gslin <gslin@gslin.org> * hr <holgerrepp@googlemail.com> * ijliao * itojun@itojun.org * jabley * jabley@clear.co.nz * jamrich.majo@gmail.com * janos.mohacsi@bsd.hu * joris * joseph@randomnetworks.com * marck@rinet.ru * mich@FreeBSD.org * mich@freebsdcluster.org * nbm * rea-fbsd@codelabs.ru * rflynn@acsalaska.net * salexanov@gmail.com * sanpei@FreeBSD.org * steinex * torstenb * trevor * vfom@narod.ru * # Created by Kevin Bowling <kbowling@FreeBSD.org> With hat: portmgr
99 lines
3.3 KiB
Makefile
99 lines
3.3 KiB
Makefile
PORTNAME= mrtg
|
|
PORTVERSION= 2.17.4
|
|
PORTREVISION= 8
|
|
PORTEPOCH= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \
|
|
ftp://ftp.idilis.ro/mirrors/mrtg/ \
|
|
ftp://ftp.nstu.ru/pub/sources/nettools/monitoring/ \
|
|
ftp://ftp.chg.ru/pub/networking/monitoring/mrtg/
|
|
|
|
MAINTAINER= ports@subnets.ru
|
|
COMMENT= Multi-router traffic grapher
|
|
|
|
LIB_DEPENDS= libgd.so:${GD_PORT}
|
|
RUN_DEPENDS= p5-SNMP_Session>=0: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
|
|
|
|
USERS= mrtg
|
|
GROUPS= mrtg
|
|
|
|
USES= perl5 shebangfix
|
|
MAKE_ENV+= PERL=${PERL}
|
|
MRTG_RUNDIR?= /var/run/mrtg
|
|
SHEBANG_FILES= bin/mrtg-traffic-sum
|
|
|
|
USE_RC_SUBR= mrtg_daemon
|
|
SUB_FILES= pkg-deinstall pkg-install pkg-message
|
|
SUB_LIST= PERL=${PERL} \
|
|
MRTG_RUNDIR=${MRTG_RUNDIR} \
|
|
USERS=${USERS} \
|
|
GROUPS=${GROUPS}
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
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 \
|
|
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
|
|
|
|
DOCS= CHANGES COPYRIGHT MANIFEST README
|
|
EXAMPLES= cfgmaker.pod indexmaker.pod mrtg-contrib.pod mrtg-faq.pod \
|
|
mrtg-forum.pod mrtg-ipv6.pod mrtg-logfile.pod mrtg-mibhelp.pod \
|
|
mrtg-nt-guide.pod mrtg-nw-guide.pod mrtg-reference.pod \
|
|
mrtg-rrd.pod mrtg-squid.pod mrtg-unix-guide.pod mrtg.pod \
|
|
mrtg-webserver.pod mrtglib.pod cfgmaker.txt indexmaker.txt \
|
|
mrtg-contrib.txt mrtg-faq.txt mrtg-forum.txt mrtg-ipv6.txt \
|
|
mrtg-logfile.txt mrtg-mibhelp.txt mrtg-nt-guide.txt \
|
|
mrtg-nw-guide.txt mrtg-reference.txt mrtg-rrd.txt \
|
|
mrtg-squid.txt mrtg-unix-guide.txt mrtg-webserver.txt \
|
|
mrtg.txt mrtglib.txt mrtg-l.png mrtg-m.png mrtg-r.png \
|
|
mrtg-ti.png mrtg-l.gif mrtg-m.gif mrtg-r.gif
|
|
IMAGES= favicon.ico mrtg-l.gif mrtg-l.png mrtg-m.gif mrtg-m.png \
|
|
mrtg-r.gif mrtg-r.png mrtg-ti.gif mrtg-ti.png
|
|
SCRIPTS= cfgmaker indexmaker mrtg mrtg-traffic-sum
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES IPV6 SNMPV3
|
|
|
|
IPV6_RUN_DEPENDS= p5-IO-Socket-INET6>=0:net/p5-IO-Socket-INET6
|
|
SNMPV3_RUN_DEPENDS= p5-Net-SNMP>=0:net-mgmt/p5-Net-SNMP
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKSRC} -type f -name "*.orig" -delete
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/lib/mrtg2/BER.pm ${WRKSRC}/lib/mrtg2/SNMP_*.pm
|
|
|
|
do-install:
|
|
@${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>
|