cachyos-ksm-settings-git

MEDIUM
maintainer dreieck 1 votes scanned 2026-09-22 11:37:52.799854
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

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:58 "${_gitname}::git+https://${_githost}/${_gituser}/${_gitname}.git"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2#
3# Based on:
4# * https://github.com/CachyOS/CachyOS-PKGBUILDS/blob/master/cachyos-ksm-settings/PKGBUILD (2025-05-03) by
5# Contributor: Vasiliy Stelmachenok <ventureo(at)cachyos.org>
6# And based on:
7# * aur/uksmd-nosystemd-git by
8# Contributor: dreieck (https://aur.archlinux.org/account/dreieck)
9# which is based on
10# - aur/uksmd-git by
11# Contributor: Yurii Kolesnykov <root [at] yurikoles.com>, which is based on
12# + aur/uksmd by
13# Oleksandr Natalenko <oleksandr [at] natalenko.name>
14
15_pkgname="cachyos-ksm-settings"
16_gitname="CachyOS-PKGBUILDS"
17_githost=github.com
18_gituser=CachyOS
19pkgname="${_pkgname}-git"
20epoch=0
21pkgver=5.r3.20250629.62660947
22pkgrel=1
23pkgdesc="Package for easy configuration of kernel samepage merding (KSM) via commandline or systemd. Replaces 'uksmd'."
24url='https://github.com/CachyOS/CachyOS-PKGBUILDS/tree/master/cachyos-ksm-settings'
25license=("GPL-3.0-or-later")
26arch=(
27 'any'
28)
29depends=(
30 'bash'
31)
32optdepends=(
33 'systemd>=256: For automatic control via systemd.'
34 'ksmctl-openrc: For OpenRC initscript.'
35 "gdm: For systemd service override to work (gdm graphical session via systemd)."
36 "lightdm: For systemd service override to work (lightdm graphical session via systemd)."
37 "ly: For systemd service override to work (ly session via systemd)."
38 "sddm: For systemd service override to work (sddm graphical session via systemd)."
39)
40makedepends=(
41 'git'
42)
43provides=(
44 "${_pkgname}=${pkgver}"
45 "ksmctl=${pkgver}"
46 "ksmstats=${pkgver}"
47)
48conflicts=(
49 "${_pkgname}"
50 "ksmctl"
51 "ksmstats"
52 "cachyos-settings<1:1.1.8"
53 "ksmtuned"
54)
55replaces=()
56backup=('etc/tmpfiles.d/ksm.conf')
57source=(
58 "${_gitname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
59)
60sha256sums=(
61 'SKIP'
62)
63# Those files in ${_gitname}/${_pkgname}/ will be used -- only look at them when generating version number:
64_sourcefiles=(
65 ksmctl
66 ksmstats
67 10-enable-ksm-by-default.conf
68 10-systemd-ksm.conf
69)
70
71prepare() {
72 cd "${srcdir}/${_gitname}/${_pkgname}"
73
74 #for _patch in "${srcdir}/ksmctl-add-status-output.patch"; do
75 # printf '%s\n' " > Applying patch $(basename "${_patch}")"
76 # patch -Np1 --follow-symlinks -i "${_patch}"
77 #done
78
79 git log -- * > git.log
80}
81
82pkgver() {
83 cd "${srcdir}/${_gitname}/${_pkgname}"
84
85 _ver="$(grep -E '^pkgver=' PKGBUILD | tail -n1 | sed 's|#.*$||' | awk -F '=' '{print $2}' | tr -d '[[:space:]]')"
86 _rev="$(git rev-list --count HEAD -- "${_sourcefiles[@]}")"
87 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad" -- "${_sourcefiles[@]}")"
88 _hash="$(git log -n1 --oneline --abbrev-commit -- "${_sourcefiles[@]}" | awk '{print $1}')"
89
90 if [ -z "${_ver}" ]; then
91 error "Version could not be determined."
92 return 1
93 elif [ -z "${_rev}" ]; then
94 error "Git commit count could not be determined."
95 return 1
96 else
97 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
98 fi
99}
100
101#build() {
102# cd "${srcdir}/${_gitname}/${_pkgname}"
103#}
104
105package() {
106 cd "${srcdir}/${_gitname}/${_pkgname}"
107
108 install -Dvm755 -t "${pkgdir}/usr/bin" ksmctl ksmstats
109
110 install -Dvm644 10-systemd-ksm.conf "${pkgdir}/usr/lib/systemd/system/gdm.service.d/10-ksm.conf"
111 install -Dvm644 10-systemd-ksm.conf "${pkgdir}/usr/lib/systemd/system/sddm.service.d/10-ksm.conf"
112 install -Dvm644 10-systemd-ksm.conf "${pkgdir}/usr/lib/systemd/system/lightdm.service.d/10-ksm.conf"
113 install -Dvm644 10-systemd-ksm.conf "${pkgdir}/usr/lib/systemd/system/ly.service.d/10-ksm.conf"
114 install -Dvm644 10-systemd-ksm.conf "${pkgdir}/usr/lib/systemd/system/user@.service.d/10-ksm.conf"
115 install -Dvm644 10-systemd-ksm.conf "${pkgdir}/usr/lib/systemd/system/getty@.service.d/10-ksm.conf"
116 install -Dvm644 10-enable-ksm-by-default.conf "${pkgdir}/usr/lib/tmpfiles.d/10-enable-ksm-by-default.conf"
117
118 install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" git.log
119}
120
121

Changes since previous scan

--- PKGBUILD @ 2026-06-19 19:07
+++ PKGBUILD @ 2026-09-22 11:37
@@ -18,7 +18,7 @@
_gituser=CachyOS
pkgname="${_pkgname}-git"
epoch=0
-pkgver=4.r3.20250629.62660947
+pkgver=5.r3.20250629.62660947
pkgrel=1
pkgdesc="Package for easy configuration of kernel samepage merding (KSM) via commandline or systemd. Replaces 'uksmd'."
url='https://github.com/CachyOS/CachyOS-PKGBUILDS/tree/master/cachyos-ksm-settings'

Scan history

Scanned at (UTC)SeverityRules
2026-09-22 11:37:52 Medium 1
2026-06-19 19:07:35 Clean 2
2026-06-18 16:11:54 Medium 1

Report a package

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

0 / 4000
Your suggestion