2009-04-17 05:17:23 +05:30
|
|
|
BOOT= bootmisc fsck hostname localmount network \
|
2008-01-31 21:40:18 +05:30
|
|
|
root swap sysctl urandom
|
2008-01-10 22:05:59 +05:30
|
|
|
DEFAULT= local netmount
|
2008-11-03 21:01:01 +05:30
|
|
|
SHUTDOWN= savecache
|
2007-04-05 16:48:42 +05:30
|
|
|
|
2008-03-25 22:39:56 +05:30
|
|
|
LEVELDIR= ${DESTDIR}/${SYSCONFDIR}/runlevels
|
2008-10-10 14:07:21 +05:30
|
|
|
SYSINITDIR= ${LEVELDIR}/sysinit
|
2008-01-10 22:05:59 +05:30
|
|
|
BOOTDIR= ${LEVELDIR}/boot
|
|
|
|
DEFAULTDIR= ${LEVELDIR}/default
|
2008-11-03 21:01:01 +05:30
|
|
|
SHUTDOWNDIR= ${LEVELDIR}/shutdown
|
2007-11-19 22:12:28 +05:30
|
|
|
|
2008-03-28 01:25:03 +05:30
|
|
|
INITDIR= ../init.d
|
|
|
|
|
2008-01-10 22:05:59 +05:30
|
|
|
MK= ../mk
|
2008-01-11 21:33:38 +05:30
|
|
|
include ${MK}/sys.mk
|
2008-01-11 15:02:06 +05:30
|
|
|
include ${MK}/os.mk
|
2009-04-30 19:35:39 +05:30
|
|
|
include ${MK}/gitignore.mk
|
2008-01-11 15:02:06 +05:30
|
|
|
include Makefile.${OS}
|
|
|
|
|
2008-01-11 15:12:28 +05:30
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
2008-10-10 14:07:21 +05:30
|
|
|
if ! test -d "${SYSINITDIR}"; then \
|
|
|
|
${INSTALL} -d ${SYSINITDIR} || exit $$?; \
|
|
|
|
for x in ${SYSINIT}; do \
|
|
|
|
if test -n "${PREFIX}"; then \
|
|
|
|
grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \
|
|
|
|
fi; \
|
|
|
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${SYSINITDIR}/"$$x" || exit $$?; done \
|
|
|
|
fi
|
2008-01-11 15:12:28 +05:30
|
|
|
if ! test -d "${BOOTDIR}"; then \
|
|
|
|
${INSTALL} -d ${BOOTDIR} || exit $$?; \
|
2008-03-03 02:44:01 +05:30
|
|
|
for x in ${BOOT}; do \
|
|
|
|
if test -n "${PREFIX}"; then \
|
2008-03-28 01:25:03 +05:30
|
|
|
grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \
|
2008-03-03 02:44:01 +05:30
|
|
|
fi; \
|
|
|
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${BOOTDIR}/"$$x" || exit $$?; \
|
|
|
|
done \
|
2008-01-11 15:12:28 +05:30
|
|
|
fi
|
|
|
|
if ! test -d "${DEFAULTDIR}"; then \
|
|
|
|
${INSTALL} -d ${DEFAULTDIR} || exit $$?; \
|
2008-03-03 02:44:01 +05:30
|
|
|
for x in ${DEFAULT}; do \
|
|
|
|
if test -n "${PREFIX}"; then \
|
2008-03-28 01:25:03 +05:30
|
|
|
grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \
|
2008-03-03 02:44:01 +05:30
|
|
|
fi; \
|
|
|
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${DEFAULTDIR}/"$$x" || exit $$?; done \
|
2008-01-11 15:12:28 +05:30
|
|
|
fi
|
2008-11-03 21:01:01 +05:30
|
|
|
if ! test -d "${SHUTDOWNDIR}"; then \
|
|
|
|
${INSTALL} -d ${SHUTDOWNDIR} || exit $$?; \
|
|
|
|
for x in ${SHUTDOWN}; do \
|
|
|
|
if test -n "${PREFIX}"; then \
|
|
|
|
grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \
|
|
|
|
fi; \
|
|
|
|
ln -snf ${PREFIX}/etc/init.d/"$$x" ${SHUTDOWNDIR}/"$$x" || exit $$?; done \
|
|
|
|
fi
|
2008-01-11 15:12:28 +05:30
|
|
|
|
2008-03-24 11:40:40 +05:30
|
|
|
check test::
|
|
|
|
|
2008-01-11 15:12:28 +05:30
|
|
|
clean:
|