wok annotate icinga/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 80b94d3254ba
children 20ad21d5532c
rev   line source
pascal@11223 1 # SliTaz package receipt.
pascal@11223 2
pascal@11223 3 PACKAGE="icinga"
Hans-G?nter@24659 4 VERSION="1.14.2"
pascal@11223 5 CATEGORY="system-tools"
Hans-G?nter@24659 6 SHORT_DESC="Open Source host, service and network monitoring program."
pascal@11223 7 MAINTAINER="erjo@slitaz.org"
pascal@15600 8 LICENSE="GPL2"
Hans-G?nter@24659 9 WEB_SITE="https://icinga.com"
Hans-G?nter@24659 10
pascal@11223 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@24659 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE-core/archive/v$VERSION/$TARBALL"
pascal@11223 13
Hans-G?nter@24659 14 DEPENDS="libdbi"
Hans-G?nter@24659 15 BUILD_DEPENDS="libdbi-dev"
Hans-G?nter@24659 16
Hans-G?nter@24659 17 CONFIG_FILES="/etc/icinga/icinga.cfg"
pascal@15600 18
pascal@24465 19 # What is the latest version available today?
pascal@24465 20 current_version()
pascal@24465 21 {
pascal@24465 22 wget -O - https://github.com/Icinga/icinga2/releases 2>/dev/null | \
pascal@24465 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24465 24 }
pascal@24465 25
pascal@11223 26 # Rules to configure and make the package.
pascal@11223 27 compile_rules()
pascal@11223 28 {
pascal@11223 29 cd $src
Hans-G?nter@24659 30 ./configure \
Hans-G?nter@24659 31 --prefix=/usr \
Hans-G?nter@24659 32 --exec-prefix=/usr/bin \
Hans-G?nter@24659 33 --bindir=/usr/bin \
Hans-G?nter@24659 34 --sbindir=/usr/lib/icinga/cgi \
Hans-G?nter@24659 35 --libexecdir=/usr/lib/icinga/plugins \
Hans-G?nter@24659 36 --datadir=/usr/share/icinga \
Hans-G?nter@24659 37 --localstatedir=/var/log/icinga \
Hans-G?nter@24659 38 --sysconfdir=/etc/icinga \
Hans-G?nter@24659 39 --with-command-group=www \
Hans-G?nter@24659 40 --with-command-user=nobody \
Hans-G?nter@24659 41 --with-htmurl=/icinga \
Hans-G?nter@24659 42 --with-icinga-group=nogroup \
Hans-G?nter@24659 43 --with-icinga-user=nobody \
Hans-G?nter@24659 44 --with-lockfile=/var/run/icinga.pid \
Hans-G?nter@24659 45 --with-mail=/usr/bin/mailx \
pascal@11223 46 $CONFIGURE_ARGS &&
Hans-G?nter@24659 47 make all &&
Hans-G?nter@24659 48 make install &&
Hans-G?nter@24659 49 make install-commandmode &&
Hans-G?nter@24659 50 make install-config &&
Hans-G?nter@24659 51 make install-idoutils &&
Hans-G?nter@24660 52 make install-webconf
pascal@11223 53 }
pascal@11223 54
pascal@11223 55 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11223 56 genpkg_rules()
pascal@11223 57 {
Hans-G?nter@24659 58 cook_copy_folders bin
Hans-G?nter@24660 59 cook_copy_folders etc
pascal@11223 60 }