Github messages for voidlinux
 help / color / mirror / Atom feed
From: teldra <teldra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
Date: Thu, 28 Jul 2022 21:19:25 +0200	[thread overview]
Message-ID: <20220728191925.WsOcr8rKMQfCt-cs3KoZQlJrLYv1DVPwVE6AIj9V7II@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38344@inbox.vuxu.org>

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

There is an updated 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)

I have no other hardware and crosscompiling is failing. Maybe someone can help fixing that?

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: 3772 bytes --]

From d4e26d9c66063f1353db4a374e5977dd9573ff86 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                     | 29 +++++++++++++++++++
 4 files changed, 72 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..03dd2abba94a
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,29 @@
+# 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="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
+}

  parent reply	other threads:[~2022-07-28 19:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-28 19:05 [PR PATCH] " 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 ` teldra [this message]
2022-07-28 19:25 ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220728191925.WsOcr8rKMQfCt-cs3KoZQlJrLYv1DVPwVE6AIj9V7II@z \
    --to=teldra@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).