wok view tinyproxy/receipt @ rev 11303

Up: kismet (2011-08-R1)
author Alexander Medvedev <devl547@gmail.com>
date Sat Nov 12 22:29:28 2011 +0000 (2011-11-12)
parents 940b5937e496
children df64154dacd6
line source
1 # SliTaz package receipt.
3 PACKAGE="tinyproxy"
4 VERSION="1.8.3"
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 }