wok-current annotate ziproxy/receipt @ rev 25444
Up firefox-official (104.0)
| author | Pascal Bellard <pascal.bellard@slitaz.org> | 
|---|---|
| date | Sun Sep 04 18:56:05 2022 +0000 (2022-09-04) | 
| parents | b753ca9ee288 | 
| children | 7dd01dedad38 | 
| rev | line source | 
|---|---|
| pascal@12747 | 1 # SliTaz package receipt. | 
| pascal@12747 | 2 | 
| pascal@12747 | 3 PACKAGE="ziproxy" | 
| Hans-Günter@22332 | 4 VERSION="3.3.1" | 
| pascal@12747 | 5 CATEGORY="network" | 
| pascal@12747 | 6 SHORT_DESC="HTTP traffic compressor." | 
| pascal@12747 | 7 MAINTAINER="pascal.bellard@slitaz.org" | 
| pascal@15002 | 8 LICENSE="GPL2" | 
| Hans-Günter@22332 | 9 WEB_SITE="http://ziproxy.sourceforge.net/" | 
| Hans-Günter@22332 | 10 | 
| pascal@12747 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" | 
| pascal@12747 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" | 
| Hans-Günter@22332 | 13 | 
| Hans-Günter@22332 | 14 DEPENDS="cyrus-sasl giflib jasper jpeg libpng libsasl zlib" | 
| Hans-Günter@22332 | 15 BUILD_DEPENDS="cyrus-sasl-dev giflib-dev jasper-dev jpeg-dev | 
| Hans-Günter@22332 | 16 libpng-dev zlib-dev" | 
| Hans-Günter@22332 | 17 | 
| pascal@12748 | 18 CONFIG_FILES="/etc/ziproxy" | 
| pascal@12747 | 19 | 
| pascal@24102 | 20 current_version() | 
| pascal@24102 | 21 { | 
| pascal@24102 | 22 wget -O - $WEB_SITE 2>/dev/null | \ | 
| pascal@24102 | 23 sed '/released/!d;s|.*proxy ||;s| rel.*||;q' | 
| pascal@24102 | 24 } | 
| pascal@24102 | 25 | 
| pascal@12747 | 26 # Rules to configure and make the package. | 
| pascal@12747 | 27 compile_rules() | 
| pascal@12747 | 28 { | 
| pascal@22365 | 29 sed -i 's|DGifOpen.*input|&,NULL|' src/image.c | 
| pascal@22365 | 30 sed -i 's|DGifCloseFile(GifFile|&,NULL|' src/image.c | 
| Hans-Günter@22332 | 31 ./configure \ | 
| Hans-Günter@22332 | 32 --prefix=/usr \ | 
| Hans-Günter@22332 | 33 --mandir=/usr/share/man \ | 
| Hans-Günter@22332 | 34 --localstatedir=/var \ | 
| Hans-Günter@22332 | 35 $CONFIGURE_ARGS && | 
| pascal@12747 | 36 make && | 
| pascal@12747 | 37 make DESTDIR=$DESTDIR install | 
| pascal@12747 | 38 } | 
| pascal@12747 | 39 | 
| pascal@12747 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. | 
| pascal@12747 | 41 genpkg_rules() | 
| pascal@12747 | 42 { | 
| pascal@12747 | 43 mkdir -p $fs/usr | 
| Hans-Günter@22332 | 44 | 
| Hans-Günter@22332 | 45 cp -a $install/usr/bin $fs/usr | 
| Hans-Günter@22332 | 46 cp -a $src/etc $fs | 
| Hans-Günter@22332 | 47 cp -a $src/var $fs | 
| Hans-Günter@22332 | 48 | 
| Hans-Günter@22332 | 49 chown -R root.root $fs | 
| Hans-Günter@22332 | 50 } |