diff options
author | ume <ume@FreeBSD.org> | 2011-03-18 12:18:52 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2011-03-18 12:18:52 +0000 |
commit | 5c37492f6bc8a98141f4bf26f623f929ed510c06 (patch) | |
tree | b4d6589b3e2fd47d8efbe45e6bb0f817f81e373f /sbin | |
parent | 359e81dc4639eef5e3a0703c0128eb0a8c9f9f48 (diff) | |
download | FreeBSD-src-5c37492f6bc8a98141f4bf26f623f929ed510c06.zip FreeBSD-src-5c37492f6bc8a98141f4bf26f623f929ed510c06.tar.gz |
Add resolvconf(8) which manages resolv.conf.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/Makefile | 1 | ||||
-rw-r--r-- | sbin/resolvconf/Makefile | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/sbin/Makefile b/sbin/Makefile index 0623574..f9ba4ca 100644 --- a/sbin/Makefile +++ b/sbin/Makefile @@ -62,6 +62,7 @@ SUBDIR=adjkerntz \ rcorder \ reboot \ recoverdisk \ + resolvconf \ restore \ route \ savecore \ diff --git a/sbin/resolvconf/Makefile b/sbin/resolvconf/Makefile new file mode 100644 index 0000000..18ef240 --- /dev/null +++ b/sbin/resolvconf/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +DIST= ${.CURDIR}/../../contrib/openresolv +.PATH: ${DIST} + +SCRIPTS= resolvconf + +FILES= libc dnsmasq named pdnsd unbound +FILESDIR= /libexec/resolvconf + +MAN= resolvconf.conf.5 resolvconf.8 + +CLEANFILES= ${SCRIPTS} ${FILES} ${MAN} + +SYSCONFDIR= /etc +RCDIR= ${SYSCONFDIR}/rc.d +VARDIR= /var/run/resolvconf + +# We don't assume to restart the services in /sbin. So, though +# our service(8) is in /usr/sbin, we can use it, here. +CMD1= \1 onestatus >/dev/null 2>\&1 +CMD2= \1 restart +RESTARTCMD= /usr/sbin/service ${CMD1} \&\& /usr/sbin/service ${CMD2} + +.for f in ${SCRIPTS} ${FILES} ${MAN} +${f}: ${f}.in + sed -e 's:@PREFIX@::g' \ + -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' \ + -e 's:@LIBEXECDIR@:${FILESDIR}:g' \ + -e 's:@VARDIR@:${VARDIR}:g' \ + -e 's:@RESTARTCMD \(.*\)@:${RESTARTCMD}:g' \ + -e 's:@RCDIR@:${RCDIR}:g' \ + -e 's: vpn : ng[0-9]*&:g' \ + ${DIST}/$@.in > $@ +.endfor + +.include <bsd.prog.mk> |