Merge pull request #1378 from pullmoll/master
Make /etc/sv/distccd/run use /etc/distcc/clients.allow
This commit is contained in:
commit
502622c141
2 changed files with 18 additions and 3 deletions
|
@ -1,2 +1,17 @@
|
|||
#!/bin/sh
|
||||
exec distccd --no-detach --daemon --user nobody --no-fork --allow 127.0.0.1
|
||||
PROG="distccd"
|
||||
USER="nobody"
|
||||
OPTIONS="--no-detach"
|
||||
OPTIONS="$OPTIONS --daemon"
|
||||
OPTIONS="$OPTIONS --user $USER"
|
||||
OPTIONS="$OPTIONS --no-fork"
|
||||
ALLOW_FILE=/etc/distcc/clients.allow
|
||||
if [ -f "$ALLOW_FILE" ]; then
|
||||
ALLOW_OPTIONS=$(sed -e 's/#.*$//' -e '/^\s*$/d' -e 's/^/--allow /' < $ALLOW_FILE)
|
||||
fi
|
||||
if [ -z "$ALLOW_OPTIONS" ]; then
|
||||
# Default to allow localhost
|
||||
ALLOW_OPTIONS="--allow 127.0.0.1"
|
||||
fi
|
||||
OPTIONS="$OPTIONS $ALLOW_OPTIONS"
|
||||
exec $PROG $OPTIONS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'distcc'
|
||||
pkgname=distcc
|
||||
version=3.2rc1
|
||||
revision=8
|
||||
revision=9
|
||||
build_options="systemd"
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-Werror --with-gtk"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue