2008-01-10 22:05:59 +05:30
|
|
|
DIR= ${RC_LIB}/sh
|
|
|
|
INC= functions.sh init-common-post.sh rc-functions.sh rc-mount.sh
|
|
|
|
BIN= gendepends.sh net.sh runscript.sh
|
2007-04-05 16:48:42 +05:30
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
MK= ../mk
|
2007-11-19 22:12:28 +05:30
|
|
|
|
2008-01-03 21:18:33 +05:30
|
|
|
# To get NET_LO
|
2008-01-10 22:05:59 +05:30
|
|
|
include ${MK}/os.mk
|
|
|
|
include Makefile.${SUBOS}
|
2008-01-03 21:18:33 +05:30
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
INSTALLAFTER= _installafter
|
|
|
|
_installafter:
|
2008-01-03 20:19:34 +05:30
|
|
|
@# Handle lib correctly
|
2008-01-10 22:05:59 +05:30
|
|
|
if test ${LIBNAME} != "lib"; then \
|
|
|
|
sed -i'.bak' -e 's,/lib/,/${LIBNAME}/,g' ${DESTDIR}/${RC_LIB}/sh/functions.sh || exit $$?; \
|
|
|
|
rm -f ${DESTDIR}/${RC_LIB}/sh/functions.sh.bak; \
|
|
|
|
sed -i'.bak' -e 's,/lib/,/${LIBNAME}/,g' ${DESTDIR}/${RC_LIB}/sh/rc-functions.sh || exit $$?; \
|
|
|
|
rm -f ${DESTDIR}/${RC_LIB}/sh/rc-functions.sh.bak; \
|
2007-11-19 22:12:28 +05:30
|
|
|
fi
|
2008-01-03 20:19:34 +05:30
|
|
|
@# Provide an init script for the loopback interface
|
2008-01-10 22:05:59 +05:30
|
|
|
ln -snf ${RC_LIB}/sh/net.sh ${DESTDIR}/etc/init.d/${NET_LO} || exit $$?
|
|
|
|
@# Put functions.sh into the init.d dir so 3rd party apps don't have to
|
2008-01-03 20:19:34 +05:30
|
|
|
@# be multilib aware
|
2008-01-10 22:05:59 +05:30
|
|
|
ln -snf ${RC_LIB}/sh/functions.sh ${DESTDIR}/etc/init.d || exit $$?
|
|
|
|
|
|
|
|
include ${MK}/scripts.mk
|