pkgsrc/net/smokeping/Makefile

109 lines
3.7 KiB
Makefile
Raw Normal View History

2010-01-27 18:38:00 +01:00
# $NetBSD: Makefile,v 1.27 2010/01/27 17:40:30 joerg Exp $
DISTNAME= smokeping-2.4.2
CATEGORIES= net
MASTER_SITES= http://oss.oetiker.ch/smokeping/pub/
2003-07-18 00:50:55 +02:00
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://oss.oetiker.ch/smokeping/index.en.html
COMMENT= Latency/packet loss monitoring/graphing tool
2010-01-27 18:38:00 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= rrdtool>=1.0:../../databases/rrdtool
DEPENDS+= fping>=2.4b2:../../net/fping
DEPENDS+= p5-Digest-MD5>=2.20:../../security/p5-Digest-MD5
DEPENDS+= p5-libwww>=5.64:../../www/p5-libwww
USE_TOOLS+= pax perl:run
- Update to 1.37 - Migrate to SUBST_* framework - Don't hardcode references to /var, use ${VARBASE} instead 2005/1/12 -- 1.37 * base class did assume that concurrent probes were off by default -- Niko Tyni <ntyni *iki.fi> 2005/1/7 -- 1.36 (1.35 was an internal release) * concurrent probes are default now, together with a 'random' offset to make sure not all smokepings hit the net at the same time -- Tobi * fixes for loggin -- Niko Tyni <ntyni *iki.fi> - warn if no logging method is active while daemonizing. - turn debugging on before loading the config file. - make do_debuglog a no-op if $use_debuglog isn't set - add debug info to FPing* probes - print the RRD create and update strings when debugging * Allow probe- and target-specific number of pings -- Niko Tyni <ntyni *iki.fi> * RemoteFPing probe revisited and fixed. Note this probe allowed PROBE_CONF config where this was technically not possible. Now these settings are done in the ***Probes*** section ... you have to fix your config files -- Niko Tyni <ntyni *iki.fi> * fixed many typos and some seemingly numeric comparisons -- Niko Tyni <ntyni *iki.fi> * new feature 'concurrentprobes' allow to run multiple probes in paralell and at different step width. -- Niko Tyni <ntyni *iki.fi> * allow to define multiple instances of a sigle probe -- Niko Tyni <ntyni *iki.fi> * fix --filter again ... pathprefix was still in there -- tobi 2004/11/29 -- 1.34 (1.32 + 1.33 were internal only releases) * added SNPP support as suggested by jdelisle -- tobi * added ipv6 support to EchoPing probe -- Niko Tyni <ntyni *iki.fi> * fix for Radius probe -- Niko Tyni <ntyni *iki.fi> * added new alert plugins called matchers -- tobi * created matcher::avgratio sponsored by virtela.net -- tobi * make --filter option actually work -- tobi * removed maxmedian magic regexp ... -- tobi * added new alert type matcher -- tobi * fixed pod errors -- Niko Tyni <ntyni *iki.fi> * allow to mix programs and email addresses in alerts --tobi * allow to define recipient per alert --tobi 2004/08/04 -- 1.31 * added anotherdns and anotherssh probes -- Christoph.Heine *HaDiKo.DE * modify FPing probes to skip ICPM errors in the output -- Tobi * modify RemoteFPing probe to work with normal fping that outputs via stderr. -- Tobi * allow timeout to be specified in base::forks based probes -- Tobi * Added ssh probe -- Christian Recktenwald <smokeping-contact *citecs.de>
2005-01-22 22:50:54 +01:00
NO_BUILD= YES
PKG_SYSCONFSUBDIR?= smokeping
SMOKEPING_HOME= ${VARBASE}/db/smokeping
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/smokeping
SPDIR= ${PREFIX}/share/smokeping
CONF_FILES= ${EGDIR}/basepage.html.dist \
${PKG_SYSCONFDIR}/basepage.html
CONF_FILES+= ${EGDIR}/smokemail.dist ${PKG_SYSCONFDIR}/smokemail
CONF_FILES+= ${EGDIR}/config.dist ${PKG_SYSCONFDIR}/config
CONF_FILES+= ${EGDIR}/tmail.dist ${PKG_SYSCONFDIR}/tmail
CONF_FILES+= ${EGDIR}/smokeping.conf ${PKG_SYSCONFDIR}/smokeping.conf
RCD_SCRIPTS= smokeping
REPLACE_PERL= bin/smokeping.dist bin/tSmoke.dist
.include "../../mk/bsd.prefs.mk"
- Update to 1.37 - Migrate to SUBST_* framework - Don't hardcode references to /var, use ${VARBASE} instead 2005/1/12 -- 1.37 * base class did assume that concurrent probes were off by default -- Niko Tyni <ntyni *iki.fi> 2005/1/7 -- 1.36 (1.35 was an internal release) * concurrent probes are default now, together with a 'random' offset to make sure not all smokepings hit the net at the same time -- Tobi * fixes for loggin -- Niko Tyni <ntyni *iki.fi> - warn if no logging method is active while daemonizing. - turn debugging on before loading the config file. - make do_debuglog a no-op if $use_debuglog isn't set - add debug info to FPing* probes - print the RRD create and update strings when debugging * Allow probe- and target-specific number of pings -- Niko Tyni <ntyni *iki.fi> * RemoteFPing probe revisited and fixed. Note this probe allowed PROBE_CONF config where this was technically not possible. Now these settings are done in the ***Probes*** section ... you have to fix your config files -- Niko Tyni <ntyni *iki.fi> * fixed many typos and some seemingly numeric comparisons -- Niko Tyni <ntyni *iki.fi> * new feature 'concurrentprobes' allow to run multiple probes in paralell and at different step width. -- Niko Tyni <ntyni *iki.fi> * allow to define multiple instances of a sigle probe -- Niko Tyni <ntyni *iki.fi> * fix --filter again ... pathprefix was still in there -- tobi 2004/11/29 -- 1.34 (1.32 + 1.33 were internal only releases) * added SNPP support as suggested by jdelisle -- tobi * added ipv6 support to EchoPing probe -- Niko Tyni <ntyni *iki.fi> * fix for Radius probe -- Niko Tyni <ntyni *iki.fi> * added new alert plugins called matchers -- tobi * created matcher::avgratio sponsored by virtela.net -- tobi * make --filter option actually work -- tobi * removed maxmedian magic regexp ... -- tobi * added new alert type matcher -- tobi * fixed pod errors -- Niko Tyni <ntyni *iki.fi> * allow to mix programs and email addresses in alerts --tobi * allow to define recipient per alert --tobi 2004/08/04 -- 1.31 * added anotherdns and anotherssh probes -- Christoph.Heine *HaDiKo.DE * modify FPing probes to skip ICPM errors in the output -- Tobi * modify RemoteFPing probe to work with normal fping that outputs via stderr. -- Tobi * allow timeout to be specified in base::forks based probes -- Tobi * Added ssh probe -- Christian Recktenwald <smokeping-contact *citecs.de>
2005-01-22 22:50:54 +01:00
SUBST_CLASSES+= files
SUBST_STAGE.files= post-patch
SUBST_FILES.files= bin/smokeping.dist htdocs/smokeping.cgi.dist \
etc/config.dist etc/smokemail.dist bin/tSmoke.dist \
etc/basepage.html.dist smokeping.conf htdocs/tr.cgi.dist
SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_SED.files+= -e "s|@VARBASE@|${VARBASE}|g"
SUBST_SED.files+= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
SUBST_SED.files+= -e "s|@INTERP@|${INTERP}|g"
SUBST_SED.files+= -e "s|perl-5.8.4|perl|g"
SUBST_SED.files+= -e "s|/usr/bin/perl|${PERL5}|g"
SUBST_SED.files+= -e "s|@SPDIR@|${SPDIR}|g"
SUBST_SED.files+= -e "s|cropper/|/smokeping/cropper/|g"
SUBST_SED.files+= -e "s|= cache|= /smokeping/.simg|g"
SUBST_MESSAGE.files= Fixing configuration files.
OWN_DIRS+= ${SMOKEPING_HOME}
OWN_DIRS+= ${SPDIR}/.simg
INSTALLATION_DIRS= bin libexec/cgi-bin
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/smokeping.conf ${WRKSRC}
2010-01-27 18:38:00 +01:00
INSTALLATION_DIRS+= lib/smokeping share/doc/smokeping ${EGDIR} \
${SPDIR}/cropper ${SPDIR}/resource ${SPDIR}/script
2010-01-27 18:38:00 +01:00
do-install:
for FILE in CHANGES CONTRIBUTORS COPYING COPYRIGHT README TODO; do \
${INSTALL_DATA} \
2010-01-27 18:38:00 +01:00
${WRKSRC}/$$FILE ${DESTDIR}${PREFIX}/share/doc/smokeping; \
done
for FILE in ${WRKSRC}/doc/*.txt; do \
2010-01-27 18:38:00 +01:00
${INSTALL_DATA} $$FILE ${DESTDIR}${PREFIX}/share/doc/smokeping; \
done
for FILE in ${WRKSRC}/doc/examples/config.*; do \
2010-01-27 18:38:00 +01:00
${INSTALL_DATA} $$FILE ${DESTDIR}${EGDIR}; \
- Update to 1.37 - Migrate to SUBST_* framework - Don't hardcode references to /var, use ${VARBASE} instead 2005/1/12 -- 1.37 * base class did assume that concurrent probes were off by default -- Niko Tyni <ntyni *iki.fi> 2005/1/7 -- 1.36 (1.35 was an internal release) * concurrent probes are default now, together with a 'random' offset to make sure not all smokepings hit the net at the same time -- Tobi * fixes for loggin -- Niko Tyni <ntyni *iki.fi> - warn if no logging method is active while daemonizing. - turn debugging on before loading the config file. - make do_debuglog a no-op if $use_debuglog isn't set - add debug info to FPing* probes - print the RRD create and update strings when debugging * Allow probe- and target-specific number of pings -- Niko Tyni <ntyni *iki.fi> * RemoteFPing probe revisited and fixed. Note this probe allowed PROBE_CONF config where this was technically not possible. Now these settings are done in the ***Probes*** section ... you have to fix your config files -- Niko Tyni <ntyni *iki.fi> * fixed many typos and some seemingly numeric comparisons -- Niko Tyni <ntyni *iki.fi> * new feature 'concurrentprobes' allow to run multiple probes in paralell and at different step width. -- Niko Tyni <ntyni *iki.fi> * allow to define multiple instances of a sigle probe -- Niko Tyni <ntyni *iki.fi> * fix --filter again ... pathprefix was still in there -- tobi 2004/11/29 -- 1.34 (1.32 + 1.33 were internal only releases) * added SNPP support as suggested by jdelisle -- tobi * added ipv6 support to EchoPing probe -- Niko Tyni <ntyni *iki.fi> * fix for Radius probe -- Niko Tyni <ntyni *iki.fi> * added new alert plugins called matchers -- tobi * created matcher::avgratio sponsored by virtela.net -- tobi * make --filter option actually work -- tobi * removed maxmedian magic regexp ... -- tobi * added new alert type matcher -- tobi * fixed pod errors -- Niko Tyni <ntyni *iki.fi> * allow to mix programs and email addresses in alerts --tobi * allow to define recipient per alert --tobi 2004/08/04 -- 1.31 * added anotherdns and anotherssh probes -- Christoph.Heine *HaDiKo.DE * modify FPing probes to skip ICPM errors in the output -- Tobi * modify RemoteFPing probe to work with normal fping that outputs via stderr. -- Tobi * allow timeout to be specified in base::forks based probes -- Tobi * Added ssh probe -- Christian Recktenwald <smokeping-contact *citecs.de>
2005-01-22 22:50:54 +01:00
done
2010-01-27 18:38:00 +01:00
${INSTALL_SCRIPT} ${WRKSRC}/bin/smokeping.dist ${DESTDIR}${PREFIX}/bin/smokeping
${INSTALL_SCRIPT} ${WRKSRC}/bin/tSmoke.dist ${DESTDIR}${PREFIX}/bin/tSmoke
- Update to 1.37 - Migrate to SUBST_* framework - Don't hardcode references to /var, use ${VARBASE} instead 2005/1/12 -- 1.37 * base class did assume that concurrent probes were off by default -- Niko Tyni <ntyni *iki.fi> 2005/1/7 -- 1.36 (1.35 was an internal release) * concurrent probes are default now, together with a 'random' offset to make sure not all smokepings hit the net at the same time -- Tobi * fixes for loggin -- Niko Tyni <ntyni *iki.fi> - warn if no logging method is active while daemonizing. - turn debugging on before loading the config file. - make do_debuglog a no-op if $use_debuglog isn't set - add debug info to FPing* probes - print the RRD create and update strings when debugging * Allow probe- and target-specific number of pings -- Niko Tyni <ntyni *iki.fi> * RemoteFPing probe revisited and fixed. Note this probe allowed PROBE_CONF config where this was technically not possible. Now these settings are done in the ***Probes*** section ... you have to fix your config files -- Niko Tyni <ntyni *iki.fi> * fixed many typos and some seemingly numeric comparisons -- Niko Tyni <ntyni *iki.fi> * new feature 'concurrentprobes' allow to run multiple probes in paralell and at different step width. -- Niko Tyni <ntyni *iki.fi> * allow to define multiple instances of a sigle probe -- Niko Tyni <ntyni *iki.fi> * fix --filter again ... pathprefix was still in there -- tobi 2004/11/29 -- 1.34 (1.32 + 1.33 were internal only releases) * added SNPP support as suggested by jdelisle -- tobi * added ipv6 support to EchoPing probe -- Niko Tyni <ntyni *iki.fi> * fix for Radius probe -- Niko Tyni <ntyni *iki.fi> * added new alert plugins called matchers -- tobi * created matcher::avgratio sponsored by virtela.net -- tobi * make --filter option actually work -- tobi * removed maxmedian magic regexp ... -- tobi * added new alert type matcher -- tobi * fixed pod errors -- Niko Tyni <ntyni *iki.fi> * allow to mix programs and email addresses in alerts --tobi * allow to define recipient per alert --tobi 2004/08/04 -- 1.31 * added anotherdns and anotherssh probes -- Christoph.Heine *HaDiKo.DE * modify FPing probes to skip ICPM errors in the output -- Tobi * modify RemoteFPing probe to work with normal fping that outputs via stderr. -- Tobi * allow timeout to be specified in base::forks based probes -- Tobi * Added ssh probe -- Christian Recktenwald <smokeping-contact *citecs.de>
2005-01-22 22:50:54 +01:00
${INSTALL_SCRIPT} ${WRKSRC}/htdocs/smokeping.cgi.dist \
2010-01-27 18:38:00 +01:00
${DESTDIR}${PREFIX}/libexec/cgi-bin/smokeping.cgi
${INSTALL_SCRIPT} ${WRKSRC}/htdocs/tr.cgi.dist \
2010-01-27 18:38:00 +01:00
${DESTDIR}${PREFIX}/libexec/cgi-bin/tr.cgi
2010-01-27 18:38:00 +01:00
cd ${WRKSRC}/htdocs/cropper && pax -rw -pm . ${DESTDIR}${SPDIR}/cropper
cd ${WRKSRC}/htdocs/resource && pax -rw -pm . ${DESTDIR}${SPDIR}/resource
cd ${WRKSRC}/htdocs/script && pax -rw -pm . ${DESTDIR}${SPDIR}/script
cd ${WRKSRC}/lib && pax -rw -pm . ${DESTDIR}${PREFIX}/lib/smokeping
${INSTALL_DATA} ${WRKSRC}/htdocs/tr.html ${DESTDIR}${SPDIR}
- Update to 1.37 - Migrate to SUBST_* framework - Don't hardcode references to /var, use ${VARBASE} instead 2005/1/12 -- 1.37 * base class did assume that concurrent probes were off by default -- Niko Tyni <ntyni *iki.fi> 2005/1/7 -- 1.36 (1.35 was an internal release) * concurrent probes are default now, together with a 'random' offset to make sure not all smokepings hit the net at the same time -- Tobi * fixes for loggin -- Niko Tyni <ntyni *iki.fi> - warn if no logging method is active while daemonizing. - turn debugging on before loading the config file. - make do_debuglog a no-op if $use_debuglog isn't set - add debug info to FPing* probes - print the RRD create and update strings when debugging * Allow probe- and target-specific number of pings -- Niko Tyni <ntyni *iki.fi> * RemoteFPing probe revisited and fixed. Note this probe allowed PROBE_CONF config where this was technically not possible. Now these settings are done in the ***Probes*** section ... you have to fix your config files -- Niko Tyni <ntyni *iki.fi> * fixed many typos and some seemingly numeric comparisons -- Niko Tyni <ntyni *iki.fi> * new feature 'concurrentprobes' allow to run multiple probes in paralell and at different step width. -- Niko Tyni <ntyni *iki.fi> * allow to define multiple instances of a sigle probe -- Niko Tyni <ntyni *iki.fi> * fix --filter again ... pathprefix was still in there -- tobi 2004/11/29 -- 1.34 (1.32 + 1.33 were internal only releases) * added SNPP support as suggested by jdelisle -- tobi * added ipv6 support to EchoPing probe -- Niko Tyni <ntyni *iki.fi> * fix for Radius probe -- Niko Tyni <ntyni *iki.fi> * added new alert plugins called matchers -- tobi * created matcher::avgratio sponsored by virtela.net -- tobi * make --filter option actually work -- tobi * removed maxmedian magic regexp ... -- tobi * added new alert type matcher -- tobi * fixed pod errors -- Niko Tyni <ntyni *iki.fi> * allow to mix programs and email addresses in alerts --tobi * allow to define recipient per alert --tobi 2004/08/04 -- 1.31 * added anotherdns and anotherssh probes -- Christoph.Heine *HaDiKo.DE * modify FPing probes to skip ICPM errors in the output -- Tobi * modify RemoteFPing probe to work with normal fping that outputs via stderr. -- Tobi * allow timeout to be specified in base::forks based probes -- Tobi * Added ssh probe -- Christian Recktenwald <smokeping-contact *citecs.de>
2005-01-22 22:50:54 +01:00
for FILE in ${WRKSRC}/etc/config.dist \
${WRKSRC}/etc/basepage.html.dist \
${WRKSRC}/etc/tmail.dist \
${WRKSRC}/etc/config.dist \
${WRKSRC}/smokeping.conf \
${WRKSRC}/etc/smokemail.dist; do \
2010-01-27 18:38:00 +01:00
${INSTALL_DATA} $$FILE ${DESTDIR}${EGDIR}; \
done
2010-01-27 18:38:00 +01:00
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/lib/smokeping/JSON/*.pm
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/lib/smokeping/JSON.pm
.include "../../mk/bsd.pkg.mk"