asterisk
maintainer nkukard
· 113 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source URL is on downloads.asterisk.org, a non-whitelisted but official and project-specific domain for Asterisk; downloading and building source code from the project's own release infrastructure is standard and low risk.
Triggered rules
LOW
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The source URL is on downloads.asterisk.org, a non-whitelisted but official and project-specific domain for Asterisk; downloading and building source code from the project's own release infrastructure is standard and low risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:145
source=("https://downloads.asterisk.org/pub/telephony/$pkgname/releases/$_archive.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Nigel Kukard <nkukard@lbsd.net>
2
# Maintainer: Caleb Maclennan <caleb@alerque.com>
3
# Contributor: Maxim Kurnosenko <asusx2@mail.ru>
4
# Contributor: Xavier Devlamynck <magicrhesus@ouranos.be>
5
# Contributor: Alessio Biancalana <dottorblaster@gmail.com>
6
# Contributor: Maik Broemme <mbroemme@libmpq.org>
7
# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
8
9
pkgname=asterisk
10
pkgver=23.4.0
11
pkgrel=1
12
pkgdesc='A complete PBX solution'
13
arch=(x86_64 i686 aarch64 armv7h)
14
url=https://www.asterisk.org
15
license=("GPL-2.0-only")
16
depends=(alsa-lib
17
curl
18
jansson
19
libedit
20
libsrtp
21
libvorbis
22
libxml2
23
libxslt
24
opus
25
popt
26
speex)
27
makedepends=(gsm
28
sqlite3)
29
optdepends=(dahdi
30
gsm
31
libpri
32
libss7
33
lua51
34
openr2
35
postgresql
36
unixodbc)
37
_confs=(acl.conf
38
adsi.conf
39
aeap.conf
40
agents.conf
41
alarmreceiver.conf
42
amd.conf
43
app_skel.conf
44
ari.conf
45
ast_debug_tools.conf
46
asterisk.adsi
47
asterisk.conf
48
calendar.conf
49
ccss.conf
50
cdr.conf
51
cdr_adaptive_odbc.conf
52
cdr_beanstalkd.conf
53
cdr_custom.conf
54
cdr_manager.conf
55
cdr_odbc.conf
56
cdr_pgsql.conf
57
cdr_sqlite3_custom.conf
58
cdr_tds.conf
59
cel.conf
60
cel_beanstalkd.conf
61
cel_custom.conf
62
cel_odbc.conf
63
cel_pgsql.conf
64
cel_sqlite3_custom.conf
65
cel_tds.conf
66
chan_dahdi.conf
67
chan_mobile.conf
68
chan_websocket.conf
69
cli.conf
70
cli_aliases.conf
71
cli_permissions.conf
72
codecs.conf
73
confbridge.conf
74
config_test.conf
75
console.conf
76
dbsep.conf
77
dnsmgr.conf
78
dsp.conf
79
dundi.conf
80
enum.conf
81
extconfig.conf
82
extensions.ael
83
extensions.conf
84
extensions.lua
85
extensions_minivm.conf
86
features.conf
87
festival.conf
88
followme.conf
89
func_odbc.conf
90
geolocation.conf
91
hep.conf
92
http.conf
93
iax.conf
94
iaxprov.conf
95
indications.conf
96
logger.conf
97
manager.conf
98
meetme.conf
99
minivm.conf
100
modules.conf
101
motif.conf
102
musiconhold.conf
103
ooh323.conf
104
phoneprov.conf
105
phoneprov_users.conf
106
pjproject.conf
107
pjsip.conf
108
pjsip_notify.conf
109
pjsip_wizard.conf
110
prometheus.conf
111
queuerules.conf
112
queues.conf
113
res_config_mysql.conf
114
res_config_sqlite3.conf
115
res_config_odbc.conf
116
res_corosync.conf
117
res_curl.conf
118
res_fax.conf
119
res_http_media_cache.conf
120
res_ldap.conf
121
res_odbc.conf
122
res_parking.conf
123
res_pgsql.conf
124
res_snmp.conf
125
res_stun_monitor.conf
126
resolver_unbound.conf
127
rtp.conf
128
say.conf
129
sla.conf
130
smdi.conf
131
sorcery.conf
132
ss7.timers
133
stasis.conf
134
statsd.conf
135
stir_shaken.conf
136
telcordia-1.adsi
137
test_sorcery.conf
138
udptl.conf
139
unistim.conf
140
voicemail.conf
141
websocket_client.conf
142
xmpp.conf)
143
backup=("${_confs[@]/#/etc/$pkgname/}")
144
_archive="$pkgname-$pkgver"
145
source=("https://downloads.asterisk.org/pub/telephony/$pkgname/releases/$_archive.tar.gz"
146
"$pkgname.sysusers"
147
"$pkgname.logrotated"
148
"$pkgname.tmpfiles"
149
"fix-upnp.patch")
150
sha256sums=('0cce7c26640ce928d4325a9f766372a3019575fd0f0c3bc3f9d7c7789705d7aa'
151
'38a53911647fb2308482179cba605ebf12345df37eed23eb4ea67bf0bf041486'
152
'b97dc10a262621c95e4b75e024834712efd58561267b59b9171c959ecd9f7164'
153
'1b6b489d4f71015bfc56ce739d92df7e9abdb349aed6f5a47dd9c18d84546c1b'
154
'55798baa02698de3d81c4b6e11097b3dee73b20e9dfa1e08091a7037830ad6d8')
155
156
prepare() {
157
cd "$_archive"
158
159
local filename
160
for filename in "${source[@]}"; do
161
if [[ "$filename" =~ \.patch$ ]]; then
162
echo "Applying patch ${filename##*/}"
163
patch -p1 -N -i "$srcdir/${filename##*/}"
164
fi
165
done
166
}
167
168
build() {
169
cd "$_archive"
170
171
./configure \
172
--prefix=/usr \
173
--sysconfdir=/etc \
174
--localstatedir=/var \
175
--sbindir=/usr/bin
176
177
make MENUSELECT_CFLAGS= OPTIMIZE= DEBUG= ASTVARRUNDIR="/run/$pkgname" NOISY_BUILD=1
178
}
179
180
package(){
181
cd "$_archive"
182
183
make DESTDIR="$pkgdir" install
184
make DESTDIR="$pkgdir" install-headers
185
make DESTDIR="$pkgdir" samples
186
187
# Backup file list changes frequently and is hard to keep up to date. Check
188
# that our current meta data matches whatever just got packaged, else flunk
189
# with a helpful output of where the lists differ. We have to compare twice
190
# because cmp has a useful exit code, comm has a useful output, neither both
191
local _backs=($(cd "$pkgdir/etc/$pkgname" && echo *))
192
cmp -s \
193
<(IFS=$'\n'; echo "${_confs[*]}" | sort) \
194
<(IFS=$'\n'; echo "${_backs[*]}" | sort) ||
195
(comm -3 --nocheck-order \
196
<(IFS=$'\n'; echo "${_confs[*]}" | sort) \
197
<(IFS=$'\n'; echo "${_backs[*]}" | sort) &&
198
exit 1)
199
200
sed -i -e 's,/var/run,/run,' "$pkgdir/etc/$pkgname/asterisk.conf"
201
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/examples" "$pkgdir/etc/$pkgname/"*
202
203
mv "$pkgdir/var/run" "$pkgdir"
204
205
pushd contrib/systemd
206
install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" "$pkname"*.{service,socket}
207
208
pushd "$srcdir"
209
install -Dm644 "$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
210
install -Dm644 "$pkgname.logrotated" "$pkgdir/etc/logrotate.d/$pkgname"
211
install -Dm644 "$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
212
213
chmod 0750 "$pkgdir"/{etc,run,var/{lib,log,spool}}/"$pkgname"
214
}
215
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |