Module: sems
Branch: master
Commit: 5ede8b48c258de20dfff80837cee197e60566b7b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=5ede8b48c258de20dfff80837cee197e60566b7b
Author: debian <deb...@debian.(none)>
Committer: debian <deb...@debian.(none)>
Date: Fri Sep 24 00:09:27 2010 -0400
deb: added mod_mysql, removed mod_py from sems pkg
---
apps/dsm/mods/Makefile | 3 +--
pkg/debian/control | 4 ++--
pkg/debian/rules | 21 ++++++++++++++++++---
3 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/apps/dsm/mods/Makefile b/apps/dsm/mods/Makefile
index 4c25789..998288a 100644
--- a/apps/dsm/mods/Makefile
+++ b/apps/dsm/mods/Makefile
@@ -4,7 +4,7 @@ COREPATH = $(DSMPATH)/../../core
include $(COREPATH)/../Makefile.defs
-exclude_dsm_modules = mod_mysql mod_aws
+exclude_dsm_modules ?= mod_mysql mod_aws
ifneq ($(USE_MONITORING), yes)
exclude_dsm_modules += mod_monitoring
@@ -15,7 +15,6 @@ dsm_modules = $(filter-out $(subst ;,
,$(exclude_dsm_modules))\
$(wildcard Makefile*) lib CMakeLists.txt, \
$(wildcard *) )
-
.PHONY: all
all: modules
diff --git a/pkg/debian/control b/pkg/debian/control
index cadb4d2..42f832a 100644
--- a/pkg/debian/control
+++ b/pkg/debian/control
@@ -1,8 +1,8 @@
Source: sems
Section: net
Priority: optional
-Maintainer: Stefan Sayer <[email protected]>
-Build-Depends: debhelper (>= 4), libspeex-dev, flite-dev, libspandsp-dev,
libssl-dev, python-dev, sip4, python-sip4-dev, openssl, libev-dev
+Maintainer: Stefan Sayer <[email protected]>
+Build-Depends: debhelper (>= 4), libspeex-dev, flite-dev, libspandsp-dev,
libssl-dev, python-dev, sip4, python-sip4-dev, openssl, libev-dev,
libmysql++-dev
Standards-Version: 3.5.2
Package: sems
diff --git a/pkg/debian/rules b/pkg/debian/rules
index f0465ae..bcba1a2 100755
--- a/pkg/debian/rules
+++ b/pkg/debian/rules
@@ -21,6 +21,8 @@ PYTHON_MODULES=ivr py_sems conf_auth mailbox pin_collect
EXCLUDED_MODULES=gateway examples mp3
+EXCLUDED_DSM_MODULES=mod_aws
+EXCLUDED_DSM_PY_MODULES=mod_aws mod_py
CPPFLAGS += -DHAVE_XMLRPCPP_SSL
# for older than lenny add:
# -DHAVE_OLD_SPANDSP_CALLBACK
@@ -47,7 +49,10 @@ build-stamp: configure-stamp
# Add here commands to compile the package.
USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
$(MAKE) \
- cfg-target=/etc/sems/ prefix=/usr
exclude_app_modules="$(EXCLUDED_MODULES)" DESTDIR=$(CURDIR)/debian/sems
+ cfg-target=/etc/sems/ prefix=/usr \
+ exclude_app_modules="$(EXCLUDED_MODULES)" \
+ exclude_dsm_modules="$(EXCLUDED_DSM_MODULES)" \
+ DESTDIR=$(CURDIR)/debian/sems
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1
touch build-stamp
@@ -75,7 +80,9 @@ install: build
cfg-target=/etc/sems/
USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
- $(MAKE) -C apps/ install exclude_app_modules="$(EXCLUDED_MODULES)
$(PYTHON_MODULES)" \
+ $(MAKE) -C apps/ install \
+ exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
+ exclude_dsm_modules="$(EXCLUDED_DSM_PY_MODULES)" \
DESTDIR=$(CURDIR)/debian/sems \
prefix=/usr \
cfg-target=/etc/sems/
@@ -85,7 +92,15 @@ install: build
# install only the python modules
USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
- $(MAKE) -C apps/ install app_modules="$(PYTHON_MODULES)" \
+ $(MAKE) -C apps/ install \
+ app_modules="$(PYTHON_MODULES)" \
+ DESTDIR=$(CURDIR)/debian/sems-python-modules \
+ prefix=/usr \
+ cfg-target=/etc/sems/
+
+# install mod_py DSM module
+ USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
+ $(MAKE) -C apps/dsm/mods/mod_py install \
DESTDIR=$(CURDIR)/debian/sems-python-modules \
prefix=/usr \
cfg-target=/etc/sems/
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev