mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
polipo: added runit service.
This commit is contained in:
parent
b2694fcc6e
commit
8e1f07a37e
2 changed files with 6 additions and 7 deletions
2
srcpkgs/polipo/files/polipo/run
Executable file
2
srcpkgs/polipo/files/polipo/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec chpst -u nobody polipo
|
|
@ -1,7 +1,9 @@
|
||||||
# Template file for 'polipo'
|
# Template file for 'polipo'
|
||||||
pkgname=polipo
|
pkgname=polipo
|
||||||
version=1.1.1
|
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"
|
short_desc="A small and fast caching web proxy"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
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"
|
distfiles="http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-${version}.tar.gz"
|
||||||
checksum=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
|
checksum=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
|
||||||
|
|
||||||
build_options="systemd"
|
|
||||||
if [ "$build_option_systemd" ]; then
|
|
||||||
systemd_services="polipo.service on"
|
|
||||||
fi
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make CFLAGS="$CFLAGS" ${makejobs}
|
make CFLAGS="$CFLAGS" ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man \
|
make PREFIX=${DESTDIR}/usr MANDIR=${DESTDIR}/usr/share/man \
|
||||||
INFODIR=${DESTDIR}/usr/share/info \
|
INFODIR=${DESTDIR}/usr/share/info \
|
||||||
|
@ -31,4 +27,5 @@ do_install() {
|
||||||
# systemd service
|
# systemd service
|
||||||
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
|
vinstall ${FILESDIR}/polipo.service 644 usr/lib/systemd/system
|
||||||
fi
|
fi
|
||||||
|
vsv polipo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue