From owner-freebsd-questions@FreeBSD.ORG Mon May 10 00:32:31 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE1C2106566C for ; Mon, 10 May 2010 00:32:31 +0000 (UTC) (envelope-from fbsd1@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id BDE3A8FC14 for ; Mon, 10 May 2010 00:32:31 +0000 (UTC) Received: from [10.0.10.3] ([202.69.173.106]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 9 May 2010 17:32:27 -0700 Message-ID: <4BE7541A.4010804@a1poweruser.com> Date: Mon, 10 May 2010 08:32:26 +0800 From: Fbsd1 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Yuri Pankov References: <4BE74941.4040705@a1poweruser.com> <20100509235448.GA1747@darklight.org.ru> <4BE75117.2000308@a1poweruser.com> <20100510002418.GB1747@darklight.org.ru> In-Reply-To: <20100510002418.GB1747@darklight.org.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 May 2010 00:32:28.0177 (UTC) FILETIME=[44EBF810:01CAEFD8] X-Sender: fbsd1@a1poweruser.com Cc: "questions@freebsd.org" Subject: Re: port pkg-plist X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2010 00:32:32 -0000 Yuri Pankov wrote: > 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 > Where do I find doc on this @unexec command?