Browse code

deb: added mod_mysql, removed mod_py from sems pkg

debian authored on 24/09/2010 04:09:27
Showing 3 changed files
... ...
@@ -4,7 +4,7 @@ COREPATH = $(DSMPATH)/../../core
4 4
 
5 5
 include $(COREPATH)/../Makefile.defs
6 6
 
7
-exclude_dsm_modules = mod_mysql mod_aws
7
+exclude_dsm_modules ?= mod_mysql mod_aws
8 8
 
9 9
 ifneq ($(USE_MONITORING), yes)
10 10
 exclude_dsm_modules += mod_monitoring
... ...
@@ -15,7 +15,6 @@ dsm_modules = $(filter-out $(subst ;, ,$(exclude_dsm_modules))\
15 15
 		$(wildcard Makefile*) lib CMakeLists.txt, \
16 16
 		$(wildcard *) )
17 17
 
18
-
19 18
 .PHONY: all
20 19
 all: modules
21 20
 
... ...
@@ -1,8 +1,8 @@
1 1
 Source: sems
2 2
 Section: net
3 3
 Priority: optional
4
-Maintainer: Stefan Sayer <sayer@iptel.org>
5
-Build-Depends: debhelper (>= 4), libspeex-dev, flite-dev, libspandsp-dev, libssl-dev, python-dev, sip4, python-sip4-dev, openssl, libev-dev
4
+Maintainer: Stefan Sayer <stefan.sayer@gmail.com>
5
+Build-Depends: debhelper (>= 4), libspeex-dev, flite-dev, libspandsp-dev, libssl-dev, python-dev, sip4, python-sip4-dev, openssl, libev-dev, libmysql++-dev
6 6
 Standards-Version: 3.5.2
7 7
 
8 8
 Package: sems
... ...
@@ -21,6 +21,8 @@ PYTHON_MODULES=ivr py_sems conf_auth mailbox pin_collect
21 21
 
22 22
 EXCLUDED_MODULES=gateway examples mp3
23 23
 
24
+EXCLUDED_DSM_MODULES=mod_aws
25
+EXCLUDED_DSM_PY_MODULES=mod_aws mod_py
24 26
 CPPFLAGS += -DHAVE_XMLRPCPP_SSL 
25 27
 # for older than lenny add:
26 28
 # -DHAVE_OLD_SPANDSP_CALLBACK
... ...
@@ -47,7 +49,10 @@ build-stamp: configure-stamp
47 49
 # Add here commands to compile the package.
48 50
 	USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
49 51
 	$(MAKE) \
50
-	cfg-target=/etc/sems/ prefix=/usr exclude_app_modules="$(EXCLUDED_MODULES)" DESTDIR=$(CURDIR)/debian/sems
52
+	cfg-target=/etc/sems/ prefix=/usr \
53
+	exclude_app_modules="$(EXCLUDED_MODULES)" \
54
+	exclude_dsm_modules="$(EXCLUDED_DSM_MODULES)" \
55
+	DESTDIR=$(CURDIR)/debian/sems
51 56
 #/usr/bin/docbook-to-man debian/ser.sgml > ser.1
52 57
 
53 58
 	touch build-stamp
... ...
@@ -75,7 +80,9 @@ install: build
75 80
 		cfg-target=/etc/sems/
76 81
 
77 82
 	USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
78
-	$(MAKE) -C apps/ install exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
83
+	$(MAKE) -C apps/ install \
84
+		exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
85
+		exclude_dsm_modules="$(EXCLUDED_DSM_PY_MODULES)" \
79 86
 		DESTDIR=$(CURDIR)/debian/sems \
80 87
 		prefix=/usr \
81 88
 		cfg-target=/etc/sems/
... ...
@@ -85,7 +92,15 @@ install: build
85 92
 
86 93
 # install only the python modules
87 94
 	USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
88
-	$(MAKE) -C apps/ install app_modules="$(PYTHON_MODULES)" \
95
+	$(MAKE) -C apps/ install \
96
+		app_modules="$(PYTHON_MODULES)" \
97
+		DESTDIR=$(CURDIR)/debian/sems-python-modules \
98
+		prefix=/usr \
99
+		cfg-target=/etc/sems/  
100
+
101
+# install mod_py DSM module
102
+	USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)" \
103
+	$(MAKE) -C apps/dsm/mods/mod_py install \
89 104
 		DESTDIR=$(CURDIR)/debian/sems-python-modules \
90 105
 		prefix=/usr \
91 106
 		cfg-target=/etc/sems/