diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2009-02-05 09:56:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-09 09:30:28 +0000 |
commit | 51eb9ce8baa8bdd1037db8af0614a0dcb869caa7 (patch) | |
tree | ee963923026064d4b13ad8363d5a9559ca957d36 /testing/nagios/APKBUILD | |
parent | 645ddd35114c4c1affed339d929c6ae0d5100a23 (diff) | |
download | aports-51eb9ce8baa8bdd1037db8af0614a0dcb869caa7.tar.bz2 aports-51eb9ce8baa8bdd1037db8af0614a0dcb869caa7.tar.xz |
testing/nagios: new testing aport.
Diffstat (limited to 'testing/nagios/APKBUILD')
-rw-r--r-- | testing/nagios/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/nagios/APKBUILD b/testing/nagios/APKBUILD new file mode 100644 index 00000000..ede82bbd --- /dev/null +++ b/testing/nagios/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Carlo Landmeter <clandmeter at gmail> +# Maintainer: Carlo Landmeter <clandmeter at gmail> +pkgname=nagios +pkgver=3.1.0 +pkgrel=0 +pkgdesc="Popular monitoring tool" +url="http://www.nagios.org/" +license="GPL-2" +depends="gd perl" +makedepends="gd-dev pkgconfig perl-dev" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz +nagios.confd +nagios.initd +lighttpd-nagios.conf" +subpackages="${pkgname}-web" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc/nagios \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir=/usr/share/nagios \ + --localstatedir=/var \ + --bindir=/usr/sbin \ + --sbindir=/usr/lib/nagios/cgi-bin \ + --datadir=/usr/share/nagios/htdocs \ + --libexecdir=/usr/lib/nagios/plugins \ + --localstatedir=/var/nagios \ + --with-nagios-user=nobody \ + --with-nagios-group=nobody \ + --enable-embedded-perl \ + --with-perlcache + make all || return 1 + make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" install-config + make DESTDIR="$pkgdir" install-commandmode + + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + + +web() { + #depends="php lighttpd" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/share "$subpkgdir"/usr/ + install -m644 -D "$srcdir"/lighttpd-nagios.conf "$subpkgdir"/etc/lighttpd-nagios.conf +} + +md5sums="02d3b0e13f772481d0ac9e00bdc3e979 nagios-3.1.0.tar.gz +431dfe7403323e247a88b97beade5d78 nagios.confd +73fe73c8e31b8a59b5f3206bc90a74e8 nagios.initd +d63c36f47d26f1f71ae2faf272eec640 lighttpd-nagios.conf" |