wok-next diff polipo/receipt @ rev 20990

Remove mate116 stash
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 02 22:23:34 2018 +0300 (2018-10-02)
parents 9e01bc6321ea
children d5aab818505e
line diff
     1.1 --- a/polipo/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/polipo/receipt	Tue Oct 02 22:23:34 2018 +0300
     1.3 @@ -1,50 +1,43 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="polipo"
     1.8  VERSION="1.1.0"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Small and fast caching web proxy."
    1.11 +SHORT_DESC="Small and fast caching web proxy"
    1.12  MAINTAINER="paul@slitaz.org"
    1.13  LICENSE="MIT"
    1.14 +WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/"
    1.18  WGET_URL="http://www.pps.univ-paris-diderot.fr/~jch/software/files/$PACKAGE/$TARBALL"
    1.19  
    1.20 -DEPENDS=""
    1.21  BUILD_DEPENDS="texinfo"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	cd $src
    1.27 -	make all
    1.28 +compile_rules() {
    1.29 +	make all || return 1
    1.30 +
    1.31 +	mkdir -p \
    1.32 +		$install/usr/bin/ \
    1.33 +		$install/etc/polipo/ \
    1.34 +		$install/usr/share/polipo/www/doc/
    1.35 +	cp -a $src/polipo           $install/usr/bin
    1.36 +	cp -a $src/config.sample    $install/etc/polipo/config
    1.37 +	cp -a $src/forbidden.sample $install/etc/polipo/forbidden
    1.38 +	cp -a $src/localindex.html  $install/usr/share/polipo/www/index.html
    1.39 +	cp -a $src/html/*           $install/usr/share/polipo/www/doc
    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/bin $fs/etc/polipo $fs/usr/share/polipo/www/doc
    1.46 -	cp -a $src/polipo $fs/usr/bin
    1.47 -	cp -a $src/config.sample $fs/etc/polipo/config
    1.48 -	cp -a $src/forbidden.sample $fs/etc/polipo/forbidden
    1.49 -	cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html
    1.50 -	cp -a $src/html/* $fs/usr/share/polipo/www/doc
    1.51 +genpkg_rules() {
    1.52 +	copy @std
    1.53  }
    1.54  
    1.55 -# Create a disk cache.                  
    1.56 -post_install()                          
    1.57 -{  
    1.58 -	echo -n "Creating disk cache..."                                    
    1.59 +# Create a disk cache.
    1.60 +post_install() {
    1.61  	mkdir "$1/var/cache/polipo"
    1.62 -	chown tux.tux "$1/var/cache/polipo"
    1.63 -	status
    1.64 -}  
    1.65 +	chown tux.tux "$1/var/cache/polipo" # FIXME? tux?
    1.66 +}
    1.67  
    1.68  # Remove disk cache.
    1.69 -post_remove()
    1.70 -{
    1.71 -	echo -n "Removing disk cache..."
    1.72 +post_remove() {
    1.73  	rm -rf "$1/var/cache/polipo"
    1.74 -	status
    1.75 -}                                    
    1.76 -
    1.77 +}