wok view tinyproxy/receipt @ rev 16264
Add some any arch packages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 05 10:12:34 2014 +0000 (2014-04-05) |
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 }