From 8e1f07a37e4b1777f13ff3d632276b139d073485 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2014 17:16:39 +0200 Subject: [PATCH] polipo: added runit service. --- srcpkgs/polipo/files/polipo/run | 2 ++ srcpkgs/polipo/template | 11 ++++------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100755 srcpkgs/polipo/files/polipo/run diff --git a/srcpkgs/polipo/files/polipo/run b/srcpkgs/polipo/files/polipo/run new file mode 100755 index 00000000000..2380d40ebf1 --- /dev/null +++ b/srcpkgs/polipo/files/polipo/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec chpst -u nobody polipo diff --git a/srcpkgs/polipo/template b/srcpkgs/polipo/template index 4453566008f..c4dc72e11a5 100644 --- a/srcpkgs/polipo/template +++ b/srcpkgs/polipo/template @@ -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 " 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 }