icinga2: multiple misc fixes.

- fix INSTALL script.
- remove /etc/init.d.
- remove useless <account>_groups.
- remove redundant configure args.
- misc tweaks.
This commit is contained in:
Juan RP 2016-07-30 07:05:47 +02:00
parent 68bd4975f3
commit 7a2ef39dcd
2 changed files with 12 additions and 9 deletions

View File

@ -1,3 +1,7 @@
chown icinga:icinga -R /etc/icinga2; case "$ACTION" in
install -gicinga -oicinga -d /var/log/icinga2 post)
install -gicinga -oicinga -d /var/lib/icinga2 chown -R icinga:icinga etc/icinga2
install -gicinga -oicinga -d var/log/icinga2
install -gicinga -oicinga -d var/lib/icinga2
;;
esac

View File

@ -1,14 +1,14 @@
# Template file for 'icinga2' # Template file for 'icinga2'
pkgname=icinga2 pkgname=icinga2
version=2.4.10 version=2.4.10
revision=1 revision=2
short_desc="Icinga is a scalable and extensible monitoring system"
nocross=yes
build_style=cmake build_style=cmake
configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc -DICINGA2_RUNDIR=/run -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins/" configure_args="-DICINGA2_RUNDIR=/run -DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins/"
hostmakedepends="flex git" hostmakedepends="flex git"
makedepends="libressl-devel boost-devel yajl-devel libmysqlclient-devel libedit-devel postgresql-libs-devel" makedepends="libressl-devel boost-devel yajl-devel libmysqlclient-devel libedit-devel postgresql-libs-devel"
depends="monitoring-plugins" depends="monitoring-plugins"
conf_files="/etc/$pkgname/*.conf /etc/$pkgname/conf.d/*.conf /etc/$pkgname/features-enabled/*.conf"
short_desc="A scalable and extensible monitoring system"
maintainer="Corné Oppelaar <hello@eaterofco.de>" maintainer="Corné Oppelaar <hello@eaterofco.de>"
license="GPL-2" license="GPL-2"
homepage="https://www.icinga.org/" homepage="https://www.icinga.org/"
@ -18,10 +18,9 @@ checksum="c2963430503c382cc4d5083b05731c0b965b5ffa960e900c0827b83789f0425e"
system_accounts="icinga" system_accounts="icinga"
system_groups="icingacmd" system_groups="icingacmd"
icinga_pgroup="icingacmd" icinga_pgroup="icingacmd"
icinga_groups="icinga"
post_install() { post_install() {
vsv icinga2 vsv icinga2
# remove useless files # remove useless files
rm -rf "${DESTDIR}/etc/sysconfig" rm -rf ${DESTDIR}/etc/{init.d,sysconfig}
} }