diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-07-10 11:14:38 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-07-10 11:14:38 +0000 |
commit | ef5f3566ee659e29c4d1c6a34e0584854b43e202 (patch) | |
tree | 6c8b0330bda06ce34ca1f9be86c12a30d3e1e741 | |
parent | Version bump. (diff) | |
download | historical-ef5f3566ee659e29c4d1c6a34e0584854b43e202.tar.gz historical-ef5f3566ee659e29c4d1c6a34e0584854b43e202.tar.bz2 historical-ef5f3566ee659e29c4d1c6a34e0584854b43e202.zip |
Old.
Package-Manager: portage-2.2.0_alpha187/cvs/Linux x86_64
Manifest-Sign-Key: 0xA792A613
-rw-r--r-- | net-analyzer/smokeping/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/smokeping/Manifest | 27 | ||||
-rw-r--r-- | net-analyzer/smokeping/files/config.dist | 174 | ||||
-rw-r--r-- | net-analyzer/smokeping/files/smokeping.init.2 | 70 | ||||
-rw-r--r-- | net-analyzer/smokeping/files/smokeping_fping-3.3.patch | 43 | ||||
-rw-r--r-- | net-analyzer/smokeping/metadata.xml | 1 | ||||
-rw-r--r-- | net-analyzer/smokeping/smokeping-2.4.2-r3.ebuild | 158 |
7 files changed, 12 insertions, 468 deletions
diff --git a/net-analyzer/smokeping/ChangeLog b/net-analyzer/smokeping/ChangeLog index 893966b7947d..7586cd00e595 100644 --- a/net-analyzer/smokeping/ChangeLog +++ b/net-analyzer/smokeping/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/smokeping # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v 1.52 2013/07/10 05:18:23 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v 1.53 2013/07/10 11:14:37 jer Exp $ + + 10 Jul 2013; Jeroen Roovers <jer@gentoo.org> -files/config.dist, + -files/smokeping.init.2, -files/smokeping_fping-3.3.patch, + -smokeping-2.4.2-r3.ebuild, metadata.xml: + Old. 10 Jul 2013; Agostino Sarubbo <ago@gentoo.org> smokeping-2.6.9.ebuild: Stable for x86, wrt bug #399553 diff --git a/net-analyzer/smokeping/Manifest b/net-analyzer/smokeping/Manifest index ad2fce337538..1cebbeb88957 100644 --- a/net-analyzer/smokeping/Manifest +++ b/net-analyzer/smokeping/Manifest @@ -1,33 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX 79_smokeping.conf 351 SHA256 fa4c48387598f8c6e60b7642e4284bb64196dcd233cea9f18ff37009b212ff77 SHA512 d53abdf29e8f6bad67a654b17088c3f8dee7908ff82b0b911599e2ac6a11be84b8fa2c30b1f0b6142803ff9a5058f586946eafa112dfd26ca4f8f8664d19cfc6 WHIRLPOOL 907eff72a390aa36c7be80fb39f2204238ec8daa13f07d9b189401374cf4cc2cdf6df2842f8d0e9096bcd87670190b673d1bfa05adcca5ad0266b99d1bd79586 -AUX config.dist 2962 SHA256 031f0cb72de57812ed34f463d71e90d05fb7b0e2b8df79d5e6ec42e67dfeca7e SHA512 b9fbaf1f1d5fedf0c3ec2ced02a1cc457a24e28d1b405d61b8a97c97d9e8cee03da9fafb2526dac3c288451f6a20e4b568ed099351c88089081d8af0da47fd11 WHIRLPOOL ac4d45d87843cae5f6fbcae3b3c39b021dc35da00ad91ae69ccfec8a650baca0e6654a34e74cb6362e4e50d9fa9d482aed30ef7a6b82c3fbaf7e6889b26e4065 AUX smokeping.conf 32 SHA256 aa672ff60f18cfa311ee3303fb824d390dc44ffd4b309e34235242b4c3de7ac7 SHA512 75863f16f8b57ca9ae7c7d65076acaf28aac66fa2d52ed78bce2bb3a4938dc75a1e8ed54236c52c3965b170a8348145780dd5c0f3d0fc8c95f4b88085252a4ef WHIRLPOOL 233839d651258edbd74377e39d87c238e4e6e8aabfe60b7edb4ad6bb746f57bec7f6fce1e1123119e0349a27d584e7991765fc4f5a9c5376ef54bbce41cac2e8 -AUX smokeping.init.2 1526 SHA256 ad401b39140d7a1287359122c1f9de62255d19d340989a0bf887fc5c57b15f88 SHA512 76c885280cd2ccc171fa791a38e9c60131517ba4079a5d7d30529ac144791598fb729e465df38275933c85be8218ca7e610b1e42093007ca84aa7490ad51d26b WHIRLPOOL 97bdabe8a8c1977ffa2d2532ebc2649b15b7e6f34c54d8e7a3e8bf9ee8ce9a262a472673a69e572722434db27bc18b373e2180ee4c3f98199783516f4208cb69 AUX smokeping.init.3 1736 SHA256 ce54a0e8c62345e9621f7dd65f224d67be3e90b0adf68eb821e1e9045c8f5e0d SHA512 69f9820ce7e1a0fa18cd0dfc77cec75e663e1b9a0f6fec243b0233b5e0843140889ca685fa304a8bd3464c691a15e95b904b91fcc2997ecb4935514d33fed35b WHIRLPOOL e9238fc8e55caa5118e525f6d112dfee0dd052a1a7af47b0e3917b4667806ca2a6ad55967f190598dfaecb1bf5219717e6341a58ddf566af347b48caab7b3a54 AUX smokeping.service 200 SHA256 976a0bc33a30a3524cbf2b2de0641a28e53d0546695c41b5f323f8d96899dcaa SHA512 2f8824143b8283ad02274107c5ed0e84f0c1465fc089823e36ef44a42fec68564d8cc4ff5fb0ad6dc0443e21fac5a8cbcbb0a9bea151b57efaff2a082d15f344 WHIRLPOOL f3899165b71854dc96f5ea6b5f8c17c86ab9dd06faa8ed01abb052a6e647886855102f1d56d47698c7579f22b89fd8948a2684bb23ea4963e4ab99ca4735fee0 -AUX smokeping_fping-3.3.patch 1686 SHA256 f52307a64c2b0648543799406d1809e93cc38c8acfb61fd49e0352506adcce1f SHA512 eaea689b4e7f1e38e8d36950ffe9aa49bf8bb5f3a0f64dba72c18fdf2695fcc9d16d3bb3d629518f7fc418e7c1cd9402d200bdef71d6cea34a204f51515f1603 WHIRLPOOL d2604eff7db415ee91534e1ca629c690241ec214046156cdf59942636f23ab14a305ece07ed0bda7b78b2c7e255aa39e0d9bfd1c14da8ec277897e482326eadd -DIST smokeping-2.4.2.tar.gz 909514 SHA256 ed8680d1b3fdb2b1efde3aa14b37bf7e9aee2c992c5814061dbd78e6eea00d49 SHA512 443a7c823801b64de930765011c762b4326f3b9a3f8140c4f782802a019dca0af6a2a248c613ea189592550446e89fdce6ec7236386123ced8c2bf1197b79403 WHIRLPOOL 28115d925d7329ba76f677dfceb89b954a53dee329f62cb4e2f9b6f96a91434a3e6595b89b4af1fca2cb5eb6fb095b69da9aed8fb616c0129513ea33a28bc107 DIST smokeping-2.6.9.tar.gz 427185 SHA256 cd551d4384d8b19879d128ea0566bd680c19bb4ad8664a3c5a304604746f8863 SHA512 ab3cec15fd9f90510f902da7ce5bac5915558cac198cc88f0ce193a53a0158c9055e28c8c6671cc6653ac42ab51346e1eb19e537f1ab5c234fd498c6b777499d WHIRLPOOL e3a47ed5222798f69f5b957cea5a0404fc1f58675678bd82f93d39085f5a029de2b71974ad245e4de0454d7f689a199f2a2134abbc1ac6ed8e042835c14d3f57 -EBUILD smokeping-2.4.2-r3.ebuild 5290 SHA256 9f369cd388add216d9ed48047124b32a1b89929e58ce38f69eb1edbb6a41f019 SHA512 532302caadea8b65964f721d6d7399c38575b2de0962f1e323ee172be2f04caa68fa824202eb5d9e3cf7a7d9d8a4c04f1858a5465a0c421fb1a237b051dab2e9 WHIRLPOOL 3084b04f82daa2350043abd9fb755ccac4953ff9c035c815fd6b3c70e6ab9a5150d1124653177b9145a41615367012c4ec754febed3558033b69cf61b0072939 EBUILD smokeping-2.6.9.ebuild 5129 SHA256 fe4d78ced182cdc8ede7c9a5f8981f5f27b0be6338391cd742fb3478bc6b39df SHA512 a331478a473d7d642d67448242d866416e845a73293728c4b106bef66524ff4843e25efc3370b6ca22a1569abc3112e7c7f57701935ae815ffb4790c88084c79 WHIRLPOOL 59cfdc28ced2e4dd7aa6d11cc0d767e8c9e60a2780a67440d420ef31bf6dde1d683e6850c6847fcc6210e5cb4efa2776b6547e9021291bd53d94d23841e8f4e5 -MISC ChangeLog 8066 SHA256 853120b76a5f177e32a56fcf42ea50b6dffbc26692ca8297956a803528bc5fbd SHA512 4f2dd094e51a2b4fe4a85996860247cdb88e6463265e1194cf8bc40723d611c318689ada82248760896da89225c4fdcb2eeda61b4b0a022ec86d5b3a6a73f02b WHIRLPOOL 1b87c3ae54a62cf2419947b24f748800f8ca712a327ab945286baa04d1240e933276fb1080cf6e282eb18e2b8b8615eff9bde4b34c48e548d7587fdfe855b7a6 -MISC metadata.xml 595 SHA256 d730c4e3715c9ca924caac89eb14969d58a47989ff67e581adcabbde7c10882a SHA512 b309837996ee6231fe65b5792a8e57161dcfd2c2f5976117498654a1d2abee4c06dfb09cf2f9f9976fb9143c695b87b1a96201b471fc26255d7eecf07fd02bf7 WHIRLPOOL d364135ecfafbcc0e23f7e24af9d39a0d0fc8e6968f7207765642adfb845060cc843c28ecd46c53b3a93d661d4a94c9b22930cf9a3c8fb8668f86fa3cdb3a9de +MISC ChangeLog 8246 SHA256 1f2d182838811b322a51e4f282574cc17948d172aac7365f77341de8f62b16be SHA512 c92cee49297cf49bc885669be8fa216fe7833bfb7a36d1ba08186eaa61723303866dc95ed7e2208b006af3d0811be5bb2e43d40a3972290ced664b8cbf3c095a WHIRLPOOL 7e17f40ad8454867aa1efaaa133e4fb2aa49b2ecc068c22279f75a7d2676ab1f8eba3aaae7e2379c36a1a171d5199d73073c25a074267f3a86e7b9281b510eda +MISC metadata.xml 494 SHA256 e8b6774a1005b8153ac5a090e865a2456626ea74dd2d57efbd131146df30a817 SHA512 8981b4f6532a90ef699fa8639145648e999e94dd3afd93ba67d069a5d7aa98a7c6739b272e0f0e96a9d0471b0a1bb4d0e3968373eee6923380fe271ea939eb12 WHIRLPOOL 4399dd13c9945dbccd1a1fff51c61dca52475aaba648ed4d48df682108bb9469ec46a49d635970f5f3d2bc6e52db5e5fe91d0acad4a1f982abe4a66c342bfb3f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iQIcBAEBCgAGBQJR3O6RAAoJELp701BxlEWfCNYQAJxa7DzL6epbqyZIvIc2YqQ1 -OA0chZBNOxjzRSZUDLbGKnkKXv0TkTGb96bAmWm+Sg6mS5bahpsmEL0yrbuM9quw -ugNwkUzaQXF9+2l/I+JBOujkCrYOBRdR+W72xu6KVQjOuuwVYhMr+tKjql6pCa/J -WMXlsAZBAtrM2BQMDvpSgF6pAlwLBjxd60Ujza0TvmR3fT2yOoFaxcz+rYZrQTmj -1GG15j7KIL3f0+9BTk5ujmme6HQ9Lnfh8g1IF9ubUMnRWddTcw30t/jBCXgB1zrJ -UPvwIGWbViCZpNENqeSt3xKI9VCANMpIYm4a0BGqP6FDQSZi/1kyYbsd4TOwSTuT -/7do4e+GKeUJFeQ9heYAG+hE29HUUGf2SLgEP2gDi8Yj900kEJLBKwrfgyQCm4cl -LnUQC0m1fYzVWJnQeZKuHPEVp2eCS0EjGg0Ye1swRv+pIk76Akv4jxhChJ2lIFWU -n/waFEHeGJsR12mP30Sw+HcsE7Ljj05Yx60IhnbcR0C0rfImv3b8D/fFpMPqMn2K -y8xiHrK4Q/kU1axF4FXQNOklhuFEKu4x/czqj8N/Vjz+uPXCkJ430BmRD6YGpWcn -ulezQF0f47GIoG99kVT6aiUSDago2OCt9qFZ5gEqxi69+tkxnU1AgxfCFlJVrqh3 -KuK/9N0/ZMVidvR2aWJ5 -=hD0I +iEYEAREIAAYFAlHdQh4ACgkQVWmRsqeSphPs9QCbBr2cE4Rnjyp0u2od+qvlJDry +BRsAn3Ptj/naYmKbHqflTUcFPZ9QrlVP +=XkSm -----END PGP SIGNATURE----- diff --git a/net-analyzer/smokeping/files/config.dist b/net-analyzer/smokeping/files/config.dist deleted file mode 100644 index 3c6796c4b841..000000000000 --- a/net-analyzer/smokeping/files/config.dist +++ /dev/null @@ -1,174 +0,0 @@ -# Note that all IP addresses in this file are false, to prevent some -# machine falling uder a deadly DOS storm because all users keep -# the same addresses in their config. - -*** General *** - -owner = Joe Random -contact = joe@some.place.xyz -mailhost = smtp.mailhost.abc -sendmail = /usr/lib/sendmail -imgcache = /var/lib/smokeping/.simg -imgurl = ../.simg -datadir = /var/lib/smokeping -piddir = /var/lib/smokeping -cgiurl = http://some.place.xyz/cgi-perl/smokeping.pl -smokemail = /etc/smokemail.dist -# specify this to get syslog logging -syslogfacility = local0 -# each probe is now run in its own process -# disable this to revert to the old behaviour -# concurrentprobes = no - -*** Alerts *** -to = admin@some.place.xyz -from = smokealert@some.place.xyz - -+bigloss -type = loss -# in percent -pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0% -comment = suddenly there is packet loss - -+someloss -type = loss -# in percent -pattern = >0%,*12*,>0%,*12*,>0% -comment = loss 3 times in a row - -+startloss -type = loss -# in percent -pattern = ==S,>0%,>0%,>0% -comment = loss at startup - -+rttdetect -type = rtt -# in milli seconds -pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100 -comment = routing mesed up again ? - -*** Database *** - -step = 300 -pings = 20 - -# consfn mrhb steps total - -AVERAGE 0.5 1 1008 -AVERAGE 0.5 12 4320 - MIN 0.5 12 4320 - MAX 0.5 12 4320 -AVERAGE 0.5 144 720 - MAX 0.5 144 720 - MIN 0.5 144 720 - -*** Presentation *** - -template = /etc/smokeping.template - -+ overview - -width = 600 -height = 50 -range = 10h - -+ detail - -width = 600 -height = 200 -unison_tolerance = 2 - -"Last 3 Hours" 3h -"Last 30 Hours" 30h -"Last 10 Days" 10d -"Last 400 Days" 400d - -*** Probes *** - -+ FPing - -binary = /usr/sbin/fping - -*** Targets *** - -probe = FPing - -menu = Top -title = Network Latency Grapher -remark = Welcome to the SmokePing website of YYZ. \ - Here you will learn all about the latency of our network. - -+ World - -menu = World -title = Worldwide Connectivity - -++ Europe - -menu = Europe -title = European Connectivity - -+++ Switzerland - -menu = Switzerland -title = Swiss Connectivity -alerts = bigloss,someloss,startloss - -++++ SBB - -menu = SBB/CFF/FFS -title = Swiss Federal Railways Webserver -host = www.railway-server.abc - -++++ Tiscali - -menu = Tiscali Web -title = Tiscali Webserver www.tiscali.abc -host = www.tiscali-web.abc - -+++ UK - -menu = United Kingdom -title = United Kingdom - -++++ UCL - -menu = UCL -title = UCL -host = www.ucl-abc.acc.uki - -++ USA - -menu = North America -title =North American Connectivity - -+++ MIT - -menu = MIT -title = Massachusetts Institute of Technology Webserver -host = www.gurkoman.ybc - -+++ IU - -menu = IU -title = Indiana University -host = www.iu.ali - -+++ UCB - -menu = U. C. Berkeley -title = U. C. Berkeley Webserver -host = www.berkly.udi - -+++ UCSD - -menu = U. C. San Diego -title = U. C. San Diego Webserver -host = www.ucsdddar.art - -+++ Sun - -menu = Sun Microsystems -title = Sun Microsystems Webserver -host = www.sun-web.com diff --git a/net-analyzer/smokeping/files/smokeping.init.2 b/net-analyzer/smokeping/files/smokeping.init.2 deleted file mode 100644 index 9eac6a361938..000000000000 --- a/net-analyzer/smokeping/files/smokeping.init.2 +++ /dev/null @@ -1,70 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -extra_started_commands="reload" -extra_stopped_commands="dump restore" - -depend() { - need net - use dns -} - -checkconfig() { - if [ ! -f "/etc/smokeping/config" ] ; then - eerror "You need /etc/smokeping/config to run smokeping!" - return 1 - fi -} - -start() { - checkconfig || return 1 - - if [ ! -d /run/smokeping/ ]; then - mkdir /run/smokeping/ - fi - chown smokeping:smokeping /run/smokeping/ - - ebegin "Starting smokeping" - LC_ALL=C \ - start-stop-daemon --start --name smokeping \ - --pidfile /run/smokeping/smokeping.pid \ - --exec /usr/bin/smokeping \ - --chuid smokeping:smokeping - eend $? -} - -stop() { - ebegin "Stopping smokeping" - start-stop-daemon --stop \ - --pidfile /run/smokeping/smokeping.pid - eend $? -} - -reload() { - ebegin "Reloading smokeping" - /usr/bin/smokeping --reload 1>/dev/null 2>&1 - eend $? -} - -dump() { - ebegin "Dumping smokeping rrd files to XML for backup or upgrade use" - for f in `find /var/lib/smokeping -name '*.rrd' -print` ; do - f_xml=`dirname $f`/`basename $f .rrd`.xml - rrdtool dump "$f" > "${f_xml}" - chown root:0 "${f_xml}" - done - eend $? -} - -restore() { - ebegin "Restoring smokeping rrd files from XML dump files" - for f in `find /var/lib/smokeping -name '*.xml' -print` ; do - f_rrd=`dirname $f`/`basename $f .xml`.rrd - mv -f "${f_rrd}" "${f_rrd}.bak" - chown root:0 "${f_rrd}.bak" - rrdtool restore "$f" "${f_rrd}" - chown smokeping:smokeping "${f_rrd}" - done - eend $? -} diff --git a/net-analyzer/smokeping/files/smokeping_fping-3.3.patch b/net-analyzer/smokeping/files/smokeping_fping-3.3.patch deleted file mode 100644 index 56b8b2d0088f..000000000000 --- a/net-analyzer/smokeping/files/smokeping_fping-3.3.patch +++ /dev/null @@ -1,43 +0,0 @@ -commit 491498b57a427230069604d10b68073c0f6f5e33 -Author: Tobias Oetiker <tobi@oetiker.ch> -Date: Wed Aug 29 09:49:57 2012 +0200 - - allow to configure FPing probe to read fping output form stdout instead of stderr - -diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm -index 2b932bf..0901201 100644 ---- a/lib/Smokeping/probes/FPing.pm -+++ b/lib/Smokeping/probes/FPing.pm -@@ -32,6 +32,9 @@ your system yet, you can get a slightly enhanced version from L<www.smokeping.or - - The (optional) B<packetsize> option lets you configure the packetsize for the pings sent. - -+Since version 3.3 fping sends its statistics to stdout. Set B<usestdout> to 'true' -+so make smokeping read stdout instead of stderr. -+ - In B<blazemode>, FPing sends one more ping than requested, and discards - the first RTT value returned as it's likely to be an outlier. - -@@ -142,7 +145,8 @@ sub ping ($){ - $self->do_debug("Executing @cmd"); - my $pid = open3($inh,$outh,$errh, @cmd); - $self->{rtts}={}; -- while (<$errh>){ -+ my $fh = ($self->{properties}{usestdout} || '') eq 'true' ? $outh : $errh; -+ while (<$fh>){ - chomp; - $self->do_debug("Got fping output: '$_'"); - next unless /^\S+\s+:\s+[-\d\.]/; #filter out error messages from fping -@@ -194,6 +198,12 @@ sub probevars { - _doc => "Send an extra ping and then discarge the first answer since the first is bound to be an outliner.", - - }, -+ usestdout => { -+ _re => '(true|false)', -+ _example => 'true', -+ _doc => "Listen for FPing output on stdout instead of stderr ... (version 3.3+ sends its statistics on stdout).", -+ -+ }, - timeout => { - _re => '(\d*\.)?\d+', - _example => 1.5, diff --git a/net-analyzer/smokeping/metadata.xml b/net-analyzer/smokeping/metadata.xml index bdaa143b7d47..71b3ad2d71e7 100644 --- a/net-analyzer/smokeping/metadata.xml +++ b/net-analyzer/smokeping/metadata.xml @@ -3,7 +3,6 @@ <pkgmetadata> <herd>netmon</herd> <use> -<flag name='speedy'>Use <pkg>dev-perl/SpeedyCGI</pkg> instead of perl to speed up cgi scripts</flag> <flag name='dig'>Install <pkg>net-dns/bind-tools</pkg> for dig functionality</flag> <flag name='echoping'>Install <pkg>net-analyzer/echoping</pkg> for echoping functionality</flag> <flag name='telnet'>Install <pkg>dev-perl/Net-Telnet</pkg> for telnet functionality</flag> diff --git a/net-analyzer/smokeping/smokeping-2.4.2-r3.ebuild b/net-analyzer/smokeping/smokeping-2.4.2-r3.ebuild deleted file mode 100644 index 3523042a1558..000000000000 --- a/net-analyzer/smokeping/smokeping-2.4.2-r3.ebuild +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/smokeping-2.4.2-r3.ebuild,v 1.8 2012/06/12 03:14:47 zmedico Exp $ - -EAPI="2" - -inherit perl-module user - -DESCRIPTION="A powerful latency measurement tool." -HOMEPAGE="http://oss.oetiker.ch/smokeping/" -SRC_URI="http://oss.oetiker.ch/smokeping/pub/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~hppa x86" -IUSE="apache2 speedy" - -# dev-perl/JSON-1.x is bundled and is incompatible with version 2.x wich is in -# the tree. See http://bugs.gentoo.org/show_bug.cgi?id=260170#c2 -DEPEND="dev-lang/perl - virtual/perl-libnet - >=net-analyzer/rrdtool-1.2[perl] - >=net-analyzer/fping-2.4_beta2-r2 - dev-perl/Digest-HMAC - dev-perl/libwww-perl - dev-perl/CGI-Session - >=dev-perl/SNMP_Session-1.13 - >=dev-perl/Socket6-0.20 - dev-perl/Net-DNS - speedy? ( dev-perl/SpeedyCGI ) - !apache2? ( virtual/httpd-cgi ) - apache2? ( >=www-apache/mod_perl-2.0.1 ) - !dev-perl/Config-Grammar - !dev-perl/JSON - !perl-core/JSON-PP" - -RDEPEND="${DEPEND}" - -pkg_setup() { - enewgroup smokeping - enewuser smokeping -1 -1 /var/lib/smokeping smokeping -} - -src_prepare() { - rm -rf lib/Digest # provided by dev-perl/Digest-HMAC - rm -rf lib/CGI # provided by dev-perl/CGI-Session - rm -r lib/{BER.pm,SNMP_Session.pm,SNMP_util.pm} # dev-perl/SNMP_Session - rm qooxdoo/qooxdoolink -} - -src_compile() { - # There is a makefile we don't want to run so leave this here - einfo "Skip compile." -} - -src_install() { - # First move all the perl modules into the vendor lib area of Perl - perlinfo - insinto ${VENDOR_LIB}/ - doins -r lib/* - - # Install the CGI webserver scripts - sed 's:^use lib:#use lib:g' -i htdocs/*.cgi.dist - if use speedy; then - sed '1{s:/usr/[^ ]*:/usr/bin/speedy:}' -i htdocs/*.cgi.dist - else - sed '1{s:/usr/[^ ]*:/usr/bin/perl:}' -i htdocs/*.cgi.dist - fi - sed 's:/home/oetiker.*/config.dist:/etc/smokeping/config:' \ - -i htdocs/*.cgi.dist - exeinto /var/www/localhost/perl/ - newexe htdocs/smokeping.cgi.dist smokeping.pl || die - exeinto /var/www/localhost/smokeping - newexe htdocs/tr.cgi.dist tr.cgi || die - rm htdocs/{tr,smokeping}.cgi.dist - - # Install AJAX scripts - insinto /var/www/localhost/smokeping - doins -r htdocs/* || die - - # Create the smokeping binaries - for bin in ${PN} tSmoke; do - newbin bin/${bin}.dist ${bin} - dosed 's:^use lib:#use lib:g' /usr/bin/${bin} - dosed 's:etc/config.dist:/etc/smokeping/config:' /usr/bin/${bin} - done - - # Create the config files - insinto /etc/${PN} - for file in etc/*; do - config=${file/.dist} - newins ${file} ${config#*/} - done - sed -e '/^imgcache/{s:\(^imgcache[ \t]*=\).*:\1 /var/lib/smokeping/.simg:}' \ - -e '/^imgurl/{s:\(^imgurl[ \t]*=\).*:\1 ../.simg:}' \ - -e '/^datadir/{s:\(^datadir[ \t]*=\).*:\1 /var/lib/smokeping:}' \ - -e '/^piddir/{s:\(^piddir[ \t]*=\).*:\1 /var/run/smokeping:}' \ - -e '/^cgiurl/{s#\(^cgiurl[ \t]*=\).*#\1 http://some.place.xyz/perl/smokeping.pl#}' \ - -e '/^smokemail/{s:\(^smokemail[ \t]*=\).*:\1 /etc/smokeping/smokemail:}' \ - -e '/^tmail/{s:\(^tmail[ \t]*=\).*:\1 /etc/smokeping/tmail:}' \ - -e '/^secrets/{s:\(^secrets[ \t]*=\).*:\1 /etc/smokeping/smokeping_secrets:}' \ - -e '/^template/{s:\(^template[ \t]*=\).*:\1 /etc/smokeping/basepage.html:}' \ - -i "${D}/etc/${PN}/config" || die - sed -e '/^<script/{s:cropper/:/cropper/:}' -i "${D}/etc/${PN}/basepage.html" - fperms 700 /etc/${PN}/smokeping_secrets - - newinitd "${FILESDIR}/${PN}.init.2" ${PN} || die - - if use apache2 ; then - insinto /etc/apache2/modules.d - doins "${FILESDIR}/79_${PN}.conf" || die - fi - - # Create the files in /var for rrd file storage - keepdir /var/lib/${PN}/.simg - fowners smokeping:smokeping /var/lib/${PN} - if use apache2 ; then - fowners apache:apache /var/lib/${PN}/.simg - else - fowners smokeping:smokeping /var/lib/${PN}/.simg - fi - fperms 775 /var/lib/${PN} /var/lib/${PN}/.simg - - # Install documentation. - insinto "/usr/share/doc/${PF}" - doins -r doc/examples - dodoc CHANGES CONTRIBUTORS README TODO || die - doman doc/{smokeping{.1,.cgi.1,_config.5},Smokeping.3,smokeping_examples.7} \ - doc/{smokeping_{extend,install,master_slave,upgrade}.7,smoketrace.7} \ - doc/{tSmoke.1,Smokeping/Smokeping::{Examples,RRDtools}.3} || die -} - -pkg_postinst() { - chown smokeping:smokeping "${ROOT}/var/lib/${PN}" - chmod 755 "${ROOT}/var/lib/${PN}" - elog - elog "Additional steps are needed to get ${PN} up & running:" - elog - elog "First you need to edit /etc/${PN}/config. After that" - elog "you can start ${PN} with '/etc/init.d/${PN} start'." - elog - if use apache2 ; then - elog "For web interface make sure to add -D PERL to APACHE2_OPTS in" - elog "/etc/conf.d/apache2 and to restart apache2. To access site from" - elog "other places check permissions at /etc/apache2/modules.d/79_${PN}.conf" - elog - else - elog "For web interface configure your web server to serve perl cgi" - elog "script at /var/www/localhost/perl/" - fi - elog "To make cropper working you just need to copy /var/www/localhost/smokeping/cropper" - elog "into you htdocs (or create symlink and allow webserver to follow symlinks)." - elog - elog "We install all files required for smoketrace, but you have to" - elog "configure it manually. Just read 'man smoketrace'. Also you need to" - elog "'emerge traceroute'." - elog -} |