2009-05-23 20:38:12 +01:00
|
|
|
DIR= ${LIBEXECDIR}/sh
|
2011-10-19 21:30:39 -04:00
|
|
|
SRCS= init.sh.in functions.sh.in gendepends.sh.in init-common-post.sh.in \
|
2012-03-12 01:28:44 -07:00
|
|
|
rc-functions.sh.in runscript.sh.in tmpfiles.sh.in ${SRCS-${OS}}
|
2008-02-27 20:29:32 +00:00
|
|
|
INC= init-common-post.sh rc-mount.sh functions.sh rc-functions.sh
|
2012-03-12 01:28:44 -07:00
|
|
|
BIN= gendepends.sh init.sh runscript.sh tmpfiles.sh ${BIN-${OS}}
|
2007-04-05 11:18:42 +00:00
|
|
|
|
2008-01-13 17:49:29 +00:00
|
|
|
INSTALLAFTER= _installafter
|
|
|
|
|
2008-01-10 16:35:59 +00:00
|
|
|
MK= ../mk
|
2008-03-25 14:06:05 +00:00
|
|
|
include ${MK}/os.mk
|
2011-10-17 20:18:39 -05:00
|
|
|
|
2011-10-19 21:30:39 -04:00
|
|
|
SRCS-FreeBSD=
|
|
|
|
BIN-FreeBSD=
|
2011-10-17 20:18:39 -05:00
|
|
|
|
2011-11-19 18:15:46 -06:00
|
|
|
SRCS-Linux= cgroup-release-agent.sh.in init-early.sh.in udhcpc-hook.sh.in
|
|
|
|
BIN-Linux= cgroup-release-agent.sh init-early.sh udhcpc-hook.sh
|
2011-10-17 20:18:39 -05:00
|
|
|
|
2011-10-19 21:30:39 -04:00
|
|
|
SRCS-NetBSD= ifwatchd-carrier.sh.in ifwatchd-nocarrier.sh.in
|
|
|
|
BIN-NetBSD= ifwatchd-carrier.sh ifwatchd-nocarrier.sh
|
2011-10-17 20:18:39 -05:00
|
|
|
|
2011-10-19 21:30:39 -04:00
|
|
|
include ${MK}/scripts.mk
|
2011-10-17 20:18:39 -05:00
|
|
|
|
2011-10-28 11:14:44 -05:00
|
|
|
%.sh: %.sh${SFX}
|
2011-10-17 20:18:39 -05:00
|
|
|
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
|
2008-01-10 16:57:05 +00:00
|
|
|
|
2008-01-10 16:35:59 +00:00
|
|
|
_installafter:
|
2008-03-25 17:19:41 +00:00
|
|
|
${INSTALL} -d ${DESTDIR}/${INITDIR}
|
2011-06-27 12:11:01 -05:00
|
|
|
@# Put functions.sh into init for backwards compat
|
|
|
|
ln -snf ${LIBEXECDIR}/sh/functions.sh ${DESTDIR}/${INITDIR} || exit $$?
|
2008-03-24 07:17:05 +00:00
|
|
|
|
|
|
|
check test::
|
|
|
|
./runtests.sh
|