From 29addc9fb8477a690a70c6543658bc3c701b5450 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 30 Sep 2014 08:05:00 +0200 Subject: [PATCH] distcc: add a runit service; add a systemd build option. --- srcpkgs/distcc/files/run | 2 ++ srcpkgs/distcc/template | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/distcc/files/run diff --git a/srcpkgs/distcc/files/run b/srcpkgs/distcc/files/run new file mode 100644 index 0000000000..049209a060 --- /dev/null +++ b/srcpkgs/distcc/files/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec distccd --no-detach --daemon --user nobody --no-fork --allow 127.0.0.1 diff --git a/srcpkgs/distcc/template b/srcpkgs/distcc/template index a670f80df9..2a813b901f 100644 --- a/srcpkgs/distcc/template +++ b/srcpkgs/distcc/template @@ -1,7 +1,8 @@ # Template file for 'distcc' pkgname=distcc version=3.2rc1 -revision=6 +revision=7 +build_options="systemd" build_style=gnu-configure configure_args="--disable-Werror --with-gtk" hostmakedepends="pkg-config" @@ -24,7 +25,11 @@ post_install() { rm -rf ${DESTDIR}/usr/share/doc/distcc/example # systemd service - vinstall ${FILESDIR}/distccd.service 644 usr/lib/systemd/system + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/distccd.service 644 usr/lib/systemd/system + fi + vinstall ${FILESDIR}/run 755 etc/sv/distccd + ln -s /run/runit/supervise.distccd ${DESTDIR}/etc/sv/distccd/supervise # gcc wrappers vmkdir usr/lib/distcc/bin