[Freeswitch-svn] [commit] r6423 - freeswitch/trunk/debian

Freeswitch SVN cypromis at freeswitch.org
Wed Nov 28 19:38:58 EST 2007


Author: cypromis
Date: Wed Nov 28 19:38:58 2007
New Revision: 6423

Added:
   freeswitch/trunk/debian/freeswitch.postinst   (contents, props changed)
   freeswitch/trunk/debian/freeswitch.postrm   (contents, props changed)
Removed:
   freeswitch/trunk/debian/postinst
   freeswitch/trunk/debian/postrm
   freeswitch/trunk/debian/preinst
Modified:
   freeswitch/trunk/debian/control
   freeswitch/trunk/debian/rules

Log:
fixes to make it more debianish. also fixed to create and remove the 
pacakge


Modified: freeswitch/trunk/debian/control
==============================================================================
--- freeswitch/trunk/debian/control	(original)
+++ freeswitch/trunk/debian/control	Wed Nov 28 19:38:58 2007
@@ -2,12 +2,12 @@
 Maintainer: Michael Jerris <mike at 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

Added: freeswitch/trunk/debian/freeswitch.postinst
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch.postinst	Wed Nov 28 19:38:58 2007
@@ -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

Added: freeswitch/trunk/debian/freeswitch.postrm
==============================================================================
--- (empty file)
+++ freeswitch/trunk/debian/freeswitch.postrm	Wed Nov 28 19:38:58 2007
@@ -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

Modified: freeswitch/trunk/debian/rules
==============================================================================
--- freeswitch/trunk/debian/rules	(original)
+++ freeswitch/trunk/debian/rules	Wed Nov 28 19:38:58 2007
@@ -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,9 +56,10 @@
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 	cp -f /usr/share/misc/config.guess build/config/config.guess
 endif
-
-
-	dh_clean 
+	rm -f config.status
+	rm -f */*/config.status
+	rm -f */*/*/config.status
+	dh_clean
 
 install: build
 	dh_testdir
@@ -111,4 +112,3 @@
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install 
-# vim:set ai et sts=2 sw=2 tw=0:



More information about the Freeswitch-svn mailing list