summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-11-08 01:31:54 +0300
committerMaxim Devaev <[email protected]>2021-11-08 01:32:23 +0300
commitb31dde20e0836e3c7518989a2e23df447c432e5a (patch)
tree6bf8862e62c9d60d7a7f8be53f8980d8317a0859
parent6d72bf9b983ba247ab504b6065f59ea473b6b8ea (diff)
move kvmd-udev-hdmiusb-check to the platform package
-rw-r--r--PKGBUILD6
-rwxr-xr-xsetup.py7
2 files changed, 6 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f82513e6..0861adcb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -121,6 +121,8 @@ package_kvmd() {
cd "$srcdir/$pkgname-build"
python setup.py install --root="$pkgdir"
+ install -Dm755 -t "$pkgdir/usr/bin" scripts/kvmd-{bootconfig,gencert}
+
install -Dm644 -t "$pkgdir/usr/lib/systemd/system" configs/os/services/*.service
install -DTm644 configs/os/sysusers.conf "$pkgdir/usr/lib/sysusers.d/kvmd.conf"
install -DTm644 configs/os/tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/kvmd.conf"
@@ -185,6 +187,10 @@ for _variant in "${_variants[@]}"; do
etc/kvmd/main.yaml
)
+ if [[ $_platform =~ ^.*-hdmiusb$ ]]; then
+ install -Dm755 -t \"\$pkgdir/usr/bin\" scripts/kvmd-udev-hdmiusb-check
+ fi
+
install -DTm644 configs/os/sysctl.conf \"\$pkgdir/etc/sysctl.d/99-kvmd.conf\"
install -DTm644 configs/os/udev/$_platform-$_board.rules \"\$pkgdir/etc/udev/rules.d/99-kvmd.rules\"
install -DTm444 configs/kvmd/main/$_platform-$_board.yaml \"\$pkgdir/etc/kvmd/main.yaml\"
diff --git a/setup.py b/setup.py
index 03e2ca84..20b0f6bf 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,6 @@
# ========================================================================== #
-import os
import textwrap
import setuptools.command.easy_install
@@ -117,12 +116,6 @@ def main() -> None:
"kvmd.apps.vnc": ["fonts/*.ttf"],
},
- scripts=[
- os.path.join("scripts", name)
- for name in os.listdir("scripts")
- if not name.startswith(".")
- ],
-
entry_points={
"console_scripts": [
"kvmd = kvmd.apps.kvmd:main",