From owner-freebsd-questions@FreeBSD.ORG Mon May 10 01:12:20 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 8D0FF106564A for ; Mon, 10 May 2010 01:12:20 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 12D968FC0A for ; Mon, 10 May 2010 01:12:19 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so997018fgb.13 for ; Sun, 09 May 2010 18:12:19 -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=PAUAeaDscQDOe3C83dBG0yboppc8KKFbku0stOGDynk=; b=TNoGfBlLY+tw2si5lu68lyA11foVkNWzmoIJlOxkiQ8nDAJWmoAC5PQ3c0bfEKzqLx 9qCdMpk/sMacSyVKQs3hckiDVzJvRcloffNgVRoSz54hrfiXurozEKNgistEHfmsmNdb YpbjmKP9SG3gky24G7YDNAnt6FTtRn0vQfdug= 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=gpbKhHVtfsMV3s4Xb6lX8C5MNSbxifdSfmWK2yJ8itjRf19BZRmmUybh7dc9y5h7Hl wW3+lPB5/sgdb3dfvyywwnjsx/Gw7u4qQChyD6lZORyeQrEZD3QFYtH/JzdnyXm+BuYE ibASsmxO7439B8dEBHS3ACHbZ5EaAzRzaUb9s= Received: by 10.87.50.6 with SMTP id c6mr8504968fgk.41.1273453938838; Sun, 09 May 2010 18:12:18 -0700 (PDT) Received: from darklight.org.ru ([213.132.76.142]) by mx.google.com with ESMTPS id k29sm8634803fkk.45.2010.05.09.18.12.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 May 2010 18:12:18 -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 o4A1CF6N006057; Mon, 10 May 2010 05:12:16 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.4/8.14.4/Submit) id o4A1CEUN006056; Mon, 10 May 2010 05:12:14 +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 05:12:14 +0400 From: Yuri Pankov To: Fbsd1 Message-ID: <20100510011214.GC1747@darklight.org.ru> References: <4BE74941.4040705@a1poweruser.com> <20100509235448.GA1747@darklight.org.ru> <4BE75117.2000308@a1poweruser.com> <20100510002418.GB1747@darklight.org.ru> <4BE7541A.4010804@a1poweruser.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BE7541A.4010804@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 01:12:20 -0000 On Mon, May 10, 2010 at 08:32:26AM +0800, Fbsd1 wrote: > 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? All these commands are documented in pkg_create(1). Yuri