MT#7349 fix packaging

mr3.4.1
Victor Seva 12 years ago
parent fd9ff9a527
commit 85c87b8287

@ -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/

@ -10,12 +10,12 @@ SEMS_RUN="no"
# ser configuration file
#DEBCONF-CFG_FILE-START
SEMS_CFG_FILE="/etc/sems/sems.conf"
SEMS_CFG_FILE="/etc/ngcp-sems/sems.conf"
#DEBCONF-CFG_FILE-END
# user to run ser as
#DEBCONF-USER-START
SEMS_USER="sems-pbx"
SEMS_USER="sems"
#DEBCONF-USER-END
# group to run ser as
@ -23,10 +23,10 @@ SEMS_USER="sems-pbx"
SEMS_GROUP="sems-pbx"
#DEBCONF-GROUP-END
SEMS_RUNDIR="/var/run/sems"
SEMS_RUNDIR="/var/run/ngcp-sems"
# sems pidfile
SEMS_PIDFILE="$SEMS_RUNDIR/sems.pid"
SEMS_PIDFILE="$SEMS_RUNDIR/ngcp-sems.pid"
# set if you want to create core files
#DEBCONF-CREATE_CORE-START

@ -77,9 +77,11 @@ set -e
case "$1" in
start)
if ! /usr/sbin/ngcp-check_active -q; then
echo "Ignored start action in inactive node"
exit 0
if [ -x /usr/sbin/ngcp-check_active ]; then
if ! /usr/sbin/ngcp-check_active -q; then
echo "Ignored start action in inactive node"
exit 0
fi
fi
echo "Starting $DESC: $NAME"
start-stop-daemon --start --quiet --oknodo --pidfile $SEMS_PIDFILE \
@ -96,9 +98,11 @@ case "$1" in
echo "Restarting $DESC: $NAME"
start-stop-daemon --oknodo --stop --quiet --pidfile \
$SEMS_PIDFILE --exec $DAEMON
if ! /usr/sbin/ngcp-check_active -q; then
echo "Ignored start action in inactive node"
exit 0
if [ -x /usr/sbin/ngcp-check_active ]; then
if ! /usr/sbin/ngcp-check_active -q; then
echo "Ignored start action in inactive node"
exit 0
fi
fi
sleep 5
start-stop-daemon --start --quiet --pidfile \

@ -2,6 +2,9 @@
set -e
dpkg-maintscript-helper rm_conffile /etc/default/sems -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init.d/sems -- "$@"
# don't do anything when called with other argument than configure
case "$1" in
configure)

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ -x "/etc/init.d/sems" ]; then
update-rc.d sems remove >/dev/null
fi
dpkg-maintscript-helper rm_conffile /etc/default/sems -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init.d/sems -- "$@"
#DEBHELPER#
exit 0

4
debian/rules vendored

@ -6,7 +6,7 @@ export DH_VERBOSE=1
PYTHON_MODULES=ivr conf_auth mailbox pin_collect
EXCLUDED_MODULES=gateway examples mp3 twit
EXCLUDED_MODULES=gateway mp3 twit
EXCLUDED_DSM_MODULES=mod_aws
EXCLUDED_DSM_PY_MODULES=mod_aws mod_py
@ -15,6 +15,8 @@ CPPFLAGS += -DHAVE_XMLRPCPP_SSL
export USE_SPANDSP=yes LONG_DEBUG_MESSAGE=yes CPPFLAGS="$(CPPFLAGS)"
export APP_NAME=ngcp-sems
%:
dh $@

Loading…
Cancel
Save