wok annotate tinyproxy/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (5 months ago) |
parents | 4a5dc3aa2af9 |
children |
rev | line source |
---|---|
slaxemulator@6982 | 1 # SliTaz package receipt. |
slaxemulator@6982 | 2 |
slaxemulator@6982 | 3 PACKAGE="tinyproxy" |
Hans-G?nter@25358 | 4 VERSION="1.11.1" |
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" |
Hans-G?nter@25358 | 9 WEB_SITE="https://tinyproxy.github.io/" |
Hans-G?nter@25358 | 10 |
pascal@21755 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@21754 | 12 WGET_URL="https://github.com/tinyproxy/tinyproxy/archive/$VERSION.tar.gz" |
slaxemulator@6982 | 13 |
Hans-G?nter@25358 | 14 BUILD_DEPENDS="automake" |
pascal@15590 | 15 |
pascal@25601 | 16 # What is the latest version available today? |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
slaxemulator@6982 | 23 # Rules to configure and make the package. |
slaxemulator@6982 | 24 compile_rules() |
slaxemulator@6982 | 25 { |
pascal@21755 | 26 sed -i '/docs/d;/tests$/d;s|m4macros \\|m4macros|' Makefile.* |
Hans-G?nter@25358 | 27 |
Hans-G?nter@25358 | 28 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@25358 | 29 |
Hans-G?nter@25358 | 30 ./autogen.sh && |
Hans-G?nter@25358 | 31 ./configure \ |
Hans-G?nter@25358 | 32 --prefix=/usr \ |
Hans-G?nter@25358 | 33 --infodir=/usr/share/info \ |
Hans-G?nter@25358 | 34 --mandir=/usr/share/man \ |
Hans-G?nter@25358 | 35 --sysconfdir=/etc \ |
Hans-G?nter@25358 | 36 --localstatedir=/var \ |
slaxemulator@6982 | 37 $CONFIGURE_ARGS && |
Hans-G?nter@25358 | 38 make && |
Hans-G?nter@25358 | 39 make install DESTDIR=$DESTDIR |
Hans-G?nter@25358 | 40 |
slaxemulator@6982 | 41 # Provide sane defaults |
Hans-G?nter@25358 | 42 sed -i -e '/^#Listen/a\Listen 127.0.0.1' \ |
Hans-G?nter@25358 | 43 -e 's|#PidFile "/var/run/tinyproxy/tinyproxy.pid"|PidFile "/var/run/tinyproxy.pid"|' \ |
Hans-G?nter@25358 | 44 "$DESTDIR/etc/tinyproxy/tinyproxy.conf" |
slaxemulator@6982 | 45 } |
slaxemulator@6982 | 46 |
slaxemulator@6982 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6982 | 48 genpkg_rules() |
slaxemulator@6982 | 49 { |
Hans-G?nter@25358 | 50 mkdir -p $fs/usr/share |
Hans-G?nter@25358 | 51 mkdir -p $fs/etc/init.d |
Hans-G?nter@25358 | 52 |
Hans-G?nter@25358 | 53 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25358 | 54 cp -a $install/usr/share/tinyproxy $fs/usr/share |
Hans-G?nter@25358 | 55 cp -a $install/etc/tinyproxy $fs/etc |
Hans-G?nter@25358 | 56 cp -a $stuff/tinyproxy $fs/etc/init.d |
slaxemulator@6982 | 57 } |