1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#!/bin/bash
# shellcheck disable=SC2034,SC2154,SC2164
# Maintainer: Sergey M <yamldevelope@proton.me>
# Based on:
# https://github.com/microsoft/linux-vm-tools/blob/master/arch/install-config.sh
# ПОМНИ: версия пакета на сервере не обновится (файл .SRCINFO), пока не изменится какой-нибудь source
# ЭТО ПРОСТО ЗАЕБАЛО, ПОЭТОМУ ВМЕСТО ПРОВЕРКИ ЧЕКСУМ ПРОЩЕ ПИСАТЬ SKIP!!!
pkgname="hyperv-enhanced-session"
# AUR не поддерживает теги как и любые ветки кроме master
pkgver="0.2.0"
pkgrel=0
#arch=('x86_64')
arch=('any')
pkgdesc="Enables Hyper-V Enhanced Session via systemd."
url="https://github.com/s3rgeym/hyperv-enhanced-session"
license=('GPL')
provides=("$pkgname.service")
depends=(
base{,-devel}
xorg-xinit
hyperv
{xorg,}xrdp-git
)
optdepends=(
'hyperv: hyper-v tools'
'xf86-video-fbdev: frame buffer xorg driver fix resolution issue'
)
source=(
'hv_sock.conf'
'blacklist-vmw_vsock_vmci_transport.conf'
'02-allow-colord.rules'
'xdrp-sesman'
'Xwrapper.config'
'configure_xrdp.sh'
'xrdp_configured.txt'
"$pkgname.service"
# Всегда должен быть последним, иначе хук не будет работать!
'https://raw.githubusercontent.com/s3rgeym/hyperv-enhanced-session/main/README.md'
)
sha256sums=('d2caa377132c1ddb741a9fbd1af22c4c4610e1e4636041d938adc4dcb6e1780c'
'dfdc916462b69871f606d3f35289b071d5598dd1ba9be12cd84902f963a0d43a'
'e1c3f43582c07bf9a85dfbce35df053459df8f2a481bba08614fffaced78799d'
'35f160735e44ff9af70a0a562d945528ad2f54c2c2d7e7296c605e1aa092920f'
'f0a32c2658bba8e91d65b2cd03eef69fd782d8b6104d3f61265cdf3d603f10cd'
'b5e2a82f417adbb55d6b52fc457ba42fa2ad681b477141041d9c97760360d5a3'
'a4fb621495a0122493b2203591c448903c472e306a1ede54fabad829e01075c0'
'87290e10f70895db5b469ea38228c92174b831ae7479ece6788349415a108eaf'
'SKIP')
build() {
:
}
prepare() {
:
}
package() {
cd "$srcdir"
install -dm755 "$pkgdir"/{etc/{modules-load.d,polkit-1/rules.d,pam.d,X11},usr/lib/systemd/system,usr/share{/doc,}/$pkgname}
install -Dm644 hv_sock.conf blacklist-vmw_vsock_vmci_transport.conf -t "$pkgdir"/etc/modules-load.d
install -Dm644 02-allow-colord.rules -t "$pkgdir"/etc/polkit-1/rules.d
install -Dm644 xdrp-sesman -t "$pkgdir"/etc/pam.d
install -Dm644 Xwrapper.config -t "$pkgdir"/etc/X11
install -Dm644 "$pkgname.service" -t "$pkgdir"/usr/lib/systemd/system
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
install -Dm755 configure_xrdp.sh -t "$pkgdir"/usr/share/$pkgname
install -Dm755 xrdp_configured.txt -t "$pkgdir"/usr/share/$pkgname
#printf '%.0s-' {1..78}
fold -w 78 -s <<-EOF
==============================================================================
You will have to configure ~/.xinitrc to start your windows manager, see https://wiki.archlinux.org/index.php/Xinit
Run "sudo systemctl enable --now $pkgname" to enable enhanced session.
==============================================================================
EOF
}
|