wok view tinyproxy/receipt @ rev 8974

[q-z]*: use veriable
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 02 11:06:20 2011 +0100 (2011-03-02)
parents 25967da0e1af
children 20163fb97951
line source
1 # SliTaz package receipt.
3 PACKAGE="tinyproxy"
4 VERSION="1.8.2"
5 CATEGORY="network"
6 SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems."
7 MAINTAINER="slaxemulator@gmail.com"
8 BUILD_DEPENDS="wget"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://banu.com/tinyproxy/"
11 WGET_URL="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 patch -Np1 -i $stuff/no-docs-and-tests.diff
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 --sysconfdir=/etc/tinyproxy \
23 --localstatedir=/var \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$PWD/_pkg install
26 # Provide sane defaults
27 sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf"
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share $fs/etc/init.d
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/usr/share/tinyproxy $fs/usr/share
37 cp -a $_pkg/etc/tinyproxy $fs/etc
38 cp -a $stuff/tinyproxy $fs/etc/init.d
39 }