wok view icinga/receipt @ rev 24465

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