10 |
# set default user mage.rc |
# set default user mage.rc |
11 |
: ${MAGERC="/etc/mage.rc"} |
: ${MAGERC="/etc/mage.rc"} |
12 |
|
|
|
## setup ## |
|
|
SMAGENAME="$1" |
|
|
SMAGEVERSION="$( < ${MLIBDIR}/version)" |
|
|
|
|
13 |
# export default C locale |
# export default C locale |
14 |
export LC_ALL=C |
export LC_ALL=C |
15 |
|
|
17 |
source ${MAGERC} |
source ${MAGERC} |
18 |
source ${MLIBDIR}/mage4.functions.sh |
source ${MLIBDIR}/mage4.functions.sh |
19 |
|
|
20 |
|
## setup ## |
21 |
|
SMAGENAME="$1" |
22 |
|
SMAGEVERSION="$(< ${MLIBDIR}/version)" |
23 |
|
|
24 |
# set PKGDIR and BUILDDIR and BINDIR to MROOT |
# set PKGDIR and BUILDDIR and BINDIR to MROOT |
25 |
if [[ -n ${MROOT} ]] |
if [[ -n ${MROOT} ]] |
26 |
then |
then |
201 |
# dummy function, used if that does not exist in smage file |
# dummy function, used if that does not exist in smage file |
202 |
src_prepare() |
src_prepare() |
203 |
{ |
{ |
204 |
echo "no src_prepare defined" |
+ echo "no src_prepare defined; doing nothing ..." |
205 |
return 0 |
return 0 |
206 |
} |
} |
207 |
|
|
208 |
# dummy function, used if that does not exist in smage file |
# dummy function, used if that does not exist in smage file |
209 |
src_compile() |
src_compile() |
210 |
{ |
{ |
211 |
echo "no src_compile defined" |
echo "no src_compile defined; doing nothing ..." |
212 |
return 0 |
return 0 |
213 |
} |
} |
214 |
|
|
215 |
# dummy function, used if that does not exist in smage file |
# dummy function, used if that does not exist in smage file |
216 |
src_check() |
src_check() |
217 |
{ |
{ |
218 |
echo "no src_check defined" |
echo "no src_check defined; doing nothing ..." |
219 |
return 0 |
return 0 |
220 |
} |
} |
221 |
|
|
222 |
# dummy function, used if that does not exist in smage file |
# dummy function, used if that does not exist in smage file |
223 |
src_install() |
src_install() |
224 |
{ |
{ |
225 |
echo "no src_install defined" |
echo "no src_install defined; doing nothing ..." |
226 |
return 0 |
return 0 |
227 |
} |
} |
228 |
|
|