wok diff tinyproxy/receipt @ rev 8198

imported patch toolchain/m4.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:50 2011 +0100 (2011-01-27)
parents
children 25967da0e1af
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tinyproxy/receipt	Thu Jan 27 00:20:50 2011 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="tinyproxy"
     1.7 +VERSION="1.8.2"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="A light-weight HTTP proxy daemon for POSIX operating systems."
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="https://banu.com/tinyproxy/"
    1.13 +WGET="https://banu.com/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	# Download using real wget since the link is https and we need 
    1.19 +	# --no-check-certificate that works
    1.20 +	if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then
    1.21 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.22 +	else
    1.23 +		[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    1.24 +		wget -O $SOURCES_REPOSITORY/$TARBALL --no-check-certificate "$WGET"
    1.25 +		tar xjf $SOURCES_REPOSITORY/$TARBALL
    1.26 +	fi
    1.27 +	cd $src
    1.28 +	patch -Np1 -i ../stuff/no-docs-and-tests.diff
    1.29 +	./configure \
    1.30 +		--prefix=/usr \
    1.31 +		--infodir=/usr/share/info \
    1.32 +		--mandir=/usr/share/man \
    1.33 +		--sysconfdir=/etc/tinyproxy \
    1.34 +		--localstatedir=/var \
    1.35 +		$CONFIGURE_ARGS &&
    1.36 +	make && make DESTDIR=$PWD/_pkg install
    1.37 +	# Provide sane defaults
    1.38 +  	sed -i '/^#Listen/a\Listen 127.0.0.1' "$PWD/_pkg/etc/tinyproxy/tinyproxy.conf"
    1.39 +
    1.40 +}
    1.41 +
    1.42 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.43 +genpkg_rules()
    1.44 +{
    1.45 +	mkdir -p $fs/usr/share $fs/etc/init.d
    1.46 +	cp -a $_pkg/usr/sbin $fs/usr
    1.47 +	cp -a $_pkg/usr/share/tinyproxy $fs/usr/share
    1.48 +	cp -a $_pkg/etc/tinyproxy $fs/etc
    1.49 +	cp -a stuff/tinyproxy $fs/etc/init.d
    1.50 +}
    1.51 +