1*6987b552SEmmanuel VadotPACKAGE=resolvconf 222289a8cSEnji CooperDIST= ${SRCTOP}/contrib/openresolv 3b7f8411dSHajimu UMEMOTO.PATH: ${DIST} 4b7f8411dSHajimu UMEMOTO 5b7f8411dSHajimu UMEMOTOSCRIPTS= resolvconf 6b7f8411dSHajimu UMEMOTO 7d7149f4eSGlen BarberFILES= libc dnsmasq named pdnsd pdns_recursor unbound 8b7f8411dSHajimu UMEMOTOFILESDIR= /libexec/resolvconf 9b7f8411dSHajimu UMEMOTO 10b7f8411dSHajimu UMEMOTOMAN= resolvconf.conf.5 resolvconf.8 11b7f8411dSHajimu UMEMOTO 12b7f8411dSHajimu UMEMOTOCLEANFILES= ${SCRIPTS} ${FILES} ${MAN} 13b7f8411dSHajimu UMEMOTO 14b7f8411dSHajimu UMEMOTOSYSCONFDIR= /etc 15b7f8411dSHajimu UMEMOTORCDIR= ${SYSCONFDIR}/rc.d 16b7f8411dSHajimu UMEMOTOVARDIR= /var/run/resolvconf 176ff6aea6SEric BadgerSBINDIR= /sbin 18b7f8411dSHajimu UMEMOTO 19b7f8411dSHajimu UMEMOTO# We don't assume to restart the services in /sbin. So, though 20b7f8411dSHajimu UMEMOTO# our service(8) is in /usr/sbin, we can use it, here. 210157503dSPedro F. GiffuniCMD1= \\$$1 onestatus >/dev/null 2>\&1 220157503dSPedro F. GiffuniCMD2= \\$$1 restart 230157503dSPedro F. GiffuniRESTARTCMD= "/usr/sbin/service ${CMD1} \&\& /usr/sbin/service ${CMD2}" 24b7f8411dSHajimu UMEMOTO 25b7f8411dSHajimu UMEMOTO.for f in ${SCRIPTS} ${FILES} ${MAN} 26b7f8411dSHajimu UMEMOTO${f}: ${f}.in 276ff6aea6SEric Badger sed -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' \ 28b7f8411dSHajimu UMEMOTO -e 's:@LIBEXECDIR@:${FILESDIR}:g' \ 29b7f8411dSHajimu UMEMOTO -e 's:@VARDIR@:${VARDIR}:g' \ 300157503dSPedro F. Giffuni -e 's:@RESTARTCMD@:${RESTARTCMD}:g' \ 31b7f8411dSHajimu UMEMOTO -e 's:@RCDIR@:${RCDIR}:g' \ 326ff6aea6SEric Badger -e 's:@SBINDIR@:${SBINDIR}:g' \ 33b7f8411dSHajimu UMEMOTO -e 's: vpn : ng[0-9]*&:g' \ 34b7f8411dSHajimu UMEMOTO ${DIST}/$@.in > $@ 35b7f8411dSHajimu UMEMOTO.endfor 36b7f8411dSHajimu UMEMOTO 37b7f8411dSHajimu UMEMOTO.include <bsd.prog.mk> 38