add the MKNET variable to select a network stack

The MKNET variable can be used to select the network stack you want to
build and install with OpenRC.

The current default is the gentoo "oldnet" stack. If you want to install
the OpenRC newnet stack, use MKNET=newnet on the make command line.
This commit is contained in:
William Hubbs
2012-07-10 01:59:28 -05:00
parent ecb4d7c3f2
commit 60d6847de5
5 changed files with 26 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
BOOT= bootmisc fsck hostname localmount network \
root staticroute swap swapfiles sysctl urandom ${BOOT-${OS}}
BOOT= bootmisc fsck hostname localmount \
root swap swapfiles sysctl urandom ${BOOT-${OS}}
DEFAULT= local netmount
SHUTDOWN= savecache ${SHUTDOWN-${OS}}
SYSINIT= ${SYSINIT-${OS}}
@@ -10,6 +10,16 @@ BOOTDIR= ${LEVELDIR}/boot
DEFAULTDIR= ${LEVELDIR}/default
SHUTDOWNDIR= ${LEVELDIR}/shutdown
ifeq (${MKNET},)
BOOT-FreeBSD += net.lo0
BOOT-Linux += net.lo
BOOT-NetBSD += net.lo0
endif
ifeq (${MKNET},newnet)
BOOT+= network staticroute
endif
INITDIR= ../init.d
MK= ../mk