wok-next annotate tinyproxy/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | 18143f296fc8 |
children | d6378d455338 |
rev | line source |
---|---|
al@20534 | 1 # SliTaz package receipt v2. |
slaxemulator@6982 | 2 |
slaxemulator@6982 | 3 PACKAGE="tinyproxy" |
devl547@11299 | 4 VERSION="1.8.3" |
slaxemulator@6982 | 5 CATEGORY="network" |
al@20534 | 6 SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems" |
slaxemulator@6982 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15590 | 8 LICENSE="GPL2" |
al@20534 | 9 WEB_SITE="https://banu.com/tinyproxy/" |
al@20534 | 10 |
slaxemulator@6982 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
gokhlayeh@8580 | 12 WGET_URL="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL" |
slaxemulator@6982 | 13 |
al@20534 | 14 compile_rules() { |
pascal@8974 | 15 patch -Np1 -i $stuff/no-docs-and-tests.diff |
al@20534 | 16 |
slaxemulator@6982 | 17 ./configure \ |
slaxemulator@6982 | 18 --sysconfdir=/etc/tinyproxy \ |
slaxemulator@6982 | 19 $CONFIGURE_ARGS && |
al@20534 | 20 make && |
al@20534 | 21 make DESTDIR=$DESTDIR install || return 1 |
al@20534 | 22 |
slaxemulator@6982 | 23 # Provide sane defaults |
al@20534 | 24 sed -i '/^#Listen/a\Listen 127.0.0.1' $install/etc/tinyproxy/tinyproxy.conf |
slaxemulator@6982 | 25 |
al@20534 | 26 install -Dm755 $stuff/tinyproxy $install/etc/init.d/tinyproxy |
slaxemulator@6982 | 27 } |
slaxemulator@6982 | 28 |
al@20534 | 29 genpkg_rules() { |
al@20534 | 30 copy @std |
slaxemulator@6982 | 31 } |