wok-6.x view tinyproxy/receipt @ rev 25558
Up libqcow (20221124)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 24 09:03:56 2023 +0000 (18 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tinyproxy"
4 VERSION="1.11.1"
5 CATEGORY="network"
6 SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://tinyproxy.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/tinyproxy/tinyproxy/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="automake"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i '/docs/d;/tests$/d;s|m4macros \\|m4macros|' Makefile.*
27 export LDFLAGS="$LDFLAGS -lrt"
29 ./autogen.sh &&
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 --sysconfdir=/etc \
35 --localstatedir=/var \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
40 # Provide sane defaults
41 sed -i -e '/^#Listen/a\Listen 127.0.0.1' \
42 -e 's|#PidFile "/var/run/tinyproxy/tinyproxy.pid"|PidFile "/var/run/tinyproxy.pid"|' \
43 "$DESTDIR/etc/tinyproxy/tinyproxy.conf"
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share
50 mkdir -p $fs/etc/init.d
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/share/tinyproxy $fs/usr/share
54 cp -a $install/etc/tinyproxy $fs/etc
55 cp -a $stuff/tinyproxy $fs/etc/init.d
56 }