2011-11-16 04:36:10 +05:30
|
|
|
BOOT= bootmisc fsck hostname localmount \
|
|
|
|
root swap sysctl urandom ${BOOT-${OS}}
|
2008-01-10 22:05:59 +05:30
|
|
|
DEFAULT= local netmount
|
2011-10-20 07:00:39 +05:30
|
|
|
SHUTDOWN= savecache ${SHUTDOWN-${OS}}
|
|
|
|
SYSINIT= ${SYSINIT-${OS}}
|
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-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
|
2011-10-18 06:48:39 +05:30
|
|
|
|
2011-10-20 07:00:39 +05:30
|
|
|
BOOT-${OS}=
|
|
|
|
SHUTDOWN-${OS}=
|
|
|
|
SYSINIT-${OS}=
|
|
|
|
|
|
|
|
BOOT-BSD= hostid newsyslog savecore syslogd swap-blk
|
2011-10-18 06:48:39 +05:30
|
|
|
|
|
|
|
# Generic BSD stuff
|
2011-10-20 07:00:39 +05:30
|
|
|
BOOT-FreeBSD= hostid net.lo0 newsyslog savecore syslogd
|
|
|
|
# FreeBSD specific stuff
|
|
|
|
BOOT-FreeBSD+= adjkerntz dumpon syscons
|
|
|
|
|
2011-11-22 19:48:53 +05:30
|
|
|
BOOT-Linux= hwclock keymaps modules mtab net.lo procfs termencoding migrate-run
|
2011-10-20 07:00:39 +05:30
|
|
|
SHUTDOWN-Linux= killprocs mount-ro
|
|
|
|
SYSINIT-Linux= devfs dmesg
|
2011-10-18 06:48:39 +05:30
|
|
|
|
2011-10-20 07:00:39 +05:30
|
|
|
# Generic BSD stuff
|
|
|
|
BOOT-NetBSD= hostid net.lo0 newsyslog savecore syslogd
|
2011-10-18 06:48:39 +05:30
|
|
|
# NetBSD specific stuff
|
2011-10-20 07:00:39 +05:30
|
|
|
BOOT-NetBSD+= devdb swap-blk ttys wscons
|
2008-01-11 15:02:06 +05:30
|
|
|
|
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:
|