Subject: [alpine-devel] [PATCH] nagios-plugins: add nagios-plugins-contrib subpackage

From: Jeff Bilyk <[email-masked]>
Date: Wed, 11 May 2011 13:40:12 -0400

nagios-plugins-contrib is a new subpackage that contains all of the nagios-plugins
that haven't been added to the main section of the package
---
 main/nagios-plugins/APKBUILD |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/main/nagios-plugins/APKBUILD b/main/nagios-plugins/APKBUILD
index 57e275e..8cdc5d3 100644
--- a/main/nagios-plugins/APKBUILD
+++ b/main/nagios-plugins/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Jeff Bilyk <[email-masked]>
 pkgname=nagios-plugins
 pkgver=1.4.15
-pkgrel=4
+pkgrel=5
 pkgdesc="Plugins for Nagios to check services on hosts"
 url="http://nagiosplugins.org"
 arch="all"
@@ -11,6 +11,7 @@ makedepends="net-snmp-tools openssl-dev openldap-dev mysql-dev postgresql-dev li
 source="http://downloads.sourceforge.net/nagiosplug/$pkgname-$pkgver.tar.gz"
 pkgusers="nagios"
 pkggroups="nagios"
+subpackages="$pkgname-contrib"
 
 build() {
 	cd "$srcdir/$pkgname-$pkgver"
@@ -34,4 +35,21 @@ package() {
 	make DESTDIR="$pkgdir" install
 }
 
+contrib() {
+	pkgdesc="Contrib Plugins for Nagios"
+	cd "$pkgdir"
+	mkdir -p ${pkgdir}-contrib
+	cd ${pkgdir}-contrib
+	mkdir -p "${pkgdir}"-contrib/usr/lib/nagios/plugins/
+	cp "$srcdir"/$pkgname-$pkgver/contrib/*.sh "${pkgdir}"-contrib/usr/lib/nagios/plugins/
+	cp "$srcdir"/$pkgname-$pkgver/contrib/*.pl "${pkgdir}"-contrib/usr/lib/nagios/plugins/
+	cp "$srcdir"/$pkgname-$pkgver/contrib/*.pm "${pkgdir}"-contrib/usr/lib/nagios/plugins/
+	cp "$srcdir"/$pkgname-$pkgver/contrib/*.py "${pkgdir}"-contrib/usr/lib/nagios/plugins/
+	chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.sh
+	chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.pl
+	chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.pm
+	chmod a+x "${pkgdir}"-contrib/usr/lib/nagios/plugins/*.py
+}
+	
+
 md5sums="56abd6ade8aa860b38c4ca4a6ac5ab0d  nagios-plugins-1.4.15.tar.gz"
-- 
1.7.5.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---