On Sat, Jul 30, 2016 at 08:40:02PM -0500, Pedro Giffuni wrote: > (CC'ing Glen for review, since he was the last to touch that file and > may know better). > Unfortunately, I don't know better. I only touched the file last in order to close a PR prior to the final 10.2-RELEASE (if I remember correctly). > Hi Guy; > > > On 07/30/16 17:37, Guy Yur wrote: > >Hi, > > > >openresolv 3.8.1 added RESTARTCMD=_at_RESTARTCMD_at_ in > >contrib/openresolv/resolvconf.in. > >It is not replaced by the sed expressions in sbin/resolvconf/Makefile. > > > >Error seen is "eval: _at_RESTARTCMD_at_: not found". > > > >Current _at_RESTARTCMD \(.*\)_at_ sed expression needs to be kept for > >pdns_recursor.in and a new expression added to replace _at_RESTARTCMD_at_. > > > > I see, you mean here: > > https://svnweb.freebsd.org/base/head/sbin/resolvconf/Makefile?revision=298107&view=markup#l32 > > >The following worked for me: > >RESTARTCMD_= "/usr/sbin/service \\$$1 onestatus >/dev/null 2>\&1 > >\&\& /usr/sbin/service \\$$1 restart" > > > >sed ... \ > > ... \ > > -e 's:_at_RESTARTCMD_at_:${RESTARTCMD_}:g' \ > > ... > > And perhaps something like the attached patch (is the underscore > a typo?). > > I don't see the error message though. so I need some confirmation that > this fixes the issue. > Likewise, I do not see the error either, so would like definitive confirmation the patch resolves the issue. > Index: sbin/resolvconf/Makefile > =================================================================== > --- sbin/resolvconf/Makefile (revision 303557) > +++ sbin/resolvconf/Makefile (working copy) > _at__at_ -30,6 +30,7 _at__at_ > -e 's:_at_LIBEXECDIR_at_:${FILESDIR}:g' \ > -e 's:_at_VARDIR_at_:${VARDIR}:g' \ > -e 's:_at_RESTARTCMD \(.*\)_at_:${RESTARTCMD}:g' \ > + -e 's:_at_RESTARTCMD_at_:${RESTARTCMD}:g' \ > -e 's:_at_RCDIR_at_:${RCDIR}:g' \ > -e 's: vpn : ng[0-9]*&:g' \ > ${DIST}/$_at_.in > $_at_ Glen
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC