[crux-commits] ports/contrib (refs/remotes/origin/3.6): asterisk-espeak: dropped unmaintained port

crux at crux.nu crux at crux.nu
Sat Apr 10 19:05:58 UTC 2021


commit 56523bf07c9b510486a2daaafb1ee53e5e7e8921
Author: Tim Biermann <tbier at posteo.de>
Date:   Thu Jan 28 22:07:33 2021 +0000

    asterisk-espeak: dropped unmaintained port

diff --git a/asterisk-espeak/.footprint b/asterisk-espeak/.footprint
deleted file mode 100644
index 57be8fd2a..000000000
--- a/asterisk-espeak/.footprint
+++ /dev/null
@@ -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
diff --git a/asterisk-espeak/.signature b/asterisk-espeak/.signature
deleted file mode 100644
index 009249f14..000000000
--- a/asterisk-espeak/.signature
+++ /dev/null
@@ -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
diff --git a/asterisk-espeak/Pkgfile b/asterisk-espeak/Pkgfile
deleted file mode 100644
index 7f53857f4..000000000
--- a/asterisk-espeak/Pkgfile
+++ /dev/null
@@ -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
-}
diff --git a/asterisk-espeak/README b/asterisk-espeak/README
deleted file mode 100644
index bdb57c7ec..000000000
--- a/asterisk-espeak/README
+++ /dev/null
@@ -1 +0,0 @@
-This port is missing a dependency: espeak
diff --git a/asterisk-espeak/build.patch b/asterisk-espeak/build.patch
deleted file mode 100644
index 3a36e9469..000000000
--- a/asterisk-espeak/build.patch
+++ /dev/null
@@ -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;


More information about the crux-commits mailing list