On Mon, Jul 27, 2015 at 10:35:57PM +0100, ni...@openbsd.org wrote: > Replaced perl with sed -i, inplace edit, using a single pass. > > No actual changes to package. > > Ok?
I don't like the fact that you hide the command now. > Index: Makefile > =================================================================== > RCS file: /home/cvs/ports/security/nikto/Makefile,v > retrieving revision 1.22 > diff -u -p -r1.22 Makefile > --- Makefile 11 Mar 2013 11:41:26 -0000 1.22 > +++ Makefile 23 Jul 2015 14:18:52 -0000 > @@ -25,11 +25,9 @@ NO_TEST = Yes > PKG_ARCH = * > > pre-configure: > - perl -pi -e 's,# EXECDIR=.+,EXECDIR=${PREFIX}/share/nikto,' \ > - ${WRKSRC}/nikto.conf > - perl -pi -e 's,# DOCDIR=.+,DOCDIR=${PREFIX}/share/doc/nikto,' \ > - ${WRKSRC}/nikto.conf > - perl -pi -e 's,# DBDIR=.+,DBDIR=/var/db/nikto/databases,' \ > + @sed -i 's%# EXECDIR=.*%EXECDIR=${PREFIX}/share/nikto%; \ > + s%# DOCDIR=.*%DOCDIR=${PREFIX}/share/doc/nikto%; \ > + s%# DBDIR=.*%DBDIR=/var/db/nikto/databases%' \ > ${WRKSRC}/nikto.conf > > do-install: > > -- Antoine