wok-next view nut/receipt @ rev 17759
hsetroot, wbar: link with libX11
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 10 08:31:24 2015 +0100 (2015-03-10) |
parents | 10e6c72b2c15 |
children | e6615350078d |
line source
1 # SliTaz package receipt.
3 PACKAGE="nut"
4 VERSION="2.6.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network UPS Tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.networkupstools.org"
11 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL"
12 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \
13 /etc/upsmon.conf /etc/upssched.conf"
15 DEPENDS="libusb libusb-compat expat neon zlib libssl libwrap"
16 BUILD_DEPENDS="libusb-dev libusb-compat-dev expat-dev neon-dev zlib-dev \
17 openssl-dev libwrap-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 --sysconfdir=/etc \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share $fs/etc
36 for i in $install/etc/*.sample ; do
37 cp -a $i $fs/etc/$(basename $i .sample)
38 done
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/sbin $fs/usr
42 cp $install/usr/share/cmdvartab $fs/usr/share
43 cp $install/usr/share/driver.list $fs/usr/share
44 }