--- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/control +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/control @@ -0,0 +1,23 @@ +Source: asterisk-prompt-fr-proformatique +Section: comm +Priority: extra +Maintainer: Debian VoIP team +Uploaders: Lionel Elie Mamane +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 +Vcs-Svn: svn://svn.debian.org/pkg-voip/asterisk-prompt-fr-proformatique/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/asterisk-prompt-fr-proformatique/?op=log + +Package: asterisk-prompt-fr-proformatique +Architecture: all +Recommends: asterisk (>= 1:1.2) +Conflicts: asterisk-prompt-fr +Provides: asterisk-prompt-fr +Replaces: asterisk-prompt-fr +Depends: ${misc:Depends} +Description: French voice prompts for Asterisk + These are French voice prompts for the Asterisk PBX, courtesy of + Proformatique SARL. + . + You need such prompts if you intend to run Asterisk and wish to + support French-speaking callers. --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/copyright +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by Lionel Elie Mamane on +Fri, 15 Jun 2007 19:59:50 +0200. + +It was downloaded from + +Upstream: + + Voice actor: unknown + Financial sponsor: Impédance + Distributor: Proformatique SARL, http://www.proformatique.com/ + http://www.proformatique.org/ + Contact : Sylvain Boily + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is (C) 2007, 2008, Lionel Elie Mamane + and is licensed under the GNU GPL; either version +2 of the License, or (at your option) any later version. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/postinst +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/postinst @@ -0,0 +1,26 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if dpkg --compare-versions "$2" lt 20070706-1.4-2; then + for d in dictate digits letters phonetic; do + for e in "/usr/share/asterisk/sounds/${d}/fr" "/usr/share/asterisk/sounds/fr/${d}"; do + if ! [ -L "${e}" ] && [ -d "${e}" ]; then + rmdir --ignore-fail-on-non-empty "${e}" + fi + done + done + for d in dictate digits letters phonetic; do + if ! [ -e "/usr/share/asterisk/sounds/fr/${d}" ]; then + ln -s "../${d}/fr" "/usr/share/asterisk/sounds/fr/${d}" + fi + done + fi + ;; +esac + +#DEBHELPER# + +exit 0 --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/changelog +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/changelog @@ -0,0 +1,31 @@ +asterisk-prompt-fr-proformatique (20070706-1.4-2) unstable; urgency=low + + * debian/rules: Fix get-orig-source to actually work + * Remove README_fr, does not contain any information useful to Debian + users not in copyright file. + * Reintroduce compatibility with Asterisk configured with "languageprefix=yes" + * Ensure all upgrade paths lead to same result. + + -- Lionel Elie Mamane Sun, 06 Apr 2008 13:47:56 +0200 + +asterisk-prompt-fr-proformatique (20070706-1.4-1) unstable; urgency=low + + [ Kilian Krause ] + * New upstream release. Fix debian/rules to cope with new tarball. + * Add get-orig-source target + + -- Mark Purcell Sat, 01 Dec 2007 01:53:47 +0100 + +asterisk-prompt-fr-proformatique (20060911-2) unstable; urgency=low + + * Sounds are compatible with Asterisk 1.2, so relax recommendation to + version 1.2 or later + + -- Lionel Elie Mamane Sat, 23 Jun 2007 17:39:18 +0200 + +asterisk-prompt-fr-proformatique (20060911-1) unstable; urgency=low + + * Initial release + + -- Lionel Elie Mamane Fri, 15 Jun 2007 19:59:50 +0200 + --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/preinst +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/preinst @@ -0,0 +1,49 @@ +#!/bin/sh + +set -e + +case "$1" in + upgrade) + if dpkg --compare-versions "$2" lt 20070706-1.4-1; then + # We are upgrading from a version that has the old + # symlinks and file locations. + for d in dictate digits letters phonetic; do + if [ -L "/usr/share/asterisk/sounds/${d}/fr" ] && \ + [ "$(readlink "/usr/share/asterisk/sounds/${d}/fr")" = "../fr/${d}" ]; then + rm "/usr/share/asterisk/sounds/${d}/fr" + fi + done + elif dpkg --compare-versions "$2" lt 20070706-1.4-2; then + # We are upgrading from a version that may or may not have + # symlinks, and files in old or new location (because of + # how dpkg treats symlinks on upgrades). + + # First, cleanup spurious empty directories some + # install/upgrade/purge scenarios leave behind. + for d in dictate digits letters phonetic; do + for e in "/usr/share/asterisk/sounds/${d}/fr" "/usr/share/asterisk/sounds/fr/${d}"; do + if ! [ -L "${e}" ] && [ -d "${e}" ]; then + rmdir --ignore-fail-on-non-empty "${e}" + fi + done + done + + # Next, remove old symlinks if present and move files to + # their dpkg-known location. + for d in dictate digits letters phonetic; do + if [ -L "/usr/share/asterisk/sounds/${d}/fr" ] && \ + [ "$(readlink "/usr/share/asterisk/sounds/${d}/fr")" = "../fr/${d}" ]; then + rm "/usr/share/asterisk/sounds/${d}/fr" + fi + if ! [ -e "/usr/share/asterisk/sounds/${d}/fr" ] && \ + [ -d "/usr/share/asterisk/sounds/fr/${d}" ]; then + mv "/usr/share/asterisk/sounds/fr/${d}" "/usr/share/asterisk/sounds/${d}/fr" + fi + done + fi + ;; +esac + +#DEBHELPER# + +exit 0 --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/dirs +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/dirs @@ -0,0 +1 @@ +usr/share/asterisk/sounds/fr --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/watch +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/watch @@ -0,0 +1,8 @@ +# You can run the "uscan" command to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Uncomment to examine a Webserver directory +http://xivo.fr/debian/prompt-fr-france-(.*)\.tgz --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/install +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/install @@ -0,0 +1,5 @@ +fr usr/share/asterisk/sounds +dictate usr/share/asterisk/sounds +digits usr/share/asterisk/sounds +letters usr/share/asterisk/sounds +phonetic usr/share/asterisk/sounds --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/rules +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +NO_DISTRIB:=README LICENCE +NO_DISTRIB_FIND_EXPR:=$(patsubst %,-not -name '%',$(NO_DISTRIB)) +PKG_NAME:=asterisk-prompt-fr-proformatique +LNG:=fr + +DEBSOURCE:=$(shell head -n 1 debian/changelog|sed -e 's/^\(\S\+\)\s.*/\1/') +DEBVERSION:=$(shell head -n 1 debian/changelog \ + | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') +UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//') + +FILENAME := $(DEBSOURCE)_$(UPVERSION).orig.tar.gz +UPFILENAME := prompt-fr-france-$(UPVERSION).tgz +URL := http://xivo.fr/debian/$(UPFILENAME) + +build: build-indep + +build-indep: + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + dh_clean + +binary-indep: build-indep install + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install + dh_installchangelogs + dh_installdocs + dh_link + dh_compress + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +#Only "arch: all", so nothing to do, but that target is mandatory. +binary-arch: + +binary: binary-indep binary-arch + +print-version: + @@echo "Source name: $(DEBSOURCE)" + @@echo "Debian version: $(DEBVERSION)" + @@echo "Upstream version: $(UPVERSION)" + +get-orig-source: + @@dh_testdir + @@[ -d ../tarballs/. ]||mkdir -p ../tarballs + @@echo Downloading $(FILENAME) from $(URL) ... + @@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL) + +.PHONY: clean binary-indep binary-arch binary install build build-indep --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/links +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/links @@ -0,0 +1,4 @@ +usr/share/asterisk/sounds/dictate/fr usr/share/asterisk/sounds/fr/dictate +usr/share/asterisk/sounds/digits/fr usr/share/asterisk/sounds/fr/digits +usr/share/asterisk/sounds/letters/fr usr/share/asterisk/sounds/fr/letters +usr/share/asterisk/sounds/phonetic/fr usr/share/asterisk/sounds/fr/phonetic --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/compat +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/compat @@ -0,0 +1 @@ +5 --- asterisk-prompt-fr-proformatique-20070706-1.4.orig/debian/postrm +++ asterisk-prompt-fr-proformatique-20070706-1.4/debian/postrm @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +case "$1" in + abort-upgrade) + if dpkg --compare-versions "$2" lt-nl 20070706-1.4-2; then + for d in dictate digits letters phonetic; do + if ! [ -e "/usr/share/asterisk/sounds/${d}/fr" ]; then + ln -s "../fr/${d}" "/usr/share/asterisk/sounds/${d}/fr" + fi + done + fi + ;; + +esac + +#DEBHELPER# + +exit 0