32 lines
1019 B
Bash
32 lines
1019 B
Bash
# Template file for 'polipo'
|
|
pkgname=polipo
|
|
version=1.1.1
|
|
revision=3
|
|
build_options="systemd"
|
|
replaces="runit-void<20141013_2"
|
|
short_desc="A small and fast caching web proxy"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://www.pps.jussieu.fr/~jch/software/polipo/"
|
|
distfiles="http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-${version}.tar.gz"
|
|
checksum=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
|
|
|
|
do_build() {
|
|
make CFLAGS="$CFLAGS" ${makejobs}
|
|
}
|
|
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
|
|
if [ "$build_option_systemd" ]; then
|
|
# systemd service
|
|
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
|
|
fi
|
|
vsv polipo
|
|
}
|