wok view apcupsd/receipt @ rev 19274
Up cookutils (809)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jul 05 01:51:14 2016 +0300 (2016-07-05) |
parents | 617dbdeb6f7e |
children | 11b5e93cb5f2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="apcupsd"
4 VERSION="3.14.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="APC UPS Power Management (daemon)"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.apcupsd.com/"
11 WGET_URL="http://netcologne.dl.sourceforge.net/project/$PACKAGE/$PACKAGE%20-%20Stable/$VERSION/$TARBALL"
13 BUILD_DEPENDS="slitaz-dev-pkgs libgd-dev libgd"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 sed -i 's/src platforms doc/src platforms/' Makefile
19 SHUTDOWN=/sbin/poweroff ac_cv_func_setpgrp_void=yes ./configure \
20 --enable-usb \
21 --disable-snmp \
22 --disable-net \
23 --with-upstype=usb \
24 --with-dev= \
25 --enable-threads \
26 --enable-cgi \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make && make install
33 for i in 5 8; do
34 mkdir -p $install/usr/share/man/man$i
35 cp -a $src/doc/*.$i $install/usr/share/man/man$i
36 done
37 cook_compress_manpages
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 }