Initial import: asterisk 18.12.1

This commit is contained in:
Jan Engelhardt 2024-10-23 20:43:06 +02:00
commit 27a51ad64a
13 changed files with 2729 additions and 0 deletions

BIN
asterisk-18.12.1.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAABAgAGBQJihmfMAAoJEF2YS+M3GRznVJwP/1k4f0YhR5UjbhjA4O9jiGT1
KuCWF5c5aPL5Z1ne6XkQ6NdJbokv+MkY44q0pkDuypPNpCPc0nxFCkpcAestncL+
6PZVHx3VJFnhrTu+Lm9FNY5WYh7wV+eEedNW3dkw7lx95grw3BaG/w1RReY964kh
6YPA9QhuSWXl1Yr5J6kgsLAygNcNjI4PzyzmdUpij5VV+vwpiL3xebgROne7hMO4
qPWbN82RZwq1PPte6mfL4lhM1dO5FyeFVdzYZwIEsuT9InmCftQRh6sST9PS39vP
uY38HAhzCRUr8nZxZv3BWvT4eiWf5Lm2IhZSvSqG14o6AG8Sy+/ttwlTaWjzO9A4
KLhFRrgduMI0+enZ/rrD3C0mG71ecfvMeiz6vXfD4YPqLjdYwDVw3pfhJ4/zV6kN
Mk685PtLP2vnYN8Av7y6Ub3dWVTN92qnbXXulsmLKEhTvQ4wwg/Gk6eF75lNJ7Gj
scxF2oayya9tOOgbcwSEtbJ8AbV4bJr27twDmYcgGxVV9GmcSaDVNBFRkg8GplLl
Jl6OJh9thIt1FtRTlVrBpnlBoEqzlBTEeWWihB/lvP6wYTK/OwRX2XBP0PiZ93K8
FqmRTiHpMO1fnrBMXfDvFez8o/5bSw53qKTK7LxK9Bxa1MZs0J9LCPXSPTTGDJiM
LbfE3dEJkCgmi2ezAqMn
=mfGE
-----END PGP SIGNATURE-----

30
asterisk-cflags.diff Normal file
View File

@ -0,0 +1,30 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2016-10-01 17:23:37.085881788 +0200
References: https://bugzilla.opensuse.org/show_bug.cgi?id=1002419
build: restore dropping of -march=native
---
configure.ac | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Index: asterisk-14.0.0/configure.ac
===================================================================
--- asterisk-14.0.0.orig/configure.ac
+++ asterisk-14.0.0/configure.ac
@@ -1220,8 +1220,13 @@ AC_SUBST(AST_SHADOW_WARNINGS)
AC_MSG_CHECKING(for -march=native support)
if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- AC_MSG_RESULT(yes)
- AST_NATIVE_ARCH=1
+ if test "${CONFIG_CFLAGS}" = ""; then
+ AC_MSG_RESULT(yes)
+ AST_NATIVE_ARCH=1
+ else
+ AC_MSG_RESULT(user CFLAGS present)
+ AST_NATIVE_ARCH=
+ fi
else
AC_MSG_RESULT(no)
AST_NATIVE_ARCH=0

View File

@ -0,0 +1,25 @@
From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-10-09 13:06:02.765141186 +0200
Upstream: tbd
build: put data files into the right FHS spot
Data should go into, well, ${datadir}!
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: asterisk-11.0.0-rc2/configure.ac
===================================================================
--- asterisk-11.0.0-rc2.orig/configure.ac
+++ asterisk-11.0.0-rc2/configure.ac
@@ -51,7 +51,7 @@ AC_SUBST([astlibdir], ['${libdir
AC_SUBST([astmoddir], ['${libdir}/asterisk/modules'])dnl
AC_SUBST([astmandir], ['${mandir}'])dnl
AC_SUBST([astvarlibdir], ['${localstatedir}/lib/asterisk'])dnl
-AC_SUBST([astdatadir], ['${astvarlibdir}'])dnl
+AC_SUBST([astdatadir], ['${datadir}/asterisk'])dnl
AC_SUBST([astdbdir], ['${astvarlibdir}'])dnl
AC_SUBST([astkeydir], ['${astvarlibdir}'])dnl
AC_SUBST([astspooldir], ['${localstatedir}/spool/asterisk'])dnl

27
asterisk-init.diff Normal file
View File

@ -0,0 +1,27 @@
From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-10-10 01:33:55.485966709 +0200
Upstream: tbd
config: fix wrong runlevel assignments in suse init script
Runlevel 4 is not used in SUSE, never was.
---
contrib/init.d/rc.suse.asterisk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: asterisk-10.0.0-beta2/contrib/init.d/rc.suse.asterisk
===================================================================
--- asterisk-10.0.0-beta2.orig/contrib/init.d/rc.suse.asterisk
+++ asterisk-10.0.0-beta2/contrib/init.d/rc.suse.asterisk
@@ -26,8 +26,8 @@
# Required-Stop: $network $syslog $named $local_fs $remote_fs
# Should-Start: dahdi misdn lcr wanrouter mysql postgresql
# Should-Stop: dahdi misdn lcr wanrouter mysql postgresql
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 4 6
# Short-Description: Asterisk PBX
# Description: the Asterisk Open Source PBX
### END INIT INFO

26
asterisk-rundir.diff Normal file
View File

@ -0,0 +1,26 @@
From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-10-24 03:40:25.085674838 +0200
Upstream: unlikely
config: use /run
(Only apply this for systems that have /run in their filesystem
tree.)
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: asterisk-10.0.0-beta2/configure.ac
===================================================================
--- asterisk-10.0.0-beta2.orig/configure.ac
+++ asterisk-10.0.0-beta2/configure.ac
@@ -55,7 +55,7 @@ AC_SUBST([astdbdir], ['${astvar
AC_SUBST([astkeydir], ['${astvarlibdir}'])dnl
AC_SUBST([astspooldir], ['${localstatedir}/spool/asterisk'])dnl
AC_SUBST([astlogdir], ['${localstatedir}/log/asterisk'])dnl
-AC_SUBST([astvarrundir], ['${localstatedir}/run/asterisk'])dnl
+AC_SUBST([astvarrundir], ['/run/asterisk'])dnl
case "${host_os}" in
*bsd*)

1610
asterisk.changes Normal file

File diff suppressed because it is too large Load Diff

44
asterisk.init Normal file
View File

@ -0,0 +1,44 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: asterisk
# Required-Start: $network $syslog $named $local_fs $remote_fs
# Required-Stop: $network $syslog $named $local_fs $remote_fs
# Should-Start: dahdi misdn lcr wanrouter mysql postgresql
# Should-Stop: dahdi misdn lcr wanrouter mysql postgresql
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Asterisk PBX
# Description: the Asterisk Open Source PBX
### END INIT INFO
. /etc/rc.status
pid="/var/run/asterisk/asterisk.pid";
dmn="/usr/sbin/asterisk";
case "$1" in
start)
echo -en "Starting asterisk ";
startproc -sp "$pid" "$dmn" -fn;
rc_status -v;;
stop)
echo -en "Stopping asterisk ";
killproc -p "$pid" "$dmn";
rc_status -v;;
status)
echo -en "Checking for asterisk ";
checkproc -p "$pid" "$dmn";
rc_status -v;;
reload)
echo -en "Reloading asterisk ";
killproc -p "$pid" -HUP "$dmn";
rc_status -v;;
restart)
"$0" stop;
"$0" start;
rc_status;;
try-restart)
"$0" status >/dev/null && "$0" restart;
rc_status;;
*)
echo "Usage: $0 {start|stop|status|reload|restart|try-restart}";
exit 1;;
esac;
rc_exit;

265
asterisk.keyring Normal file
View File

@ -0,0 +1,265 @@
pub 1024D/F1DDCF73 2011-11-15
uid Matthew Jordan <mjordan@digium.com>
sub 1024g/51E145E3 2011-11-15
pub 1024D/2D557FFB 2012-01-24
uid Kinsey Moore <kmoore@digium.com>
sub 1024g/BFB53077 2012-01-24
pub 1024D/861FFB7D 2012-09-11
uid Rusty Newton <rnewton@digium.com>
sub 1024g/A8B3A5BB 2012-09-11
pub 1024D/7BD982D8 2010-08-30
uid Richard Mudgett <rmudgett@digium.com>
sub 1024g/253C5733 2010-08-30
pub 1024D/E8F94236 2010-09-15
uid Erin Spiceland <espiceland@digium.com>
sub 1024g/C759348A 2010-09-15
pub 3072R/96A4EC20 2010-09-23
uid David M. Lee (Digium) <dlee@digium.com>
sub 3072R/BC44A064 2010-09-23
pub 1024D/777DCC45 2013-03-27
uid Kevin Harwell <kharwell@digium.com>
sub 1024g/D520EE46 2013-03-27
pub 1024D/CD5D508E 2011-06-28
uid Jonathan Rose <jrose@digium.com>
sub 1024g/338B8924 2011-06-28
pub 1024D/EA9A7B8A 2013-08-27
uid Jonathan Rose <jrose@digium.com>
sub 1024g/7DB7048C 2013-08-27
pub 2048R/6B940F89 2013-12-16
uid Joshua Colp <jcolp@joshua-colp.com>
uid Joshua Colp <jcolp@digium.com>
sub 2048R/8424242D 2013-12-16
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQGiBE7Cs1wRBACKAIjLS7px9u5GaxPD6EliEEs9UfVPu9BalptM4UhYcYlxX8lY
9QUA7nB1pTMLsajxsvoJnA2m3yICRL0QpAWSyTJs98x6jtMUZWgZDhR1CWKgE8kW
O6wCCInXqH8T7AQ9f4NqyhaYhw41XP/tVmvd1FzERfXPFstoL8NpXEUsgwCgwZKv
odmpcpjnWGLOiQQlUP1QZG8D/A9il4Wsmwli6aSpIgR+xgYa/SigxgXf09Bv3r4p
7q8sMNsgH/AwKfWaHLyERU7kTgChvd38ACY6EAkGeI/x6IyOO8CoP+a17QHBgP7+
tvd4TuRndI3u0tWiX56iAc3A5JnAn/H/7Gk8jas98+QVCrDo7zKf+4zQmmbOmeOU
Y8gwA/93wRyufhjlsH8Q1hkY+M8P9/R1T/8wFv9o3AwaI1rer3tzdtIG4vjyNRre
gZinERkfRRKTn05O9n77DbQ5n5Fh/6EPMkvGiOJGZiBeo/giDxa/JlPvsCqDXY/l
fiT7zbm+wygCCPIh9qtb4azOdk3AYtNJ7CjZj35Aw/l4vZNM37QjTWF0dGhldyBK
b3JkYW4gPG1qb3JkYW5AZGlnaXVtLmNvbT6IYgQTEQIAIgUCTsKzXAIbAwYLCQgH
AwIGFQgCCQoLBBYCAwECHgECF4AACgkQqgkg8vHdz3P84wCgraNmZCLwd0CsvM6B
N+Sg160ZVhMAnRdUF/1ffdTRoj6VhKIDIfABxNYiuQENBE7Cs1wQBACBJ9DKhgsP
kCOUhOCjiiGNomJCwIbqwf9Ah7E7uZikViIaZ3icDSj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oV1W/xGr5+JsJ+k3rYkdl0TR0N7YDh20WlPD08Wfo5zl4lkWzxdOI09DABEBAAGJ
AR8EGAECAAkFAlKu888CGwwACgkQ2rKbI2uUD4knTQf/dmiQYetWk9xUflYhoGGL
SRhPM8abzOZPRHQDDvD4HDxyS7npWSyj13xv1W/28FMCzvqTvOcBdvhpsMsfUNMW
VmdyOw43MO+IvRKi586ZOzVjUXTw+2gSCjBvK3xgl73VI/zj0VkmZinjwHuq+IMr
Uf2rFbtbdtUogcsKntSwrRmGqwyijuEVNYtUiOi42YblueByiKTBOaYa+OCNxdGI
RbA/IK6jRfffY6JoYCozEAdoDYe+tF6E1dsWI/kZY96i+XbZLVc1k+YXupjKWa22
CBhXb6mmT3+v3pbQTh8SWmw6djtTCC6lKX78YkyMtnctxyCKUNXLqG6sp5eRB30f
/w==
=LdPV
-----END PGP PUBLIC KEY BLOCK-----

14
asterisk.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=Asterisk PBX
Wants=nss-lookup.target
Wants=network-online.target
After=network-online.target
[Service]
PIDFile=/run/asterisk/asterisk.pid
ExecStart=/usr/sbin/asterisk -fn
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=basic.target
Also=systemd-networkd-wait-online.service

671
asterisk.spec Normal file
View File

@ -0,0 +1,671 @@
#
# spec file for package asterisk
#
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2020 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%ifarch ppc ppc64 ppc64le
%bcond_with dahdi
%else
%bcond_without dahdi
%endif
Name: asterisk
Version: 18.12.1
Release: 0
URL: http://asterisk.org/
Summary: The Asterisk Open Source PBX
License: BSD-2-Clause and BSD-4-Clause or GPL-2.0
Group: Productivity/Telephony/Servers
#DL-URL: http://downloads.asterisk.org/pub/telephony/asterisk/
Source: https://downloads.asterisk.org/pub/telephony/asterisk/releases/%name-%version.tar.gz
Source2: https://downloads.asterisk.org/pub/telephony/asterisk/releases/%name-%version.tar.gz.asc
Source3: %name.keyring
Source4: asterisk.service
Source5: asterisk.init
Source6: https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.12/pjproject-2.12.tar.bz2
Source8: https://raw.githubusercontent.com/asterisk/third-party/master/jansson/2.14/jansson-2.14.tar.bz2
Patch1: asterisk-init.diff
Patch2: asterisk-configure-paths.diff
Patch3: asterisk-cflags.diff
Patch4: asterisk-rundir.diff
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1.9
BuildRequires: wget
BuildRequires: bison
%if %{with dahdi}
BuildRequires: dahdi-linux-devel
BuildRequires: libtonezone-devel
%endif
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: freetds-devel
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: imap-devel
BuildRequires: libedit-devel
BuildRequires: libgsm-devel
BuildRequires: libmysqlclient-devel
BuildRequires: libpri-devel
BuildRequires: libsrtp-devel
BuildRequires: libss7-devel
BuildRequires: libtool
BuildRequires: mISDNuser-devel
BuildRequires: ncurses-devel
BuildRequires: net-snmp-devel
BuildRequires: openldap2-devel
BuildRequires: openr2-devel
# It seems to also want the CLI interface of openssl
BuildRequires: openssl
BuildRequires: osp-toolkit-devel
BuildRequires: pkgconfig
BuildRequires: popt-devel
BuildRequires: postgresql-devel
%if (0%{?sle_version} >= 150200 && 0%{?is_opensuse}) || 0%{?suse_version} > 1500
BuildRequires: postgresql-server-devel
%endif
BuildRequires: libv4l-devel
BuildRequires: rubber
BuildRequires: termcap
BuildRequires: texlive
BuildRequires: xz
BuildRequires: pkgconfig(liburiparser)
%define with_corosync 1
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(gmime-3.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(iksemel)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libcfg)
BuildRequires: pkgconfig(libcpg)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libiodbc)
BuildRequires: pkgconfig(libnewt)
BuildRequires: pkgconfig(libusb)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(neon)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(spandsp)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(speexdsp)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(zlib)
BuildRequires: systemd-rpm-macros
Requires: asterisk-sounds-base
Requires(pre): pwdutils
Provides: bundled(libjansson) = 2.14
Provides: bundled(pjproject) = 2.10
Provides: bundled(pjsip) = 2.10
# addons are included in main package since 1.8.x
Provides: asterisk-addons = %version-%release
Suggests: asterisk-doc = %version
%define scdperm %%attr(0751,root,asterisk) %%verify(not mode)
%define scfperm %%attr(0640,root,asterisk) %%verify(not mode) %%config(noreplace)
%description
Asterisk is a complete PBX in software. It provides all of the
features you would expect from a PBX and more. Asterisk does voice
over IP in three protocols and can interoperate with almost all
standards-based telephony equipment using relatively inexpensive
hardware.
Asterisk provides voicemail services with directory, call
conferencing, interactive voice response, and call queuing. It has
support for three-way calling, caller ID services, ADSI, SIP, and
H.323 (as both client and gateway).
Documentation is available on the Asterisk home page
(http://asterisk.org) and on the Asterisk wiki
(http://voip-info.org/wiki-Asterisk).
%package -n libasteriskssl1
Summary: Asterisk SSL initialization wrapper
Group: System/Libraries
%description -n libasteriskssl1
This Asterisk library is used to wrap various initialization and
shutdown functions from the libssl and libcrypto libraries provided
by OpenSSL. This is done so that Asterisk can ensure that these
functions do *not* get called by any modules that are loaded into
Asterisk, since they should only be called once in any single
process.
%package -n libasteriskpj2
Summary: Asterisk PJSIP library
Group: System/Libraries
%description -n libasteriskpj2
Asterisk-bundled version of the PJSIP library
%package doc
Summary: Asterisk Open Source PBX documentation
Group: Productivity/Telephony/Servers
%description doc
The Asterisk Open Source PBX documentation.
%package alsa
Summary: Soundcard module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description alsa
This package allows Asterisk to use a soundcard supported by ALSA as
a telephone.
%package calendar
Summary: Calendar resource modules for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description calendar
The Asterisk Calendaring API aims to be a generic interface for
integrating Asterisk with various calendaring technologies. The goal
is to be able to support reading and writing of calendar events as
well as allowing notification of pending events through the Asterisk
dialplan.
There are three calendaring modules that ship with Asterisk that
provide support for iCalendar, CalDAV, and Microsoft Exchange Server
calendars. All three modules support event notification. Both CalDAV
and Exchange support reading and writing calendars, while iCalendar
is a read-only format.
%package console
Summary: Console channel module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description console
The Asterisk Command Line Interface.
In addition to being the console for Asterisk, the CLI also sports
several features that make it very helpful to use for obtaining
information and affecting system configuration.
%package corosync
Summary: Corosync module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description corosync
Corosync is an open source group messaging system typically used in
clusters, cloud computing, and other high availability environments.
Using Corosync together with res_corosync allows events to be shared
amongst a local cluster of Asterisk servers. Specifically, the types
of events that may be shared include:
* Device state
* Message Waiting Indication, or MWI (to allow voicemail to live on a
server that is different from where the phones are registered)
%package dahdi
Summary: Telephony Hardware Module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description dahdi
This module allows Asterisk to use telephony hardware that is
supported by the dahdi kernel drivers. Supported hardware ranges from
FXO and FXS cards over ISDN BRI cards to T1, and E1 cards with up to
four interfaces.
See the dahdi package for details.
%package devel
Summary: Development files for Asterisk
Group: Development/Libraries/C and C++
Requires: asterisk = %version
Requires: libasteriskssl1 = %version
%description devel
This package contains the header files and libraries necessary for
developing applications which use asterisk.
Install asterisk-devel if you want to develop applications which
depend on asterisk.
%package freetds
Summary: FreeTDS Call Detail Recording and Call Event Logging for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description freetds
This package allows Asterisk to use a FreeTDS database for CDR and
CEL.
%package mobile
Summary: Mobile (BlueTooth) channel for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description mobile
Mobile (BlueTooth) channel for Asterisk.
%package moh-base
Summary: MOH audio files for Asterisk
Group: Productivity/Telephony/Servers
BuildArch: noarch
%description moh-base
MusicOnHold: Plays hold music specified by class. If omitted, the
default music source for the channel will be used.
%package odbc
Summary: Database Module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description odbc
This package allows Asterisk to use read configuration data from, and
write call logs to ODBC databases.
%package pgsql
Summary: Database Module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description pgsql
This package allows Asterisk to use read configuration data from, and
write call logs to PostgreSQL databases.
%package mysql
Summary: Mysql Database Module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description mysql
This package allows Asterisk to use read configuration data from, and
write call logs to MySQL databases.
%package radius
Summary: Radius modules for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description radius
The RADIUS CEL Backend. It needs:
* FreeRADIUS server
* Radiusclient-ng library
* Asterisk PBX
For more information, see the wiki at
https://wiki.asterisk.org/wiki/display/AST/RADIUS+CEL+Backend
%package snmp
Summary: SNMP resource module for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description snmp
Rudimentary support for SNMP access to Asterisk is available.
%package sounds-base
Summary: Sound files for Asterisk
License: CC-BY-SA-3.0
Group: Productivity/Telephony/Servers
BuildArch: noarch
%description sounds-base
The set of core Asterisk sounds.
%package spandsp
Summary: SpanDSP plugin for Asterisk
Group: Productivity/Telephony/Servers
Requires: asterisk = %version
%description spandsp
Spandsp is a library for Digital Signal Processing (DSP). DSP is used
to turn images into audio and back. In Asterisk, spandsp, is required
for sending and receiving faxes.
%prep
%autosetup -p1
%build
# activate privilege separation
# activate languageprefix (needed by sounds package)
# the sad story about perl: -p doesn't consider missing files as failures
perl -i -pe '
s{^;\s*runuser\s*=\s*\S+}{runuser = asterisk};
s{^;\s*rungroup\s*=\s*\S+}{rungroup = asterisk};
s{^;\s*languageprefix\s*=\s*\S+}{languageprefix = yes};
' configs/samples/asterisk.conf.sample 2>&1 | grep -i 'no such file' && false
./bootstrap.sh
#
# NB:
# [ 27s] checking for -march=native support... user CFLAGS present
# This is exactly what we want.
#
%configure \
--with-pjproject-bundled=yes \
--with-jansson-bundled=yes \
NOISY_BUILD=yes \
EXTERNALS_CACHE_DIR="%_sourcedir"
make menuselect.makeopts
menuselect/menuselect \
--enable app_macro \
--enable app_meetme \
--enable app_mysql \
--enable res_config_mysql \
--enable cdr_mysql \
--enable smsq \
--enable chan_mobile
make NOISY_BUILD=1 # %{?_smp_mflags}
%install
b="%buildroot"
%make_install DOWNLOAD="/bin/true"
make install-headers DESTDIR="$b"
make samples DESTDIR="$b"
# F!@#$d up DESTDIR support. Do proper symlink.
rm -f "$b/%_libdir/libasteriskssl.so"
ln -s libasteriskssl.so.1 "$b/%_libdir/libasteriskssl.so"
mkdir -p "$b/%_includedir"
install -pm0644 include/asterisk.h "$b/%_includedir/"
cp -rp include/asterisk "$b/%_includedir/"
rm "$b/%_includedir/asterisk/.gitignore"
rm "$b/%_includedir/asterisk/autoconfig.h.in"
rm -f "$b/%_includedir/asterisk/autoconfig.h.in~"
# service
mkdir -p "$b/%_sbindir"
mkdir -p "$b/%_unitdir"
install -pm0644 "%{S:4}" "$b/%_unitdir/"
ln -sf /sbin/service "$b/%_sbindir/rcasterisk"
mkdir -p "$b/%_datadir/%name"
cp -a configs "$b/%_datadir/%name/"
fl_asterisk="$PWD/asterisk.files"
>"$fl_asterisk"
pushd "$b/%_sysconfdir/%name/"
for i in *; do
case "$i" in
(ais.conf|alsa.conf|calendar.conf|console.conf) :;;
(*_corosync.conf|*_dahdi.conf) :;;
(*_odbc.conf|*_pgsql.conf|*_mysql.conf|*_snmp.conf) :;;
(*_tds.conf) :;;
(*) echo "%%scfperm %%_sysconfdir/%%name/$i" >>"$fl_asterisk";;
esac
done
popd
pushd "$b/%_libdir/%name/modules/"
for i in *; do
case "$i" in
(*_ais.so|*_alsa.so|*_calendar*.so|*_console.so) :;;
(*_corosync.so|*_dahdi*.so) :;;
(*_odbc.so|*_pgsql.so|*_mysql.so|*_radius.so|*_snmp.so) :;;
(*_spandsp.so|*_tds.so) :;;
(*) echo "%_libdir/%name/modules/$i" >>"$fl_asterisk";;
esac
done
popd
pushd "$b/%_datadir/%name/configs/"
for i in *; do
j="${i%.sample}"
case "$j" in
(ais.conf|alsa.conf|calendar.conf|console.conf) :;;
(*_corosync.conf|*_dahdi.conf) :;;
(*_odbc.conf|*_pgsql.conf|*_mysql.conf|*_snmp.conf) :;;
(*_tds.conf) :;;
(*) echo "%_datadir/%name/configs/$i" >>"$fl_asterisk";;
esac
done
popd
%fdupes %buildroot/%_prefix
# don't package man files twice
rm doc/*.8
# avoid stray dahdi config
%if ! %{with dahdi}
rm %buildroot/%_sysconfdir/%name/chan_dahdi.conf
%endif
%pre
%_bindir/getent group asterisk >/dev/null || \
%_sbindir/groupadd -r asterisk || :
%_bindir/getent passwd asterisk >/dev/null || \
%_sbindir/useradd -r -s /sbin/false -d /var/lib/asterisk \
-M -c "Asterisk PBX" -g asterisk asterisk || :
%service_add_pre asterisk.service
%post
%service_add_post asterisk.service
%preun
%service_del_preun asterisk.service
%postun
%service_del_postun asterisk.service
%post -n libasteriskssl1 -p /sbin/ldconfig
%postun -n libasteriskssl1 -p /sbin/ldconfig
%post -n libasteriskpj2 -p /sbin/ldconfig
%postun -n libasteriskpj2 -p /sbin/ldconfig
%files -f asterisk.files
%license COPYING LICENSE
%doc BUGS CHANGES ChangeLog README.md sample.call *.txt doc/README.txt
%scdperm %dir %_sysconfdir/asterisk
%_unitdir/asterisk.service
%_sbindir/astcanary
%_sbindir/astdb2bdb
%_sbindir/astdb2sqlite3
%_sbindir/asterisk
%_sbindir/astgenkey
%_sbindir/astversion
%_sbindir/autosupport
%_sbindir/rasterisk
%_sbindir/rcasterisk
%_sbindir/safe_asterisk
%_sbindir/smsq
%dir %_libdir/asterisk
%dir %_libdir/asterisk/modules
%dir %_datadir/%name
%dir %_datadir/%name/configs
%dir %_datadir/%name/keys
%_datadir/%name/documentation
%_datadir/%name/firmware
%_datadir/%name/images
%_datadir/%name/phoneprov/
%_datadir/%name/rest-api/
%_datadir/%name/scripts/
%_datadir/%name/static-http
%exclude %_datadir/%name/configs/samples/alsa.conf.sample
%exclude %_datadir/%name/configs/samples/calendar.conf.sample
%exclude %_datadir/%name/configs/samples/console.conf.sample
%exclude %_datadir/%name/configs/samples/res_corosync.conf.sample
%exclude %_datadir/%name/configs/samples/chan_dahdi.conf.sample
%exclude %_datadir/%name/configs/samples/*_tds.conf.sample
%exclude %_datadir/%name/configs/samples/*_odbc.conf.sample
%exclude %_datadir/%name/configs/samples/*_pgsql.conf.sample
%exclude %_datadir/%name/configs/samples/*_mysql.conf.sample
%exclude %_datadir/%name/configs/samples/*_snmp.conf.sample
%exclude %{_sysconfdir}/asterisk/chan_mobile.conf
%exclude %{_libdir}/asterisk/modules/*_mobile.so
%attr(0750,asterisk,asterisk) %_localstatedir/lib/%name
%attr(0750,asterisk,asterisk) %_localstatedir/spool/%name
%attr(0750,asterisk,asterisk) %dir %_localstatedir/log/asterisk
%attr(0750,asterisk,asterisk) %dir %_localstatedir/log/asterisk/cdr-csv
%attr(0750,asterisk,asterisk) %dir %_localstatedir/log/asterisk/cdr-custom
%attr(0750,asterisk,asterisk) %dir %_localstatedir/log/asterisk/cel-custom
%_mandir/man8/*
%files doc
%doc doc/* *.txt *.html
%files -n libasteriskssl1
%_libdir/libasteriskssl.so.*
%files -n libasteriskpj2
%_libdir/libasteriskpj.so.*
%files alsa
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/alsa.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_alsa.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/alsa.conf.sample
%files calendar
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/calendar.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_calendar*.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/calendar.conf.sample
%files console
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/console.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_console.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/console.conf.sample
%if 0%{?with_corosync}
%files corosync
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/res_corosync.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
#_libdir/name/modules/res_corosync.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/res_corosync.conf.sample
%endif
%if %{with dahdi}
%files dahdi
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/chan_dahdi.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_dahdi*
%dir %_datadir/dahdi
%dir %_datadir/dahdi/span_config.d
%_datadir/dahdi/span_config.d/40-asterisk
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/chan_dahdi.conf.sample
%endif
%files devel
%_includedir/%{name}.h
%dir %_includedir/%{name}
%_includedir/%{name}/*.h
%dir %_includedir/%{name}/doxygen
%_includedir/%{name}/doxygen/*.h
%_libdir/libasteriskssl.so
%_libdir/libasteriskpj.so
%files freetds
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/*_tds.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_tds.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/*_tds.conf.sample
%files mobile
%attr(0640,asterisk,asterisk) %config(noreplace) %_sysconfdir/asterisk/chan_mobile.conf
%_libdir/asterisk/modules/*_mobile.so
%files moh-base
%dir %_datadir/%name
%_datadir/%name/moh
%files odbc
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/*_odbc.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_odbc.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/*_odbc.conf.sample
%files pgsql
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/*_pgsql.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_pgsql.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/*_pgsql.conf.sample
%files mysql
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/*_mysql.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_mysql.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/*_mysql.conf.sample
%files sounds-base
%dir %_datadir/%name
%_datadir/%name/sounds
%files snmp
%scdperm %dir %_sysconfdir/%name
%scfperm %_sysconfdir/%name/*_snmp.conf
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_snmp.so
%dir %_datadir/%name
%dir %_datadir/%name/configs/samples
%_datadir/%name/configs/samples/*_snmp.conf.sample
%files spandsp
%dir %_libdir/%name
%dir %_libdir/%name/modules
%_libdir/%name/modules/*_spandsp.so
%changelog

BIN
jansson-2.14.tar.bz2 Normal file

Binary file not shown.

BIN
pjproject-2.12.tar.bz2 Normal file

Binary file not shown.