Date: Wednesday, September 4, 2013 @ 19:04:01 Author: bluewind Revision: 96766
add smokeping Added: perl-config-grammar/ perl-config-grammar/repos/ perl-config-grammar/trunk/ perl-config-grammar/trunk/PKGBUILD smokeping/ smokeping/repos/ smokeping/trunk/ smokeping/trunk/PKGBUILD smokeping/trunk/htdocs-makefile.patch smokeping/trunk/install smokeping/trunk/service ---------------------------------------+ perl-config-grammar/trunk/PKGBUILD | 50 ++++++++++++++++++++++++++++++++ smokeping/trunk/PKGBUILD | 41 ++++++++++++++++++++++++++ smokeping/trunk/htdocs-makefile.patch | 11 +++++++ smokeping/trunk/install | 15 +++++++++ smokeping/trunk/service | 6 +++ 5 files changed, 123 insertions(+) Added: perl-config-grammar/trunk/PKGBUILD =================================================================== --- perl-config-grammar/trunk/PKGBUILD (rev 0) +++ perl-config-grammar/trunk/PKGBUILD 2013-09-04 17:04:01 UTC (rev 96766) @@ -0,0 +1,50 @@ +# Maintainer: Florian Pritz <[email protected]> +# Contributor: Christos Nouskas <[email protected]> +# Generator : CPANPLUS::Dist::Arch 1.25 + +pkgname='perl-config-grammar' +pkgver=1.10 +pkgrel=2 +pkgdesc="A grammar-based, user-friendly config parser" +arch=('any') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=() +url='http://search.cpan.org/dist/Config-Grammar' +source=('http://search.cpan.org/CPAN/authors/id/D/DS/DSCHWEI/Config-Grammar-1.10.tar.gz') +md5sums=('ce904f687f1ee9c70521142a2e0f15c9') +sha512sums=('0891984da560a9dd758fff0678cd577898f4b1796d275dfbed27d411941aca7830f7b6f8a4a4a913572bf0ea7b62414b3d852c0a37b5e629db6ae437c1db0690') +_distdir="Config-Grammar-$pkgver" + +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + + cd "$srcdir/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: Added: smokeping/trunk/PKGBUILD =================================================================== --- smokeping/trunk/PKGBUILD (rev 0) +++ smokeping/trunk/PKGBUILD 2013-09-04 17:04:01 UTC (rev 96766) @@ -0,0 +1,41 @@ +# Maintainer: Florian Pritz <[email protected]> +# Contributor: Christos Nouskas nous <nous at archlinux.us> + +pkgname=smokeping +pkgver=2.6.9 +pkgrel=2 +pkgdesc="A tool to keep track of your network latency" +arch=('any') +url="http://oss.oetiker.ch/smokeping/" +license=('GPL2') +depends=('perl-config-grammar' 'perl-digest-hmac' 'perl-libwww' 'rrdtool' 'perl-fcgi') +source=(http://oss.oetiker.ch/smokeping/pub/smokeping-${pkgver}.tar.gz + service + htdocs-makefile.patch) +sha256sums=('cd551d4384d8b19879d128ea0566bd680c19bb4ad8664a3c5a304604746f8863' + '312e9c7a9d4a2e56da823bcbfa39c4e38a66bbe1da365dae8d11774d9eb2ee28' + 'd044f421ea9b7fac147b9da69dd16c0e45bb534c500ebac6e011f1cfecc9bb8f') +install=install + +prepare() { + cd "$srcdir"/${pkgname}-${pkgver} + sed -i 's#the master/slave mode|smokeping_master_slave#the masterE<sol>slave mode|smokeping_master_slave#' \ + lib/Smokeping.pm + patch -p1 -i "$srcdir/htdocs-makefile.patch" +} + +build() { + cd "$srcdir"/${pkgname}-${pkgver} + + ./configure --prefix=/usr --sysconfdir=/etc/smokeping --with-htdocs-dir=/srv/http/smokeping + make +} + +package() { + cd "$srcdir"/${pkgname}-${pkgver} + make DESTDIR="$pkgdir" install + + install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/smokeping.service" + chmod 700 "$pkgdir/etc/smokeping" +} + Added: smokeping/trunk/htdocs-makefile.patch =================================================================== --- smokeping/trunk/htdocs-makefile.patch (rev 0) +++ smokeping/trunk/htdocs-makefile.patch 2013-09-04 17:04:01 UTC (rev 96766) @@ -0,0 +1,11 @@ +--- a/htdocs/Makefile.in 2013-03-04 14:07:55.000000000 +0100 ++++ b/htdocs/Makefile.in 2013-09-04 19:00:19.802492714 +0200 +@@ -433,7 +433,7 @@ + install-data-local: + $(MKDIR) -p $(DESTDIR)$(HTDOCSDIR) + $(ECHO) "#!/bin/sh" > $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist +- $(ECHO) "exec $(prefix)/bin/smokeping_cgi $(prefix)/etc/config" >> $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist ++ $(ECHO) "exec $(prefix)/bin/smokeping_cgi $(sysconfdir)/config" >> $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist + chmod +x $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist + + # Tell versions [3.59,3.63) of GNU make to not export all variables. Added: smokeping/trunk/install =================================================================== --- smokeping/trunk/install (rev 0) +++ smokeping/trunk/install 2013-09-04 17:04:01 UTC (rev 96766) @@ -0,0 +1,15 @@ +post_install() { + getent group smokeping &>/dev/null || groupadd -g 181 smokeping >/dev/null + getent passwd smokeping &>/dev/null || useradd -u 181 -d /var/lib/smokeping -g smokeping -s /bin/false smokeping >/dev/null + chown -R smokeping:smokeping /srv/http/smokeping /etc/smokeping +} + +post_upgrade() { + post_install +} + +pre_remove() { + getent passwd smokeping &>/dev/null && userdel smokeping >/dev/null + getent group smokeping &>/dev/null && groupdel smokeping >/dev/null + true +} Added: smokeping/trunk/service =================================================================== --- smokeping/trunk/service (rev 0) +++ smokeping/trunk/service 2013-09-04 17:04:01 UTC (rev 96766) @@ -0,0 +1,6 @@ +[Service] +User=smokeping +ExecStart=/usr/bin/smokeping --nodaemon --config=/etc/smokeping/config + +[Install] +WantedBy=multi-user.target
