Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jun 2000 20:14:55 -0300
From:      lioux@uol.com.br
To:        Dan Larsson <dl@tyfon.net>
Cc:        ports@FreeBSD.ORG
Subject:   Re: PLIST entries problem
Message-ID:  <20000611201455.A88122@Fedaykin.here>
In-Reply-To: <NEBBJANJCNNAKCPFKHHFCEGGCGAA.dl@tyfon.net>; from dl@tyfon.net on Sun, Jun 11, 2000 at 09:05:32PM %2B0200
References:  <NEBBJANJCNNAKCPFKHHFCEGGCGAA.dl@tyfon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 11, 2000 at 09:05:32PM +0200, Dan Larsson wrote:
> How do I specify in my PLIST that
> the directory: '/var/db/myappdbs' 
> should be removed during deinstallation?

From pkg_create(1) manual page:

     @dirrm name
	     Declare directory name to be deleted at deinstall
	     time.  By de- fault, directories created by a package
	     installation are not deleted when the package is
	     deinstalled; this provides an explic- it directory
	     cleanup method.  This directive should appear at the
	     end of the package list.  If more than one @dirrm
	     directives are used, the directories are removed in
	     the order specified.  The name directory will not be
	     removed unless it is empty.

Hence,
	@cwd /
	@dirrm /var/db/myappdbs

Put those 2 babies at the end of your PLIST.  cwd is necessary
because dirrm is relative to the current directory.

You also might consider reading the porters handbook. :)

	Regards,
		Mario Ferreira


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000611201455.A88122>