Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP]New package: asterisk-19.5.0
@ 2022-07-28 19:05 teldra
  2022-07-28 19:15 ` [PR REVIEW] " classabbyamp
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: teldra @ 2022-07-28 19:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]

There is a new pull request by teldra against master on the void-packages repository

https://github.com/teldra/void-packages asterisk
https://github.com/void-linux/void-packages/pull/38344

[WIP]New package: asterisk-19.5.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

I testet pjsip component of asterisk. No other usecase and/or hardware to make meaningful tests.


#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)



A patch file from https://github.com/void-linux/void-packages/pull/38344.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-asterisk-38344.patch --]
[-- Type: text/x-diff, Size: 3809 bytes --]

From ad9ee50bd2c14b227e446c4cdcf79e92fd10b08b Mon Sep 17 00:00:00 2001
From: teldra <teldra@rotce.de>
Date: Tue, 12 Jul 2022 04:47:08 +0200
Subject: [PATCH] New package: asterisk-19.5.0

---
 srcpkgs/asterisk/files/asterisk/run           |  8 +++++
 .../asterisk/patches/20-musl-astmm-fix.patch  | 14 +++++++++
 .../asterisk/patches/40-asterisk-cdefs.patch  | 21 +++++++++++++
 srcpkgs/asterisk/template                     | 30 +++++++++++++++++++
 4 files changed, 73 insertions(+)
 create mode 100644 srcpkgs/asterisk/files/asterisk/run
 create mode 100644 srcpkgs/asterisk/patches/20-musl-astmm-fix.patch
 create mode 100644 srcpkgs/asterisk/patches/40-asterisk-cdefs.patch
 create mode 100644 srcpkgs/asterisk/template

diff --git a/srcpkgs/asterisk/files/asterisk/run b/srcpkgs/asterisk/files/asterisk/run
new file mode 100644
index 000000000000..7095c870ba11
--- /dev/null
+++ b/srcpkgs/asterisk/files/asterisk/run
@@ -0,0 +1,8 @@
+#!/bin/sh
+[ -r ./conf ] && . ./conf
+
+mkdir -p /var/run/asterisk
+chown -R _asterisk:_asterisk /var/run/asterisk
+
+exec chpst -u _asterisk asterisk -f -i ${OPTS}
+
diff --git a/srcpkgs/asterisk/patches/20-musl-astmm-fix.patch b/srcpkgs/asterisk/patches/20-musl-astmm-fix.patch
new file mode 100644
index 000000000000..e6f9d150e624
--- /dev/null
+++ b/srcpkgs/asterisk/patches/20-musl-astmm-fix.patch
@@ -0,0 +1,14 @@
+Add include file needed when compiling with musl
+
+diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
+index 8547283..476dc2a 100644
+--- a/include/asterisk/compat.h
++++ b/include/asterisk/compat.h
+@@ -30,6 +30,7 @@
+ #include <inttypes.h>
+ #include <limits.h>
+ #include <unistd.h>
++#include <pthread.h>
+ 
+ #ifdef HAVE_STDDEF_H
+ #include <stddef.h>
diff --git a/srcpkgs/asterisk/patches/40-asterisk-cdefs.patch b/srcpkgs/asterisk/patches/40-asterisk-cdefs.patch
new file mode 100644
index 000000000000..6fc850125882
--- /dev/null
+++ b/srcpkgs/asterisk/patches/40-asterisk-cdefs.patch
@@ -0,0 +1,21 @@
+include depreciated cdefs.h as needed for compilation with alpine
+
+--- a/main/ast_expr2.c
++++ b/main/ast_expr2.c
+@@ -95,6 +95,7 @@
+ #include "asterisk.h"
+ 
+ #include <sys/types.h>
++#include <sys/cdefs.h>
+ #include <stdio.h>
+ 
+ #if defined(STANDALONE) || defined(STANDALONE2)
+--- a/utils/db1-ast/include/db.h
++++ b/utils/db1-ast/include/db.h
+@@ -37,6 +37,7 @@
+ #define	_DB_H 1
+ 
+ #include <sys/types.h>
++#include <sys/cdefs.h>
+ 
+ #include <limits.h>
diff --git a/srcpkgs/asterisk/template b/srcpkgs/asterisk/template
new file mode 100644
index 000000000000..183837dceff0
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,30 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.5.0
+revision=1
+build_style=gnu-configure
+conf_files="/etc/asterisk/*.conf"
+make_dirs="/var/log/asterisk 0755 _asterisk _asterisk
+ /var/cache/asterisk 0755 _asterisk _asterisk
+ /var/lib/asterisk 0755 _asterisk _asterisk
+ /var/spool/asterisk 0755 _asterisk _asterisk"
+hostmakedepends="curl tar pkg-config"
+makedepends="openssl-devel libedit-devel libuuid-devel jansson-devel
+ libxml2-devel sqlite-devel speex-devel libvorbis-devel libgsm-devel
+ alsa-lib-devel libbluetooth-devel libsrtp-devel"
+short_desc="Complete PBX solution"
+maintainer="teldra <teldra@rotce.de>"
+license="custom:Proprietary GPL-2.0-or-later"
+homepage="https://asterisk.org"
+changelog="https://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-19-current"
+distfiles="https://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-${version}.tar.gz"
+checksum=f1775738fe9679d6602f83a96ec6735324fe7a50800fc09c97a70cc7c7cf00c8
+python_version=3
+system_accounts="_asterisk"
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-10-04  9:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
2022-07-28 19:15 ` [PR REVIEW] " classabbyamp
2022-07-28 19:15 ` classabbyamp
2022-07-28 19:19 ` teldra
2022-07-28 19:19 ` [PR PATCH] [Updated] " teldra
2022-07-28 19:25 ` [PR REVIEW] " classabbyamp
2022-07-28 19:36 ` [PR PATCH] [Updated] " teldra
2022-07-28 19:39 ` [PR REVIEW] " classabbyamp
2022-07-28 20:10 ` teldra
2022-07-28 20:21 ` classabbyamp
2022-07-28 20:25 ` [PR PATCH] [Updated] " teldra
2022-07-28 20:26 ` teldra
2022-07-28 20:30 ` [PR REVIEW] " teldra
2022-10-04  8:31 ` [PR PATCH] [Updated] " teldra
2022-10-04  8:46 ` teldra
2022-10-04  8:49 ` teldra
2022-10-04  8:52 ` teldra
2022-10-04  8:56 ` teldra
2022-10-04  8:58 ` teldra
2022-10-04  9:04 ` [PR PATCH] [Closed]: " teldra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).