summaryrefslogtreecommitdiff
path: root/pcr/icinga2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/icinga2/PKGBUILD')
-rw-r--r--pcr/icinga2/PKGBUILD93
1 files changed, 64 insertions, 29 deletions
diff --git a/pcr/icinga2/PKGBUILD b/pcr/icinga2/PKGBUILD
index d2c966c3e..8ccb63719 100644
--- a/pcr/icinga2/PKGBUILD
+++ b/pcr/icinga2/PKGBUILD
@@ -1,34 +1,28 @@
-# Maintainer (Arch): Malte Rabenseifner <mail@malte-rabenseifner.de>
-# Contributor (Arch): bebehei <bebe@bebehei.de>
+# Maintainer (AUR): Malte Rabenseifner <mail@malte-rabenseifner.de>
+# Maintainer (AUR): Julian Brost <julian@0x4a42.net>
+# Contributor (AUR): bebehei <bebe@bebehei.de>
-pkgname=icinga2
-pkgver=2.3.4
-pkgrel=3
-pkgdesc="A libre host, service and network monitoring program."
+# parabola changes and rationale:
+# - removed "open source" term from pkgdesc
+
+pkgname=('icinga2-common' 'icinga2' 'icinga-studio')
+pkgbase=icinga2
+pkgver=2.8.1
+pkgrel=1
+pkgdesc="A libre host, service and network monitoring program"
license=('GPL')
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
url="http://www.icinga.org"
-depends=('boost-libs' 'yajl')
-makedepends=('boost' 'cmake' 'libmariadbclient' 'postgresql-libs' 'yajl')
-optdepends=('monitoring-plugins: plugins needed for icinga checks'
- 'libmariadbclient: for MySQL support'
- 'postgresql-libs: for PostgreSQL support')
-backup=(etc/default/icinga2
- etc/icinga2/features-available/{api,checker,command,compatlog}.conf
- etc/icinga2/features-available/{debuglog,gelf,graphite,icingastatus}.conf
- etc/icinga2/features-available/{ido-mysql,ido-pgsql,livestatus,mainlog}.conf
- etc/icinga2/features-available/{notification,perfdata,statusdata,syslog}.conf
- etc/icinga2/{constants,icinga2,init,zones}.conf
- etc/logrotate.d/icinga2)
-install='icinga2.install'
-source=("https://github.com/Icinga/$pkgname/archive/v$pkgver.tar.gz")
-sha256sums=('3a6d23214c90c1e308df784254659c51962f4c49b13093aff2095e1dfa06cdaa')
+depends=('boost-libs' 'libedit' 'openssl' 'yajl')
+makedepends=('boost' 'cmake' 'libmariadbclient' 'postgresql-libs' 'wxgtk')
+source=("https://github.com/Icinga/$pkgbase/archive/v$pkgver.tar.gz")
+sha256sums=('83930bf95a5c6562cc31c37ddb01b361665497ef7001e9cc8763fd499a4d709d')
build() {
- mkdir -p "$srcdir/$pkgname-$pkgver/build"
- cd "$srcdir/$pkgname-$pkgver/build"
+ mkdir -p "$srcdir/$pkgbase-$pkgver/build"
+ cd "$srcdir/$pkgbase-$pkgver/build"
- cmake "$srcdir/$pkgname-$pkgver" \
+ cmake "$srcdir/$pkgbase-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DICINGA2_RUNDIR=/run \
@@ -37,13 +31,40 @@ build() {
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DICINGA2_SYSCONFIGFILE=/etc/default/icinga2 \
-DICINGA2_PLUGINDIR=/usr/lib/monitoring-plugins \
- -DUSE_SYSTEMD=ON
+ -DUSE_SYSTEMD=ON \
+ -DICINGA2_WITH_STUDIO=ON \
+ -DLOGROTATE_HAS_SU=OFF \
make
}
-package() {
- cd "$srcdir/$pkgname-$pkgver/build"
+package_icinga2-common() {
+ pkgdesc="Common files for Icinga2"
+
+ cd "$srcdir/$pkgbase-$pkgver/build"
+ make DESTDIR="$pkgdir" install
+ rm -r $pkgdir/{etc,run,var}
+ rm -r $pkgdir/usr/{bin,share}
+ rm -r $pkgdir/usr/lib/monitoring-plugins
+ rm -r $pkgdir/usr/lib/systemd
+ rm -r $pkgdir/usr/lib/icinga2/{prepare-dirs,safe-reload,sbin}
+}
+
+package_icinga2() {
+ depends=('icinga2-common')
+ optdepends=('monitoring-plugins: plugins needed for icinga checks'
+ 'libmariadbclient: for MySQL support'
+ 'postgresql-libs: for PostgreSQL support')
+ backup=(etc/default/icinga2
+ etc/icinga2/features-available/{api,checker,command,compatlog}.conf
+ etc/icinga2/features-available/{debuglog,gelf,graphite}.conf
+ etc/icinga2/features-available/{ido-mysql,ido-pgsql,influxdb,livestatus,mainlog}.conf
+ etc/icinga2/features-available/{notification,opentsdb,perfdata,statusdata,syslog}.conf
+ etc/icinga2/{constants,icinga2,init,zones}.conf
+ etc/logrotate.d/icinga2)
+ install='icinga2.install'
+
+ cd "$srcdir/$pkgbase-$pkgver/build"
make DESTDIR="$pkgdir" install
@@ -60,7 +81,7 @@ package() {
d /run/icinga2/cmd 2750 icinga icingacmd -
EOF
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgbase-$pkgver"
install -Dm644 tools/syntax/vim/ftdetect/icinga2.vim "$pkgdir/usr/share/vim/vimfiles/ftdetect/icinga2.vim"
install -Dm644 tools/syntax/vim/syntax/icinga2.vim "$pkgdir/usr/share/vim/vimfiles/syntax/icinga2.vim"
@@ -71,4 +92,18 @@ package() {
"$pkgdir/var/spool/icinga2" \
"$pkgdir/var/cache/icinga2" \
"$pkgdir/var/log/icinga2"
+
+ rm -r $pkgdir/usr/lib/icinga2/lib*
+ rm $pkgdir/usr/bin/icinga-studio
+}
+
+package_icinga-studio() {
+ pkgdesc="Graphical tool for debugging and testing the Icinga2 API"
+ depends=('icinga2-common' 'wxgtk')
+
+ cd "$srcdir/$pkgbase-$pkgver/build"
+ make DESTDIR="$pkgdir" install
+ rm -r $pkgdir/{etc,run,var}
+ rm -r $pkgdir/usr/{lib,share}
+ rm $pkgdir/usr/bin/icinga2
}