wok annotate tinyproxy/receipt @ rev 24907
updated minised (1.15 -> 1.16)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:44:11 2022 +0100 (2022-04-09) |
parents | 39c5255f1c90 |
children | 4a5dc3aa2af9 |
rev | line source |
---|---|
slaxemulator@6982 | 1 # SliTaz package receipt. |
slaxemulator@6982 | 2 |
slaxemulator@6982 | 3 PACKAGE="tinyproxy" |
pascal@21754 | 4 VERSION="1.10.0" |
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" |
pascal@15590 | 8 LICENSE="GPL2" |
pascal@21755 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21754 | 10 WEB_SITE="https://tinyproxy.github.io/" |
pascal@21754 | 11 WGET_URL="https://github.com/tinyproxy/tinyproxy/archive/$VERSION.tar.gz" |
slaxemulator@6982 | 12 |
pascal@21755 | 13 BUILD_DEPENDS="wget automake" |
pascal@15590 | 14 |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 18 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
slaxemulator@6982 | 21 # Rules to configure and make the package. |
slaxemulator@6982 | 22 compile_rules() |
slaxemulator@6982 | 23 { |
pascal@21755 | 24 sed -i '/docs/d;/tests$/d;s|m4macros \\|m4macros|' Makefile.* |
pascal@21755 | 25 ./autogen.sh |
slaxemulator@6982 | 26 ./configure \ |
slaxemulator@6982 | 27 --prefix=/usr \ |
slaxemulator@6982 | 28 --infodir=/usr/share/info \ |
slaxemulator@6982 | 29 --mandir=/usr/share/man \ |
pascal@21755 | 30 --sysconfdir=/etc \ |
slaxemulator@6982 | 31 --localstatedir=/var \ |
slaxemulator@6982 | 32 $CONFIGURE_ARGS && |
slaxemulator@11309 | 33 make && make DESTDIR=$DESTDIR install |
slaxemulator@6982 | 34 # Provide sane defaults |
slaxemulator@11309 | 35 sed -i '/^#Listen/a\Listen 127.0.0.1' "$DESTDIR/etc/tinyproxy/tinyproxy.conf" |
slaxemulator@6982 | 36 } |
slaxemulator@6982 | 37 |
slaxemulator@6982 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6982 | 39 genpkg_rules() |
slaxemulator@6982 | 40 { |
slaxemulator@6982 | 41 mkdir -p $fs/usr/share $fs/etc/init.d |
pascal@21755 | 42 cp -a $install/usr/bin $fs/usr |
pascal@15590 | 43 cp -a $install/usr/share/tinyproxy $fs/usr/share |
pascal@15590 | 44 cp -a $install/etc/tinyproxy $fs/etc |
pascal@8974 | 45 cp -a $stuff/tinyproxy $fs/etc/init.d |
slaxemulator@6982 | 46 } |