workflow question: how do you maintain the port in sync with upstream?

Mathieu Arnold mat at FreeBSD.org
Tue Aug 14 15:33:41 UTC 2018


On Tue, Aug 14, 2018 at 10:41:43PM +0800, blubee blubeeme wrote:
> This one is fairly straight forward, you can simply replace that string
> with a regex command;
> This is an example of running a replace command for strings after the patch
> phase of the build;
> 
> post-patch:
> 	@${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' ${WRKSRC}/README

Patching files in post-patch using sed SHOULD only be used to replace
dynamic content, never static content.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20180814/bdc4f592/attachment.sig>


More information about the freebsd-ports mailing list