Skip to content

Commit

Permalink
Merge pull request #207 from gorbyo/master
Browse files Browse the repository at this point in the history
build for bookworm
  • Loading branch information
juha-h authored Dec 4, 2024
2 parents 8a6cf80 + c39dd71 commit 36e1ef9
Show file tree
Hide file tree
Showing 14 changed files with 370 additions and 0 deletions.
130 changes: 130 additions & 0 deletions pkg/deb/bookworm/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
sems (1.8.0~dev) UNRELEASED; urgency=medium

* Devel version

-- Juha Heinanen <[email protected]> Wed, 27 Apr 2022 14:52:32 +0300

sems (1.7.0~dev) unstable; urgency=medium

* Devel version

-- Victor Seva <[email protected]> Tue, 16 Jun 2015 15:13:18 +0200

sems (1.6.0) unstable; urgency=low

* SEMS 1.6.0 release

-- stefan <[email protected]> Tue, 16 Jun 2015 13:10:56 +0200

sems (1.6.0~dev) unstable; urgency=medium

* Devel version

-- Victor Seva <[email protected]> Thu, 03 Apr 2014 17:52:53 +0200

sems (1.5.0) maverick; urgency=low

* Core
- configurable SIP timers (global)
- timer C support (mainly for SBC)
- SUBSCRIBE/NOTIFY support
- multi-mime bodies
- wideband / multiple sample frequency support
- multiple destinations (faked SRV record)
- DNS SRV: support for 503 replies
- multi-threaded RTP receiver
- complete rework of offer/answer mechanisms

* Codecs:
- iSAC
- SILK
- SPEEX 16kHz, 32kHz
- G722
- L16

* SBC
- audio & dtmf transcoder
- call-control modules
- lots of small improvements

* Monitoring
- munin plugin

* DSM
- mod_xml: XML handling
- mod_curl: HTTP requests
- mod_subscription: SUBSCRIBE/NOTIFY
- mod_regex: regular expressions
- lots of small improvements

* App Plug-ins
- db_reg_agent: register SIP accounts from a DB
- rtmp: RTMP gateway

-- Raphael Coeffic <[email protected]> Tue, 03 Jul 2012 15:06:08 +0200

sems (1.4.0) maverick; urgency=low

* SEMS 1.4.0 release

-- Stefan Sayer <[email protected]> Tue, 15 Mar 2011 11:13:05 +0100

sems (1.3.0) unstable; urgency=low

* 100rel (PRACK) support
* DNS cache, lb on SRV records
* B2B with Session Timer
* json-rpc v2 module
* SIP stack moved into core
* optimizations, especially for signaling
* many DSM improvements

-- Stefan Sayer <[email protected]> Sun, 26 Sep 2010 17:35:22 -0400

sems (1.2.0) unstable; urgency=low

* SEMS 1.2.0 release

-- Stefan Sayer <[email protected]> Tue, 30 Mar 2010 21:46:39 +0200

sems (1.1.1) unstable; urgency=low

* SEMS 1.1.1 bugfix release - fixed Via HF missing the port number
in ACK to 200 reply - do not try to scale too short RTP packets -
fixed initialization of SSL - caused random crashing of xmlrpc
server - fix size() for AmArg struct type - authenticate on both
401 and 407 reply in click2dial - fixed ssl build dependency for
DIAMETER client in deb

-- Stefan Sayer <[email protected]> Tue, 07 Jul 2009 15:13:24 +0200

sems (1.1.0-1) unstable; urgency=low

* DSM state machine scripting (it's cool!)
* an (experimental) ISDN gateway module
* binrpc: MT (SER->) and connection pool (->SER)
* MT xmlrpc server
* controlled server shutdown
* improved logging
* g722 in 8khz compat mode
* out of dialog request handling for modules & dialogs without
sessions
* audio file autorewind, AmAudio mixing
* SIP and media IP separately configurable
* UID/DID support for voicemail/-box/annrecorder
* and quite some bugs and mem leaks fixed, documentation, etc.

-- Stefan Sayer <[email protected]> Tue, 20 Jan 2009 18:11:25 +0100

sems (1.1.0-0rc1) unstable; urgency=low

* Debian Release Candidate 1 for 1.1.

-- Stefan Sayer <[email protected]> Mon, 8 Dec 2008 23:01:40 +0200

sems (1.0.0-0pre1-r856M) unstable; urgency=low

* Debian Release Candidate 1 for 1.0.

-- Stefan Sayer <[email protected]> Sun, 2 Mar 2002 23:41:31 +0200

1 change: 1 addition & 0 deletions pkg/deb/bookworm/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
57 changes: 57 additions & 0 deletions pkg/deb/bookworm/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Source: sems
Section: net
Priority: optional
Maintainer: Debian VoIP Team <[email protected]>
Uploaders: Victor Seva <[email protected]>
Build-Depends: debhelper (>= 9~),
flite-dev,
libcurl4-openssl-dev | libcurl4-gnutls-dev,
libev-dev,
libevent-dev (>= 2.1.12),
libgsm1-dev,
libhiredis-dev,
libmysqlcppconn-dev,
libspandsp-dev,
libspeex-dev,
libopus-dev,
libssl-dev,
libxml2-dev,
libbcg729-dev (>= 1.1.1),
openssl,
python3-dev,
python3-sip-dev
Standards-Version: 3.9.5

Package: sems
Architecture: any
Depends: adduser, python3, ${misc:Depends}, ${shlibs:Depends}
Description: SIP Express Media Server, very fast and flexible SIP media server
SEMS, the SIP Express Media Server, is a free, high performance,
extensible media server and SBC for SIP (RFC3261) based VoIP services. It
features voicemail, conferencing, announcements, pre-call announcements,
prepaid service, calling card service etc.

Package: sems-dbg
Architecture: any
Section: debug
Priority: extra
Depends: sems (= ${binary:Version}), ${misc:Depends}
Description: Debugging symbols for Sems SIP Express Media Server
SEMS, the SIP Express Media Server, is a free, high performance,
extensible media server and SBC for SIP (RFC3261) based VoIP services. It
features voicemail, conferencing, announcements, pre-call announcements,
prepaid service, calling card service etc.
.
This package contains the debugging sysmbols.

Package: libsems1-dev
Architecture: any
Section: libdevel
Depends: ${misc:Depends}
Description: development files for SIP Express Media Server
SEMS, the SIP Express Media Server, is a free, high performance,
extensible media server and SBC for SIP (RFC3261) based VoIP services. It
features voicemail, conferencing, announcements, pre-call announcements,
prepaid service, calling card service etc.
.
This package contains the files needed to compile sems applications.
34 changes: 34 additions & 0 deletions pkg/deb/bookworm/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: SEMS
Upstream-Contact: [email protected]
Source: http://www.iptel.org/sems

Files: *
Copyright:
2005-2014 Raphael Coeffic <[email protected]>
2010-2014 FRAFOS GmbH
2005-2014 Stefan Sayer <[email protected]>
2002-2005 FhG Fokus
2006-2010 iptelorg GmbH
2007-2009 IPTEGO GmbH
2007-2013 Juha Heinanen <[email protected]>
2007 Andreas Granig <[email protected]>
2009-2010 TelTech Systems Inc.
2006-2007 Maxim Sobolev <[email protected]>
2010 Anton Zagorskiy [email protected]
2011-2012 Peter Lemenkov <[email protected]>
Various others (see README file)
License: GPL-2.0+ OpenSSL exception
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
* Exception: permission to copy, modify, propagate, and distribute a work
* formed by combining OpenSSL toolkit software and the code in this file,
* such as linking with software components and libraries released under
* OpenSSL project license.

Files: debian/*
Copyright: 2014 Victor Seva <[email protected]>
2008-2014, Stefan Sayer <[email protected]>
License: GPL-2+
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
13 changes: 13 additions & 0 deletions pkg/deb/bookworm/libsems1-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Makefile.defs usr/include/sems/
core/*.h usr/include/sems/
core/SampleArray.cc usr/include/sems/
core/amci usr/include/sems/
core/ampi usr/include/sems/
core/compat/*.c usr/include/sems/compat/
core/compat/*.h usr/include/sems/compat/
core/compat/getarch usr/include/sems/compat/
core/compat/getos usr/include/sems/compat/
core/plug-in/Makefile.app_module usr/include/sems/plug-in/
core/plug-in/Makefile.audio_module usr/include/sems/plug-in/
core/rtp usr/include/sems/
core/sip/*.h usr/include/sems/sip/
49 changes: 49 additions & 0 deletions pkg/deb/bookworm/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

PYTHON_MODULES=ivr ivr-python2 conf_auth mailbox pin_collect

EXCLUDED_MODULES=gateway examples mp3 twit

EXCLUDED_DSM_MODULES=mod_aws
EXCLUDED_DSM_PY_MODULES=mod_aws

CPPFLAGS += -DHAVE_XMLRPCPP_SSL

export USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)"

%:
dh $@

override_dh_auto_build:
$(MAKE) \
cfg_target=/etc/sems/ prefix=/usr \
exclude_app_modules="$(EXCLUDED_MODULES) $(PYTHON_MODULES)" \
exclude_dsm_modules="$(EXCLUDED_DSM_PY_MODULES)" \
DESTDIR=$(CURDIR)/debian/sems

override_dh_auto_install:
$(MAKE) -C core/ install \
DESTDIR=$(CURDIR)/debian/sems \
prefix=/usr \
cfg_target=/etc/sems/

$(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/

override_dh_strip:
dh_strip --dbg-package=sems-dbg
# those binaries aren't automatically stripped
test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch && \
strip --remove-section=.comment --remove-section=.note --strip-unneeded \
$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getarch
test -r $(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos && \
strip --remove-section=.comment --remove-section=.note --strip-unneeded \
$(CURDIR)/debian/libsems1-dev/usr/include/sems/compat/getos
25 changes: 25 additions & 0 deletions pkg/deb/bookworm/sems.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# configuration for SEMS - SIP Express Media Server
#
# this file is sourced by SEMS init script /etc/init.d/sems

# Don't start with default config as we need to deploy the ngcp-templates first
SEMS_RUN="no"

# ser configuration file
SEMS_CFG_FILE="/etc/sems/sems.conf"

# user to run SEMS as
SEMS_USER="sems"

# group to run SEMS as
SEMS_GROUP="sems"

SEMS_RUNDIR="/run/sems"

# sems pidfile
SEMS_PIDFILE="$SEMS_RUNDIR/sems.pid"

# set if you want to create core files
SEMS_CREATE_CORE="yes"

SEMS_COREDIR="/var/cores"
1 change: 1 addition & 0 deletions pkg/deb/bookworm/sems.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sems: possible-gpl-code-linked-with-openssl
25 changes: 25 additions & 0 deletions pkg/deb/bookworm/sems.postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh

set -e

# don't do anything when called with other argument than configure
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
;;
*)
echo "postinst called with unknown argument \$1'" >&2
exit 1
;;
esac

# add sems user
adduser --quiet --system --group --disabled-password --shell /bin/false \
--gecos "SIP Express Media Server" --home /run/sems sems || true

#DEBHELPER#

exit 0

18 changes: 18 additions & 0 deletions pkg/deb/bookworm/sems.postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = "purge" ] ; then
# remove user/group on purge
if [ -x "$(command -v deluser)" ]; then
deluser --quiet --remove-home sems >/dev/null 2>&1 || true
else
echo >&2 "not removing sems system account because deluser command was not found"
fi
# remove /etc/sems if empty
rmdir /etc/sems || true
fi

exit 0
15 changes: 15 additions & 0 deletions pkg/deb/bookworm/sems.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=SIP Media Server
After=network.target

[Service]
Type=simple
User=sems
Group=sems
Environment='CFGFILE=/etc/sems/sems.conf'
EnvironmentFile=-/etc/default/sems
PIDFile=/run/sems/sems.pid
Restart=on-failure
StartLimitInterval=10
StartLimitBurst=5
ExecStart=/usr/sbin/sems -E -u sems -g sems -P $PIDFile -f $CFGFILE
1 change: 1 addition & 0 deletions pkg/deb/bookworm/sems.tmpfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d /run/sems 0755 sems sems
Empty file added pkg/deb/bookworm/shlibs.local
Empty file.
1 change: 1 addition & 0 deletions pkg/deb/bookworm/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit 36e1ef9

Please sign in to comment.