asterisk-espeak: dropped unmaintained port

This commit is contained in:
Tim Biermann 2021-01-28 22:07:33 +00:00
parent 3482cb5c9c
commit 56523bf07c
5 changed files with 0 additions and 107 deletions

View File

@ -1,8 +0,0 @@
drwxr-xr-x root/root etc/
drwxr-x--- root/asterisk etc/asterisk/
-rw-r----- root/asterisk etc/asterisk/espeak.conf
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/asterisk/
drwxr-xr-x root/root usr/lib/asterisk/modules/
-rwxr-xr-x root/root usr/lib/asterisk/modules/app_espeak.so

View File

@ -1,6 +0,0 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3y1hvZeIGtCD2giP3ErWi5HZprd1+sP3T6CrjomI9RwsH16tqJnEyXaAXQzOeGJiN8EjPJA7jrtEbVb98gdrXww=
SHA256 (Pkgfile) = 5b5dfa52fbeaef809cd9763052b959d70c631059f3d1b9cea72390776fc94863
SHA256 (.footprint) = 04562e609034c986a7320bba0566ddb4fb3f67e86223d819dadec02dab3c9695
SHA256 (asterisk-espeak-0.4.tar.gz) = a224a1265402c213306c7383504d8c6f5ea80e4f52d4e9f104c9e300746f6b18
SHA256 (build.patch) = 946cfe5b2943c1946291377a04e1f6195c2ae7bd2c7a0cf0fbb6b74ceb426c6e

View File

@ -1,21 +0,0 @@
# Description: Asterisk text to speech module
# URL: http://asterisk-espeak.sf.net/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# Depends on: asterisk espeak libsndfile libsamplerate
name=asterisk-espeak
version=0.4
release=2
source=(http://prdownloads.sf.net/$name/$name-$version.tar.gz build.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/build.patch
export CFLAGS="$CFLAGS -DASTERISK_VERSION=8"
make
install -D -m 755 app_espeak.so /dev/shm/work/asterisk-espeak/pkg/usr/lib/asterisk/modules/app_espeak.so
install -D -m 644 espeak.conf /dev/shm/work/asterisk-espeak/pkg/etc/asterisk/espeak.conf
chown -R root:asterisk $PKG/etc/asterisk
chmod -R u+rwX,g-w,o= $PKG/etc/asterisk
}

View File

@ -1 +0,0 @@
This port is missing a dependency: espeak

View File

@ -1,71 +0,0 @@
diff -u -r asterisk-espeak-0.4.orig/app_espeak.c asterisk-espeak-0.4/app_espeak.c
--- asterisk-espeak-0.4.orig/app_espeak.c 2011-07-19 16:37:51.109554567 +0900
+++ asterisk-espeak-0.4/app_espeak.c 2011-07-19 17:10:38.136024568 +0900
@@ -46,12 +46,16 @@
#endif
#include <stdio.h>
-#include <asterisk/lock.h>
+
+#include <asterisk.h>
#include <asterisk/file.h>
#include <asterisk/logger.h>
#include <asterisk/channel.h>
#include <asterisk/pbx.h>
#include <asterisk/module.h>
+#include <asterisk/lock.h>
+#include <asterisk/app.h>
+#include <asterisk/config.h>
#include <asterisk/translate.h>
#include <asterisk/utils.h>
#include <asterisk/md5.h>
@@ -160,11 +164,16 @@
#endif
/* Config file stuff */
+#if ASTERISK_VERSION == 8
+ struct ast_flags config_flags = { 0 };
+ cfg = ast_config_load(ESPEAK_CONFIG, config_flags);
+#else
#if ASTERISK_VERSION >= 2
cfg = ast_config_load(ESPEAK_CONFIG);
#else
cfg = ast_load(ESPEAK_CONFIG);
#endif
+#endif
if (!cfg)
{
@@ -521,7 +530,23 @@
return res;
}
-#if ASTERISK_VERSION == 4
+#if ASTERISK_VERSION == 8
+int unload_module(void)
+{
+ int res;
+ res = ast_unregister_application(app);
+ ast_module_user_hangup_all();
+ return res;
+}
+
+static int load_module(void)
+{
+ return ast_register_application(app, espeak_exec, synopsis, descrip);
+}
+
+AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "eSpeak TTS Interface");
+
+#elif ASTERISK_VERSION == 4
static int unload_module(void)
{
int res;
@@ -550,7 +575,6 @@
return ast_register_application(app, espeak_exec, synopsis, descrip);
}
-
char *description(void)
{
return tdesc;