wok-6.x annotate tinyproxy/receipt @ rev 14102
maxima: up 5.29.1
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Sat Feb 23 09:22:39 2013 -0800 (2013-02-23) |
parents | 20163fb97951 |
children | 600aaedb561d |
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@11309 | 25 make && make DESTDIR=$DESTDIR install |
slaxemulator@6982 | 26 # Provide sane defaults |
slaxemulator@11309 | 27 sed -i '/^#Listen/a\Listen 127.0.0.1' "$DESTDIR/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 |