1 2PACKAGE=resolvconf 3DIST= ${SRCTOP}/contrib/openresolv 4.PATH: ${DIST} 5 6SCRIPTS= resolvconf 7 8FILES= libc dnsmasq named pdnsd pdns_recursor unbound 9FILESDIR= /libexec/resolvconf 10 11MAN= resolvconf.conf.5 resolvconf.8 12 13CLEANFILES= ${SCRIPTS} ${FILES} ${MAN} 14 15SYSCONFDIR= /etc 16RCDIR= ${SYSCONFDIR}/rc.d 17VARDIR= /var/run/resolvconf 18SBINDIR= /sbin 19 20# We don't assume to restart the services in /sbin. So, though 21# our service(8) is in /usr/sbin, we can use it, here. 22CMD1= \\$$1 onestatus >/dev/null 2>\&1 23CMD2= \\$$1 restart 24RESTARTCMD= "/usr/sbin/service ${CMD1} \&\& /usr/sbin/service ${CMD2}" 25 26.for f in ${SCRIPTS} ${FILES} ${MAN} 27${f}: ${f}.in 28 sed -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' \ 29 -e 's:@LIBEXECDIR@:${FILESDIR}:g' \ 30 -e 's:@VARDIR@:${VARDIR}:g' \ 31 -e 's:@RESTARTCMD@:${RESTARTCMD}:g' \ 32 -e 's:@RCDIR@:${RCDIR}:g' \ 33 -e 's:@SBINDIR@:${SBINDIR}:g' \ 34 -e 's: vpn : ng[0-9]*&:g' \ 35 ${DIST}/$@.in > $@ 36.endfor 37 38.include <bsd.prog.mk> 39