2012-12-11 15:28:23 +00:00
|
|
|
# Template file for 'polipo'
|
|
|
|
pkgname=polipo
|
2014-08-21 07:16:03 +00:00
|
|
|
version=1.1.1
|
2014-08-21 07:18:36 +00:00
|
|
|
revision=2
|
2012-12-11 15:28:23 +00: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 07:16:03 +00:00
|
|
|
distfiles="http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-${version}.tar.gz"
|
|
|
|
checksum=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
|
|
|
|
|
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
systemd_services="polipo.service on"
|
|
|
|
fi
|
2012-12-11 15:28:23 +00:00
|
|
|
|
|
|
|
do_build() {
|
2014-08-21 07:18:36 +00:00
|
|
|
make CFLAGS="$CFLAGS" ${makejobs}
|
2012-12-11 15:28:23 +00: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 07:16:03 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
# systemd service
|
|
|
|
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2012-12-11 15:28:23 +00:00
|
|
|
}
|