Are files and directories mandatory in pkg-plist ?

Oliver Eikemeier eikemeier at fillmore-labs.com
Wed Jul 21 01:05:51 PDT 2004


David Julien wrote:

> [...]
> There are other ocaml packages which seem to be in the same case, for
> instance  ocaml-pcre. To deinstall the port they delete the added line
> in ld.conf thanks to a "grep -v" in the pkg-install file (why not
> pkg-deinstall ?).
>
> I have tested my port with these modifications and it seems to work
> correctly now ! Thank you.

ocaml-pcre does
   PKGDEINSTALL=	${PKGINSTALL}
which you might want to avoid. Use pkg-deinstall when possible. Another 
nit is that you want to generate the `.tmp' file first (perhaps even by 
using mktemp), and move it in place later, so a failed grep won't 
corrupt your database.

-Oliver



More information about the freebsd-ports mailing list