fixes to make it more debianish. also fixed to create and remove the
pacakge git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6423 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
56516def90
commit
1418be8cb6
|
@ -2,12 +2,12 @@ Source: freeswitch
|
|||
Maintainer: Michael Jerris <mike@jerris.com>
|
||||
Section: net
|
||||
Priority: extra
|
||||
Build-Depends: debhelper (>= 5), automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev, libssl-dev
|
||||
Build-Depends: debhelper (>= 5), automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev, libssl-dev, ncurses-dev
|
||||
Standards-Version: 3.7.2
|
||||
|
||||
Package: freeswitch
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, unixodbc, libasound2, libcurl3, openssl
|
||||
Depends: ${shlibs:Depends}, unixodbc, libasound2, libcurl3, openssl, libncurses5
|
||||
Suggests: monit
|
||||
Description: A telephony platform that really kicks some ass...
|
||||
FreeSWITCH is an open source telephony platform designed to facilitate the
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
#! /bin/sh
|
||||
# set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
#
|
||||
# quoting from the policy:
|
||||
# Any necessary prompting should almost always be confined to the
|
||||
# post-installation script, and should be protected with a conditional
|
||||
# so that unnecessary prompting doesn't happen if a package's
|
||||
# installation fails and the `postinst' is called with `abort-upgrade',
|
||||
# `abort-remove' or `abort-deconfigure'.
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if ! getent passwd openfire >/dev/null; then
|
||||
adduser --disabled-password --quiet --system \
|
||||
--home /opt/freeswitch \
|
||||
--gecos "FreeSwitch Voice Platform" --group daemon
|
||||
fi
|
||||
|
||||
mkdir -p /opt/freeswitch
|
||||
chown -R freeswitch:daemon /opt/freeswitch
|
||||
chmod -R o-rwx /opt/freeswitch
|
||||
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
# postrm script for openfire
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
# set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
rm -Rf /etc/opt/freeswitch
|
||||
rm -Rf /opt/freeswitch
|
||||
userdel freeswitch
|
||||
;;
|
||||
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
chown -R freeswitch:daemon /opt/freeswitch
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
userdel -r freeswitch
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
adduser --home /opt/freeswitch --ingroup daemon --disabled-password --disabled-login --gecos "The FreeSwitch Voice Switching System" --no-create-home freeswitch
|
|
@ -5,7 +5,7 @@
|
|||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
export MODULES ?= mod_console mod_syslog mod_commands mod_conference mod_dptools mod_enum mod_fifo mod_openmrcp mod_amr mod_g711 mod_g722 mod_g723_1 mod_g726 mod_g729 mod_gsm mod_ilbc mod_l16 mod_speex mod_dialplan_xml mod_dialplan_asterisk mod_dingaling mod_iax mod_portaudio mod_sofia mod_woomera mod_openzap mod_event_multicast mod_event_socket mod_native_file mod_sndfile mod_local_stream mod_spidermonkey mod_spidermonkey_teletone mod_spidermonkey_core_db mod_spidermonkey_odbc mod_xml_rpc mod_xml_curl mod_xml_cdr mod_say_en mod_say_fr mod_say_de
|
||||
export MODULES ?= mod_console mod_syslog mod_commands mod_conference mod_dptools mod_enum mod_fifo mod_openmrcp mod_amr mod_g711 mod_g722 mod_g723_1 mod_g726 mod_g729 mod_gsm mod_ilbc mod_l16 mod_speex mod_dialplan_directory mod_dialplan_xml mod_dialplan_asterisk mod_dingaling mod_iax mod_portaudio mod_sofia mod_woomera mod_openzap mod_event_multicast mod_event_socket mod_native_file mod_sndfile mod_local_stream mod_spidermonkey mod_spidermonkey_teletone mod_spidermonkey_core_db mod_spidermonkey_odbc mod_xml_rpc mod_xml_curl mod_xml_cdr mod_say_en mod_say_fr mod_say_de
|
||||
ifndef AUTOCONF
|
||||
AUTOCONFS := $(wildcard /usr/bin/autoconf*)
|
||||
AUTOCONF = $(shell which autoconf)
|
||||
|
@ -56,8 +56,9 @@ endif
|
|||
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
|
||||
cp -f /usr/share/misc/config.guess build/config/config.guess
|
||||
endif
|
||||
|
||||
|
||||
rm -f config.status
|
||||
rm -f */*/config.status
|
||||
rm -f */*/*/config.status
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
|
@ -111,4 +112,3 @@ binary-arch: build install
|
|||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
||||
# vim:set ai et sts=2 sw=2 tw=0:
|
||||
|
|
Loading…
Reference in New Issue