port pkg-plist

Yuri Pankov yuri.pankov at gmail.com
Mon May 10 00:24:23 UTC 2010


On Mon, May 10, 2010 at 08:19:35AM +0800, Fbsd1 wrote:
> Yuri Pankov wrote:
> >On Mon, May 10, 2010 at 07:46:09AM +0800, Fbsd1 wrote:
> >>In a port I am creating I have some files that are not in the
> >>/usr/local directory tree. There in /var/log & /var/db. What is the
> >>correct format of the statement in ports pkg-plist file to have
> >>these files deleted when the port is deleted with pkg_delete
> >>command.
> >
> >....
> >@cwd /var
> >db/dbfile
> >log/logfile
> >
> >HTH,
> >Yuri
> >
> >
> Thanks that worked. Have another question.
> During the install of the port it adds a enable="YES" statement to
> /etc/rc.conf. It there some pre-canned way to auto remove that
> statement when the port is deleted with pkg_delete command?

You shouldn't directly modify rc.conf to enable some service, put
instructions on how to enable it in pkg-message instead.

Having said that, check @unexec command, which is run on package
deinstallation.

Yuri


More information about the freebsd-questions mailing list