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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  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
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: classabbyamp @ 2022-07-28 19:15 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932583348

Comment:
```suggestion
license="custom:Proprietary, GPL-2.0-or-later"
```

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
@ 2022-07-28 19:15 ` classabbyamp
  2022-07-28 19:15 ` classabbyamp
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: classabbyamp @ 2022-07-28 19:15 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932584327

Comment:
> Asterisk is distributed under the GNU General Public License version 2
> and is also available under alternative licenses negotiated directly
> with Digium, Inc. If you obtained Asterisk under the GPL, then the GPL
> applies to all loadable Asterisk modules used on your system as well,
> except as defined below. The GPL (version 2) is included in this
> source tree in the file COPYING.
> 
> This package also includes various components that are not part of
> Asterisk itself; these components are in the 'contrib' directory
> and its subdirectories. These components are also distributed under the
> GPL version 2 as well.

What part of it is proprietary? (also, if there are proprietary bits, it should probably also have `repo=nonfree`)

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  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
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 19:19 UTC (permalink / raw)
  To: ml

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

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932591131

Comment:
Based on your quote, only `GPL-2.0-or-later` left in template.

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (2 preceding siblings ...)
  2022-07-28 19:19 ` teldra
@ 2022-07-28 19:19 ` teldra
  2022-07-28 19:25 ` [PR REVIEW] " classabbyamp
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 19:19 UTC (permalink / raw)
  To: ml

[-- 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
+}

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (3 preceding siblings ...)
  2022-07-28 19:19 ` [PR PATCH] [Updated] " teldra
@ 2022-07-28 19:25 ` classabbyamp
  2022-07-28 19:36 ` [PR PATCH] [Updated] " teldra
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: classabbyamp @ 2022-07-28 19:25 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932596102

Comment:
alpine lists it as `GPL-2.0-only WITH OpenSSL-Exception`, which i think matches what's in the LICENSE file

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (4 preceding siblings ...)
  2022-07-28 19:25 ` [PR REVIEW] " classabbyamp
@ 2022-07-28 19:36 ` teldra
  2022-07-28 19:39 ` [PR REVIEW] " classabbyamp
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 19:36 UTC (permalink / raw)
  To: ml

[-- 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: 3841 bytes --]

From 00672444724c1bf2488a481c6fc847be229de1da 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                     | 32 +++++++++++++++++++
 4 files changed, 75 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..99d8e5448a90
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,32 @@
+# 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-only WITH OpenSSL-Exception"
+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
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (5 preceding siblings ...)
  2022-07-28 19:36 ` [PR PATCH] [Updated] " teldra
@ 2022-07-28 19:39 ` classabbyamp
  2022-07-28 20:10 ` teldra
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: classabbyamp @ 2022-07-28 19:39 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932605948

Comment:
weird, seems that exception doesn't have an spdx name

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (6 preceding siblings ...)
  2022-07-28 19:39 ` [PR REVIEW] " classabbyamp
@ 2022-07-28 20:10 ` teldra
  2022-07-28 20:21 ` classabbyamp
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 20:10 UTC (permalink / raw)
  To: ml

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

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932627313

Comment:
Should we ignore this for now, because this seems to be an ongoing issue: https://github.com/spdx/license-list-XML/issues/1356 ?

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (7 preceding siblings ...)
  2022-07-28 20:10 ` teldra
@ 2022-07-28 20:21 ` classabbyamp
  2022-07-28 20:25 ` [PR PATCH] [Updated] " teldra
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: classabbyamp @ 2022-07-28 20:21 UTC (permalink / raw)
  To: ml

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

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932635161

Comment:
WITH is parsed as a comma in xlint, so we could do custom:OpenSSL-Exception I guess

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (8 preceding siblings ...)
  2022-07-28 20:21 ` classabbyamp
@ 2022-07-28 20:25 ` teldra
  2022-07-28 20:26 ` teldra
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 20:25 UTC (permalink / raw)
  To: ml

[-- 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: 3844 bytes --]

From 7b1380e22f305cd1506db8686c7845f0e523e7de 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                     | 32 +++++++++++++++++++
 4 files changed, 75 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..7c9436448205
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,32 @@
+# 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:OpenSSL-Exception, GPL-2.0-only"
+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
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (9 preceding siblings ...)
  2022-07-28 20:25 ` [PR PATCH] [Updated] " teldra
@ 2022-07-28 20:26 ` teldra
  2022-07-28 20:30 ` [PR REVIEW] " teldra
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 20:26 UTC (permalink / raw)
  To: ml

[-- 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: 3848 bytes --]

From cc8b5ccc0a932946b451443a184166139230e0b5 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                     | 32 +++++++++++++++++++
 4 files changed, 75 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..ffe1f0d93196
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,32 @@
+# 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-only WITH custom:OpenSSL-Exception"
+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
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR REVIEW] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (10 preceding siblings ...)
  2022-07-28 20:26 ` teldra
@ 2022-07-28 20:30 ` teldra
  2022-10-04  8:31 ` [PR PATCH] [Updated] " teldra
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-07-28 20:30 UTC (permalink / raw)
  To: ml

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

New review comment by teldra on void-packages repository

https://github.com/void-linux/void-packages/pull/38344#discussion_r932642435

Comment:
Yes. Thank you!

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (11 preceding siblings ...)
  2022-07-28 20:30 ` [PR REVIEW] " teldra
@ 2022-10-04  8:31 ` teldra
  2022-10-04  8:46 ` teldra
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  8:31 UTC (permalink / raw)
  To: ml

[-- 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: 3848 bytes --]

From 5213ce5485157e7e5211ee92df859822bc2aae3b 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.6.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                     | 32 +++++++++++++++++++
 4 files changed, 75 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..42ccd60247ae
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,32 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.6.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-only WITH custom:OpenSSL-Exception"
+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=4a382d9659f5dde6e654dfd5c7dc1b491ccaa6251577c6c51b94bc09aa8c6572
+python_version=3
+system_accounts="_asterisk"
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (12 preceding siblings ...)
  2022-10-04  8:31 ` [PR PATCH] [Updated] " teldra
@ 2022-10-04  8:46 ` teldra
  2022-10-04  8:49 ` teldra
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  8:46 UTC (permalink / raw)
  To: ml

[-- 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: 3901 bytes --]

From 9c7bb833fd728d93da275f7b66d2a2558c75342f 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.6.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                     | 37 +++++++++++++++++++
 4 files changed, 80 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..df544dac0bb7
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,37 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.6.0
+revision=1
+build_style=gnu-configure
+build_helper=qemu
+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-only WITH custom:OpenSSL-Exception"
+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=4a382d9659f5dde6e654dfd5c7dc1b491ccaa6251577c6c51b94bc09aa8c6572
+python_version=3
+system_accounts="_asterisk"
+
+do_build() {
+ vtargetrun make
+}
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (13 preceding siblings ...)
  2022-10-04  8:46 ` teldra
@ 2022-10-04  8:49 ` teldra
  2022-10-04  8:52 ` teldra
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  8:49 UTC (permalink / raw)
  To: ml

[-- 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: 4072 bytes --]

From b22a29e9ac8e4bf732d7b723de284a61a5e315f6 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.6.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                     | 42 +++++++++++++++++++
 4 files changed, 85 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..c9b70c10431e
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,42 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.6.0
+revision=1
+build_style=gnu-configure
+build_helper=qemu
+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-only WITH custom:OpenSSL-Exception"
+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=4a382d9659f5dde6e654dfd5c7dc1b491ccaa6251577c6c51b94bc09aa8c6572
+python_version=3
+system_accounts="_asterisk"
+
+do_configure() {
+	export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /usr/lib32 /usr/lib /lib /usr/local/lib"
+    vtargetrun ${configure_script} ${configure_args}
+}
+
+do_build() {
+	vtargetrun make
+}
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (14 preceding siblings ...)
  2022-10-04  8:49 ` teldra
@ 2022-10-04  8:52 ` teldra
  2022-10-04  8:56 ` teldra
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  8:52 UTC (permalink / raw)
  To: ml

[-- 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: 4069 bytes --]

From ae20558266bce1816593b54621604b43caaf2e92 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.6.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                     | 42 +++++++++++++++++++
 4 files changed, 85 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..fc87d1677dc1
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,42 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.6.0
+revision=1
+build_style=gnu-configure
+build_helper=qemu
+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-only WITH custom:OpenSSL-Exception"
+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=4a382d9659f5dde6e654dfd5c7dc1b491ccaa6251577c6c51b94bc09aa8c6572
+python_version=3
+system_accounts="_asterisk"
+
+do_configure() {
+	export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /usr/lib32 /usr/lib /lib /usr/local/lib"
+	vtargetrun ${configure_script} ${configure_args}
+}
+
+do_build() {
+	vtargetrun make
+}
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (15 preceding siblings ...)
  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
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  8:56 UTC (permalink / raw)
  To: ml

[-- 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: 3948 bytes --]

From f03c2c111451922795816786d534602df0e78f1c 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.6.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                     | 41 +++++++++++++++++++
 4 files changed, 84 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..1239f2a7ddf2
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,41 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.6.0
+revision=1
+build_style=gnu-configure
+build_helper=qemu
+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-only WITH custom:OpenSSL-Exception"
+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=4a382d9659f5dde6e654dfd5c7dc1b491ccaa6251577c6c51b94bc09aa8c6572
+python_version=3
+system_accounts="_asterisk"
+
+do_configure() {
+	vtargetrun ./configure
+}
+
+do_build() {
+	vtargetrun make
+}
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Updated] [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (16 preceding siblings ...)
  2022-10-04  8:56 ` teldra
@ 2022-10-04  8:58 ` teldra
  2022-10-04  9:04 ` [PR PATCH] [Closed]: " teldra
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  8:58 UTC (permalink / raw)
  To: ml

[-- 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: 3951 bytes --]

From 33e35b09c8639fb2b5d6c1f254f3ece328595c86 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.6.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                     | 41 +++++++++++++++++++
 4 files changed, 84 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..45df0f319c15
--- /dev/null
+++ b/srcpkgs/asterisk/template
@@ -0,0 +1,41 @@
+# Template file for 'asterisk'
+pkgname=asterisk
+version=19.6.0
+revision=1
+build_style=gnu-configure
+build_helper=qemu
+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-only WITH custom:OpenSSL-Exception"
+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=4a382d9659f5dde6e654dfd5c7dc1b491ccaa6251577c6c51b94bc09aa8c6572
+python_version=3
+system_accounts="_asterisk"
+
+do_configure() {
+	vtargetrun bash configure
+}
+
+do_build() {
+	vtargetrun make
+}
+
+post_install() {
+	make DESTDIR="${DESTDIR}" samples
+	chmod -R 0755 ${DESTDIR}/var/*/asterisk
+	vsv asterisk
+	for f in LICENSE COPYING; do
+		vlicense $f
+	done
+}

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

* Re: [PR PATCH] [Closed]: [WIP]New package: asterisk-19.5.0
  2022-07-28 19:05 [PR PATCH] [WIP]New package: asterisk-19.5.0 teldra
                   ` (17 preceding siblings ...)
  2022-10-04  8:58 ` teldra
@ 2022-10-04  9:04 ` teldra
  18 siblings, 0 replies; 20+ messages in thread
From: teldra @ 2022-10-04  9:04 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

[WIP]New package: asterisk-19.5.0
https://github.com/void-linux/void-packages/pull/38344

Description:
<!-- 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?

^ 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).