[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modifying a @sample file before installation



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