cachyos-ksm-settings-git
MEDIUM
maintainer dreieck
1 votes
scanned 2026-09-22 11:37:52.799854
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
19
pkgname="${_pkgname}-git"
20
epoch=0
21
pkgver=5.r3.20250629.62660947
22
pkgrel=1
23
pkgdesc="Package for easy configuration of kernel samepage merding (KSM) via commandline or systemd. Replaces 'uksmd'."
24
url='https://github.com/CachyOS/CachyOS-PKGBUILDS/tree/master/cachyos-ksm-settings'
25
license=("GPL-3.0-or-later")
26
arch=(
27
'any'
28
)
29
depends=(
30
'bash'
31
)
32
optdepends=(
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
)
40
makedepends=(
41
'git'
42
)
43
provides=(
44
"${_pkgname}=${pkgver}"
45
"ksmctl=${pkgver}"
46
"ksmstats=${pkgver}"
47
)
48
conflicts=(
49
"${_pkgname}"
50
"ksmctl"
51
"ksmstats"
52
"cachyos-settings<1:1.1.8"
53
"ksmtuned"
54
)
55
replaces=()
56
backup=('etc/tmpfiles.d/ksm.conf')
57
source=(
58
"${_gitname}::git+https://${_githost}/${_gituser}/${_gitname}.git"
59
)
60
sha256sums=(
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
71
prepare() {
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
82
pkgver() {
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
105
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-22 11:37:52 | Medium | 1 |
| 2026-06-19 19:07:35 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |