From 81bb6f7ad5f16cf1d7361b81edcf5f04e8b89868 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 2 Aug 2010 06:16:46 +0000 Subject: main/smokeping: moved from testing fixes #348 --- testing/smokeping/APKBUILD | 110 -------------------------------- testing/smokeping/smokeping.initd | 77 ---------------------- testing/smokeping/smokeping.pre-install | 5 -- 3 files changed, 192 deletions(-) delete mode 100644 testing/smokeping/APKBUILD delete mode 100644 testing/smokeping/smokeping.initd delete mode 100644 testing/smokeping/smokeping.pre-install (limited to 'testing') diff --git a/testing/smokeping/APKBUILD b/testing/smokeping/APKBUILD deleted file mode 100644 index 409da87ded..0000000000 --- a/testing/smokeping/APKBUILD +++ /dev/null @@ -1,110 +0,0 @@ -# Contributor: Jeff Bilyk -pkgname=smokeping -pkgver=2.4.2 -pkgrel=1 -pkgdesc="Smokeping network latency monitoring" -pkgusers="smokeping" -pkggroups="smokeping" -install="$pkgname.pre-install" -url="http://oss.oetiker.ch/smokeping/" -source="http://oss.oetiker.ch/smokeping/pub/smokeping-$pkgver.tar.gz - smokeping.initd" -depends="perl fping rrdtool perl-rrd - perl-uri-escape - perl-digest-hmac - perl-cgi-session - perl-libwww - perl-snmp-session - perl-net-dns - " -license="GPL" - -_builddir="$srcdir"/$pkgname-$pkgver -_vendorlib=/usr/share/perl5/vendor_perl - -prepare() { - cd "$_builddir" - # provided by perl-digest-hmac - rm -rf lib/Digest - # provided by perl-cgi-session - rm -rf lib/CGI - # provided by perl-snmp-session - rm -r lib/BER.pm lib/SNMP_Session.pm lib/SNMP_util.pm - rm -r qooxdoo/qooxdoolink -} - -build() { - return 0 -} - -package() { - cd "$_builddir" - - # create dirs - mkdir -p "$pkgdir"/etc/smokeping \ - "$pkgdir"/usr/bin \ - "$pkgdir"/usr/share/webapps/smokeping \ - "$pkgdir"/$_vendorlib - - # install libs - cp -ra "$_builddir"/lib/* "$pkgdir"/$_vendorlib - - # install cgi scripts - for i in smokeping.cgi tr.cgi; do - sed -i -e 's:^use lib:#use lib:' \ - -e 's:/home/oetiker.*/config.dist:/etc/smokeping/config:' \ - -e '1s:.*:#!/usr/bin/perl:' \ - htdocs/$i.dist || return 1 - mv htdocs/$i.dist \ - "$pkgdir"/usr/share/webapps/smokeping/$i \ - || return 1 - done - - # install ajax scripts - mv "$_builddir/htdocs"/* "$pkgdir"/usr/share/webapps/smokeping - - # install smokeping executables - for i in smokeping tSmoke; do - sed -e 's:^use lib:#use lib:g' \ - -e 's:etc/config.dist:/etc/smokeping/config:' \ - -i bin/$i.dist - install -m755 bin/$i.dist "$pkgdir"/usr/bin/$i - done - - # config - 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:}' \ - -e '/^sendmail/{s:usr/lib:usr/sbin:}' \ - -i etc/config.dist || return 1 - - sed -e '/^