wok-4.x view tinyproxy/receipt @ rev 7604

mirror-tools: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 11 13:26:47 2010 +0100 (2010-12-11)
parents
children 25967da0e1af
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="https://banu.com/tinyproxy/"
10 WGET="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 # Download using real wget since the link is https and we need
16 # --no-check-certificate that works
17 if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
18 tar xjf $SOURCES_REPOSITORY/$TARBALL
19 else
20 [ -L /usr/bin/wget ] && tazpkg get-install wget --forced
21 wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
22 tar xjf $SOURCES_REPOSITORY/$TARBALL
23 fi
24 cd $src
25 patch -Np1 -i ../stuff/no-docs-and-tests.diff
26 ./configure \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 --sysconfdir=/etc/tinyproxy \
31 --localstatedir=/var \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$PWD/_pkg install
34 # Provide sane defaults
35 sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf"
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share $fs/etc/init.d
43 cp -a $_pkg/usr/sbin $fs/usr
44 cp -a $_pkg/usr/share/tinyproxy $fs/usr/share
45 cp -a $_pkg/etc/tinyproxy $fs/etc
46 cp -a stuff/tinyproxy $fs/etc/init.d
47 }