# SliTaz package receipt. PACKAGE="apcupsd" VERSION="3.14.9" CATEGORY="system-tools" SHORT_DESC="APC UPS Power Management (daemon)" MAINTAINER="devel@slitaz.org" BUILD_DEPENDS="slitaz-dev-pkgs libgd-dev libgd" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.apcupsd.com/" WGET_URL="http://netcologne.dl.sourceforge.net/project/$PACKAGE/$PACKAGE%20-%20Stable/$VERSION/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src 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 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $_pkg/* $fs }