head 1.10; access; symbols netbsd-11-0-RC5:1.10 netbsd-11-0-RC4:1.10 netbsd-11-0-RC3:1.10 netbsd-11-0-RC2:1.10 netbsd-11-0-RC1:1.10 perseant-exfatfs-base-20250801:1.10 netbsd-11:1.10.0.10 netbsd-11-base:1.10 netbsd-10-1-RELEASE:1.10 perseant-exfatfs-base-20240630:1.10 perseant-exfatfs:1.10.0.8 perseant-exfatfs-base:1.10 netbsd-8-3-RELEASE:1.7 netbsd-9-4-RELEASE:1.7 netbsd-10-0-RELEASE:1.10 netbsd-10-0-RC6:1.10 netbsd-10-0-RC5:1.10 netbsd-10-0-RC4:1.10 netbsd-10-0-RC3:1.10 netbsd-10-0-RC2:1.10 netbsd-10-0-RC1:1.10 netbsd-10:1.10.0.6 netbsd-10-base:1.10 netbsd-9-3-RELEASE:1.7 cjep_sun2x-base1:1.10 cjep_sun2x:1.10.0.4 cjep_sun2x-base:1.10 cjep_staticlib_x-base1:1.10 netbsd-9-2-RELEASE:1.7 cjep_staticlib_x:1.10.0.2 cjep_staticlib_x-base:1.10 netbsd-9-1-RELEASE:1.7 phil-wifi-20200421:1.9 phil-wifi-20200411:1.9 is-mlppp:1.9.0.2 is-mlppp-base:1.9 phil-wifi-20200406:1.9 netbsd-8-2-RELEASE:1.7 netbsd-9-0-RELEASE:1.7 netbsd-9-0-RC2:1.7 netbsd-9-0-RC1:1.7 phil-wifi-20191119:1.9 netbsd-9:1.7.0.18 netbsd-9-base:1.7 phil-wifi-20190609:1.7 netbsd-8-1-RELEASE:1.7 netbsd-8-1-RC1:1.7 pgoyette-compat-merge-20190127:1.7 pgoyette-compat-20190127:1.7 pgoyette-compat-20190118:1.7 pgoyette-compat-1226:1.7 pgoyette-compat-1126:1.7 pgoyette-compat-1020:1.7 pgoyette-compat-0930:1.7 pgoyette-compat-0906:1.7 netbsd-7-2-RELEASE:1.6 pgoyette-compat-0728:1.7 netbsd-8-0-RELEASE:1.7 phil-wifi:1.7.0.16 phil-wifi-base:1.7 pgoyette-compat-0625:1.7 netbsd-8-0-RC2:1.7 pgoyette-compat-0521:1.7 pgoyette-compat-0502:1.7 pgoyette-compat-0422:1.7 netbsd-8-0-RC1:1.7 pgoyette-compat-0415:1.7 pgoyette-compat-0407:1.7 pgoyette-compat-0330:1.7 pgoyette-compat-0322:1.7 pgoyette-compat-0315:1.7 netbsd-7-1-2-RELEASE:1.6 pgoyette-compat:1.7.0.14 pgoyette-compat-base:1.7 netbsd-7-1-1-RELEASE:1.6 matt-nb8-mediatek:1.7.0.12 matt-nb8-mediatek-base:1.7 perseant-stdc-iso10646:1.7.0.10 perseant-stdc-iso10646-base:1.7 netbsd-8:1.7.0.8 netbsd-8-base:1.7 prg-localcount2-base3:1.7 prg-localcount2-base2:1.7 prg-localcount2-base1:1.7 prg-localcount2:1.7.0.6 prg-localcount2-base:1.7 pgoyette-localcount-20170426:1.7 bouyer-socketcan-base1:1.7 pgoyette-localcount-20170320:1.7 netbsd-7-1:1.6.0.12 netbsd-7-1-RELEASE:1.6 netbsd-7-1-RC2:1.6 netbsd-7-nhusb-base-20170116:1.6 bouyer-socketcan:1.7.0.4 bouyer-socketcan-base:1.7 pgoyette-localcount-20170107:1.7 netbsd-7-1-RC1:1.6 pgoyette-localcount-20161104:1.7 netbsd-7-0-2-RELEASE:1.6 localcount-20160914:1.7 netbsd-7-nhusb:1.6.0.10 netbsd-7-nhusb-base:1.6 pgoyette-localcount-20160806:1.7 pgoyette-localcount-20160726:1.7 pgoyette-localcount:1.7.0.2 pgoyette-localcount-base:1.7 netbsd-7-0-1-RELEASE:1.6 netbsd-7-0:1.6.0.8 netbsd-7-0-RELEASE:1.6 netbsd-7-0-RC3:1.6 netbsd-7-0-RC2:1.6 netbsd-7-0-RC1:1.6 netbsd-6-0-6-RELEASE:1.3 netbsd-6-1-5-RELEASE:1.3 netbsd-7:1.6.0.6 netbsd-7-base:1.6 yamt-pagecache-base9:1.6 yamt-pagecache-tag8:1.3.6.1 netbsd-6-1-4-RELEASE:1.3 netbsd-6-0-5-RELEASE:1.3 tls-earlyentropy:1.6.0.4 tls-earlyentropy-base:1.6 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6 riastradh-drm2-base3:1.6 netbsd-6-1-3-RELEASE:1.3 netbsd-6-0-4-RELEASE:1.3 netbsd-6-1-2-RELEASE:1.3 netbsd-6-0-3-RELEASE:1.3 netbsd-6-1-1-RELEASE:1.3 riastradh-drm2-base2:1.6 riastradh-drm2-base1:1.6 riastradh-drm2:1.6.0.2 riastradh-drm2-base:1.6 netbsd-6-1:1.3.0.14 netbsd-6-0-2-RELEASE:1.3 netbsd-6-1-RELEASE:1.3 khorben-n900:1.4.0.8 netbsd-6-1-RC4:1.3 netbsd-6-1-RC3:1.3 agc-symver:1.4.0.6 agc-symver-base:1.4 netbsd-6-1-RC2:1.3 netbsd-6-1-RC1:1.3 yamt-pagecache-base8:1.4 netbsd-6-0-1-RELEASE:1.3 yamt-pagecache-base7:1.4 matt-nb6-plus-nbase:1.3 yamt-pagecache-base6:1.4 netbsd-6-0:1.3.0.12 netbsd-6-0-RELEASE:1.3 netbsd-6-0-RC2:1.3 tls-maxphys:1.4.0.2 tls-maxphys-base:1.6 matt-nb6-plus:1.3.0.10 matt-nb6-plus-base:1.3 netbsd-6-0-RC1:1.3 yamt-pagecache-base5:1.4 yamt-pagecache-base4:1.4 netbsd-6:1.3.0.8 netbsd-6-base:1.3 yamt-pagecache-base3:1.3 yamt-pagecache-base2:1.3 yamt-pagecache:1.3.0.6 yamt-pagecache-base:1.3 cherry-xenmp:1.3.0.4 cherry-xenmp-base:1.3 bouyer-quota2-nbase:1.3 bouyer-quota2:1.3.0.2 bouyer-quota2-base:1.3 matt-mips64-premerge-20101231:1.3 matt-premerge-20091211:1.3; locks; strict; comment @# @; 1.10 date 2020.07.22.19.00.20; author roy; state Exp; branches; next 1.9; commitid wtzMDDjuZsq2M6hC; 1.9 date 2019.09.08.21.04.31; author roy; state Exp; branches; next 1.8; commitid qG3I7NWDa5lsGfCB; 1.8 date 2019.09.08.20.55.57; author roy; state Exp; branches; next 1.7; commitid yQfNl6VXdubwDfCB; 1.7 date 2016.04.11.10.43.24; author roy; state Exp; branches 1.7.16.1; next 1.6; commitid 7yzKnvCg6z1Jgc2z; 1.6 date 2013.07.12.17.32.47; author roy; state Exp; branches; next 1.5; commitid C3cH1Fi6sa63OcXw; 1.5 date 2013.07.12.17.30.25; author roy; state Exp; branches; next 1.4; commitid iQn7I4d7uVZeNcXw; 1.4 date 2012.04.03.10.50.46; author roy; state Exp; branches 1.4.2.1; next 1.3; 1.3 date 2009.12.04.14.44.57; author roy; state Exp; branches 1.3.6.1; next 1.2; 1.2 date 2009.12.03.10.28.37; author roy; state Exp; branches; next 1.1; 1.1 date 2009.11.21.03.24.31; author roy; state Exp; branches; next ; 1.7.16.1 date 2020.04.13.07.56.27; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.4.2.1 date 2014.08.19.23.52.07; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.3.6.1 date 2012.04.17.00.04.02; author yamt; state Exp; branches; next 1.3.6.2; 1.3.6.2 date 2014.05.22.15.50.52; author yamt; state Exp; branches; next ; commitid TxcZ1Vndpkoj9yBx; desc @@ 1.10 log @openresolv: Rework the build system to cope with more directories While here, install avahi-daemon and mdnsd notifiers for when /etc/resolv.conf is updated. @ text @# $NetBSD: Makefile,v 1.9 2019/09/08 21:04:31 roy Exp $ # .include .include "../../Makefile.inc" SCRIPTS= resolvconf SCRIPTSDIR= /sbin MAN= resolvconf.conf.5 resolvconf.8 CLEANFILES= ${SCRIPTS} ${MAN} .for f in ${SCRIPTS} ${MAN} ${f}: Makefile ${f}.in ${TOOL_SED} ${RESOLVCONF_SED} ${DIST}/${f}.in >$@@ .endfor .include @ 1.9 log @resolvconf: Build the pdnsd subscriber Not the most ideal, but technically it works. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2019/09/08 20:55:57 roy Exp $ d5 1 a5 3 DIST= ${NETBSDSRCDIR}/external/bsd/openresolv/dist .PATH: ${DIST} a9 7 FILES= libc dnsmasq named pdns_recursor pdnsd unbound FILESDIR= /libexec/resolvconf # We should not have to do this ... .for f in ${FILES} FILESBUILD_$f= yes .endfor d12 1 a12 1 CLEANFILES= ${SCRIPTS} ${FILES} ${MAN} d14 1 a14 1 .for f in ${SCRIPTS} ${FILES} ${MAN} d16 1 a16 9 ${TOOL_SED} -e 's:@@PREFIX@@::g' \ -e 's:@@SBINDIR@@:/sbin:g' \ -e 's:@@RCDIR@@:/etc/rc.d:g' \ -e 's:@@SYSCONFDIR@@:/etc:g' \ -e 's:@@LIBEXECDIR@@:/libexec/resolvconf:g' \ -e 's:@@VARDIR@@:/var/run/resolvconf:g' \ -e 's:@@RESTARTCMD@@::g' \ -e 's:@@STATUSARG@@::g' \ ${DIST}/${f}.in > $@@ @ 1.8 log @resolvconf: Build the pdns_recursor subscriber As it now does something more useful than libc. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2016/04/11 10:43:24 roy Exp $ d12 1 a12 1 FILES= libc dnsmasq named pdns_recursor unbound @ 1.7 log @Fix build for operesolv-3.8.0 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2013/07/12 17:32:47 roy Exp $ d12 1 a12 1 FILES= libc dnsmasq named unbound @ 1.7.16.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d12 1 a12 1 FILES= libc dnsmasq named pdns_recursor pdnsd unbound @ 1.6 log @build correctly for RCDIR @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2013/07/12 17:30:25 roy Exp $ a22 3 CMD1= \1 status >/dev/null 2>\&1 CMD2= \1 restart RESTARTCMD= if /etc/rc.d/${CMD1}; then /etc/rc.d/${CMD2}; fi d31 2 a32 1 -e 's:@@RESTARTCMD \(.*\)@@:${RESTARTCMD}:g' \ @ 1.5 log @build correctly for SBINDIR @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2012/04/03 10:50:46 roy Exp $ d28 3 a30 1 ${TOOL_SED} -e 's:@@PREFIX@@::g' -e 's:@@SBINDIR@@:/sbin:g' \ @ 1.4 log @Wrap our restart command using if ... then so that we return zero if it doesn't exist or is not running. Depend on this Makefile so that if the restart command structure changes the subscribers are rebuilt. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2009/12/04 14:44:57 roy Exp $ d28 1 a28 1 ${TOOL_SED} -e 's:@@PREFIX@@::g' \ @ 1.4.2.1 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 # $NetBSD$ a28 2 -e 's:@@SBINDIR@@:/sbin:g' \ -e 's:@@RCDIR@@:/etc/rc.d:g' \ @ 1.3 log @Install our shell subscribers as normal files @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2009/12/03 10:28:37 roy Exp $ d25 1 a25 1 RESTARTCMD= /etc/rc.d/${CMD1} \&\& /etc/rc.d/${CMD2} d27 1 a27 1 ${f}: ${f}.in @ 1.3.6.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2009/12/04 14:44:57 roy Exp $ d25 1 a25 1 RESTARTCMD= if /etc/rc.d/${CMD1}; then /etc/rc.d/${CMD2}; fi d27 1 a27 1 ${f}: Makefile ${f}.in @ 1.3.6.2 log @sync with head. for a reference, the tree before this commit was tagged as yamt-pagecache-tag8. this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments") @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3.6.1 2012/04/17 00:04:02 yamt Exp $ a28 2 -e 's:@@SBINDIR@@:/sbin:g' \ -e 's:@@RCDIR@@:/etc/rc.d:g' \ @ 1.2 log @Fix subst so that the subcribers can restart their daemon. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2009/11/21 03:24:31 roy Exp $ d10 1 a10 1 SCRIPTS+= libc dnsmasq named unbound d12 6 a17 2 SCRIPTSDIR_resolvconf= /sbin SCRIPTSDIR= /libexec/resolvconf d21 1 a21 1 CLEANFILES= ${SCRIPTS} ${MAN} d26 1 a26 1 .for f in ${SCRIPTS} ${MAN} @ 1.1 log @Hook openresolv into build. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2009/10/02 21:40:16 roy Exp $ d19 3 a21 3 CMD1= \\1 status >/dev/null 2>\\&1 CMD2= \\1 restart RESTART_CMD= /etc/rc.d/${CMD1} \\&\\& /etc/rc.d/${CMD2} d28 1 a28 1 -e 's:@@RESTARTCMD \(.*\)@@:${RESARTCMD}:g' \ @