Import NetBSD resolvconf(8)
Also known as "openresolv". Needed for dhcpcd(8). Change-Id: Ibcb616837e9a5293377e451c6f6218a37260ed80
This commit is contained in:
5
external/bsd/openresolv/sbin/Makefile
vendored
Normal file
5
external/bsd/openresolv/sbin/Makefile
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2009/11/21 03:24:31 roy Exp $
|
||||
|
||||
SUBDIR= resolvconf
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
5
external/bsd/openresolv/sbin/Makefile.inc
vendored
Normal file
5
external/bsd/openresolv/sbin/Makefile.inc
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile.inc,v 1.1 2009/11/21 03:24:31 roy Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
BINDIR= /sbin
|
||||
38
external/bsd/openresolv/sbin/resolvconf/Makefile
vendored
Normal file
38
external/bsd/openresolv/sbin/resolvconf/Makefile
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# $NetBSD: Makefile,v 1.6 2013/07/12 17:32:47 roy Exp $
|
||||
#
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
DIST= ${NETBSDSRCDIR}/external/bsd/openresolv/dist
|
||||
.PATH: ${DIST}
|
||||
|
||||
SCRIPTS= resolvconf
|
||||
SCRIPTSDIR= /sbin
|
||||
|
||||
FILES= libc dnsmasq named unbound
|
||||
FILESDIR= /libexec/resolvconf
|
||||
# We should not have to do this ...
|
||||
.for f in ${FILES}
|
||||
FILESBUILD_$f= yes
|
||||
.endfor
|
||||
|
||||
MAN= resolvconf.conf.5 resolvconf.8
|
||||
|
||||
CLEANFILES= ${SCRIPTS} ${FILES} ${MAN}
|
||||
|
||||
CMD1= \1 status >/dev/null 2>\&1
|
||||
CMD2= \1 restart
|
||||
RESTARTCMD= if /etc/rc.d/${CMD1}; then /etc/rc.d/${CMD2}; fi
|
||||
.for f in ${SCRIPTS} ${FILES} ${MAN}
|
||||
${f}: Makefile ${f}.in
|
||||
${TOOL_SED} -e 's:@PREFIX@::g' \
|
||||
-e 's:@SBINDIR@:/sbin:g' \
|
||||
-e 's:@RCDIR@:/etc/rc.d:g' \
|
||||
-e 's:@SYSCONFDIR@:/etc:g' \
|
||||
-e 's:@LIBEXECDIR@:/libexec/resolvconf:g' \
|
||||
-e 's:@VARDIR@:/var/run/resolvconf:g' \
|
||||
-e 's:@RESTARTCMD \(.*\)@:${RESTARTCMD}:g' \
|
||||
${DIST}/${f}.in > $@
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
Reference in New Issue
Block a user