Browse code

pkg/deb: fix dh_strip

Victor Seva authored on 15/06/2014 12:59:01
Showing 1 changed files
... ...
@@ -40,3 +40,10 @@ override_dh_auto_install:
40 40
 
41 41
 override_dh_strip:
42 42
 	dh_strip --dbg-package=sems-dbg
43
+	# those binaries aren't automatically stripped
44
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
45
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
46
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
47
+	test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
48
+		strip --remove-section=.comment --remove-section=.note --strip-unneeded \
49
+		$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos
Browse code

pkg/deb: add jessie, wheezy and precise distributions

Victor Seva authored on 07/04/2014 15:08:13
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,42 @@
1
+#!/usr/bin/make -f
2
+# -*- makefile -*-
3
+
4
+# Uncomment this to turn on verbose mode.
5
+export DH_VERBOSE=1
6
+
7
+PYTHON_MODULES=ivr conf_auth mailbox pin_collect
8
+
9
+EXCLUDED_MODULES=gateway examples mp3 twit
10
+
11
+EXCLUDED_DSM_MODULES=mod_aws
12
+EXCLUDED_DSM_PY_MODULES=mod_aws mod_py
13
+
14
+CPPFLAGS += -DHAVE_XMLRPCPP_SSL
15
+
16
+export USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)"
17
+
18
+%:
19
+	dh $@
20
+
21
+override_dh_auto_build:
22
+	$(MAKE) \
23
+	cfg-target=/etc/sems/ prefix=/usr \
24
+	exclude_app_modules="$(EXCLUDED_MODULES)" \
25
+	exclude_dsm_modules="$(EXCLUDED_DSM_MODULES)" \
26
+	DESTDIR=$(CURDIR)/debian/sems
27
+
28
+override_dh_auto_install:
29
+	$(MAKE) -C core/ install \
30
+		DESTDIR=$(CURDIR)/debian/sems \
31
+		prefix=/usr \
32
+		cfg-target=/etc/sems/
33
+
34
+	$(MAKE) -C apps/ install \
35
+		exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
36
+		exclude_dsm_modules="$(EXCLUDED_DSM_PY_MODULES)" \
37
+		DESTDIR=$(CURDIR)/debian/sems \
38
+		prefix=/usr \
39
+		cfg-target=/etc/sems/
40
+
41
+override_dh_strip:
42
+	dh_strip --dbg-package=sems-dbg