void-packages/srcpkgs/polipo/template

39 lines
1.2 KiB
Text

# Template file for 'polipo'
pkgname=polipo
version=1.0.4.1
revision=2
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/"
distfiles="http://freehaven.net/~chrisd/polipo/polipo-${version}.tar.gz"
checksum=8d6fbfdec600d42823e483b0143704c6f179c349803028a4d2cef056b79f7cfa
long_desc="
Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy,
a proxy server). While Polipo was designed to be used by one person or a
small group of people, there is nothing that prevents it from being used
by a larger group."
do_build() {
make ${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
# systemd service
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
}
polipo_package() {
systemd_services="polipo.service on"
pkg_install() {
vmove usr
}
}