polipo: added runit service.

This commit is contained in:
Juan RP 2014-10-13 17:16:39 +02:00
parent b2694fcc6e
commit 8e1f07a37e
2 changed files with 6 additions and 7 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u nobody polipo

View file

@ -1,7 +1,9 @@
# Template file for 'polipo'
pkgname=polipo
version=1.1.1
revision=2
revision=3
build_options="systemd"
replaces="runit-void<20141013_2"
short_desc="A small and fast caching web proxy"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -9,15 +11,9 @@ 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
build_options="systemd"
if [ "$build_option_systemd" ]; then
systemd_services="polipo.service on"
fi
do_build() {
make CFLAGS="$CFLAGS" ${makejobs}
}
do_install() {
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man \
INFODIR=${DESTDIR}/usr/share/info \
@ -31,4 +27,5 @@ do_install() {
# systemd service
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
fi
vsv polipo
}