109 |
echo "Warning: ccache already configured for arch '${arch}'" |
echo "Warning: ccache already configured for arch '${arch}'" |
110 |
fi |
fi |
111 |
fi |
fi |
112 |
|
|
113 |
|
# update-ca-certificates |
114 |
|
runarch "${arch}" update-ca-certificates # no die here, cmd may missing |
115 |
|
|
116 |
|
# create list of protected packages |
117 |
|
echo "BUILDSERVER_CONFIG_DIR=\"${BUILDSERVER_CONFIG_DIR}\"" > ${BUILDROOT}/${arch}/.runrc |
118 |
|
install -d ${BUILDSERVER_CONFIG_DIR}/protected |
119 |
|
cat >> ${BUILDROOT}/${arch}/.runrc << "EOF" |
120 |
|
env-rebuild |
121 |
|
source /etc/profile |
122 |
|
|
123 |
|
if [ -f /etc/rc.d/init.d/functions ] |
124 |
|
then |
125 |
|
source /etc/rc.d/init.d/functions |
126 |
|
else |
127 |
|
die "/etc/rc.d/init.d/functions not found" |
128 |
|
fi |
129 |
|
if [ -f /etc/mage.rc.global ] |
130 |
|
then |
131 |
|
source /etc/mage.rc.global |
132 |
|
else |
133 |
|
die "/etc/mage.rc.global not found" |
134 |
|
fi |
135 |
|
if [ -f /etc/mage.rc ] |
136 |
|
then |
137 |
|
source /etc/mage.rc |
138 |
|
else |
139 |
|
die "/etc/mage.rc not found" |
140 |
|
fi |
141 |
|
|
142 |
|
for mage in $(find ${INSTALLDB} -name \*.${MAGESUFFIX}) |
143 |
|
do |
144 |
|
pkgname=$(basename ${i} .${MAGESUFFIX}) |
145 |
|
pkgname="${pkgname%-*-*}" |
146 |
|
echo "${pkgname}" > ${BUILDSERVER_CONFIG_DIR}/protected/"${pkgname}" |
147 |
|
done |
148 |
|
EOF |
149 |
|
|
150 |
# cleanup |
# cleanup |
151 |
runarch "${arch}" mage clean || die "${arch} mage clean" |
runarch "${arch}" mage clean || die "${arch} mage clean" |
152 |
|
|