wok diff polipo/receipt @ rev 6415

octave: do not build doc (needs tetex)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 25 23:58:17 2010 +0200 (2010-09-25)
parents
children 51a1ebbda768
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/polipo/receipt	Sat Sep 25 23:58:17 2010 +0200
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="polipo"
     1.7 +VERSION="1.0.4.1"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Small and fast caching web proxy."
    1.10 +MAINTAINER="paul@slitaz.org"
    1.11 +DEPENDS=""
    1.12 +BUILD_DEPENDS="texinfo"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/"
    1.15 +WGET_URL="http://freehaven.net/~chrisd/polipo/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	make all
    1.22 +}
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	mkdir -p $fs/usr/bin $fs/etc/polipo $fs/usr/share/polipo/www/doc
    1.28 +	cp -a $src/polipo $fs/usr/bin
    1.29 +	cp -a $src/config.sample $fs/etc/polipo/config
    1.30 +	cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
    1.31 +	cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
    1.32 +	cp -a $src/html/* $fs/usr/share/polipo/www/doc
    1.33 +}
    1.34 +
    1.35 +# Create a disk cache.                  
    1.36 +post_install()                          
    1.37 +{  
    1.38 +	echo -n "Creating disk cache..."                                    
    1.39 +	mkdir $1/var/cache/polipo          
    1.40 +	chown tux.tux $1/var/cache/polipo  
    1.41 +	status
    1.42 +}  
    1.43 +
    1.44 +# Remove disk cache.
    1.45 +post_remove()
    1.46 +{
    1.47 +	echo -n "Removing disk cache..."
    1.48 +	rm -rf $1/var/cache/polipo
    1.49 +	status
    1.50 +}                                    
    1.51 +