DISTFILE is a .c, gets patched in /usr/ports/distfiles

Dag-Erling Smørgrav des at des.no
Fri Apr 23 07:32:18 PDT 2004


Paul Chvostek <paul+fbsd at it.ca> writes:
> I'm trying to make a port for an old (1998) piece of software that is
> currently available as a C program downloadable from a variety of places
> that archived it when it was originally posted to a mailing list.  There
> is no .tar.gz, no autoconf -- just a .c that needs mail headers stripped
> off and a couple of changes to the source.

Web proxies and FTP servers can and will introduce whitespace and
line-ending changes in transit.  I would recommend that you roll your
own distribution of that program and use that in the port.

> The problem is ... when the "patch" make target runs, it modifies the .c
> file (/usr/ports/distfiles/example.c) IN PLACE, leaving the original as
> /usr/ports/distfiles/example.c.orig.

That is wrong.  You should add an extract target that copies the
source file to $WRKSRC.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-ports mailing list