From 07d499fef5da30988874e08be251f2c9035dc951 Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 22 Jul 2024 21:38:11 +0300 Subject: [PATCH] new: migrated more packages --- src/brotli/.gitignore | 3 + src/brotli/changes.md | 2 + src/brotli/pkg.sh | 39 +++++ src/build-essential/.gitignore | 3 + src/build-essential/changes.md | 2 + src/build-essential/pkg.sh | 22 +++ src/curl/.gitignore | 3 + src/curl/changes.md | 2 + src/curl/pkg.sh | 40 +++++ src/dbus/.gitignore | 3 + src/dbus/changes.md | 2 + src/dbus/pkg.sh | 40 +++++ src/gpgme/pkg.sh | 2 +- src/intltool/.gitignore | 3 + src/intltool/changes.md | 2 + src/intltool/pkg.sh | 25 +++ src/iproute2/.gitignore | 3 + src/iproute2/changes.md | 2 + src/iproute2/pkg.sh | 28 ++++ src/jansson/.gitignore | 3 + src/jansson/changes.md | 2 + src/jansson/pkg.sh | 26 +++ src/jinja2/.gitignore | 3 + src/jinja2/changes.md | 2 + src/jinja2/pkg.sh | 22 +++ src/kbd/.gitignore | 3 + src/kbd/changes.md | 2 + src/kbd/kbd-2.6.4-backspace-1.patch | 250 ++++++++++++++++++++++++++++ src/kbd/pkg.sh | 36 ++++ src/kmod/.gitignore | 3 + src/kmod/changes.md | 2 + src/kmod/pkg.sh | 39 +++++ 32 files changed, 618 insertions(+), 1 deletion(-) create mode 100644 src/brotli/.gitignore create mode 100644 src/brotli/changes.md create mode 100644 src/brotli/pkg.sh create mode 100644 src/build-essential/.gitignore create mode 100644 src/build-essential/changes.md create mode 100644 src/build-essential/pkg.sh create mode 100644 src/curl/.gitignore create mode 100644 src/curl/changes.md create mode 100644 src/curl/pkg.sh create mode 100644 src/dbus/.gitignore create mode 100644 src/dbus/changes.md create mode 100644 src/dbus/pkg.sh create mode 100644 src/intltool/.gitignore create mode 100644 src/intltool/changes.md create mode 100644 src/intltool/pkg.sh create mode 100644 src/iproute2/.gitignore create mode 100644 src/iproute2/changes.md create mode 100644 src/iproute2/pkg.sh create mode 100644 src/jansson/.gitignore create mode 100644 src/jansson/changes.md create mode 100644 src/jansson/pkg.sh create mode 100644 src/jinja2/.gitignore create mode 100644 src/jinja2/changes.md create mode 100644 src/jinja2/pkg.sh create mode 100644 src/kbd/.gitignore create mode 100644 src/kbd/changes.md create mode 100644 src/kbd/kbd-2.6.4-backspace-1.patch create mode 100644 src/kbd/pkg.sh create mode 100644 src/kmod/.gitignore create mode 100644 src/kmod/changes.md create mode 100644 src/kmod/pkg.sh diff --git a/src/brotli/.gitignore b/src/brotli/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/brotli/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/brotli/changes.md b/src/brotli/changes.md new file mode 100644 index 0000000..a286481 --- /dev/null +++ b/src/brotli/changes.md @@ -0,0 +1,2 @@ +# 1.1.0 +First version diff --git a/src/brotli/pkg.sh b/src/brotli/pkg.sh new file mode 100644 index 0000000..343a211 --- /dev/null +++ b/src/brotli/pkg.sh @@ -0,0 +1,39 @@ +# general info +NAME="brotli" +DESC="Generic-purpose lossless compression algorithm" +VERSION="1.1.0" + +# required files +FILES=("https://github.com/google/brotli/archive/v${VERSION}/brotli-${VERSION}.tar.gz") +HASHES=("3a6a3dba82a3604792d3cb0bd41bca60") + +# install and build depends +DEPENDS=("glibc") +BUILD=( + "cmake" "pypa-build" "pypa-installer" + "pypa-setuptools" "pypa-wheel" +) + +build(){ + tar xf "${NAME}-${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" + + mkdir build + cd build + + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make + make DESTDIR="${ROOTDIR}" install + + cd .. + sed "/c\/.*\.[ch]'/d;\ + /include_dirs=\[/\ + i libraries=['brotlicommon','brotlidec','brotlienc']," \ + -i setup.py + + python3 -m build --wheel --skip-dependency-check --no-isolation + PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/build-essential/.gitignore b/src/build-essential/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/build-essential/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/build-essential/changes.md b/src/build-essential/changes.md new file mode 100644 index 0000000..f4da46c --- /dev/null +++ b/src/build-essential/changes.md @@ -0,0 +1,2 @@ +# 1 +First version diff --git a/src/build-essential/pkg.sh b/src/build-essential/pkg.sh new file mode 100644 index 0000000..0abd0de --- /dev/null +++ b/src/build-essential/pkg.sh @@ -0,0 +1,22 @@ +# general info +NAME="build-essential" +DESC="Essential packages to build MatterLinux packages" +VERSION="1" + +# required files +FILES=() +HASHES=() + +# install and build depends +DEPENDS=( + "glibc" "gcc" "make" "python3" "perl" + "cmake" "pypa-wheel" "pypa-installer" + "pypa-build" "pypa-setuptools" +) +BUILD=() + +build(){ + echo This is just a wrapper package, nothing to do + install -dm755 "${ROOTDIR}/var/lib/wrapper_packages" + touch "${ROOTDIR}/var/lib/wrapper_packages/${NAME}" +} diff --git a/src/curl/.gitignore b/src/curl/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/curl/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/curl/changes.md b/src/curl/changes.md new file mode 100644 index 0000000..33a56d3 --- /dev/null +++ b/src/curl/changes.md @@ -0,0 +1,2 @@ +# 8.6.0 +First version diff --git a/src/curl/pkg.sh b/src/curl/pkg.sh new file mode 100644 index 0000000..8ad0bdb --- /dev/null +++ b/src/curl/pkg.sh @@ -0,0 +1,40 @@ +# general info +NAME="curl" +DESC="Command line tool and library for transferring data with URLs" +VERSION="8.6.0" + +# required files +FILES=("https://curl.se/download/curl-${VERSION}.tar.xz") +HASHES=("8f28f7e08c91cc679a45fccf66184fbc") + +# install and build depends +DEPENDS=( + "brotli" "zstd" "zlib" "openldap" + "libssh2" "nghttp2" "libidn2" + "icu" "libpsl" +) +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr \ + --disable-static \ + --with-openssl \ + --enable-threaded-resolver \ + --with-ca-path=/etc/ssl/certs + make + make DESTDIR="${ROOTDIR}" install + + rm -rf docs/examples/.deps + find docs \( -name Makefile\* -o \ + -name \*.1 -o \ + -name \*.3 -o \ + -name CMakeLists.txt \) -delete + + install -dm755 "${ROOTDIR}/usr/share/doc" + cp -v -R docs -T "${ROOTDIR}/usr/share/doc/curl-${VERSION}" + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/dbus/.gitignore b/src/dbus/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/dbus/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/dbus/changes.md b/src/dbus/changes.md new file mode 100644 index 0000000..15008bc --- /dev/null +++ b/src/dbus/changes.md @@ -0,0 +1,2 @@ +# 1.14.10 +First version diff --git a/src/dbus/pkg.sh b/src/dbus/pkg.sh new file mode 100644 index 0000000..2053d6c --- /dev/null +++ b/src/dbus/pkg.sh @@ -0,0 +1,40 @@ +# general info +NAME="dbus" +DESC="Message bus system" +VERSION="1.14.10" + +# required files +FILES=("https://dbus.freedesktop.org/releases/dbus/dbus-${VERSION}.tar.xz") +HASHES=("46070a3487817ff690981f8cd2ba9376") + +# install and build depends +DEPENDS=("systemd" "libcap" "expat") +BUILD=("python3" "systemd") + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --runstatedir=/run \ + --disable-static \ + --disable-doxygen-docs \ + --disable-xml-docs \ + --docdir="/usr/share/doc/dbus-${VERSION}" \ + --with-system-socket=/run/dbus/system_bus_socket \ + --with-console-auth-dir=/run/console/ \ + --with-dbus-user=messagebus \ + --with-system-pid-file=/run/dbus/pid \ + --with-system-socket=/run/dbus/system_bus_socket \ + --with-systemdsystemunitdir=/usr/lib/systemd/system \ + --enable-systemd \ + --enable-user-session + + make + make DESTDIR="${ROOTDIR}" install + ln -sfv ../../../etc/machine-id "${ROOTDIR}/var/lib/dbus/machine-id" + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/gpgme/pkg.sh b/src/gpgme/pkg.sh index 36e4599..a94b8e4 100644 --- a/src/gpgme/pkg.sh +++ b/src/gpgme/pkg.sh @@ -12,7 +12,7 @@ DEPENDS=( "libassuan" "gnupg" "libgpg-error" "glibc" "gcc-libs" ) -BUILD=("python3" "pypa-build" "pypa-installer" "wheel") +BUILD=() build(){ tar xf "${NAME}-${VERSION}.tar.bz2" diff --git a/src/intltool/.gitignore b/src/intltool/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/intltool/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/intltool/changes.md b/src/intltool/changes.md new file mode 100644 index 0000000..cdd8d57 --- /dev/null +++ b/src/intltool/changes.md @@ -0,0 +1,2 @@ +# 0.51.0 +First version diff --git a/src/intltool/pkg.sh b/src/intltool/pkg.sh new file mode 100644 index 0000000..59f56a8 --- /dev/null +++ b/src/intltool/pkg.sh @@ -0,0 +1,25 @@ +# general info +NAME="intltool" +DESC="Utility scripts for internationalizing XML" +VERSION="0.51.0" + +# required files +FILES=("https://launchpad.net/intltool/trunk/${VERSION}/+download/intltool-${VERSION}.tar.gz") +HASHES=("12e517cac2b57a0121cda351570f1e63") + +# install and build depends +DEPENDS=("xml-parser") +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" + + sed -i 's:\\\${:\\\$\\{:' intltool-update.in + ./configure --prefix=/usr + make + make DESTDIR="${ROOTDIR}" install + install -v -Dm644 doc/I18N-HOWTO "${ROOTDIR}/usr/share/doc/intltool-${VERSION}/I18N-HOWTO" + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/iproute2/.gitignore b/src/iproute2/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/iproute2/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/iproute2/changes.md b/src/iproute2/changes.md new file mode 100644 index 0000000..ba6c71a --- /dev/null +++ b/src/iproute2/changes.md @@ -0,0 +1,2 @@ +# 6.7.0 +First version diff --git a/src/iproute2/pkg.sh b/src/iproute2/pkg.sh new file mode 100644 index 0000000..6ba4f3e --- /dev/null +++ b/src/iproute2/pkg.sh @@ -0,0 +1,28 @@ +# general info +NAME="iproute2" +DESC="Routing commands and utilities" +VERSION="6.7.0" + +# required files +FILES=("https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-${VERSION}.tar.xz") +HASHES=("35d8277d1469596b7edc07a51470a033") + +# install and build depends +DEPENDS=("glibc" "libcap" "libelf") +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + sed -i /ARPD/d Makefile + rm -fv man/man8/arpd.8 + + make NETNS_RUN_DIR=/run/netns + make DESTDIR="${ROOTDIR}" SBINDIR=/usr/sbin install + + install -dm755 "${ROOTDIR}/usr/share/doc/iproute2-${VERSION}" + cp -v COPYING README* "${ROOTDIR}/usr/share/doc/iproute2-${VERSION}" + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/jansson/.gitignore b/src/jansson/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/jansson/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/jansson/changes.md b/src/jansson/changes.md new file mode 100644 index 0000000..186f094 --- /dev/null +++ b/src/jansson/changes.md @@ -0,0 +1,2 @@ +# 2.14 +First version diff --git a/src/jansson/pkg.sh b/src/jansson/pkg.sh new file mode 100644 index 0000000..3e5b242 --- /dev/null +++ b/src/jansson/pkg.sh @@ -0,0 +1,26 @@ +# general info +NAME="jansson" +DESC="C library for encoding, decoding and manipulating JSON data" +VERSION="2.14" + +# required files +FILES=("https://github.com/akheron/jansson/releases/download/v${VERSION}/jansson-${VERSION}.tar.bz2") +HASHES=("3f90473d7d54ebd1cb6a2757396641df") + +# install and build depends +DEPENDS=("glibc") +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.bz2" + cd "${NAME}-${VERSION}" + + sed -e "/DT/s;| sort;| sed 's/@@libjansson.*//' &;" \ + -i test/suites/api/check-exports + + ./configure --prefix=/usr --disable-static + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/jinja2/.gitignore b/src/jinja2/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/jinja2/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/jinja2/changes.md b/src/jinja2/changes.md new file mode 100644 index 0000000..6ea12c8 --- /dev/null +++ b/src/jinja2/changes.md @@ -0,0 +1,2 @@ +# 3.1.3 +First version diff --git a/src/jinja2/pkg.sh b/src/jinja2/pkg.sh new file mode 100644 index 0000000..4cc031f --- /dev/null +++ b/src/jinja2/pkg.sh @@ -0,0 +1,22 @@ +# general info +NAME="jinja2" +DESC="Fast, expressive, extensible templating engine" +VERSION="3.1.3" + +# required files +FILES=("https://pypi.org/packages/source/J/Jinja2/Jinja2-${VERSION}.tar.gz") +HASHES=("caf5418c851eac59e70a78d9730d4cea") + +# install and build depends +DEPENDS=("python3" "markupsafe") +BUILD=("flit-core") + +build(){ + tar xf "Jinja2-${VERSION}.tar.gz" + cd "Jinja2-${VERSION}" + + python3 -m build --wheel --skip-dependency-check --no-isolation + PYTHONPATH=src python3 -m installer --destdir="${ROOTDIR}" dist/*.whl + + cd .. && rm -r "Jinja2-${VERSION}" +} diff --git a/src/kbd/.gitignore b/src/kbd/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/kbd/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/kbd/changes.md b/src/kbd/changes.md new file mode 100644 index 0000000..ec8bcea --- /dev/null +++ b/src/kbd/changes.md @@ -0,0 +1,2 @@ +# 2.6.4 +First version diff --git a/src/kbd/kbd-2.6.4-backspace-1.patch b/src/kbd/kbd-2.6.4-backspace-1.patch new file mode 100644 index 0000000..8fec171 --- /dev/null +++ b/src/kbd/kbd-2.6.4-backspace-1.patch @@ -0,0 +1,250 @@ +Submitted By: Matt Burgess +Date: 2008-12-06 +Initial Package Version: 1.15 +Upstream Status: Not submitted, possibly incomplete +Description: Makes Backspace and Delete keys consistent in all i386 keymaps. +Makes the Backspace key send character code 127, and Delete send a well known +escape sequence. Obsoletes the /etc/kbd/bs-sends-del file for i386. + +Original patch for 1.12 by Alexander Patrakov. +Updated for 1.13 (drop ru.map, the change is upstream, and add ru_win.map, +ru-cp1251.map) by Ken Moffat . +Re-diffed against 1.15 by Matt Burgess . + +diff -Naur kbd-1.15.orig/data/keymaps/i386/dvorak/dvorak-l.map kbd-1.15/data/keymaps/i386/dvorak/dvorak-l.map +--- kbd-1.15.orig/data/keymaps/i386/dvorak/dvorak-l.map 2008-06-20 12:36:01.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/dvorak/dvorak-l.map 2008-12-03 22:27:55.000000000 +0000 +@@ -43,7 +43,7 @@ + keycode 11 = three numbersign + keycode 12 = two at + keycode 13 = one exclam +- keycode 14 = BackSpace Delete ++ keycode 14 = Delete Delete + ! -------------------------------------------------------------------------- + ! Row 3 + ! -------------------------------------------------------------------------- +diff -Naur kbd-1.15.orig/data/keymaps/i386/dvorak/dvorak-r.map kbd-1.15/data/keymaps/i386/dvorak/dvorak-r.map +--- kbd-1.15.orig/data/keymaps/i386/dvorak/dvorak-r.map 2008-06-20 12:36:01.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/dvorak/dvorak-r.map 2008-12-03 22:28:13.000000000 +0000 +@@ -43,7 +43,7 @@ + keycode 11 = slash question + keycode 12 = bracketleft braceleft + keycode 13 = bracketright braceright +- keycode 14 = BackSpace Delete ++ keycode 14 = Delete Delete + ! -------------------------------------------------------------------------- + ! Row 3 + ! -------------------------------------------------------------------------- +diff -Naur kbd-1.15.orig/data/keymaps/i386/fgGIod/tr_f-latin5.map kbd-1.15/data/keymaps/i386/fgGIod/tr_f-latin5.map +--- kbd-1.15.orig/data/keymaps/i386/fgGIod/tr_f-latin5.map 2008-10-23 20:03:58.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/fgGIod/tr_f-latin5.map 2008-12-03 22:40:32.000000000 +0000 +@@ -51,7 +51,7 @@ + alt keycode 12 = Meta_minus + keycode 13 = minus underscore + alt keycode 13 = Meta_equal +-keycode 14 = BackSpace Delete ++keycode 14 = Delete Delete + alt keycode 14 = Meta_Delete + keycode 15 = Tab Meta_Tab + alt keycode 15 = Meta_Tab +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/lt.l4.map kbd-1.15/data/keymaps/i386/qwerty/lt.l4.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/lt.l4.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/lt.l4.map 2008-12-03 22:42:14.000000000 +0000 +@@ -205,7 +205,7 @@ + # edit this if you want the key above to delete symbols above + # cursor, not before. + keycode 14 = \ +- BackSpace BackSpace BackSpace BackSpace \ ++ Delete Delete Delete Delete \ + Delete Delete Delete Delete \ + Meta_BackSpace Meta_BackSpace Meta_BackSpace Meta_BackSpace \ + Meta_Delete Meta_Delete Meta_Delete Meta_Delete +@@ -506,7 +506,7 @@ + + # Edit this if you want strict VT100 emulation. + string F111 = "\033[3$" +-keycode 111 = Delete F111 Delete F111 \ ++keycode 111 = Remove F111 Remove F111 \ + Remove Remove Remove Remove \ + Meta_Delete Meta_Delete Meta_Delete Meta_Delete \ + Boot Boot Boot Boot +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/lt.map kbd-1.15/data/keymaps/i386/qwerty/lt.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/lt.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/lt.map 2008-12-03 22:42:58.000000000 +0000 +@@ -204,7 +204,7 @@ + # edit this if you want the key above to delete symbols above + # cursor, not before. + keycode 14 = \ +- BackSpace BackSpace BackSpace BackSpace \ ++ Delete Delete Delete Delete \ + Delete Delete Delete Delete \ + Meta_BackSpace Meta_BackSpace Meta_BackSpace Meta_BackSpace \ + Meta_Delete Meta_Delete Meta_Delete Meta_Delete +@@ -505,7 +505,7 @@ + + # Edit this if you want strict VT100 emulation. + string F111 = "\033[3$" +-keycode 111 = Delete F111 Delete F111 \ ++keycode 111 = Remove F111 Remove F111 \ + Remove Remove Remove Remove \ + Meta_Delete Meta_Delete Meta_Delete Meta_Delete \ + Boot Boot Boot Boot +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/no-latin1.map kbd-1.15/data/keymaps/i386/qwerty/no-latin1.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/no-latin1.map 2008-06-20 12:36:00.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/no-latin1.map 2008-12-03 22:44:25.000000000 +0000 +@@ -3,7 +3,7 @@ + # Send comments to Kjetil T. Homme + include "linux-with-alt-and-altgr" + plain keycode 83 = KP_Comma +- plain keycode 111 = Delete # "Remove" originally, weird... ++ plain keycode 111 = Remove + strings as usual + + keycode 1 = Escape +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ru1.map kbd-1.15/data/keymaps/i386/qwerty/ru1.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ru1.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ru1.map 2008-12-03 22:45:32.000000000 +0000 +@@ -143,8 +143,8 @@ + + # The keycode "0xFF" is too dangerous for many programs (including emacs). + # So let it be bracket instead of Hard Sign. +-# altgr keycode 27 = +0xDF +-# altgr shift keycode 27 = +0xFF ++altgr keycode 27 = +0xDF ++altgr shift keycode 27 = +0xFF + control keycode 27 = Control_bracketright + altgr control keycode 27 = Control_bracketright + alt keycode 27 = Meta_bracketright +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ru2.map kbd-1.15/data/keymaps/i386/qwerty/ru2.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ru2.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ru2.map 2008-12-03 22:46:15.000000000 +0000 +@@ -46,7 +46,7 @@ + alt keycode 12 = Meta_minus + keycode 13 = equal plus equal plus + alt keycode 13 = Meta_equal +- keycode 14 = BackSpace BackSpace BackSpace BackSpace ++ keycode 14 = Delete Delete Delete Delete + alt keycode 14 = Meta_Delete + keycode 15 = Tab Tab Tab Tab + alt keycode 15 = Meta_Tab +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ru-cp1251.map kbd-1.15/data/keymaps/i386/qwerty/ru-cp1251.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ru-cp1251.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ru-cp1251.map 2008-12-03 22:47:12.000000000 +0000 +@@ -39,7 +39,7 @@ + alt keycode 12 = Meta_minus + keycode 13 = equal plus equal plus + alt keycode 13 = Meta_equal +- keycode 14 = BackSpace ++ keycode 14 = Delete + alt keycode 14 = Meta_Delete + keycode 15 = Tab + alt keycode 15 = Meta_Tab +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ru-ms.map kbd-1.15/data/keymaps/i386/qwerty/ru-ms.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ru-ms.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ru-ms.map 2008-12-03 22:48:10.000000000 +0000 +@@ -89,8 +89,8 @@ + altgr alt keycode 13 = Meta_equal + shift alt keycode 13 = Meta_plus + altgr shift alt keycode 13 = Meta_plus +- keycode 14 = BackSpace BackSpace BackSpace BackSpace +-# keycode 14 = Delete Delete Delete Delete ++# keycode 14 = BackSpace BackSpace BackSpace BackSpace ++ keycode 14 = Delete Delete Delete Delete + alt keycode 14 = Meta_Delete + altgr alt keycode 14 = Meta_Delete + keycode 15 = Tab Tab Tab Tab +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ru_win.map kbd-1.15/data/keymaps/i386/qwerty/ru_win.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ru_win.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ru_win.map 2008-12-03 22:49:17.000000000 +0000 +@@ -42,7 +42,7 @@ + alt keycode 12 = Meta_minus + keycode 13 = equal plus equal plus + alt keycode 13 = Meta_equal +- keycode 14 = BackSpace BackSpace BackSpace BackSpace ++ keycode 14 = Delete Delete Delete Delete + alt keycode 14 = Meta_Delete + keycode 15 = Tab Tab Tab Tab + alt keycode 15 = Meta_Tab +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/se-ir209.map kbd-1.15/data/keymaps/i386/qwerty/se-ir209.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/se-ir209.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/se-ir209.map 2008-12-03 22:50:18.000000000 +0000 +@@ -345,7 +345,7 @@ + keycode 109 = Next Scroll_Forward + keycode 110 = Insert + +- keycode 111 = Delete # "Remove" originally, weird... ++ keycode 111 = Remove + control alt keycode 111 = Boot + control altgr keycode 111 = Boot + +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/se-lat6.map kbd-1.15/data/keymaps/i386/qwerty/se-lat6.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/se-lat6.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/se-lat6.map 2008-12-03 22:50:44.000000000 +0000 +@@ -374,6 +374,6 @@ + keycode 109 = Next Scroll_Forward + keycode 110 = Insert + +- keycode 111 = Delete # "Remove" originally, weird... ++ keycode 111 = Remove + control alt keycode 111 = Boot + control altgr keycode 111 = Boot +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/tr_q-latin5.map kbd-1.15/data/keymaps/i386/qwerty/tr_q-latin5.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/tr_q-latin5.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/tr_q-latin5.map 2008-12-03 22:52:09.000000000 +0000 +@@ -49,7 +49,7 @@ + alt keycode 12 = Meta_minus + keycode 13 = minus underscore + alt keycode 13 = Meta_equal +-keycode 14 = BackSpace Delete ++keycode 14 = Delete Delete + alt keycode 14 = Meta_Delete + keycode 15 = Tab Meta_Tab + alt keycode 15 = Meta_Tab +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ua.map kbd-1.15/data/keymaps/i386/qwerty/ua.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ua.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ua.map 2008-12-03 22:52:52.000000000 +0000 +@@ -249,7 +249,7 @@ + shift ctrll ctrlr keycode 13 = plus + alt ctrll ctrlr keycode 13 = Meta_equal + shift alt ctrll ctrlr keycode 13 = Meta_plus +-keycode 14 = BackSpace Delete ++keycode 14 = Delete Delete + control keycode 14 = BackSpace + alt keycode 14 = Meta_Delete + ctrlr keycode 14 = BackSpace +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ua-utf.map kbd-1.15/data/keymaps/i386/qwerty/ua-utf.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ua-utf.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ua-utf.map 2008-12-03 22:53:36.000000000 +0000 +@@ -250,7 +250,7 @@ + shift ctrll ctrlr keycode 13 = plus + alt ctrll ctrlr keycode 13 = Meta_equal + shift alt ctrll ctrlr keycode 13 = Meta_plus +-keycode 14 = BackSpace Delete ++keycode 14 = Delete Delete + control keycode 14 = BackSpace + alt keycode 14 = Meta_Delete + ctrlr keycode 14 = BackSpace +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ua-utf-ws.map kbd-1.15/data/keymaps/i386/qwerty/ua-utf-ws.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ua-utf-ws.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ua-utf-ws.map 2008-12-03 22:54:06.000000000 +0000 +@@ -260,7 +260,7 @@ + shift ctrll ctrlr keycode 13 = plus + alt ctrll ctrlr keycode 13 = Meta_equal + shift alt ctrll ctrlr keycode 13 = Meta_plus +-keycode 14 = BackSpace Delete ++keycode 14 = Delete Delete + control keycode 14 = BackSpace + alt keycode 14 = Meta_Delete + ctrlr keycode 14 = BackSpace +diff -Naur kbd-1.15.orig/data/keymaps/i386/qwerty/ua-ws.map kbd-1.15/data/keymaps/i386/qwerty/ua-ws.map +--- kbd-1.15.orig/data/keymaps/i386/qwerty/ua-ws.map 2008-10-23 20:03:59.000000000 +0100 ++++ kbd-1.15/data/keymaps/i386/qwerty/ua-ws.map 2008-12-03 22:54:23.000000000 +0000 +@@ -260,7 +260,7 @@ + shift ctrll ctrlr keycode 13 = plus + alt ctrll ctrlr keycode 13 = Meta_equal + shift alt ctrll ctrlr keycode 13 = Meta_plus +-keycode 14 = BackSpace Delete ++keycode 14 = Delete Delete + control keycode 14 = BackSpace + alt keycode 14 = Meta_Delete + ctrlr keycode 14 = BackSpace diff --git a/src/kbd/pkg.sh b/src/kbd/pkg.sh new file mode 100644 index 0000000..eae22f0 --- /dev/null +++ b/src/kbd/pkg.sh @@ -0,0 +1,36 @@ +# general info +NAME="kbd" +DESC="Linux keyboard tools" +VERSION="2.6.4" + +# required files +FILES=( + "https://www.kernel.org/pub/linux/utils/kbd/kbd-${VERSION}.tar.xz" + "kbd-${VERSION}-backspace-1.patch" +) +HASHES=( + "e2fd7adccf6b1e98eb1ae8d5a1ce5762" + "f75cca16a38da6caa7d52151f7136895" +) + +# install and build depends +DEPENDS=("glibc" "linux-pam") +BUILD=("check") + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + patch -Np1 -i "../kbd-${VERSION}-backspace-1.patch" + sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure + sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in + + ./configure --prefix=/usr --disable-vlock + make + make DESTDIR="${ROOTDIR}" install + + install -dm755 "${ROOTDIR}/usr/share/doc" + cp -R -v docs/doc -T "${ROOTDIR}/usr/share/doc/kbd-${VERSION}" + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/kmod/.gitignore b/src/kmod/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/kmod/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/kmod/changes.md b/src/kmod/changes.md new file mode 100644 index 0000000..a129f7d --- /dev/null +++ b/src/kmod/changes.md @@ -0,0 +1,2 @@ +# 31 +First version diff --git a/src/kmod/pkg.sh b/src/kmod/pkg.sh new file mode 100644 index 0000000..9e7715c --- /dev/null +++ b/src/kmod/pkg.sh @@ -0,0 +1,39 @@ +# general info +NAME="kmod" +DESC="Kernel module management tool" +VERSION="31" + +# required files +FILES=("https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-${VERSION}.tar.xz") +HASHES=("6165867e1836d51795a11ea4762ff66a") + +# install and build depends +DEPENDS=( + "glibc" "openssl" "xz" + "zlib" "zstd" "libelf" + "linux" +) +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-openssl \ + --with-xz \ + --with-zstd \ + --with-zlib + make + make DESTDIR="${ROOTDIR}" install + + install -dm755 "${ROOTDIR}/usr/sbin" + + for target in depmod insmod modinfo modprobe rmmod; do + ln -sfv ../bin/kmod "${ROOTDIR}/usr/sbin/$target" + done + ln -sfv kmod "${ROOTDIR}/usr/bin/lsmod" + + cd .. && rm -r "${NAME}-${VERSION}" +}