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