[asterisk-dev] asterisk rpm package: asterisk-config
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Jun 16 03:06:02 CDT 2015
Hi,
I'd like to get some feedback on the following:
In the packaging of asterisk, I'd like to be able to provide an
alternative set of asterisk configuration files as an rpm package. For
instance, I know that FreePBX has a general disrespect for packaging,
but I would still like to package it and would like to provide an
asterisk-config-freepbx package. But I would not like to make the
packaging unsuitable for vanila Asterisk.
On Debian there is a separate package asterisk-config and the main
package asterisk depends on:
asterisk-config (= ${source:Version}) | asterisk-config-custom
Thus it would normally pull the package asterisk-config built from the
same source, but may also use another package that Provides:
asterisk-config-custom. See also
http://anonscm.debian.org/cgit/pkg-voip/asterisk.git/tree/debian/asterisk-config-custom
I would like to have the same with an RPM package. However I can't have
a or-ed dependency. Likewise I can't use the workaround of dpkg-divert
to have another package take control of some of the files under
/etc/asterisk.
The best I came up with is:
asterisk.spec:
# Main package:
Requires: asterisk-config
# %package config
Conflicts: asterisk < %{version}, asterisk > %{version}
another-asteris-config.spec:
Provides: asterisk-config
Any thoughts?
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com
More information about the asterisk-dev
mailing list