SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "apcupsd"

# SliTaz package receipt.

PACKAGE="apcupsd"
VERSION="3.14.14"
CATEGORY="system-tools"
SHORT_DESC="APC UPS Power Management (daemon)."
MAINTAINER="maintainer@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://www.apcupsd.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

BUILD_DEPENDS="libgd libgd-dev slitaz-dev-pkgs"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/apcupsd%20-%20Stable/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/src platforms doc/src platforms/' Makefile
    SHUTDOWN=/sbin/poweroff ac_cv_func_setpgrp_void=yes \
    ./configure                \
        --enable-usb            \
        --disable-snmp            \
        --disable-net            \
        --with-upstype=usb        \
        --with-dev=            \
        --enable-threads        \
        --enable-cgi            \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make install

    cook_pick_manpages $src/doc/*.5 $src/doc/*.8
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    rm -r $fs/usr/share/man
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)