blob: 36a510745da2e080ae47e66fe7af6e12ad20dc13 (
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Maintainer: Nikos Toutountzoglou <nikos dot toutou at protonmail dot com>
# Contributor: Josef Miegl <josef@miegl.cz>
# Contributor: robertfoster
pkgname=rtpengine
pkgver=13.1.1.5
pkgrel=1
pkgdesc="A media relay for RTP sessions"
arch=('x86_64')
url="https://github.com/sipwise/rtpengine"
license=('GPL-2.0-only')
depends=(
'bcg729'
'curl'
'ffmpeg'
'gcc-libs'
'glib2'
'glibc'
'hiredis'
'iptables'
'json-glib'
'libconfig'
'libcurl-gnutls'
'libevent'
'libmnl'
'libnftnl'
'libpcap'
'liburing'
'libwebsockets'
'libxmlrpc'
'mariadb-libs'
'mosquitto'
'ncurses'
'openssl'
'opus'
'pcre2'
'perl'
'perl-bencode'
'perl-data-dumper'
'perl-io-socket-ip'
'perl-json'
'perl-socket6'
'perl-xmlrpc-lite'
'spandsp'
'systemd-libs'
'zlib'
)
makedepends=(
'gcc'
'gperf'
'linux-headers'
'make'
'pandoc'
)
checkdepends=(
'bash'
'perl-crypt-openssl-rsa'
'perl-crypt-rijndael'
'perl-digest-crc'
'perl-digest-hmac'
'perl-exporter-tidy'
'perl-io-multiplex'
'perl-net-interface'
'python-websockets'
)
optdepends=('rtpengine-kernel-dkms: Kernel module support for RTPengine')
options=(!emptydirs)
backup=('etc/rtpengine/rtpengine.conf'
'etc/rtpengine/rtpengine-recording.conf')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sipwise/rtpengine/archive/refs/tags/mr${pkgver}.tar.gz"
"${pkgname}.sysusers")
sha256sums=('b59e79dfcd1cf5b6f28e99be8d4397dde5fb4b5c80d620c20c381e2ece3005b2'
'9ee6664c7368cc0466d813c199c997ac4889eb0e72f7f0b51149510cf0ae0b3e')
build() {
cd "${pkgname}-mr${pkgver}"
make with_transcoding=yes PREFIX=/usr
}
check() {
cd "${pkgname}-mr${pkgver}"
make check
}
package() {
cd "${pkgname}-mr${pkgver}"
make DESTDIR="${pkgdir}" with_transcoding=yes PREFIX=/usr install
# Install configuration files
install -Dm644 "etc/${pkgname}.conf" "${pkgdir}/etc/${pkgname}/${pkgname}.conf"
install -Dm644 "etc/${pkgname}-recording.conf" "${pkgdir}/etc/${pkgname}/${pkgname}-recording.conf"
# Install systemd service files from the el directory
install -Dm644 el/${pkgname}.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm644 el/${pkgname}-recording.service "${pkgdir}/usr/lib/systemd/system/${pkgname}-recording.service"
# Install Perl modules
install -Dm644 -t "${pkgdir}/usr/share/perl5/vendor_perl/NGCP" perl/NGCP/Rtpengine.pm
install -Dm644 -t "${pkgdir}/usr/share/perl5/vendor_perl/NGCP/Rtpclient" perl/NGCP/Rtpclient/*.pm
install -Dm644 -t "${pkgdir}/usr/share/perl5/vendor_perl/NGCP/Rtpengine" perl/NGCP/Rtpengine/*.pm
# Install the sysusers configuration file
install -Dm644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
# Create spool directory
install -d "${pkgdir}/var/spool/rtpengine"
# Remove the usr/libexec directory if it exists
rm -rf "${pkgdir}/usr/libexec"
}
# vim: set ts=2 sw=2 et:
|