From owner-freebsd-questions@FreeBSD.ORG Mon May 10 00:24:23 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 5676D1065670 for ; Mon, 10 May 2010 00:24:23 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id CFC5A8FC1F for ; Mon, 10 May 2010 00:24:22 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so354747fge.13 for ; Sun, 09 May 2010 17:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=YYydXzgTdLjMPzex6fhdEK3tCMN/a/kCexHFU56YVh8=; b=f1EyKb8OPTKEVDhlfzlHKHOiFQdYyp2qzDcoVhhLzVrXGO46j2LJF65S7Iwd2hzjiO sH+UKKwVX7pUtI1HpGF977jSJrYvlset0+4t5XImv3rZa90WlcwYfZ+o6Bk/RLV3Zz55 COaWU9DKaHsXwCNhe+Ond3TXEFugrBZBI9Bp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=IA//DBzPdbI5769V9wgfKpduobWa1Y5SGjj1lN6cczSZQ+IOphhDXfq+50tXiBiKz8 mOKa7qdoLDPQVQKRYrE5OJ/clLSfVq8BFTrsVAoYfuHR5LPlkLL+zXd4+HZw4pllKs/b 3NiBtzZoAPf3zS6Kn6Qv9rVZA63lR5pY6BpGg= Received: by 10.86.22.32 with SMTP id 32mr8365823fgv.61.1273451061719; Sun, 09 May 2010 17:24:21 -0700 (PDT) Received: from darklight.org.ru ([213.132.76.142]) by mx.google.com with ESMTPS id h2sm8588157fkh.55.2010.05.09.17.24.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 May 2010 17:24:21 -0700 (PDT) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.4/8.14.4) with ESMTP id o4A0OIYS002248; Mon, 10 May 2010 04:24:19 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.4/8.14.4/Submit) id o4A0OIrj002247; Mon, 10 May 2010 04:24:18 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.org.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Mon, 10 May 2010 04:24:18 +0400 From: Yuri Pankov To: Fbsd1 Message-ID: <20100510002418.GB1747@darklight.org.ru> References: <4BE74941.4040705@a1poweruser.com> <20100509235448.GA1747@darklight.org.ru> <4BE75117.2000308@a1poweruser.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BE75117.2000308@a1poweruser.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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:24:23 -0000 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