Date: Sun, 6 Jan 2008 21:27:45 +0300 From: Denis Shaposhnikov <dsh@wizard.volgograd.ru> To: freebsd-ports@freebsd.org Subject: Re: Ports that have multiple configuration files 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, On Sun, 06 Jan 2008 01:26:41 -0500 Naram Qashat <cyberbotx@cyberbotx.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080106212745.4c0acfef>