wok view tinyproxy/receipt @ rev 18902

Up: 2.2.5 to 2.2.8 - Add: description file - Fix: display msg /usr/lib/bluefish
author Leonardo Laporte <hackdorte@sapo.pt>
date Fri Feb 19 07:04:57 2016 -0200 (2016-02-19)
parents df64154dacd6
children 8b9f768b711e
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://banu.com/tinyproxy/"
11 WGET_URL="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
13 BUILD_DEPENDS="wget"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -Np1 -i $stuff/no-docs-and-tests.diff
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --sysconfdir=/etc/tinyproxy \
25 --localstatedir=/var \
26 $CONFIGURE_ARGS &&
27 make && make DESTDIR=$DESTDIR install
28 # Provide sane defaults
29 sed -i '/^#Listen/a\Listen 127.0.0.1' "$DESTDIR/etc/tinyproxy/tinyproxy.conf"
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share $fs/etc/init.d
37 cp -a $install/usr/sbin $fs/usr
38 cp -a $install/usr/share/tinyproxy $fs/usr/share
39 cp -a $install/etc/tinyproxy $fs/etc
40 cp -a $stuff/tinyproxy $fs/etc/init.d
41 }