From owner-freebsd-ports@FreeBSD.ORG Sun Jan 6 18:46:38 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33F1B16A419 for ; Sun, 6 Jan 2008 18:46:38 +0000 (UTC) (envelope-from dsh@wizard.volgograd.ru) Received: from sagitta.internal.vlink.ru (alias.rigel.internal.vlink.ru [85.172.168.14]) by mx1.freebsd.org (Postfix) with ESMTP id B7F3713C43E for ; Sun, 6 Jan 2008 18:46:36 +0000 (UTC) (envelope-from dsh@wizard.volgograd.ru) Received: from sagitta.internal.vlink.ru (localhost [127.0.0.1]) by sagitta.internal.vlink.ru (Postfix) with ESMTP id 7BD291F481B for ; Sun, 6 Jan 2008 21:27:47 +0300 (MSK) Received: from localhost (wizard.vlink.ru [85.172.168.67]) by sagitta.internal.vlink.ru (Postfix) with ESMTPSA id 4FB681F477B for ; Sun, 6 Jan 2008 21:27:47 +0300 (MSK) Date: Sun, 6 Jan 2008 21:27:45 +0300 From: Denis Shaposhnikov To: freebsd-ports@freebsd.org Message-ID: <20080106212745.4c0acfef@wizard.volgograd.ru> In-Reply-To: <478074A1.7020409@cyberbotx.com> References: <478068A6.7040408@cyberbotx.com> <47807231.6000202@FreeBSD.org> <478074A1.7020409@cyberbotx.com> X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.3; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: Ports that have multiple configuration files X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2008 18:46:38 -0000 Hello, On Sun, 06 Jan 2008 01:26:41 -0500 Naram Qashat wrote: > I can see how the loop would work within the Makefile. But I don't > see how I would handle @unexec and @exec commands in pkg-plist for so > many configuration files. I ask because there are 34 separate > configuration files within the port I am trying to create. I think that you can try to use pkg-install for this target. For example: case $2 in POST-INSTALL) # Install real files from *.default. for i in lib templates; do for j in `find ${PKG_PREFIX}/ispman/${i} -name '*.default'`; do real=${j%.default} [ -f $real ] || cp -p $j $real done done ;; esac And pkg-deinstall of course for delete them. -- DSS5-RIPE DSS-RIPN mailto:dsh@wizard.volgograd.ru xmpp:dsh@vlink.ru http://wizard.volgograd.ru/ 2:550/5068@fidonet 2:550/5069@fidonet