blob: 39bc24ad1ba0b81a386b171cf59f4c2b0920c9ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Nikos Toutountzoglou <nikos dot toutou at protonmail dot com>
# Contributor: Josef Miegl <josef@miegl.cz>
# Contributor: robertfoster
pkgname=rtpengine
pkgver=13.0.1.6
pkgrel=1
pkgdesc='The Sipwise media proxy for Kamailio'
url="https://github.com/sipwise/rtpengine"
license=('GPL-3.0-or-later')
arch=('x86_64')
depends=(
'bcg729'
'curl'
'ffmpeg'
'gcc-libs'
'glib2'
'glibc'
'hiredis'
'iptables'
'json-glib'
'libevent'
'libmnl'
'libnftnl'
'libpcap'
'liburing'
'libwebsockets'
'libxmlrpc'
'mariadb-libs'
'mosquitto'
'ncurses'
'openssl'
'opus'
'pcre2'
'perl'
'perl-bencode'
'perl-config-tiny'
'perl-exporter-tidy'
'perl-json'
'perl-socket6'
'rtpengine-kernel-dkms'
'spandsp'
'systemd-libs'
'zlib'
)
makedepends=(
'gperf'
'pkgconf'
'pandoc-cli'
)
optdepends=('libiptcdata: iptables management support'
'mariadb-clients: media playback and call recording daemon support')
backup=('etc/rtpengine/rtpengine.conf'
'etc/rtpengine/rtpengine-recording.conf')
options=('emptydirs')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/mr${pkgver}.tar.gz"
'rtpengine.sysusers')
sha256sums=('5c5a233e755ab5673e5ed55d88b2b4434e0f665051597f20dc89740ddf2837ec'
'ea1580fbf7372309533e56d2a33714dc4d58311429ba60bf25b1bddee5ff7231')
package() {
cd "${pkgname}-mr${pkgver}"
# Install core binaries and utilities
make DESTDIR="${pkgdir}" install
# Install configuration files
install -Dvm644 -t "${pkgdir}/etc/${pkgname}" etc/{rtpengine,rtpengine-recording}.conf
# Install systemd service files
install -Dvm644 -t "${pkgdir}/usr/lib/systemd/system" el/{rtpengine,rtpengine-recording}.service
# Install sysconfig files (for runtime environment variables)
install -Dvm644 el/rtpengine.sysconfig "${pkgdir}/etc/sysconfig/rtpengine"
install -Dvm644 el/rtpengine-recording.sysconfig "${pkgdir}/etc/sysconfig/rtpengine-recording"
# Install sysusers configuration
install -Dvm644 "${srcdir}/rtpengine.sysusers" "${pkgdir}/usr/lib/sysusers.d/rtpengine.conf"
# Create spool directory with appropriate permissions
install -dv -m750 "${pkgdir}/var/spool/rtpengine"
# Install Perl modules
install -Dvm644 -t "${pkgdir}/usr/share/perl5/vendor_perl/NGCP" perl/NGCP/Rtpengine.pm
install -Dvm644 -t "${pkgdir}/usr/share/perl5/vendor_perl/NGCP/Rtpclient" perl/NGCP/Rtpclient/*.pm
install -Dvm644 -t "${pkgdir}/usr/share/perl5/vendor_perl/NGCP/Rtpengine" perl/NGCP/Rtpengine/*.pm
}
# vim: set ts=2 sw=2 et:
|