File: mkpackage

package info (click to toggle)
icinga 1.0.2-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 33,952 kB
  • ctags: 13,294
  • sloc: xml: 154,821; ansic: 99,198; sh: 14,585; sql: 5,852; php: 5,126; perl: 2,838; makefile: 1,268
file content (38 lines) | stat: -rwxr-xr-x 819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/sh

if [ "z$1" = "z" ] ; then
	echo You must specify an architecture to build for!
	exit 1
fi

case "$1" in
	solaris)
		LD_RUN_PATH=/usr/lib:/usr/local/lib
		autoreconf
		PATH=.:..:$PATH configure --with-cgiurl=/icinga/cgi-bin \
--with-htmurl=/icinga \
--with-lockfile=/var/run/icinga.pid \
--with-icinga-user=icinga \
--with-icinga-grp=icinga \
--with-command-user=icinga \
--with-command-grp=www \
--prefix=/usr/local \
--exec-prefix=/usr/local/sbin \
--bindir=/usr/local/sbin \
--sbindir=/usr/local/lib/icinga/cgi \
--libexecdir=/usr/local/lib/icinga/plugins \
--datadir=/usr/local/share/icinga \
--sysconfdir=/etc/icinga \
--localstatedir=/var/log/icinga \
--with-mail=/usr/bin/mailx
		make pkgclean
		make all
		make pkgset
		;;
	*)
		echo Platform $1 is not currently supported
		exit 1
		;;
esac

exit 0