[Pkg-voip-commits] r9292 - /opensips/trunk/debian/rules
alerios at alioth.debian.org
alerios at alioth.debian.org
Thu Sep 29 18:29:34 UTC 2011
Author: alerios
Date: Thu Sep 29 18:29:34 2011
New Revision: 9292
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=9292
Log:
Build only stable and beta modules (not alpha or unmantained).
Modified:
opensips/trunk/debian/rules
Modified: opensips/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/rules?rev=9292&op=diff
==============================================================================
--- opensips/trunk/debian/rules (original)
+++ opensips/trunk/debian/rules Thu Sep 29 18:29:34 2011
@@ -17,13 +17,43 @@
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
-# modules not in the "main" package or unstable modules
-EXCLUDED_MODULES = identity
+# include modules not included by default
+INCLUDE_MODULES = db_mysql b2b_logic jabber cpl-c xmpp rls mi_xmlrpc xcap_client \
+ db_mysql db_postgres db_unixodbc db_berkeley aaa_radius \
+ perl snmpstats perlvdb \
+ presence presence_xml presence_mwi \
+ pua pua_bla pua_mi pua_usrloc pua_xmpp \
+ ldap h350 memcached db_http dialplan
+
+# alpha or unmaintained modules
+EXCLUDED_MODULES = auth_diameter presence_xcapdiff presence_callinfo uac_registrant qos userblacklist
# Do we want the TLS version ?
# Disabled by default due to license issues, set to non-void to enable
TLS=
+# Do we want to build the OSP module ?
+# Disabled by default due to license issues, set to non-void to enable
+OSP=
+
+ifeq (,$(OSP))
+ DH_OPTIONS += -Nopensips-osp-module
+else
+ ALL_PACKAGES += opensips-osp-module
+endif
+
+# Do we want to build the IDENTITY module ?
+# Disabled by default due to license issues, set to non-void to enable
+IDENTITY=
+
+ifeq (,$(IDENTITY))
+ DH_OPTIONS += -Nopensips-identity-module
+else
+ ALL_PACKAGES += opensips-identity-module
+endif
+
+
+export DH_OPTIONS
ifeq (cc, $(CC))
CC = gcc
@@ -59,7 +89,7 @@
# Add here commands to compile the package.
CC="$(CC)" CFLAGS="$(CFLAGS)" $(VARS) $(MAKE) all \
- include_modules="db_mysql" \
+ include_modules="$(INCLUDE_MODULES)" \
skip_modules="$(EXCLUDED_MODULES)" \
prefix=/usr \
cfg-target=/etc/opensips/
@@ -106,10 +136,6 @@
basedir=$(CURDIR)/debian/opensips-console \
prefix=/usr
- # the modules packages all ship an empty /usr/sbin directory,
- # let's clean that up
- for p in $(ALL_PACKAGES); \
- do rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/$$p/usr/sbin; done
rm $(CURDIR)/debian/opensips/usr/share/doc/opensips/INSTALL
# This single target is used to build all the packages, all at once, or
More information about the Pkg-voip-commits
mailing list