void-packages/srcpkgs/polipo/template

32 lines
1016 B
Plaintext
Raw Normal View History

2012-12-11 16:28:23 +01:00
# Template file for 'polipo'
pkgname=polipo
2014-08-21 09:16:03 +02:00
version=1.1.1
2014-10-13 17:16:39 +02:00
revision=3
build_options="systemd"
replaces="runit-void<20141013_2"
2012-12-11 16:28:23 +01:00
short_desc="A small and fast caching web proxy"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.pps.jussieu.fr/~jch/software/polipo/"
2014-08-21 09:16:03 +02:00
distfiles="http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-${version}.tar.gz"
checksum=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
2012-12-11 16:28:23 +01:00
do_build() {
2014-08-21 09:18:36 +02:00
make CFLAGS="$CFLAGS" ${makejobs}
2012-12-11 16:28:23 +01:00
}
do_install() {
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man \
INFODIR=${DESTDIR}/usr/share/info \
LOCAL_ROOT=${DESTDIR}/usr/share/polipo/www \
DISK_CACHE_ROOT=${DESTDIR}/var/cache/polipo install
# install sample config files
vinstall config.sample 644 usr/share/examples/polipo
vinstall forbidden.sample 644 usr/share/examples/polipo
2014-08-21 09:16:03 +02:00
if [ "$build_option_systemd" ]; then
# systemd service
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
fi
2014-10-13 17:16:39 +02:00
vsv polipo
2012-12-11 16:28:23 +01:00
}