[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Modifying a @sample file before installation
- To: ports_(_at_)_openbsd_(_dot_)_org
- Subject: Modifying a @sample file before installation
- From: Matthias Kilian <kili_(_at_)_outback_(_dot_)_escape_(_dot_)_de>
- Date: Thu, 2 Dec 2004 18:39:15 +0100
- Mail-followup-to: ports_(_at_)_openbsd_(_dot_)_org
I'm working on a port for ecartis (a mailinglist manager), and I'd
like to substitute some values of the default configuration with
the hostname of the machine it's actually installed on.
What's the best way to do this?
For the old package system, I just use an INSTALL script with something
like this:
SAMPLES_CONF=${PKG_PREFIX}/share/examples/ecartis/ecartis.cfg
INSTALLED_CONF=${SYSCONFDIR}/ecartis/ecartis.cfg
install -d $CONFIG_DIR
sed <<some substitutions>> $SAMPLES_CONF > INSTALLED_CONF
However, I've no idea how to get this behaviour by just using a
@sample entry in PLIST (without doing some possibly strange @exec
hacking).
Any hints?
Ciao,
Kili
Visit your host, monkey.org