aboutsummaryrefslogtreecommitdiff
path: root/init.d
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 /init.d
parentecb4d7c3f2b5ff7588a288d24c0dd462012a0389 (diff)
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 'init.d')
-rw-r--r--init.d/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/init.d/Makefile b/init.d/Makefile
index 82c73afb..d5c3ea8b 100644
--- a/init.d/Makefile
+++ b/init.d/Makefile
@@ -1,18 +1,18 @@
DIR= ${INITDIR}
SRCS= bootmisc.in fsck.in hostname.in local.in localmount.in netmount.in \
- network.in root.in savecache.in staticroute.in swap.in swapfiles.in \
+ root.in savecache.in swap.in swapfiles.in \
swclock.in sysctl.in urandom.in ${SRCS-${OS}}
BIN= ${OBJS}
# Build our old net foo or not
-ifeq (${MKOLDNET},yes)
-_OLDNET= net.lo
+ifeq (${MKNET},)
+INSTALLAFTER= _installafter_net.lo
+SRCS+= net.lo.in
endif
-_NET_LO= ${_OLDNET}
-INSTALLAFTER= _installafter_${_NET_LO}
-CLEANFILES+= ${_NET_LO}
-TARGETS+= ${_NET_LO}
+ifeq (${MKNET},newnet)
+SRCS+= network.in staticroute.in
+endif
MK= ../mk
include ${MK}/os.mk
@@ -45,4 +45,4 @@ include ${MK}/scripts.mk
_installafter_: realinstall
_installafter_net.lo: realinstall
- ${INSTALL} -m ${BINMODE} net.lo ${DESTDIR}/${INITDIR}/${NET_LO}
+ ${INSTALL} -m ${BINMODE} net.lo ${DESTDIR}/${INITDIR}/${NET_LO-${OS}}