wok-stable annotate tinyproxy/receipt @ rev 11299

Up: tinyproxy (1.8.3)
author Alexander Medvedev <devl547@gmail.com>
date Sat Nov 12 22:09:34 2011 +0000 (2011-11-12)
parents 940b5937e496
children df64154dacd6
rev   line source
slaxemulator@6982 1 # SliTaz package receipt.
slaxemulator@6982 2
slaxemulator@6982 3 PACKAGE="tinyproxy"
devl547@11299 4 VERSION="1.8.3"
slaxemulator@6982 5 CATEGORY="network"
slaxemulator@6982 6 SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems."
slaxemulator@6982 7 MAINTAINER="slaxemulator@gmail.com"
gokhlayeh@8580 8 BUILD_DEPENDS="wget"
slaxemulator@6982 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@6982 10 WEB_SITE="https://banu.com/tinyproxy/"
gokhlayeh@8580 11 WGET_URL="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
slaxemulator@6982 12
slaxemulator@6982 13 # Rules to configure and make the package.
slaxemulator@6982 14 compile_rules()
slaxemulator@6982 15 {
slaxemulator@6982 16 cd $src
pascal@8974 17 patch -Np1 -i $stuff/no-docs-and-tests.diff
slaxemulator@6982 18 ./configure \
slaxemulator@6982 19 --prefix=/usr \
slaxemulator@6982 20 --infodir=/usr/share/info \
slaxemulator@6982 21 --mandir=/usr/share/man \
slaxemulator@6982 22 --sysconfdir=/etc/tinyproxy \
slaxemulator@6982 23 --localstatedir=/var \
slaxemulator@6982 24 $CONFIGURE_ARGS &&
slaxemulator@6982 25 make && make DESTDIR=$PWD/_pkg install
slaxemulator@6982 26 # Provide sane defaults
slaxemulator@6982 27 sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf"
slaxemulator@6982 28
slaxemulator@6982 29 }
slaxemulator@6982 30
slaxemulator@6982 31 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6982 32 genpkg_rules()
slaxemulator@6982 33 {
slaxemulator@6982 34 mkdir -p $fs/usr/share $fs/etc/init.d
slaxemulator@6982 35 cp -a $_pkg/usr/sbin $fs/usr
slaxemulator@6982 36 cp -a $_pkg/usr/share/tinyproxy $fs/usr/share
slaxemulator@6982 37 cp -a $_pkg/etc/tinyproxy $fs/etc
pascal@8974 38 cp -a $stuff/tinyproxy $fs/etc/init.d
slaxemulator@6982 39 }
slaxemulator@6982 40