etc/protocols - sync with NetBSD-8
[minix.git] / external / bsd / openresolv / sbin / resolvconf / Makefile
blobc2c00c61107b58c23f98176d22acd39b92ff9e11
1 # $NetBSD: Makefile,v 1.6 2013/07/12 17:32:47 roy Exp $
4 .include <bsd.own.mk>
6 DIST= ${NETBSDSRCDIR}/external/bsd/openresolv/dist
7 .PATH: ${DIST}
9 SCRIPTS= resolvconf
10 SCRIPTSDIR= /sbin
12 FILES= libc dnsmasq named unbound
13 FILESDIR= /libexec/resolvconf
14 # We should not have to do this ...
15 .for f in ${FILES}
16 FILESBUILD_$f= yes
17 .endfor
19 MAN= resolvconf.conf.5 resolvconf.8
21 CLEANFILES= ${SCRIPTS} ${FILES} ${MAN}
23 CMD1= \1 status >/dev/null 2>\&1
24 CMD2= \1 restart
25 RESTARTCMD= if /etc/rc.d/${CMD1}; then /etc/rc.d/${CMD2}; fi
26 .for f in ${SCRIPTS} ${FILES} ${MAN}
27 ${f}: Makefile ${f}.in
28 ${TOOL_SED} -e 's:@PREFIX@::g' \
29 -e 's:@SBINDIR@:/sbin:g' \
30 -e 's:@RCDIR@:/etc/rc.d:g' \
31 -e 's:@SYSCONFDIR@:/etc:g' \
32 -e 's:@LIBEXECDIR@:/libexec/resolvconf:g' \
33 -e 's:@VARDIR@:/var/run/resolvconf:g' \
34 -e 's:@RESTARTCMD \(.*\)@:${RESTARTCMD}:g' \
35 ${DIST}/${f}.in > $@
36 .endfor
38 .include <bsd.prog.mk>