hammer2

LOW
maintainer bradla8 0 votes scanned 2026-10-06 00:13:36.889724
View on AUR
Why flagged

The package builds a kernel module from a publicly accessible, version-controlled source (GitHub), which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds a kernel module from a publicly accessible, version-controlled source (GitHub), which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.

PKGBUILD

1# Maintainer: Brad Arrington <bradla8@yahoo.com>
2#
3# HAMMER2 filesystem kernel module -- a port of DragonFly BSD's HAMMER2 to the
4# ---------------------------------------------------------------------------
5
6pkgname=hammer2
7pkgver=r13.3fea709
8pkgrel=1
9pkgdesc="HAMMER2 filesystem kernel module (DragonFly BSD port), Linux 7.x only"
10arch=('x86_64')
11url="https://github.com/bradla/hammer2_cluster_linux7"
12license=('BSD')
13depends=('linux>=7' 'linux<8')
14makedepends=('git' 'linux-headers')
15optdepends=('hammer2-utils: newfs_hammer2, fsck_hammer2 and the hammer2 admin/cluster tool')
16install=hammer2.install
17source=("hammer2::git+https://github.com/bradla/hammer2_cluster_linux7.git")
18sha256sums=('SKIP')
19
20_kver() { uname -r; } # or hardcode e.g. 7.0.1-arch1-1
21
22pkgver() {
23 cd "$srcdir/hammer2"
24 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
25}
26
27
28build() {
29 cd "$srcdir/hammer2"
30 make -C "/usr/lib/modules/$(_kver)/build" M="$PWD" modules
31 make -C lh1
32}
33
34package() {
35 cd "$srcdir/hammer2"
36
37 # kernel module
38 local _k; _k=$(_kver)
39 local ko
40 for ko in $(find . -maxdepth 1 -name '*.ko'); do
41 install -Dm644 "$ko" "$pkgdir/usr/lib/modules/$_k/extramodules/$(basename "$ko")"
42 zstd -19 --rm "$pkgdir/usr/lib/modules/$_k/extramodules/$(basename "$ko")"
43 done
44 sed "s/@KVER@/$_k/g" "$startdir/hammer2.install" > "$srcdir/hammer2.install.out"
45
46 # userspace tools (lh1 Makefiles ignore DESTDIR, so install manually)
47 local _t
48 for _t in hammer2 newfs_hammer2 fsck_hammer2; do
49 install -Dm755 "lh1/src/sbin/$_t/$_t" "$pkgdir/usr/bin/$_t"
50 done
51
52 # man pages, if any exist
53 find lh1 -type f \( -name '*.5' -o -name '*.8' \) | while read -r _m; do
54 install -Dm644 "$_m" "$pkgdir/usr/share/man/man${_m##*.}/$(basename "$_m")"
55 done
56
57 install -Dm644 lh1/README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
58 install -Dm644 lh1/CHANGES "$pkgdir/usr/share/doc/$pkgname/CHANGES"
59 install -Dm644 lh1/COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
60
61 sed -n '2,33p' hammer2_ccms.c > "$srcdir/LICENSE"
62 install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
63}
64
65#package() {
66# local _k; _k=$(_kver)
67# cd "$srcdir/hammer2"
68
69# local ko
70# for ko in $(find . -name '*.ko'); do
71# install -Dm644 "$ko" "$pkgdir/usr/lib/modules/$_k/extramodules/$(basename "$ko")"
72# zstd -19 --rm "$pkgdir/usr/lib/modules/$_k/extramodules/$(basename "$ko")"
73# done
74
75# sed "s/@KVER@/$_k/g" "$startdir/hammer2.install" > "$srcdir/hammer2.install.out"
76
77# sed -n '2,33p' hammer2_ccms.c > "$srcdir/LICENSE"
78# install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
79#}
80

Scan history

Scanned at (UTC)SeverityRules
2026-10-06 00:13:36 Low 2
2026-10-05 23:40:58 Low 1

Report a package

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

0 / 4000
Your suggestion