distcc: add a runit service; add a systemd build option.
This commit is contained in:
parent
0065835808
commit
29addc9fb8
2 changed files with 9 additions and 2 deletions
2
srcpkgs/distcc/files/run
Normal file
2
srcpkgs/distcc/files/run
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec distccd --no-detach --daemon --user nobody --no-fork --allow 127.0.0.1
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue