svn commit: r308260 - head/net-mgmt/p5-Net-IP
Eitan Adler
eadler at freebsd.org
Wed Dec 5 01:46:15 UTC 2012
On 4 December 2012 20:28, Alexey Dokuchaev <danfe at freebsd.org> wrote:
> On Tue, Dec 04, 2012 at 06:54:18PM +0000, Chris Rees wrote:
>> On 4 Dec 2012 18:15, "Eitan Adler" <eadler at freebsd.org> wrote:
>> > post-patch:
>> > - @${CP} ${WRKSRC}/IP.pm ${WRKSRC}/IP.pm.presed
>> > - @${SED} -e "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm.presed > \
>> > - ${WRKSRC}/IP.pm
>> > - @${CP} ${WRKSRC}/ipcount ${WRKSRC}/ipcount.presed
>> > - @${SED} -e "76s#count#count = 0#" ${WRKSRC}/ipcount.presed > \
>> > - ${WRKSRC}/ipcount
>> > + ${REINPLACE_CMD} "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm
>> > + ${REINPLACE_CMD} "76s#count#count = 0#" ${WRKSRC}/ipcount
>>
>> These are horrible- why not patches?
>
> There *were* horrible; now they are pretty much clear and trivial. While it
> is largely the matter of taste, I also prefer to perform simple mechanical
> changes with sed(1) and use patches for some more complicated logic.
They remain horrible because they use sed to modify a specific line.
That said, I'll leave them for now and revisit when I update the port.
--
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams
More information about the svn-ports-all
mailing list