blob: cd4df9cddbeaa66f909a42b082c6f40465f49edb (
plain)
1 # Description: Nagios is an open source host, service and network monitoring program.
2 # URL: http://www.nagios.org/projects/nagioscore
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Depends on: libgd fontconfig apache
5
6 name=nagios
7 version=4.0.8
8 release=1
9 source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
10
11 build () {
12 cd $name-$version
13
14 ./configure --prefix=/usr/share/$name \
15 --datadir=/usr/share/$name \
16 --libexecdir=/usr/lib/$name/plugins \
17 --localstatedir=/var/spool/$name \
18 --bindir=/usr/bin \
19 --sbindir=/usr/lib/$name/cgi-bin \
20 --sysconfdir=/etc/$name \
21 --with-checkresult-dir=/var/spool/$name/checkresults \
22 --with-httpd-conf=/etc/apache/extra \
23 --with-nagios-user=nagios \
24 --with-nagios-group=nagios \
25 --with-command-group=nagcmd \
26 --enable-event-broker \
27 --enable-embedded-perl \
28 --with-perlcache \
29 STRIP=/bin/true
30
31 make all
32
33 install -d $PKG/etc/{$name,apache/extra,rc.d}
34 install -d $PKG/usr/{lib,share}/$name
35 install -d $PKG/var/spool/$name
36
37 make DESTDIR=$PKG \
38 install install-init install-config install-commandmode install-webconf
39
40 chown -R root:root $PKG/usr/bin
41 chown -R nagios:nagios $PKG/usr/share/$name
42 chmod 2755 $PKG/var/spool/$name/rw
43 chown nagios:nagcmd $PKG/var/spool/$name/rw
44
45 find $PKG/usr/bin -type f -exec chmod 0775 {} \;
46 find $PKG/etc/$name -type f -name '*.cfg' -exec chmod 0664 {} \;
47 find $PKG/usr/share/$name -type f -exec chmod 0644 {} \;
48 }
|