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