SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "icinga"

# SliTaz package receipt.

PACKAGE="icinga"
VERSION="1.14.2"
CATEGORY="system-tools"
SHORT_DESC="Open Source host, service and network monitoring program."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://icinga.com"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE-core/archive/v$VERSION/$TARBALL"

DEPENDS="libdbi"
BUILD_DEPENDS="libdbi-dev"

CONFIG_FILES="/etc/icinga/icinga.cfg"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/Icinga/icinga2/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure                    \
        --prefix=/usr                \
        --exec-prefix=/usr/bin            \
        --bindir=/usr/bin            \
        --sbindir=/usr/lib/icinga/cgi        \
        --libexecdir=/usr/lib/icinga/plugins    \
        --datadir=/usr/share/icinga        \
        --localstatedir=/var/log/icinga        \
        --sysconfdir=/etc/icinga        \
        --with-command-group=www        \
        --with-command-user=nobody        \
        --with-htmurl=/icinga            \
        --with-icinga-group=nogroup        \
        --with-icinga-user=nobody        \
        --with-lockfile=/var/run/icinga.pid    \
        --with-mail=/usr/bin/mailx        \
        $CONFIGURE_ARGS &&
    make    all &&
    make    install &&
    make    install-commandmode &&
    make    install-config &&
    make    install-idoutils &&
    make    install-webconf
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_folders    etc
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)