namd

maintainer michael_wzq · 2 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads a source tarball from a non-whitelisted but plausibly project-owned academic host (charm.cs.illinois.edu) for building the software, which is a normal AUR practice; the main source is locally provided, and all actions are part of standard build procedures without evidence of malicious behavior.

Triggered rules

LOW AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a source tarball from a non-whitelisted but plausibly project-owned academic host (charm.cs.illinois.edu) for building the software, which is a normal AUR practice; the main source is locally provided, and all actions are part of standard build procedures without evidence of malicious behavior.

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:29 source=("http://charm.cs.illinois.edu/distrib/charm-${_charmver}.tar.gz"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
2
3pkgname=namd
4pkgver=3.0.1
5_charmver=8.0.0
6pkgrel=1
7pkgdesc="Scalable molecular dynamic engine"
8url="http://www.ks.uiuc.edu/Research/namd/"
9license=(LicenseRef-NAMD)
10arch=(x86_64)
11depends=(
12 bash
13 fftw
14 gcc-libs
15 glibc
16 perl
17 python-numpy
18 python-scipy
19 tcl
20 zlib
21)
22makedepends=(gcc make patch)
23b2sums=('e12efa3b229b4568bea586f3fe613ec1b0561c946e4fd0c06f937e95eac0c6d1f266cf95e26feac46a5257645ba3671e433f306ea4ede783c2883f1db5613f82'
24 '21c13ba66436c11721f0a20abf13a32cb4e89908e71bff53022adcbbf0984c8a88f2b27e51a7086d873aa17164ae8865d440d08cc1281838d6ac7cdb38eb9110'
25 '04d8df9bacbbd1cf6718a591b52686623cb9be3884c023ff4c70c2d6d4524003ebea132dbfb75fd345dd2ae97115ae66fc69deaf59a9803870ab95abb0e88535')
26options=(!buildflags)
27
28# You MUST download the package from the NAMD url and put it in the PKGBUILD folder!
29source=("http://charm.cs.illinois.edu/distrib/charm-${_charmver}.tar.gz"
30 "local://NAMD_${pkgver}_Source.tar.gz"
31 "Make.charm.patch")
32
33prepare() {
34 # cd "${srcdir}/NAMD_${pkgver}_Source" || exit
35
36 # move Charm++ in place
37 cp -ru "${srcdir}/charm-${_charmver}" "${srcdir}/NAMD_${pkgver}_Source/charm-${_charmver}"
38
39 # apply patch
40 # patch -Np0 -i "${srcdir}/namd.patch"
41
42 # apply patch
43 patch "${srcdir}/NAMD_${pkgver}_Source/Make.charm" ../Make.charm.patch
44}
45
46build() {
47 # build Charm++
48 cd "${srcdir}/NAMD_${pkgver}_Source/charm-${_charmver}" || exit
49
50 ./build charm++ "multicore-linux-${CARCH}" --with-production --force
51
52 # go to the NAMD build
53 cd "${srcdir}/NAMD_${pkgver}_Source" || exit
54
55 # configure and build NAMD
56 # remove old directory
57 rm -rf "${srcdir}/NAMD_${pkgver}_Source/Linux-${CARCH}-g++"
58 ./config "Linux-${CARCH}-g++" --charm-arch "multicore-linux-${CARCH}" --tcl-prefix /usr --fftw-prefix /usr --with-fftw3
59 cd "Linux-${CARCH}-g++" || exit
60 make
61}
62
63package() {
64 cd "${srcdir}/NAMD_${pkgver}_Source/Linux-${CARCH}-g++" || exit
65
66 make release
67
68 # prepare directories
69 mkdir -p "${pkgdir}/usr/bin"
70 mkdir -p "${pkgdir}/usr/share/${pkgname}"
71
72 cd "NAMD_${pkgver}_Linux-${CARCH}-multicore" || exit
73
74 # install binaries
75 install -Dm755 charmrun "${pkgdir}/usr/bin/charmrun"
76 install -Dm755 flipbinpdb "${pkgdir}/usr/bin/flipbinpdb"
77 install -Dm755 flipdcd "${pkgdir}/usr/bin/flipdcd"
78 install -Dm755 namd3 "${pkgdir}/usr/bin/namd3"
79 install -Dm755 psfgen "${pkgdir}/usr/bin/psfgen"
80 install -Dm755 sortreplicas "${pkgdir}/usr/bin/sortreplicas"
81
82 # install license
83 install -Dm644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
84
85 # install other stuff
86 cp -ar lib README.txt announce.txt notes.txt "${pkgdir}/usr/share/${pkgname}/"
87}
88

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion