From d3624fdede6f187696ba78ee3ab4db383f916e1f Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Fri, 22 Apr 2016 18:11:36 +0000 Subject: community/monitoring-plugins: moved from testing --- community/monitoring-plugins/APKBUILD | 59 +++++++++++++++++++++++++++++++++++ testing/monitoring-plugins/APKBUILD | 59 ----------------------------------- 2 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 community/monitoring-plugins/APKBUILD delete mode 100644 testing/monitoring-plugins/APKBUILD diff --git a/community/monitoring-plugins/APKBUILD b/community/monitoring-plugins/APKBUILD new file mode 100644 index 0000000000..11d8d01074 --- /dev/null +++ b/community/monitoring-plugins/APKBUILD @@ -0,0 +1,59 @@ +# Contributor: Francesco Colista +# Maintainer: Francesco Colista +pkgname=monitoring-plugins +pkgver="2.1.2" +pkgrel=0 +pkgdesc="Plugins for Icinga, Naemon, Nagios, Shinken, Sensu and other monitoring applications" +url="http://www.monitoring-plugins.org" +arch="all" +license="GPL3" +depends="" +depends_dev="" +options="suid" +makedepends="$depends_dev linux-headers libdbi-dev + openssl-dev mariadb-dev postgresql-dev perl-dev " +install="" +subpackages="$pkgname-doc" +source="https://www.monitoring-plugins.org/download/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/monitoring-plugins + --with-perl \ + --with-openssl \ + --with-pgsql \ + --with-dbi \ + --with-mysql \ + --with-ipv6 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + + install -Dm644 LEGAL "$pkgdir"/usr/share/licenses/$pkgname/LEGAL + + for i in ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog \ + FAQ NEWS README REQUIREMENTS SUPPORT THANKS; do + install -Dm644 $i "$pkgdir"/usr/share/doc/$pkgname/$i + done + rm $pkgdir/usr/lib/charset.alias +} + +md5sums="4a210f7db012571ea58e214cef74f612 monitoring-plugins-2.1.2.tar.gz" +sha256sums="76c6b58f0867ab7b6c8c86c7e94fcce7183618f6daab63488990d0355f5600aa monitoring-plugins-2.1.2.tar.gz" +sha512sums="845eb7636691aa5402119384c3d4256969e959fbc29ef5257c24fc4c21536cad3dade30747f36c9ad998cb37df0f325df66ea679d3d5b96c2993b59a9a325fed monitoring-plugins-2.1.2.tar.gz" diff --git a/testing/monitoring-plugins/APKBUILD b/testing/monitoring-plugins/APKBUILD deleted file mode 100644 index 11d8d01074..0000000000 --- a/testing/monitoring-plugins/APKBUILD +++ /dev/null @@ -1,59 +0,0 @@ -# Contributor: Francesco Colista -# Maintainer: Francesco Colista -pkgname=monitoring-plugins -pkgver="2.1.2" -pkgrel=0 -pkgdesc="Plugins for Icinga, Naemon, Nagios, Shinken, Sensu and other monitoring applications" -url="http://www.monitoring-plugins.org" -arch="all" -license="GPL3" -depends="" -depends_dev="" -options="suid" -makedepends="$depends_dev linux-headers libdbi-dev - openssl-dev mariadb-dev postgresql-dev perl-dev " -install="" -subpackages="$pkgname-doc" -source="https://www.monitoring-plugins.org/download/$pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - ./configure \ - --prefix=/usr \ - --libexecdir=/usr/lib/monitoring-plugins - --with-perl \ - --with-openssl \ - --with-pgsql \ - --with-dbi \ - --with-mysql \ - --with-ipv6 - make || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install - - install -Dm644 LEGAL "$pkgdir"/usr/share/licenses/$pkgname/LEGAL - - for i in ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS CODING ChangeLog \ - FAQ NEWS README REQUIREMENTS SUPPORT THANKS; do - install -Dm644 $i "$pkgdir"/usr/share/doc/$pkgname/$i - done - rm $pkgdir/usr/lib/charset.alias -} - -md5sums="4a210f7db012571ea58e214cef74f612 monitoring-plugins-2.1.2.tar.gz" -sha256sums="76c6b58f0867ab7b6c8c86c7e94fcce7183618f6daab63488990d0355f5600aa monitoring-plugins-2.1.2.tar.gz" -sha512sums="845eb7636691aa5402119384c3d4256969e959fbc29ef5257c24fc4c21536cad3dade30747f36c9ad998cb37df0f325df66ea679d3d5b96c2993b59a9a325fed monitoring-plugins-2.1.2.tar.gz" -- cgit v1.2.3