wok view tinyproxy/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (15 months ago) |
parents | 4a5dc3aa2af9 |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i '/docs/d;/tests$/d;s|m4macros \\|m4macros|' Makefile.*
28 export LDFLAGS="$LDFLAGS -lrt"
30 ./autogen.sh &&
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 --sysconfdir=/etc \
36 --localstatedir=/var \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install DESTDIR=$DESTDIR
41 # Provide sane defaults
42 sed -i -e '/^#Listen/a\Listen 127.0.0.1' \
43 -e 's|#PidFile "/var/run/tinyproxy/tinyproxy.pid"|PidFile "/var/run/tinyproxy.pid"|' \
44 "$DESTDIR/etc/tinyproxy/tinyproxy.conf"
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share
51 mkdir -p $fs/etc/init.d
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/share/tinyproxy $fs/usr/share
55 cp -a $install/etc/tinyproxy $fs/etc
56 cp -a $stuff/tinyproxy $fs/etc/init.d
57 }