summaryrefslogtreecommitdiff
path: root/runlevels/Makefile
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-07-10 01:59:28 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-07-10 02:39:36 -0500
commit60d6847de553970a80207fde6bd46f5f3696e049 (patch)
treebcfd39c21b9300c55efb5f57e1d92f93fbdca8b1 /runlevels/Makefile
parentecb4d7c3f2b5ff7588a288d24c0dd462012a0389 (diff)
downloadopenrc-60d6847de553970a80207fde6bd46f5f3696e049.tar.gz
openrc-60d6847de553970a80207fde6bd46f5f3696e049.tar.bz2
openrc-60d6847de553970a80207fde6bd46f5f3696e049.tar.xz
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.
Diffstat (limited to 'runlevels/Makefile')
-rw-r--r--runlevels/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile
index ac3796e..2b25a35 100644
--- a/runlevels/Makefile
+++ b/runlevels/Makefile
@@ -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