wok-6.x annotate polipo/receipt @ rev 6928
Up: elfutils to 0.149. Fixed it to build in clean chroot. Fixed it also to download sources with real wget by since sources are on https host. So now elfutils can download its sources just fine.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 22 22:36:22 2010 +0000 (2010-10-22) |
parents | |
children | 51a1ebbda768 |
rev | line source |
---|---|
paul@6383 | 1 # SliTaz package receipt. |
paul@6383 | 2 |
paul@6383 | 3 PACKAGE="polipo" |
paul@6383 | 4 VERSION="1.0.4.1" |
paul@6383 | 5 CATEGORY="network" |
paul@6383 | 6 SHORT_DESC="Small and fast caching web proxy." |
paul@6383 | 7 MAINTAINER="paul@slitaz.org" |
paul@6383 | 8 DEPENDS="" |
paul@6383 | 9 BUILD_DEPENDS="texinfo" |
paul@6383 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@6383 | 11 WEB_SITE="http://www.pps.jussieu.fr/~jch/software/polipo/" |
paul@6383 | 12 WGET_URL="http://freehaven.net/~chrisd/polipo/$TARBALL" |
paul@6383 | 13 |
paul@6383 | 14 # Rules to configure and make the package. |
paul@6383 | 15 compile_rules() |
paul@6383 | 16 { |
paul@6383 | 17 cd $src |
paul@6383 | 18 make all |
paul@6383 | 19 } |
paul@6383 | 20 |
paul@6383 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@6383 | 22 genpkg_rules() |
paul@6383 | 23 { |
paul@6383 | 24 mkdir -p $fs/usr/bin $fs/etc/polipo $fs/usr/share/polipo/www/doc |
paul@6383 | 25 cp -a $src/polipo $fs/usr/bin |
paul@6383 | 26 cp -a $src/config.sample $fs/etc/polipo/config |
paul@6383 | 27 cp -a $src/forbidden.sample $fs/etc/polipo/forbidden |
paul@6383 | 28 cp -a $src/localindex.html $fs/usr/share/polipo/www/index.html |
paul@6383 | 29 cp -a $src/html/* $fs/usr/share/polipo/www/doc |
paul@6383 | 30 } |
paul@6383 | 31 |
paul@6383 | 32 # Create a disk cache. |
paul@6383 | 33 post_install() |
paul@6383 | 34 { |
paul@6383 | 35 echo -n "Creating disk cache..." |
paul@6383 | 36 mkdir $1/var/cache/polipo |
paul@6383 | 37 chown tux.tux $1/var/cache/polipo |
paul@6383 | 38 status |
paul@6383 | 39 } |
paul@6383 | 40 |
paul@6383 | 41 # Remove disk cache. |
paul@6383 | 42 post_remove() |
paul@6383 | 43 { |
paul@6383 | 44 echo -n "Removing disk cache..." |
paul@6383 | 45 rm -rf $1/var/cache/polipo |
paul@6383 | 46 status |
paul@6383 | 47 } |
paul@6383 | 48 |