Skip to content

Commit 7e2e551

Browse files
authored
Merge pull request #215 from hecko/mh_debian
add debian bullseye package build instructs only adds files for debian
2 parents 44b78ba + 918cffb commit 7e2e551

File tree

16 files changed

+400
-14
lines changed

16 files changed

+400
-14
lines changed

Dockerfile-debian11

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,27 @@ RUN apt update
44
RUN apt install -y \
55
git debhelper g++ make libspandsp-dev flite1-dev \
66
libspeex-dev libgsm1-dev libopus-dev libssl-dev python3-dev \
7-
python3.9-dev \
8-
python3-sip-dev openssl libev-dev libmysqlcppconn-dev libevent-dev \
9-
libxml2-dev libcurl4-openssl-dev libhiredis-dev
7+
python3.9-dev libev-dev \
8+
python3-sip-dev openssl libev-dev libmysqlcppconn-dev libevent-dev \
9+
libxml2-dev libcurl4-openssl-dev libhiredis-dev
1010

11+
RUN apt install -y \
12+
devscripts libbcg729-dev
1113
WORKDIR /
1214

13-
RUN git clone --depth 1 --branch python3-rhel7 https://github.com/hecko/sems.git
15+
RUN git clone --depth 1 --branch fb https://github.com/hecko/sems.git
1416

1517
WORKDIR /sems
1618

17-
RUN USE_SPANDSP=1 make
18-
RUN USE_SPANDSP=1 make install
19+
RUN ls -al pkg/deb/bullseye/*
20+
RUN ln -s pkg/deb/bullseye ./debian
21+
RUN ls -al debian/*
22+
RUN dch -b -v 1.8.0 "sems"
23+
RUN dpkg-buildpackage -rfakeroot -us -uc
24+
RUN ls -al ..
25+
26+
RUN dpkg -i ../sems_*.deb
27+
RUN /usr/sbin/sems -v
1928

2029
# Run SEMS with the specified configuration
21-
CMD ["/usr/local/sbin/sems", "-E", "-f", "/usr/local/etc/sems/sems.conf"]
30+
CMD ["/usr/sbin/sems", "-E", "-f", "/etc/sems/sems.conf"]

Dockerfile-debian12

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,25 @@ RUN apt update
44
RUN apt install -y \
55
git debhelper g++ make libspandsp-dev flite1-dev \
66
libspeex-dev libgsm1-dev libopus-dev libssl-dev python3-dev \
7-
python3.11-dev \
8-
python3-sip-dev openssl libev-dev libmysqlcppconn-dev libevent-dev \
9-
libxml2-dev libcurl4-openssl-dev libhiredis-dev
7+
python3.11-dev libev-dev \
8+
python3-sip-dev openssl libev-dev libmysqlcppconn-dev libevent-dev \
9+
libxml2-dev libcurl4-openssl-dev libhiredis-dev
1010

11+
RUN apt install -y \
12+
devscripts libbcg729-dev
1113
WORKDIR /
1214

13-
RUN git clone --depth 1 --branch python3-rhel7 https://github.com/hecko/sems.git
15+
RUN git clone --depth 1 --branch fb https://github.com/hecko/sems.git
1416

1517
WORKDIR /sems
1618

17-
RUN USE_SPANDSP=1 make
18-
RUN USE_SPANDSP=1 make install
19+
RUN ln -s pkg/deb/bookworm ./debian
20+
RUN dch -b -v 1.8.0 "sems"
21+
RUN dpkg-buildpackage -rfakeroot -us -uc
22+
RUN ls -al ..
23+
24+
RUN dpkg -i ../sems_*.deb
25+
RUN /usr/sbin/sems -v
1926

2027
# Run SEMS with the specified configuration
21-
CMD ["/usr/local/sbin/sems", "-E", "-f", "/usr/local/etc/sems/sems.conf"]
28+
CMD ["/usr/sbin/sems", "-E", "-f", "/etc/sems/sems.conf"]

pkg/deb/bullseye/changelog

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
sems (1.8.0~dev) UNRELEASED; urgency=medium
2+
3+
* Devel version
4+
5+
-- Juha Heinanen <jh@tutpro.com> Wed, 27 Apr 2022 14:52:32 +0300
6+
7+
sems (1.7.0~dev) unstable; urgency=medium
8+
9+
* Devel version
10+
11+
-- Victor Seva <linuxmaniac@torreviejawireless.org> Tue, 16 Jun 2015 15:13:18 +0200
12+
13+
sems (1.6.0) unstable; urgency=low
14+
15+
* SEMS 1.6.0 release
16+
17+
-- stefan <stefan.sayer@googlemail.com> Tue, 16 Jun 2015 13:10:56 +0200
18+
19+
sems (1.6.0~dev) unstable; urgency=medium
20+
21+
* Devel version
22+
23+
-- Victor Seva <linuxmaniac@torreviejawireless.org> Thu, 03 Apr 2014 17:52:53 +0200
24+
25+
sems (1.5.0) maverick; urgency=low
26+
27+
* Core
28+
- configurable SIP timers (global)
29+
- timer C support (mainly for SBC)
30+
- SUBSCRIBE/NOTIFY support
31+
- multi-mime bodies
32+
- wideband / multiple sample frequency support
33+
- multiple destinations (faked SRV record)
34+
- DNS SRV: support for 503 replies
35+
- multi-threaded RTP receiver
36+
- complete rework of offer/answer mechanisms
37+
38+
* Codecs:
39+
- iSAC
40+
- SILK
41+
- SPEEX 16kHz, 32kHz
42+
- G722
43+
- L16
44+
45+
* SBC
46+
- audio & dtmf transcoder
47+
- call-control modules
48+
- lots of small improvements
49+
50+
* Monitoring
51+
- munin plugin
52+
53+
* DSM
54+
- mod_xml: XML handling
55+
- mod_curl: HTTP requests
56+
- mod_subscription: SUBSCRIBE/NOTIFY
57+
- mod_regex: regular expressions
58+
- lots of small improvements
59+
60+
* App Plug-ins
61+
- db_reg_agent: register SIP accounts from a DB
62+
- rtmp: RTMP gateway
63+
64+
-- Raphael Coeffic <rco@iptel.org> Tue, 03 Jul 2012 15:06:08 +0200
65+
66+
sems (1.4.0) maverick; urgency=low
67+
68+
* SEMS 1.4.0 release
69+
70+
-- Stefan Sayer <stefan.sayer@frafos.com> Tue, 15 Mar 2011 11:13:05 +0100
71+
72+
sems (1.3.0) unstable; urgency=low
73+
74+
* 100rel (PRACK) support
75+
* DNS cache, lb on SRV records
76+
* B2B with Session Timer
77+
* json-rpc v2 module
78+
* SIP stack moved into core
79+
* optimizations, especially for signaling
80+
* many DSM improvements
81+
82+
-- Stefan Sayer <stefan.sayer@frafos.com> Sun, 26 Sep 2010 17:35:22 -0400
83+
84+
sems (1.2.0) unstable; urgency=low
85+
86+
* SEMS 1.2.0 release
87+
88+
-- Stefan Sayer <stefan.sayer@frafos.com> Tue, 30 Mar 2010 21:46:39 +0200
89+
90+
sems (1.1.1) unstable; urgency=low
91+
92+
* SEMS 1.1.1 bugfix release - fixed Via HF missing the port number
93+
in ACK to 200 reply - do not try to scale too short RTP packets -
94+
fixed initialization of SSL - caused random crashing of xmlrpc
95+
server - fix size() for AmArg struct type - authenticate on both
96+
401 and 407 reply in click2dial - fixed ssl build dependency for
97+
DIAMETER client in deb
98+
99+
-- Stefan Sayer <stefan.sayer@frafos.com> Tue, 07 Jul 2009 15:13:24 +0200
100+
101+
sems (1.1.0-1) unstable; urgency=low
102+
103+
* DSM state machine scripting (it's cool!)
104+
* an (experimental) ISDN gateway module
105+
* binrpc: MT (SER->) and connection pool (->SER)
106+
* MT xmlrpc server
107+
* controlled server shutdown
108+
* improved logging
109+
* g722 in 8khz compat mode
110+
* out of dialog request handling for modules & dialogs without
111+
sessions
112+
* audio file autorewind, AmAudio mixing
113+
* SIP and media IP separately configurable
114+
* UID/DID support for voicemail/-box/annrecorder
115+
* and quite some bugs and mem leaks fixed, documentation, etc.
116+
117+
-- Stefan Sayer <sayer@iptel.org> Tue, 20 Jan 2009 18:11:25 +0100
118+
119+
sems (1.1.0-0rc1) unstable; urgency=low
120+
121+
* Debian Release Candidate 1 for 1.1.
122+
123+
-- Stefan Sayer <sayer@iptel.org> Mon, 8 Dec 2008 23:01:40 +0200
124+
125+
sems (1.0.0-0pre1-r856M) unstable; urgency=low
126+
127+
* Debian Release Candidate 1 for 1.0.
128+
129+
-- Stefan Sayer <sayer@iptel.org> Sun, 2 Mar 2002 23:41:31 +0200
130+

pkg/deb/bullseye/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

pkg/deb/bullseye/control

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Source: sems
2+
Section: net
3+
Priority: optional
4+
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
5+
Uploaders: Victor Seva <linuxmaniac@torreviejawireless.org>
6+
Build-Depends: debhelper (>= 9~),
7+
flite-dev,
8+
libcurl4-openssl-dev | libcurl4-gnutls-dev,
9+
libev-dev,
10+
libevent-dev (>= 2.1.12),
11+
libgsm1-dev,
12+
libhiredis-dev,
13+
libmysqlcppconn-dev,
14+
libspandsp-dev,
15+
libspeex-dev,
16+
libopus-dev,
17+
libssl-dev,
18+
libxml2-dev,
19+
libbcg729-dev (>= 1.1.1),
20+
openssl,
21+
python3-dev,
22+
python3-sip-dev
23+
Standards-Version: 3.9.5
24+
25+
Package: sems
26+
Architecture: any
27+
Depends: adduser, python3, ${misc:Depends}, ${shlibs:Depends}
28+
Description: SIP Express Media Server, very fast and flexible SIP media server
29+
SEMS, the SIP Express Media Server, is a free, high performance,
30+
extensible media server and SBC for SIP (RFC3261) based VoIP services. It
31+
features voicemail, conferencing, announcements, pre-call announcements,
32+
prepaid service, calling card service etc.
33+
34+
Package: sems-dbg
35+
Architecture: any
36+
Section: debug
37+
Priority: extra
38+
Depends: sems (= ${binary:Version}), ${misc:Depends}
39+
Description: Debugging symbols for Sems SIP Express Media Server
40+
SEMS, the SIP Express Media Server, is a free, high performance,
41+
extensible media server and SBC for SIP (RFC3261) based VoIP services. It
42+
features voicemail, conferencing, announcements, pre-call announcements,
43+
prepaid service, calling card service etc.
44+
.
45+
This package contains the debugging sysmbols.
46+
47+
Package: libsems1-dev
48+
Architecture: any
49+
Section: libdevel
50+
Depends: ${misc:Depends}
51+
Description: development files for SIP Express Media Server
52+
SEMS, the SIP Express Media Server, is a free, high performance,
53+
extensible media server and SBC for SIP (RFC3261) based VoIP services. It
54+
features voicemail, conferencing, announcements, pre-call announcements,
55+
prepaid service, calling card service etc.
56+
.
57+
This package contains the files needed to compile sems applications.

pkg/deb/bullseye/copyright

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: SEMS
3+
Upstream-Contact: semsdev@lists.iptel.org
4+
Source: http://www.iptel.org/sems
5+
6+
Files: *
7+
Copyright:
8+
2005-2014 Raphael Coeffic <rco@iptel.org>
9+
2010-2014 FRAFOS GmbH
10+
2005-2014 Stefan Sayer <stefan.sayer@frafos.com>
11+
2002-2005 FhG Fokus
12+
2006-2010 iptelorg GmbH
13+
2007-2009 IPTEGO GmbH
14+
2007-2013 Juha Heinanen <jh@tutpro.com>
15+
2007 Andreas Granig <agranig@sipwise.com>
16+
2009-2010 TelTech Systems Inc.
17+
2006-2007 Maxim Sobolev <sobomax@sippysoft.com>
18+
2010 Anton Zagorskiy amberovsky@gmail.com
19+
2011-2012 Peter Lemenkov <lemenkov@gmail.com>
20+
Various others (see README file)
21+
License: GPL-2.0+ OpenSSL exception
22+
On Debian systems, the full text of the GNU General Public
23+
License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
24+
* Exception: permission to copy, modify, propagate, and distribute a work
25+
* formed by combining OpenSSL toolkit software and the code in this file,
26+
* such as linking with software components and libraries released under
27+
* OpenSSL project license.
28+
29+
Files: debian/*
30+
Copyright: 2014 Victor Seva <linuxmaniac@torreviejawireless.org>
31+
2008-2014, Stefan Sayer <stefan.sayer@frafos.com>
32+
License: GPL-2+
33+
On Debian systems, the full text of the GNU General Public
34+
License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Makefile.defs usr/include/sems/
2+
core/*.h usr/include/sems/
3+
core/SampleArray.cc usr/include/sems/
4+
core/amci usr/include/sems/
5+
core/ampi usr/include/sems/
6+
core/compat/*.c usr/include/sems/compat/
7+
core/compat/*.h usr/include/sems/compat/
8+
core/compat/getarch usr/include/sems/compat/
9+
core/compat/getos usr/include/sems/compat/
10+
core/plug-in/Makefile.app_module usr/include/sems/plug-in/
11+
core/plug-in/Makefile.audio_module usr/include/sems/plug-in/
12+
core/rtp usr/include/sems/
13+
core/sip/*.h usr/include/sems/sip/

pkg/deb/bullseye/rules

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 ivr-python2 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
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) $(PYTHON_MODULES)" \
25+
exclude_dsm_modules="$(EXCLUDED_DSM_PY_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
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

pkg/deb/bullseye/sems.default

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# configuration for SEMS - SIP Express Media Server
2+
#
3+
# this file is sourced by SEMS init script /etc/init.d/sems
4+
5+
# Don't start with default config as we need to deploy the ngcp-templates first
6+
SEMS_RUN="no"
7+
8+
# ser configuration file
9+
SEMS_CFG_FILE="/etc/sems/sems.conf"
10+
11+
# user to run SEMS as
12+
SEMS_USER="sems"
13+
14+
# group to run SEMS as
15+
SEMS_GROUP="sems"
16+
17+
SEMS_RUNDIR="/run/sems"
18+
19+
# sems pidfile
20+
SEMS_PIDFILE="$SEMS_RUNDIR/sems.pid"
21+
22+
# set if you want to create core files
23+
SEMS_CREATE_CORE="yes"
24+
25+
SEMS_COREDIR="/var/cores"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sems: possible-gpl-code-linked-with-openssl

0 commit comments

Comments
 (0)