2009-05-24 01:08:12 +05:30
|
|
|
DIR= ${LIBEXECDIR}/sh
|
2008-06-21 19:40:59 +05:30
|
|
|
SRCS= functions.sh.in gendepends.sh.in init-common-post.sh.in \
|
2008-03-03 18:04:51 +05:30
|
|
|
rc-functions.sh.in runscript.sh.in
|
2008-02-28 01:59:32 +05:30
|
|
|
INC= init-common-post.sh rc-mount.sh functions.sh rc-functions.sh
|
2008-04-29 15:55:45 +05:30
|
|
|
BIN= gendepends.sh init.sh runscript.sh
|
2007-04-05 16:48:42 +05:30
|
|
|
|
2008-01-13 23:19:29 +05:30
|
|
|
INSTALLAFTER= _installafter
|
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
MK= ../mk
|
2008-03-25 19:36:05 +05:30
|
|
|
include ${MK}/os.mk
|
2011-10-18 06:48:39 +05:30
|
|
|
|
2011-10-19 22:52:23 +05:30
|
|
|
ifeq (${OS},FreeBSD)
|
2011-10-18 06:48:39 +05:30
|
|
|
SRCS+= init.sh.in
|
|
|
|
|
|
|
|
.SUFFIXES: .sh.BSD.in
|
|
|
|
.sh.BSD.in.sh:
|
|
|
|
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
|
|
|
|
|
2011-10-19 22:52:23 +05:30
|
|
|
else ifeq (${OS},Linux)
|
2011-10-18 06:48:39 +05:30
|
|
|
SRCS+= init.sh.in init-early.sh.in udhcpc-hook.sh.in
|
|
|
|
BIN+= init-early.sh udhcpc-hook.sh
|
|
|
|
|
|
|
|
.SUFFIXES: .sh.Linux.in
|
|
|
|
.sh.Linux.in.sh:
|
|
|
|
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
|
|
|
|
|
2011-10-19 22:52:23 +05:30
|
|
|
else ifeq (${OS},NetBSD)
|
2011-10-18 06:48:39 +05:30
|
|
|
SRCS+= init.sh.in
|
|
|
|
|
|
|
|
SRCS+= ifwatchd-carrier.sh.in ifwatchd-nocarrier.sh.in
|
|
|
|
BIN+= ifwatchd-carrier.sh ifwatchd-nocarrier.sh
|
|
|
|
|
|
|
|
.SUFFIXES: .sh.BSD.in
|
|
|
|
.sh.BSD.in.sh:
|
|
|
|
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
|
|
|
|
endif
|
|
|
|
|
2008-01-10 22:27:05 +05:30
|
|
|
include ${MK}/scripts.mk
|
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
_installafter:
|
2008-03-25 22:49:41 +05:30
|
|
|
${INSTALL} -d ${DESTDIR}/${INITDIR}
|
2011-06-27 22:41:01 +05:30
|
|
|
@# Put functions.sh into init for backwards compat
|
|
|
|
ln -snf ${LIBEXECDIR}/sh/functions.sh ${DESTDIR}/${INITDIR} || exit $$?
|
2008-03-24 12:47:05 +05:30
|
|
|
|
|
|
|
check test::
|
|
|
|
./runtests.sh
|