Ports that have multiple configuration files

Denis Shaposhnikov dsh at wizard.volgograd.ru
Sun Jan 6 10:46:38 PST 2008


Hello,

On Sun, 06 Jan 2008 01:26:41 -0500
Naram Qashat <cyberbotx at 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 at wizard.volgograd.ru xmpp:dsh at vlink.ru
http://wizard.volgograd.ru/ 2:550/5068 at fidonet 2:550/5069 at fidonet


More information about the freebsd-ports mailing list