aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-04 06:51:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-04 06:51:50 +0000
commit8d7190c2c9b5628b8c80d2c636cc151ecc2432f3 (patch)
tree089ccd761f4c3e497e3b3f83aad5243602d8a13c /testing
parent8136831e39f64dac7667d9318ea80ed821a12903 (diff)
downloadaports-8d7190c2c9b5628b8c80d2c636cc151ecc2432f3.tar.bz2
aports-8d7190c2c9b5628b8c80d2c636cc151ecc2432f3.tar.xz
main/nagios: moved from testing
Diffstat (limited to 'testing')
-rw-r--r--testing/nagios/APKBUILD59
-rw-r--r--testing/nagios/lighttpd-nagios.conf29
-rw-r--r--testing/nagios/nagios.confd9
-rw-r--r--testing/nagios/nagios.initd39
4 files changed, 0 insertions, 136 deletions
diff --git a/testing/nagios/APKBUILD b/testing/nagios/APKBUILD
deleted file mode 100644
index 1bde07a882..0000000000
--- a/testing/nagios/APKBUILD
+++ /dev/null
@@ -1,59 +0,0 @@
-# Contributor: Carlo Landmeter <clandmeter at gmail>
-# Maintainer: Carlo Landmeter <clandmeter at gmail>
-pkgname=nagios
-pkgver=3.2.1
-pkgrel=0
-pkgdesc="Popular monitoring tool"
-url="http://www.nagios.org/"
-license="GPL-2"
-depends="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
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- 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="d4655ee8c95c9679fd4fd53dac34bbe3 nagios-3.2.1.tar.gz
-431dfe7403323e247a88b97beade5d78 nagios.confd
-2ead8695b32222abe922692664aa9de1 nagios.initd
-d63c36f47d26f1f71ae2faf272eec640 lighttpd-nagios.conf"
diff --git a/testing/nagios/lighttpd-nagios.conf b/testing/nagios/lighttpd-nagios.conf
deleted file mode 100644
index cb7081d841..0000000000
--- a/testing/nagios/lighttpd-nagios.conf
+++ /dev/null
@@ -1,29 +0,0 @@
-###
-# Sample nagios lighttpd config
-###
-
-server.modules += ("mod_cgi")
-server.modules += ("mod_auth")
-server.modules += ("mod_alias")
-
-auth.require += ( "/nagios" =>
- (
- "method" => "digest",
- "realm" => "nagios",
- "require" => "valid-user"
- )
-)
-
-$HTTP["url"] =~ "^/nagios/cgi-bin/" {
- dir-listing.activate = "disable"
- cgi.assign = (
- ".pl" => "/usr/bin/perl",
- ".cgi" => ""
- )
-}
-
-alias.url += (
- "/nagios/cgi-bin" => "/usr/lib/nagios/cgi-bin",
- "/nagios" => "/usr/share/nagios/htdocs"
-)
-
diff --git a/testing/nagios/nagios.confd b/testing/nagios/nagios.confd
deleted file mode 100644
index 0abb80c6e8..0000000000
--- a/testing/nagios/nagios.confd
+++ /dev/null
@@ -1,9 +0,0 @@
-# Sample conf.d file for alpine linux
-
-#
-# Specify daemon $OPTS here.
-#
-
-OPTS=""
-USER="nobody"
-GROUP="nobody"
diff --git a/testing/nagios/nagios.initd b/testing/nagios/nagios.initd
deleted file mode 100644
index e0b3bcf0c3..0000000000
--- a/testing/nagios/nagios.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-
-# Sample init.d file for alpine linux.
-
-NAME=nagios
-DAEMON=/usr/sbin/$NAME
-
-depend() {
- need net
- after firewall
-}
-
-start() {
- ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet --background \
- --make-pidfile --pidfile /var/run/${NAME}.pid \
- --exec ${DAEMON} -- ${OPTS} /etc/nagios/nagios.cfg
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --quiet \
- --exec ${DAEMON} \
- --pidfile /var/run/${NAME}.pid \
- eend $?
-}
-
-reload() {
- ebegin "Reloading ${NAME}"
- if ! service_started "${NAME}" ; then
- eend 1 "${NAME} is not started"
- return 1
- fi
- start-stop-daemon --stop --oknodo --signal HUP \
- --exec ${DAEMON} --pidfile /var/run/${NAME}.pid
- eend $?
-}
-