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