mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
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'
|
# Template file for 'distcc'
|
||||||
pkgname=distcc
|
pkgname=distcc
|
||||||
version=3.2rc1
|
version=3.2rc1
|
||||||
revision=6
|
revision=7
|
||||||
|
build_options="systemd"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-Werror --with-gtk"
|
configure_args="--disable-Werror --with-gtk"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
|
@ -24,7 +25,11 @@ post_install() {
|
||||||
rm -rf ${DESTDIR}/usr/share/doc/distcc/example
|
rm -rf ${DESTDIR}/usr/share/doc/distcc/example
|
||||||
|
|
||||||
# systemd service
|
# 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
|
# gcc wrappers
|
||||||
vmkdir usr/lib/distcc/bin
|
vmkdir usr/lib/distcc/bin
|
||||||
|
|
Loading…
Add table
Reference in a new issue