[arch-commits] Commit in speech-dispatcher/repos (12 files)

Pierre Schmitz pierre at archlinux.org
Sat Feb 18 07:43:31 EST 2012


    Date: Saturday, February 18, 2012 @ 07:43:30
  Author: pierre
Revision: 150548

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  speech-dispatcher/repos/extra-i686/PKGBUILD
    (from rev 150547, speech-dispatcher/trunk/PKGBUILD)
  speech-dispatcher/repos/extra-i686/speech-dispatcher.install
    (from rev 150547, speech-dispatcher/trunk/speech-dispatcher.install)
  speech-dispatcher/repos/extra-i686/speechd.sh
    (from rev 150547, speech-dispatcher/trunk/speechd.sh)
  speech-dispatcher/repos/extra-x86_64/PKGBUILD
    (from rev 150547, speech-dispatcher/trunk/PKGBUILD)
  speech-dispatcher/repos/extra-x86_64/speech-dispatcher.install
    (from rev 150547, speech-dispatcher/trunk/speech-dispatcher.install)
  speech-dispatcher/repos/extra-x86_64/speechd.sh
    (from rev 150547, speech-dispatcher/trunk/speechd.sh)
Deleted:
  speech-dispatcher/repos/extra-i686/PKGBUILD
  speech-dispatcher/repos/extra-i686/speech-dispatcher.install
  speech-dispatcher/repos/extra-i686/speechd.sh
  speech-dispatcher/repos/extra-x86_64/PKGBUILD
  speech-dispatcher/repos/extra-x86_64/speech-dispatcher.install
  speech-dispatcher/repos/extra-x86_64/speechd.sh

----------------------------------------+
 extra-i686/PKGBUILD                    |  136 +++++++++++++++----------------
 extra-i686/speech-dispatcher.install   |   42 ++++-----
 extra-i686/speechd.sh                  |   74 ++++++++--------
 extra-x86_64/PKGBUILD                  |  136 +++++++++++++++----------------
 extra-x86_64/speech-dispatcher.install |   42 ++++-----
 extra-x86_64/speechd.sh                |   74 ++++++++--------
 6 files changed, 252 insertions(+), 252 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2012-02-18 12:42:55 UTC (rev 150547)
+++ extra-i686/PKGBUILD	2012-02-18 12:43:30 UTC (rev 150548)
@@ -1,68 +0,0 @@
-# $Id$
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Steve Holmes <steve.holmes88 at gmail.com>
-# Contributor: Alexander Jenisch <nt at divzero.at>
-# Contributor: Chris Brannon <cmbrannon at cox.net>
-# Contributor: Andreas Messer <andi at bupfen.de>
-
-pkgname=speech-dispatcher
-pkgver=0.7.1
-pkgrel=5
-arch=('i686' 'x86_64')
-pkgdesc="High-level device independent layer for speech synthesis interface"
-url="http://www.freebsoft.org/speechd"
-license=('GPL2' 'FDL')
-depends=('glib2' 'python2' 'dotconf' 'texinfo' 'libpulse')
-makedepends=('pkgconfig' 'espeak')
-optdepends=('festival: Speech output using Festival'
-        'espeak: Speech output using ESpeak'
-        'pulseaudio: PulseAudio support')
-provides=("speechd=${pkgver}")
-options=('!libtool') 
-backup=(etc/speech-dispatcher/clients/gnome-speech.conf
-	etc/speech-dispatcher/clients/emacs.conf
-	etc/speech-dispatcher/modules/ibmtts.conf
-	etc/speech-dispatcher/modules/espeak-generic.conf
-	etc/speech-dispatcher/modules/espeak.conf
-	etc/speech-dispatcher/modules/swift-generic.conf
-	etc/speech-dispatcher/modules/festival.conf
-	etc/speech-dispatcher/modules/cicero.conf
-	etc/speech-dispatcher/modules/espeak-mbrola-generic.conf
-	etc/speech-dispatcher/modules/dtk-generic.conf
-	etc/speech-dispatcher/modules/llia_phon-generic.conf
-	etc/speech-dispatcher/modules/ivona.conf
-	etc/speech-dispatcher/modules/epos-generic.conf
-	etc/speech-dispatcher/modules/flite.conf
-	etc/speech-dispatcher/speechd.conf)
-install="${pkgname}.install"
-source=("http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz"
-        'speechd.sh')
-md5sums=('ccfc30ac006673d36b4223eb760ed696'
-        '858293f464b83f03f3b6bb796291c71d')
-
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --without-flite
-  make
-}
-
-package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR=${pkgdir} install
-
-  install -Dm755 ${srcdir}/speechd.sh ${pkgdir}/etc/rc.d/speechd
-  install -d ${pkgdir}/var/log/speech-dispatcher
-
-  # Fix spd-conf to use python 2.7
-  sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf
-  sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py
-  
-  rm -f ${pkgdir}/usr/share/info/dir
-  gzip -9nf ${pkgdir}/usr/share/info/*
-
-  # Remove conflicts with erlang (FS#21674)
-  rm -r ${pkgdir}/usr/bin/run_test
-}

Copied: speech-dispatcher/repos/extra-i686/PKGBUILD (from rev 150547, speech-dispatcher/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2012-02-18 12:43:30 UTC (rev 150548)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Steve Holmes <steve.holmes88 at gmail.com>
+# Contributor: Alexander Jenisch <nt at divzero.at>
+# Contributor: Chris Brannon <cmbrannon at cox.net>
+# Contributor: Andreas Messer <andi at bupfen.de>
+
+pkgname=speech-dispatcher
+pkgver=0.7.1
+pkgrel=6
+arch=('i686' 'x86_64')
+pkgdesc="High-level device independent layer for speech synthesis interface"
+url="http://www.freebsoft.org/speechd"
+license=('GPL2' 'FDL')
+depends=('glib2' 'python2' 'dotconf' 'texinfo' 'libpulse')
+makedepends=('pkgconfig' 'espeak')
+optdepends=('festival: Speech output using Festival'
+        'espeak: Speech output using ESpeak'
+        'pulseaudio: PulseAudio support')
+provides=("speechd=${pkgver}")
+options=('!libtool') 
+backup=(etc/speech-dispatcher/clients/gnome-speech.conf
+	etc/speech-dispatcher/clients/emacs.conf
+	etc/speech-dispatcher/modules/ibmtts.conf
+	etc/speech-dispatcher/modules/espeak-generic.conf
+	etc/speech-dispatcher/modules/espeak.conf
+	etc/speech-dispatcher/modules/swift-generic.conf
+	etc/speech-dispatcher/modules/festival.conf
+	etc/speech-dispatcher/modules/cicero.conf
+	etc/speech-dispatcher/modules/espeak-mbrola-generic.conf
+	etc/speech-dispatcher/modules/dtk-generic.conf
+	etc/speech-dispatcher/modules/llia_phon-generic.conf
+	etc/speech-dispatcher/modules/ivona.conf
+	etc/speech-dispatcher/modules/epos-generic.conf
+	etc/speech-dispatcher/modules/flite.conf
+	etc/speech-dispatcher/speechd.conf)
+install="${pkgname}.install"
+source=("http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz"
+        'speechd.sh')
+md5sums=('ccfc30ac006673d36b4223eb760ed696'
+        '858293f464b83f03f3b6bb796291c71d')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --without-flite
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR=${pkgdir} install
+
+  install -Dm755 ${srcdir}/speechd.sh ${pkgdir}/etc/rc.d/speechd
+  install -d ${pkgdir}/var/log/speech-dispatcher
+
+  # Fix spd-conf to use python 2.7
+  sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf
+  sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py
+  
+  rm -f ${pkgdir}/usr/share/info/dir
+  gzip -9nf ${pkgdir}/usr/share/info/*
+
+  # Remove conflicts with erlang (FS#21674)
+  rm -r ${pkgdir}/usr/bin/run_test
+}

Deleted: extra-i686/speech-dispatcher.install
===================================================================
--- extra-i686/speech-dispatcher.install	2012-02-18 12:42:55 UTC (rev 150547)
+++ extra-i686/speech-dispatcher.install	2012-02-18 12:43:30 UTC (rev 150548)
@@ -1,21 +0,0 @@
-info_dir=/usr/share/info
-info_files=('speech-dispatcher.info'
-    'speech-dispatcher-cs.info'
-    'ssip.info'
-    'spd-say.info')
-
-post_install() {
-  for f in ${info_files[@]}; do
-    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
-  done
-}
-
-post_upgrade() {
-  post_install
-}
-
-pre_remove() {
-  for f in ${info_files[@]}; do
-    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
-  done
-}

Copied: speech-dispatcher/repos/extra-i686/speech-dispatcher.install (from rev 150547, speech-dispatcher/trunk/speech-dispatcher.install)
===================================================================
--- extra-i686/speech-dispatcher.install	                        (rev 0)
+++ extra-i686/speech-dispatcher.install	2012-02-18 12:43:30 UTC (rev 150548)
@@ -0,0 +1,21 @@
+info_dir=/usr/share/info
+info_files=('speech-dispatcher.info'
+    'speech-dispatcher-cs.info'
+    'ssip.info'
+    'spd-say.info')
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}

Deleted: extra-i686/speechd.sh
===================================================================
--- extra-i686/speechd.sh	2012-02-18 12:42:55 UTC (rev 150547)
+++ extra-i686/speechd.sh	2012-02-18 12:43:30 UTC (rev 150548)
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=$(pidof -o %PPID /usr/bin/speech-dispatcher)
-case "$1" in
-  start)
-    stat_busy "Starting speech dispatcher Daemon"
-    [ -z "$PID" ] && /usr/bin/speech-dispatcher -d &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon speechd
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping speech dispatcher Daemon"
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon speechd
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-
-exit 0

Copied: speech-dispatcher/repos/extra-i686/speechd.sh (from rev 150547, speech-dispatcher/trunk/speechd.sh)
===================================================================
--- extra-i686/speechd.sh	                        (rev 0)
+++ extra-i686/speechd.sh	2012-02-18 12:43:30 UTC (rev 150548)
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=$(pidof -o %PPID /usr/bin/speech-dispatcher)
+case "$1" in
+  start)
+    stat_busy "Starting speech dispatcher Daemon"
+    [ -z "$PID" ] && /usr/bin/speech-dispatcher -d &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon speechd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping speech dispatcher Daemon"
+    [ ! -z "$PID" ] && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon speechd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"
+esac
+
+exit 0

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2012-02-18 12:42:55 UTC (rev 150547)
+++ extra-x86_64/PKGBUILD	2012-02-18 12:43:30 UTC (rev 150548)
@@ -1,68 +0,0 @@
-# $Id$
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
-# Contributor: Steve Holmes <steve.holmes88 at gmail.com>
-# Contributor: Alexander Jenisch <nt at divzero.at>
-# Contributor: Chris Brannon <cmbrannon at cox.net>
-# Contributor: Andreas Messer <andi at bupfen.de>
-
-pkgname=speech-dispatcher
-pkgver=0.7.1
-pkgrel=5
-arch=('i686' 'x86_64')
-pkgdesc="High-level device independent layer for speech synthesis interface"
-url="http://www.freebsoft.org/speechd"
-license=('GPL2' 'FDL')
-depends=('glib2' 'python2' 'dotconf' 'texinfo' 'libpulse')
-makedepends=('pkgconfig' 'espeak')
-optdepends=('festival: Speech output using Festival'
-        'espeak: Speech output using ESpeak'
-        'pulseaudio: PulseAudio support')
-provides=("speechd=${pkgver}")
-options=('!libtool') 
-backup=(etc/speech-dispatcher/clients/gnome-speech.conf
-	etc/speech-dispatcher/clients/emacs.conf
-	etc/speech-dispatcher/modules/ibmtts.conf
-	etc/speech-dispatcher/modules/espeak-generic.conf
-	etc/speech-dispatcher/modules/espeak.conf
-	etc/speech-dispatcher/modules/swift-generic.conf
-	etc/speech-dispatcher/modules/festival.conf
-	etc/speech-dispatcher/modules/cicero.conf
-	etc/speech-dispatcher/modules/espeak-mbrola-generic.conf
-	etc/speech-dispatcher/modules/dtk-generic.conf
-	etc/speech-dispatcher/modules/llia_phon-generic.conf
-	etc/speech-dispatcher/modules/ivona.conf
-	etc/speech-dispatcher/modules/epos-generic.conf
-	etc/speech-dispatcher/modules/flite.conf
-	etc/speech-dispatcher/speechd.conf)
-install="${pkgname}.install"
-source=("http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz"
-        'speechd.sh')
-md5sums=('ccfc30ac006673d36b4223eb760ed696'
-        '858293f464b83f03f3b6bb796291c71d')
-
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  
-  ./configure --prefix=/usr \
-    --sysconfdir=/etc \
-    --without-flite
-  make
-}
-
-package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  make DESTDIR=${pkgdir} install
-
-  install -Dm755 ${srcdir}/speechd.sh ${pkgdir}/etc/rc.d/speechd
-  install -d ${pkgdir}/var/log/speech-dispatcher
-
-  # Fix spd-conf to use python 2.7
-  sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf
-  sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py
-  
-  rm -f ${pkgdir}/usr/share/info/dir
-  gzip -9nf ${pkgdir}/usr/share/info/*
-
-  # Remove conflicts with erlang (FS#21674)
-  rm -r ${pkgdir}/usr/bin/run_test
-}

Copied: speech-dispatcher/repos/extra-x86_64/PKGBUILD (from rev 150547, speech-dispatcher/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2012-02-18 12:43:30 UTC (rev 150548)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Steve Holmes <steve.holmes88 at gmail.com>
+# Contributor: Alexander Jenisch <nt at divzero.at>
+# Contributor: Chris Brannon <cmbrannon at cox.net>
+# Contributor: Andreas Messer <andi at bupfen.de>
+
+pkgname=speech-dispatcher
+pkgver=0.7.1
+pkgrel=6
+arch=('i686' 'x86_64')
+pkgdesc="High-level device independent layer for speech synthesis interface"
+url="http://www.freebsoft.org/speechd"
+license=('GPL2' 'FDL')
+depends=('glib2' 'python2' 'dotconf' 'texinfo' 'libpulse')
+makedepends=('pkgconfig' 'espeak')
+optdepends=('festival: Speech output using Festival'
+        'espeak: Speech output using ESpeak'
+        'pulseaudio: PulseAudio support')
+provides=("speechd=${pkgver}")
+options=('!libtool') 
+backup=(etc/speech-dispatcher/clients/gnome-speech.conf
+	etc/speech-dispatcher/clients/emacs.conf
+	etc/speech-dispatcher/modules/ibmtts.conf
+	etc/speech-dispatcher/modules/espeak-generic.conf
+	etc/speech-dispatcher/modules/espeak.conf
+	etc/speech-dispatcher/modules/swift-generic.conf
+	etc/speech-dispatcher/modules/festival.conf
+	etc/speech-dispatcher/modules/cicero.conf
+	etc/speech-dispatcher/modules/espeak-mbrola-generic.conf
+	etc/speech-dispatcher/modules/dtk-generic.conf
+	etc/speech-dispatcher/modules/llia_phon-generic.conf
+	etc/speech-dispatcher/modules/ivona.conf
+	etc/speech-dispatcher/modules/epos-generic.conf
+	etc/speech-dispatcher/modules/flite.conf
+	etc/speech-dispatcher/speechd.conf)
+install="${pkgname}.install"
+source=("http://www.freebsoft.org/pub/projects/speechd/$pkgname-$pkgver.tar.gz"
+        'speechd.sh')
+md5sums=('ccfc30ac006673d36b4223eb760ed696'
+        '858293f464b83f03f3b6bb796291c71d')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  
+  ./configure --prefix=/usr \
+    --sysconfdir=/etc \
+    --without-flite
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR=${pkgdir} install
+
+  install -Dm755 ${srcdir}/speechd.sh ${pkgdir}/etc/rc.d/speechd
+  install -d ${pkgdir}/var/log/speech-dispatcher
+
+  # Fix spd-conf to use python 2.7
+  sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' ${pkgdir}/usr/bin/spd-conf
+  sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/lib/python2.7/site-packages/speechd/_test.py
+  
+  rm -f ${pkgdir}/usr/share/info/dir
+  gzip -9nf ${pkgdir}/usr/share/info/*
+
+  # Remove conflicts with erlang (FS#21674)
+  rm -r ${pkgdir}/usr/bin/run_test
+}

Deleted: extra-x86_64/speech-dispatcher.install
===================================================================
--- extra-x86_64/speech-dispatcher.install	2012-02-18 12:42:55 UTC (rev 150547)
+++ extra-x86_64/speech-dispatcher.install	2012-02-18 12:43:30 UTC (rev 150548)
@@ -1,21 +0,0 @@
-info_dir=/usr/share/info
-info_files=('speech-dispatcher.info'
-    'speech-dispatcher-cs.info'
-    'ssip.info'
-    'spd-say.info')
-
-post_install() {
-  for f in ${info_files[@]}; do
-    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
-  done
-}
-
-post_upgrade() {
-  post_install
-}
-
-pre_remove() {
-  for f in ${info_files[@]}; do
-    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
-  done
-}

Copied: speech-dispatcher/repos/extra-x86_64/speech-dispatcher.install (from rev 150547, speech-dispatcher/trunk/speech-dispatcher.install)
===================================================================
--- extra-x86_64/speech-dispatcher.install	                        (rev 0)
+++ extra-x86_64/speech-dispatcher.install	2012-02-18 12:43:30 UTC (rev 150548)
@@ -0,0 +1,21 @@
+info_dir=/usr/share/info
+info_files=('speech-dispatcher.info'
+    'speech-dispatcher-cs.info'
+    'ssip.info'
+    'spd-say.info')
+
+post_install() {
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install
+}
+
+pre_remove() {
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}

Deleted: extra-x86_64/speechd.sh
===================================================================
--- extra-x86_64/speechd.sh	2012-02-18 12:42:55 UTC (rev 150547)
+++ extra-x86_64/speechd.sh	2012-02-18 12:43:30 UTC (rev 150548)
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=$(pidof -o %PPID /usr/bin/speech-dispatcher)
-case "$1" in
-  start)
-    stat_busy "Starting speech dispatcher Daemon"
-    [ -z "$PID" ] && /usr/bin/speech-dispatcher -d &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon speechd
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping speech dispatcher Daemon"
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon speechd
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"
-esac
-
-exit 0

Copied: speech-dispatcher/repos/extra-x86_64/speechd.sh (from rev 150547, speech-dispatcher/trunk/speechd.sh)
===================================================================
--- extra-x86_64/speechd.sh	                        (rev 0)
+++ extra-x86_64/speechd.sh	2012-02-18 12:43:30 UTC (rev 150548)
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=$(pidof -o %PPID /usr/bin/speech-dispatcher)
+case "$1" in
+  start)
+    stat_busy "Starting speech dispatcher Daemon"
+    [ -z "$PID" ] && /usr/bin/speech-dispatcher -d &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon speechd
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping speech dispatcher Daemon"
+    [ ! -z "$PID" ] && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon speechd
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"
+esac
+
+exit 0



More information about the arch-commits mailing list