removing file doing uninstall

Chris Rees utisoft at gmail.com
Sat Apr 27 13:37:54 UTC 2013


On 27 Apr 2013 14:12, "Carmel" <carmel_ny at hotmail.com> wrote:
>
> How do I remove a file from an older release that is no longer in the
> newer release.
>
> Assume:
>
> "Release.html" is in the older port version. In the newer port version,
> it has been replaced by "Release.pdf".
>
> I tried placing this in the "pkg-plist"file.
>
> @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f
%%PORTDOCS%%%%DOCSDIR%%/Release.html; fi
>
> However, while "portlint -A" has no problem with it, I receive:
>
> share/doc/scamp/Release.html: not found
> pkg_delete: unable to completely remove directory
>
> when running "make deinstall"
>
> @unexec if %%PORTDOCS%%%%DOCSDIR%%/Release.html; then rm -f
%%PORTDOCS%%%%DOCSDIR%%/Release.html; fi

No need.  The file is deleted when the older package is deinstalled.

Chris


More information about the freebsd-ports mailing list