2008-01-10 22:05:59 +05:30
|
|
|
DIR= ${RC_LIB}/sh
|
2008-01-13 19:25:23 +05:30
|
|
|
SRCS= functions.in rc-functions.in
|
|
|
|
OBJS= ${SRCS:.in=.sh}
|
|
|
|
INC= init-common-post.sh rc-mount.sh ${OBJS}
|
2008-01-10 22:05:59 +05:30
|
|
|
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
|
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-10 22:27:05 +05:30
|
|
|
include ${MK}/scripts.mk
|
|
|
|
|
2008-01-13 19:25:23 +05:30
|
|
|
# Ensure that the lib name is correct
|
|
|
|
.SUFFIXES: .in .sh
|
|
|
|
.in.sh:
|
|
|
|
sed -e 's:/lib/:/${LIBNAME}/:g' $< > $@
|
|
|
|
|
|
|
|
INSTALLAFTER= _installafter
|
2008-01-10 22:05:59 +05:30
|
|
|
_installafter:
|
2008-01-10 22:27:05 +05:30
|
|
|
${INSTALL} -d ${DESTDIR}/etc/init.d
|
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 $$?
|