From 5b0aca3085b15f5cdb3412df865029095b421257 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 13 Oct 2014 17:05:56 +0200 Subject: [PATCH] rpcbind: added runit service. --- srcpkgs/rpcbind/files/rpcbind/run | 2 ++ srcpkgs/rpcbind/template | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100755 srcpkgs/rpcbind/files/rpcbind/run diff --git a/srcpkgs/rpcbind/files/rpcbind/run b/srcpkgs/rpcbind/files/rpcbind/run new file mode 100755 index 00000000000..65fab4dec96 --- /dev/null +++ b/srcpkgs/rpcbind/files/rpcbind/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec rpcbind -f diff --git a/srcpkgs/rpcbind/template b/srcpkgs/rpcbind/template index 492e5010c2e..544f1f45408 100644 --- a/srcpkgs/rpcbind/template +++ b/srcpkgs/rpcbind/template @@ -1,12 +1,11 @@ # Template file for 'rpcbind' pkgname=rpcbind version=0.2.1 -revision=3 +revision=4 build_style=gnu-configure configure_args="--enable-warmstarts --with-statedir=/run --with-rpcuser=rpc" hostmakedepends="pkg-config" makedepends="libtirpc-devel" -system_accounts="rpc" short_desc="Converts RPC program numbers into universal addresses" maintainer="Juan RP " homepage="http://rpcbind.sourceforge.net" @@ -15,11 +14,11 @@ distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2" checksum=da169ff877a5a07581fad50a9a808ac6e96f0c277a3df49a7ef005778428496e build_options="systemd" -if [ "$build_option_systemd" ]; then - systemd_services="${pkgname}.service on" -fi +system_accounts="rpc" +replaces="runit-void<20141013_2" post_install() { + vsv rpcbind vinstall man/rpcbind.8 644 usr/share/man/man8 vinstall man/rpcinfo.8 644 usr/share/man/man8 if [ "$build_option_systemd" ]; then