Lines 36-44
Link Here
|
36 |
selinux? ( sec-policy/selinux-distcc ) |
36 |
selinux? ( sec-policy/selinux-distcc ) |
37 |
xinetd? ( sys-apps/xinetd )" |
37 |
xinetd? ( sys-apps/xinetd )" |
38 |
|
38 |
|
39 |
DISTCC_LOG="" |
39 |
DISTCCLOG="" |
40 |
DCCC_PATH="/usr/$(get_libdir)/distcc/bin" |
40 |
DCCCPATH="/usr/$(get_libdir)/distcc/bin" |
41 |
DISTCC_VERBOSE="0" |
41 |
DISTCCVERBOSE="0" |
42 |
|
42 |
|
43 |
pkg_setup() { |
43 |
pkg_setup() { |
44 |
enewuser distcc 240 -1 -1 daemon |
44 |
enewuser distcc 240 -1 -1 daemon |
Lines 53-59
Link Here
|
53 |
# bug #258364 |
53 |
# bug #258364 |
54 |
epatch "${FILESDIR}/${P}-python.patch" |
54 |
epatch "${FILESDIR}/${P}-python.patch" |
55 |
|
55 |
|
56 |
sed -i -e "/PATH/s:\$distcc_location:${DCCC_PATH}:" pump.in || die |
56 |
sed -i -e "/PATH/s:\$distcc_location:${DCCCPATH}:" pump.in || die |
57 |
|
57 |
|
58 |
# Bugs #120001, #167844 and probably more. See patch for description. |
58 |
# Bugs #120001, #167844 and probably more. See patch for description. |
59 |
use hardened && epatch "${FILESDIR}/distcc-hardened.patch" |
59 |
use hardened && epatch "${FILESDIR}/distcc-hardened.patch" |
Lines 94-111
Link Here
|
94 |
|
94 |
|
95 |
cat > "${T}/02distcc" <<-EOF |
95 |
cat > "${T}/02distcc" <<-EOF |
96 |
# This file is managed by distcc-config; use it to change these settings. |
96 |
# This file is managed by distcc-config; use it to change these settings. |
97 |
DISTCC_LOG="${DISTCC_LOG}" |
97 |
DISTCC_LOG="${DISTCCLOG}" |
98 |
DCCC_PATH="${DCCC_PATH}" |
98 |
DCCC_PATH="${DCCCPATH}" |
99 |
DISTCC_VERBOSE="${DISTCC_VERBOSE}" |
99 |
DISTCC_VERBOSE="${DISTCCVERBOSE}" |
100 |
EOF |
100 |
EOF |
101 |
doenvd "${T}/02distcc" |
101 |
doenvd "${T}/02distcc" |
102 |
|
102 |
|
103 |
# create the masquerade directory |
103 |
# create the masquerade directory |
104 |
dodir "${DCCC_PATH}" |
104 |
dodir "${DCCCPATH}" |
105 |
for f in cc c++ gcc g++; do |
105 |
for f in cc c++ gcc g++; do |
106 |
dosym /usr/bin/distcc "${DCCC_PATH}/${f}" |
106 |
dosym /usr/bin/distcc "${DCCCPATH}/${f}" |
107 |
if [ "${f}" != "cc" ]; then |
107 |
if [ "${f}" != "cc" ]; then |
108 |
dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}" |
108 |
dosym /usr/bin/distcc "${DCCCPATH}/${CTARGET:-${CHOST}}-${f}" |
109 |
fi |
109 |
fi |
110 |
done |
110 |
done |
111 |
|
111 |
|