From owner-freebsd-ports@FreeBSD.ORG Tue Jul 20 11:25:41 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F66116A4CE for ; Tue, 20 Jul 2004 11:25:41 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56ADB43D55 for ; Tue, 20 Jul 2004 11:25:41 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-14.local ([172.16.0.14] helo=dhcp-11.local) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.40 (FreeBSD)) id 1Bmskc-00048t-HU; Tue, 20 Jul 2004 13:25:40 +0200 Date: Tue, 20 Jul 2004 13:26:37 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: David Julien From: Oliver Eikemeier In-Reply-To: Message-Id: Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ports@FreeBSD.org Subject: Re: Are files and directories mandatory in pkg-plist ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 11:25:41 -0000 David Julien wrote: > Hi, > > I write a port for an ocaml package (my first one!) but I have a > problem when I try to deinstall the port. Indeed I use an ocaml > program which is named "ocamlfind" to install and deinstall the files > at the right place in the ocaml library directory. But this program > deletes automatically the directories and the files when the port is > deinstall, and failed if the directories / files are already deleted. You have the problem of two conflicting package managers (ocamlfind and pkg_install tools). I guess installing from a package (via pkg_add) doesn't work too? > I have to run it to deinstall properly the package because, for this > package, it updates some configuration files (which does not seem the > case for other ocaml package ports). Is there a way to update the configuration files without having ocamlfind installing/deinstalling files? > Do I have to list in the pkg-plist the files and directories or it is > not mandatory ? If it is mandatory, what can I do ? It depends. While I would strongly prefer a solution where you list the files as `owned' by the package, but when there is no way to make this work you could just embed them as ignored files and call ocamlfind install/remove from pkg-install/pkg-deinstall. -Oliver