diff --git a/3party/cachyos-kernel-manager/.SRCINFO b/3party/cachyos-kernel-manager/.SRCINFO new file mode 100644 index 0000000..e5f1d4d --- /dev/null +++ b/3party/cachyos-kernel-manager/.SRCINFO @@ -0,0 +1,27 @@ +# Generated by makepkg 6.0.2 +# Fri Aug 11 22:06:38 UTC 2023 +pkgbase = cachyos-kernel-manager + pkgdesc = Simple kernel manager + pkgver = 1.3.2 + pkgrel = 1 + url = https://github.com/cachyos/kernel-manager + arch = aarch64 + arch = x86_64 + arch = x86_64_v3 + groups = cachyos + license = GPLv3 + makedepends = cmake + makedepends = ninja + makedepends = git + makedepends = python + makedepends = polkit-qt5 + makedepends = qt5-tools + depends = qt5-base + depends = polkit + provides = cachyos-kernel-manager + conflicts = cachyos-kernel-manager + options = strip + source = kernel-manager-1.3.2.tar.gz::https://github.com/cachyos/kernel-manager/archive/v1.3.2.tar.gz + sha256sums = 01e356211fdbb2e99a0c848c5ce30a6f08f9b72f9cf822fd5bcc1af839913bb8 + +pkgname = cachyos-kernel-manager diff --git a/Never/paru-bin/00_make.sh b/3party/cachyos-kernel-manager/00_make.sh similarity index 87% rename from Never/paru-bin/00_make.sh rename to 3party/cachyos-kernel-manager/00_make.sh index 30b8975..452a66e 100755 --- a/Never/paru-bin/00_make.sh +++ b/3party/cachyos-kernel-manager/00_make.sh @@ -2,6 +2,8 @@ makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force +status=$? + for i in *.pkg.tar.zst; do if [ -f "${i}" ]; then @@ -22,7 +24,10 @@ do fi done -echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" echo "Ready" +if [ "$status" == 0 ]; then + sleep 5 + kill $(ps x | grep konsole | grep $0 | awk '{print $1}') +fi diff --git a/3party/cachyos-kernel-manager/01_sign.sh b/3party/cachyos-kernel-manager/01_sign.sh new file mode 100755 index 0000000..2ce3206 --- /dev/null +++ b/3party/cachyos-kernel-manager/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +for i in *.pkg.tar.xz; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3party/cachyos-kernel-manager/PKGBUILD b/3party/cachyos-kernel-manager/PKGBUILD new file mode 100644 index 0000000..96053be --- /dev/null +++ b/3party/cachyos-kernel-manager/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-kernel-manager +pkgver=1.4.3 +pkgrel=1 +pkgdesc="Simple kernel manager" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/kernel-manager" +license=(GPLv3) +depends=('qt5-base' 'polkit') +makedepends=('cmake' 'ninja' 'git' 'python' 'polkit-qt5' 'qt5-tools') +groups=('cachyos') +source=("git+$url.git" + fix-installed-db.patch) +sha256sums=('SKIP' + 'SKIP') +provides=('cachyos-kernel-manager') +conflicts=('cachyos-kernel-manager') +options=(strip) + +# prepare() { +# cd ${srcdir}/kernel-manager +# +# patch -Np1 -i ../fix-installed-db.patch +# } + +build() { + cd ${srcdir}/kernel-manager + + CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd ${srcdir}/kernel-manager + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3party/cachyos-kernel-manager/PKGBUILD_ b/3party/cachyos-kernel-manager/PKGBUILD_ new file mode 100644 index 0000000..ade407c --- /dev/null +++ b/3party/cachyos-kernel-manager/PKGBUILD_ @@ -0,0 +1,50 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-kernel-manager +pkgver=1.4.3 +pkgrel=1 +pkgdesc="Simple kernel manager" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/kernel-manager" +license=(GPLv3) +depends=('qt5-base' 'polkit') +makedepends=('cmake' 'ninja' 'git' 'python' 'polkit-qt5' 'qt5-tools') +groups=('cachyos') +source=("kernel-manager-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" + fix-installed-db.patch) +sha256sums=('e9ab98525e654728654cd84023bc1ef13567db8799ce25376b79726e04fa7216' + 'SKIP') +provides=('cachyos-kernel-manager') +conflicts=('cachyos-kernel-manager') +options=(strip) + +prepare() { + cd ${srcdir}/kernel-manager-${pkgver} + + patch -Np1 -i ../fix-installed-db.patch +} + +build() { + cd ${srcdir}/kernel-manager-${pkgver} + + CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd ${srcdir}/kernel-manager-${pkgver} + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3party/cachyos-kernel-manager/fix-installed-db.patch b/3party/cachyos-kernel-manager/fix-installed-db.patch new file mode 100644 index 0000000..b476ae4 --- /dev/null +++ b/3party/cachyos-kernel-manager/fix-installed-db.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 52d5415..ba7883a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -75,11 +75,12 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto -fwhole-program -fuse-linker-plugin") + endif() + +-list(APPEND CMAKE_REQUIRED_LINK_OPTIONS "-lalpm") +-check_symbol_exists(alpm_pkg_get_installed_db "alpm.h" HAVE_ALPM_INSTALLED_DB) +-if(HAVE_ALPM_INSTALLED_DB) +- add_compile_options(-DHAVE_ALPM_INSTALLED_DB) +-endif() ++#list(APPEND CMAKE_REQUIRED_LINK_OPTIONS "-lalpm") ++#check_symbol_exists(alpm_pkg_get_installed_db "alpm.h" HAVE_ALPM_INSTALLED_DB) ++#if(HAVE_ALPM_INSTALLED_DB) ++# add_compile_options(-DHAVE_ALPM_INSTALLED_DB) ++#endif() ++add_compile_options(-DHAVE_ALPM_INSTALLED_DB) + + # Link this 'library' to set the c++ standard / compile-time options requested + add_library(project_options INTERFACE) diff --git a/3party/cachyos-kernel-manager/kernel-manager/FETCH_HEAD b/3party/cachyos-kernel-manager/kernel-manager/FETCH_HEAD new file mode 100644 index 0000000..5df55fb --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/FETCH_HEAD @@ -0,0 +1,39 @@ +507e852a0e3f1f0e971998b07dfc434ab5903fab not-for-merge branch 'develop' of https://github.com/cachyos/kernel-manager +51517d2e5b0068987089d99ebe0415d31925e966 not-for-merge 'refs/pull/3/head' of https://github.com/cachyos/kernel-manager +ffbd22917caa846fcde630e0b0adba179cb8d80b not-for-merge 'refs/pull/4/head' of https://github.com/cachyos/kernel-manager +e7272d97502ff8333dfb647471fcc3706a3c7b35 not-for-merge 'refs/pull/5/head' of https://github.com/cachyos/kernel-manager +a0ca2f39238c5707d1a0b89a8507ff941b529fdc not-for-merge 'refs/pull/6/head' of https://github.com/cachyos/kernel-manager +d7f080bd6171fa0a92fb486db25e9c27a9e39bcc not-for-merge tag '0.9.9.1' of https://github.com/cachyos/kernel-manager +a44eb568d2c42f5cb6b2d9742274131602e6eede not-for-merge tag 'v0.9.0' of https://github.com/cachyos/kernel-manager +e2f2c9c7b8149a46e6387ad05a564e724c31f396 not-for-merge tag 'v0.9.1' of https://github.com/cachyos/kernel-manager +20fb78d5b47381d3119d6ccfd8d0683a414ca81a not-for-merge tag 'v0.9.2' of https://github.com/cachyos/kernel-manager +7d3a46e56b7be1e2d940dc45aaed4017a5dd4bfa not-for-merge tag 'v0.9.3' of https://github.com/cachyos/kernel-manager +680037eac7d6992b8755ec9c48bc4f0dcb99f591 not-for-merge tag 'v0.9.4' of https://github.com/cachyos/kernel-manager +c8f0e48be5038e1139f1859ae57979c76c25fe1a not-for-merge tag 'v0.9.5' of https://github.com/cachyos/kernel-manager +3f95f245827668e299ee727b56c0d56e70462868 not-for-merge tag 'v0.9.6' of https://github.com/cachyos/kernel-manager +59c0a648026de2878a470780adb24bcc465b462e not-for-merge tag 'v0.9.7' of https://github.com/cachyos/kernel-manager +4063170803b479e36b6bfff89d5da98583cb8cbe not-for-merge tag 'v0.9.8' of https://github.com/cachyos/kernel-manager +a102e072cec2c882f660d19f11ac25f9a531e98b not-for-merge tag 'v0.9.9' of https://github.com/cachyos/kernel-manager +d4c493ae600fe471263ac9a5a81632ad152494e9 not-for-merge tag 'v1.0.0' of https://github.com/cachyos/kernel-manager +089262d5bed0357a594af4d2d74afd72e3a71b38 not-for-merge tag 'v1.0.1' of https://github.com/cachyos/kernel-manager +df3ca279d4628aa7c31425ec4d50c4f4029a2976 not-for-merge tag 'v1.0.2' of https://github.com/cachyos/kernel-manager +ffce93c1c515b37ef1be5c658a3a068657e97217 not-for-merge tag 'v1.0.3' of https://github.com/cachyos/kernel-manager +527c776be439ee4e9cd7deefbd8a194960eced03 not-for-merge tag 'v1.0.4' of https://github.com/cachyos/kernel-manager +99893d26c33ad5d5af85f32cec788af09dc8e2d0 not-for-merge tag 'v1.0.5' of https://github.com/cachyos/kernel-manager +c89b64315cca287d9839f10a51ba0bc5a39d744d not-for-merge tag 'v1.0.6' of https://github.com/cachyos/kernel-manager +0c345fcd19f2f3b051cf32a4e05da1014601398a not-for-merge tag 'v1.0.7' of https://github.com/cachyos/kernel-manager +c9d1f73ffe38a93e27f6945e186b0f96e7479b67 not-for-merge tag 'v1.0.8' of https://github.com/cachyos/kernel-manager +1dd67295a4f667059217f5ba5ab568daf86060d2 not-for-merge tag 'v1.0.9' of https://github.com/cachyos/kernel-manager +2e51e5066e35bb5805026b45f85349ae3ce51ad2 not-for-merge tag 'v1.1.0' of https://github.com/cachyos/kernel-manager +b9b595c81c15bde207d1f30b73d0758203aa1c6a not-for-merge tag 'v1.2.0' of https://github.com/cachyos/kernel-manager +e41fe9c0b2025132328f864dd2d16702bd0046c0 not-for-merge tag 'v1.2.1' of https://github.com/cachyos/kernel-manager +e11f3f7b3726665a5c5c6e1bda66aa4bfffb06a4 not-for-merge tag 'v1.3.0' of https://github.com/cachyos/kernel-manager +507f1833582b7c53df1f51502f1f1fb1de73678e not-for-merge tag 'v1.3.1' of https://github.com/cachyos/kernel-manager +1c0bfae47374517cec536bb48e033ec6cb000570 not-for-merge tag 'v1.3.2' of https://github.com/cachyos/kernel-manager +93a39d3033f8e7b6e13fd703622242af10e8dc4c not-for-merge tag 'v1.3.3' of https://github.com/cachyos/kernel-manager +f4a301e74b32bb188b729f9c3833494b7cfecf1a not-for-merge tag 'v1.3.4' of https://github.com/cachyos/kernel-manager +b477ad37300bdf51ad682ffa13818af9a780a8d8 not-for-merge tag 'v1.3.5' of https://github.com/cachyos/kernel-manager +36564df6da91e4ef9960ca45888292cc6c7a1073 not-for-merge tag 'v1.4.0' of https://github.com/cachyos/kernel-manager +87c267aebc9a536324defb18e7a7acbe45576ade not-for-merge tag 'v1.4.1' of https://github.com/cachyos/kernel-manager +ce1bce4a2f392635cfd50eacbad236ebd01bc6fc not-for-merge tag 'v1.4.2' of https://github.com/cachyos/kernel-manager +507e852a0e3f1f0e971998b07dfc434ab5903fab not-for-merge tag 'v1.4.3' of https://github.com/cachyos/kernel-manager diff --git a/3party/cachyos-kernel-manager/kernel-manager/HEAD b/3party/cachyos-kernel-manager/kernel-manager/HEAD new file mode 100644 index 0000000..7ee7e4f --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/HEAD @@ -0,0 +1 @@ +ref: refs/heads/develop diff --git a/3party/cachyos-kernel-manager/kernel-manager/config b/3party/cachyos-kernel-manager/kernel-manager/config new file mode 100644 index 0000000..8c8cfba --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/cachyos/kernel-manager.git + fetch = +refs/*:refs/* + mirror = true diff --git a/3party/cachyos-kernel-manager/kernel-manager/description b/3party/cachyos-kernel-manager/kernel-manager/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/applypatch-msg.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/commit-msg.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/fsmonitor-watchman.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/post-update.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-applypatch.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-commit.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-merge-commit.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-push.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-rebase.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-receive.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/prepare-commit-msg.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/push-to-checkout.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/3party/cachyos-kernel-manager/kernel-manager/hooks/update.sample b/3party/cachyos-kernel-manager/kernel-manager/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/3party/cachyos-kernel-manager/kernel-manager/info/exclude b/3party/cachyos-kernel-manager/kernel-manager/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.idx b/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.idx new file mode 100644 index 0000000..c280651 Binary files /dev/null and b/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.idx differ diff --git a/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.pack b/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.pack new file mode 100644 index 0000000..1b7b233 Binary files /dev/null and b/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.pack differ diff --git a/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.rev b/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.rev new file mode 100644 index 0000000..8b1e546 Binary files /dev/null and b/3party/cachyos-kernel-manager/kernel-manager/objects/pack/pack-a9d2cca225e96e2f5ca970cd0eabb97d1e430d84.rev differ diff --git a/3party/cachyos-kernel-manager/kernel-manager/packed-refs b/3party/cachyos-kernel-manager/kernel-manager/packed-refs new file mode 100644 index 0000000..c93af28 --- /dev/null +++ b/3party/cachyos-kernel-manager/kernel-manager/packed-refs @@ -0,0 +1,40 @@ +# pack-refs with: peeled fully-peeled sorted +507e852a0e3f1f0e971998b07dfc434ab5903fab refs/heads/develop +51517d2e5b0068987089d99ebe0415d31925e966 refs/pull/3/head +ffbd22917caa846fcde630e0b0adba179cb8d80b refs/pull/4/head +e7272d97502ff8333dfb647471fcc3706a3c7b35 refs/pull/5/head +a0ca2f39238c5707d1a0b89a8507ff941b529fdc refs/pull/6/head +d7f080bd6171fa0a92fb486db25e9c27a9e39bcc refs/tags/0.9.9.1 +a44eb568d2c42f5cb6b2d9742274131602e6eede refs/tags/v0.9.0 +e2f2c9c7b8149a46e6387ad05a564e724c31f396 refs/tags/v0.9.1 +20fb78d5b47381d3119d6ccfd8d0683a414ca81a refs/tags/v0.9.2 +7d3a46e56b7be1e2d940dc45aaed4017a5dd4bfa refs/tags/v0.9.3 +680037eac7d6992b8755ec9c48bc4f0dcb99f591 refs/tags/v0.9.4 +c8f0e48be5038e1139f1859ae57979c76c25fe1a refs/tags/v0.9.5 +3f95f245827668e299ee727b56c0d56e70462868 refs/tags/v0.9.6 +59c0a648026de2878a470780adb24bcc465b462e refs/tags/v0.9.7 +4063170803b479e36b6bfff89d5da98583cb8cbe refs/tags/v0.9.8 +a102e072cec2c882f660d19f11ac25f9a531e98b refs/tags/v0.9.9 +d4c493ae600fe471263ac9a5a81632ad152494e9 refs/tags/v1.0.0 +089262d5bed0357a594af4d2d74afd72e3a71b38 refs/tags/v1.0.1 +df3ca279d4628aa7c31425ec4d50c4f4029a2976 refs/tags/v1.0.2 +ffce93c1c515b37ef1be5c658a3a068657e97217 refs/tags/v1.0.3 +527c776be439ee4e9cd7deefbd8a194960eced03 refs/tags/v1.0.4 +99893d26c33ad5d5af85f32cec788af09dc8e2d0 refs/tags/v1.0.5 +c89b64315cca287d9839f10a51ba0bc5a39d744d refs/tags/v1.0.6 +0c345fcd19f2f3b051cf32a4e05da1014601398a refs/tags/v1.0.7 +c9d1f73ffe38a93e27f6945e186b0f96e7479b67 refs/tags/v1.0.8 +1dd67295a4f667059217f5ba5ab568daf86060d2 refs/tags/v1.0.9 +2e51e5066e35bb5805026b45f85349ae3ce51ad2 refs/tags/v1.1.0 +b9b595c81c15bde207d1f30b73d0758203aa1c6a refs/tags/v1.2.0 +e41fe9c0b2025132328f864dd2d16702bd0046c0 refs/tags/v1.2.1 +e11f3f7b3726665a5c5c6e1bda66aa4bfffb06a4 refs/tags/v1.3.0 +507f1833582b7c53df1f51502f1f1fb1de73678e refs/tags/v1.3.1 +1c0bfae47374517cec536bb48e033ec6cb000570 refs/tags/v1.3.2 +93a39d3033f8e7b6e13fd703622242af10e8dc4c refs/tags/v1.3.3 +f4a301e74b32bb188b729f9c3833494b7cfecf1a refs/tags/v1.3.4 +b477ad37300bdf51ad682ffa13818af9a780a8d8 refs/tags/v1.3.5 +36564df6da91e4ef9960ca45888292cc6c7a1073 refs/tags/v1.4.0 +87c267aebc9a536324defb18e7a7acbe45576ade refs/tags/v1.4.1 +ce1bce4a2f392635cfd50eacbad236ebd01bc6fc refs/tags/v1.4.2 +507e852a0e3f1f0e971998b07dfc434ab5903fab refs/tags/v1.4.3 diff --git a/3party/cachyos-kernel-manager/makepkg-clang-without-lto.conf b/3party/cachyos-kernel-manager/makepkg-clang-without-lto.conf new file mode 100644 index 0000000..c5a248e --- /dev/null +++ b/3party/cachyos-kernel-manager/makepkg-clang-without-lto.conf @@ -0,0 +1,191 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +export CC=clang +export CXX=clang++ +export LD=ld.lld +export CC_LD=lld +export CXX_LD=lld +export AR=llvm-ar +export NM=llvm-nm +export STRIP=llvm-strip +export OBJCOPY=llvm-objcopy +export OBJDUMP=llvm-objdump +export READELF=llvm-readelf +export RANLIB=llvm-ranlib +export HOSTCC=clang +export HOSTCXX=clang++ +export HOSTAR=llvm-ar +export HOSTLD=ld.lld +export LLVM=1 +export LLVM_IAS=1 + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-fuse-ld=lld -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +#PACKAGER="John Doe " +#-- Specify a key to use for package signing +#GPGKEY="" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3party/cachyos-kernel-manager/makepkg-clang.conf b/3party/cachyos-kernel-manager/makepkg-clang.conf new file mode 100644 index 0000000..57b2dfe --- /dev/null +++ b/3party/cachyos-kernel-manager/makepkg-clang.conf @@ -0,0 +1,191 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +export CC=clang +export CXX=clang++ +export LD=ld.lld +export CC_LD=lld +export CXX_LD=lld +export AR=llvm-ar +export NM=llvm-nm +export STRIP=llvm-strip +export OBJCOPY=llvm-objcopy +export OBJDUMP=llvm-objdump +export READELF=llvm-readelf +export RANLIB=llvm-ranlib +export HOSTCC=clang +export HOSTCXX=clang++ +export HOSTAR=llvm-ar +export HOSTLD=ld.lld +export LLVM=1 +export LLVM_IAS=1 + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-fuse-ld=lld -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +#PACKAGER="John Doe " +#-- Specify a key to use for package signing +#GPGKEY="" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3party/cachyos-kernel-manager/makepkg-gcc-without-lto.conf b/3party/cachyos-kernel-manager/makepkg-gcc-without-lto.conf new file mode 100644 index 0000000..a0bfdd6 --- /dev/null +++ b/3party/cachyos-kernel-manager/makepkg-gcc-without-lto.conf @@ -0,0 +1,172 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Valeria Fadeeva " +#-- Specify a key to use for package signing +GPGKEY="BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3party/cachyos-kernel-manager/makepkg-gcc.conf b/3party/cachyos-kernel-manager/makepkg-gcc.conf new file mode 100644 index 0000000..b45ff5a --- /dev/null +++ b/3party/cachyos-kernel-manager/makepkg-gcc.conf @@ -0,0 +1,172 @@ +#!/hint/bash +# +# /etc/makepkg.conf +# + +######################################################################### +# SOURCE ACQUISITION +######################################################################### +# +#-- The download utilities that makepkg should use to acquire sources +# Format: 'protocol::agent' +DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u' + 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' + 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' + 'rsync::/usr/bin/rsync --no-motd -z %u %o' + 'scp::/usr/bin/scp -C %u %o') + +# Other common tools: +# /usr/bin/snarf +# /usr/bin/lftpget -c +# /usr/bin/wget + +#-- The package required by makepkg to download VCS sources +# Format: 'protocol::package' +VCSCLIENTS=('bzr::breezy' + 'fossil::fossil' + 'git::git' + 'hg::mercurial' + 'svn::subversion') + +######################################################################### +# ARCHITECTURE, COMPILE FLAGS +######################################################################### +# +CARCH="x86_64" +CHOST="x86_64-pc-linux-gnu" + +#-- Compiler and Linker Flags +#CPPFLAGS="" + +CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ + -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ + -fstack-clash-protection -fcf-protection" + +#CFLAGS="-march=native -mtune=native -O2 -pipe -fno-plt -fexceptions \ +# -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ +# -fstack-clash-protection -fcf-protection" + +CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" + +LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" + +LTOFLAGS="-flto=auto" + +RUSTFLAGS="-C opt-level=3" + +#-- Make Flags: change this for DistCC/SMP systems +MAKEFLAGS="-j$(nproc) -l$(nproc)" + +#-- Debugging flags +DEBUG_CFLAGS="-g" +DEBUG_CXXFLAGS="$DEBUG_CFLAGS" +DEBUG_RUSTFLAGS="-C debuginfo=3" + +######################################################################### +# BUILD ENVIRONMENT +######################################################################### +# +# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign) +# A negated environment option will do the opposite of the comments below. +# +#-- distcc: Use the Distributed C/C++/ObjC compiler +#-- color: Colorize output messages +#-- ccache: Use ccache to cache compilation +#-- check: Run the check() function if present in the PKGBUILD +#-- sign: Generate PGP signature file +# +#BUILDENV=(!distcc color !ccache check !sign) +BUILDENV=(!distcc color ccache check !sign) +# +#-- If using DistCC, your MAKEFLAGS will also need modification. In addition, +#-- specify a space-delimited list of hosts running in the DistCC cluster. +#DISTCC_HOSTS="" +# +#-- Specify a directory for package building. +#BUILDDIR=/tmp/makepkg + +######################################################################### +# GLOBAL PACKAGE OPTIONS +# These are default values for the options=() settings +######################################################################### +# +# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto) +# A negated option will do the opposite of the comments below. +# +#-- strip: Strip symbols from binaries/libraries +#-- docs: Save doc directories specified by DOC_DIRS +#-- libtool: Leave libtool (.la) files in packages +#-- staticlibs: Leave static library (.a) files in packages +#-- emptydirs: Leave empty directories in packages +#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip +#-- purge: Remove files specified by PURGE_TARGETS +#-- debug: Add debugging flags as specified in DEBUG_* variables +#-- lto: Add compile flags for building with link time optimization +# +OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto) + +#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2 +INTEGRITY_CHECK=(sha256) +#-- Options to be used when stripping binaries. See `man strip' for details. +STRIP_BINARIES="--strip-all" +#-- Options to be used when stripping shared libraries. See `man strip' for details. +STRIP_SHARED="--strip-unneeded" +#-- Options to be used when stripping static libraries. See `man strip' for details. +STRIP_STATIC="--strip-debug" +#-- Manual (man and info) directories to compress (if zipman is specified) +MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info}) +#-- Doc directories to remove (if !docs is specified) +DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc}) +#-- Files to be removed from all packages (if purge is specified) +PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod) +#-- Directory to store source code in for debug packages +DBGSRCDIR="/usr/src/debug" + +######################################################################### +# PACKAGE OUTPUT +######################################################################### +# +# Default: put built package and cached source in build directory +# +#-- Destination: specify a fixed directory where all packages will be placed +#PKGDEST=/home/packages +#-- Source cache: specify a fixed directory where source files will be cached +#SRCDEST=/home/sources +#-- Source packages: specify a fixed directory where all src packages will be placed +#SRCPKGDEST=/home/srcpackages +#-- Log files: specify a fixed directory where all log files will be placed +#LOGDEST=/home/makepkglogs +#-- Packager: name/email of the person or organization building packages +PACKAGER="Valeria Fadeeva " +#-- Specify a key to use for package signing +GPGKEY="BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8" + +######################################################################### +# COMPRESSION DEFAULTS +######################################################################### +# +COMPRESSGZ=(gzip -c -f -n) +COMPRESSBZ2=(bzip2 -c -f) +COMPRESSXZ=(xz -v -c -z - --threads=0 -9 -e) +COMPRESSZST=(zstd -v -c -z - --threads=0) +COMPRESSLRZ=(lrzip -q) +COMPRESSLZO=(lzop -q) +COMPRESSZ=(compress -c -f) +COMPRESSLZ4=(lz4 -q) +COMPRESSLZ=(lzip -c -f) + +######################################################################### +# EXTENSION DEFAULTS +######################################################################### +# +#PKGEXT='.pkg.tar.zst' +PKGEXT='.pkg.tar.xz' +SRCEXT='.src.tar.gz' + +######################################################################### +# OTHER +######################################################################### +# +#-- Command used to run pacman as root, instead of trying sudo and su +#PACMAN_AUTH=() diff --git a/3party/cachyos-packageinstaller/.SRCINFO b/3party/cachyos-packageinstaller/.SRCINFO new file mode 100644 index 0000000..4481a6a --- /dev/null +++ b/3party/cachyos-packageinstaller/.SRCINFO @@ -0,0 +1,26 @@ +# Generated by makepkg 6.0.2 +# Fri Aug 11 22:06:59 UTC 2023 +pkgbase = cachyos-packageinstaller + pkgdesc = Simple Software Application Package Installer for CachyOS which helps setting up & installing applications + pkgver = 1.1.0 + pkgrel = 1 + url = https://github.com/cachyos/packageinstaller + arch = aarch64 + arch = x86_64 + arch = x86_64_v3 + groups = cachyos + license = GPLv3 + makedepends = cmake + makedepends = ninja + makedepends = git + makedepends = polkit-qt5 + makedepends = qt5-tools + depends = qt5-base + depends = polkit + provides = cachyos-packageinstaller + conflicts = cachyos-packageinstaller + options = strip + source = packageinstaller-1.1.0.tar.gz::https://github.com/cachyos/packageinstaller/archive/v1.1.0.tar.gz + sha256sums = 5af2e10b7889b51a77ae5e578d20f8fe0eb2f1d9017746102c4288a3f991a399 + +pkgname = cachyos-packageinstaller diff --git a/Never/paru-git/00_make.sh b/3party/cachyos-packageinstaller/00_make.sh similarity index 92% rename from Never/paru-git/00_make.sh rename to 3party/cachyos-packageinstaller/00_make.sh index 30b8975..948e39e 100755 --- a/Never/paru-git/00_make.sh +++ b/3party/cachyos-packageinstaller/00_make.sh @@ -22,7 +22,8 @@ do fi done -echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3party/cachyos-packageinstaller/01_sign.sh b/3party/cachyos-packageinstaller/01_sign.sh new file mode 100755 index 0000000..2ce3206 --- /dev/null +++ b/3party/cachyos-packageinstaller/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +for i in *.pkg.tar.xz; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3party/cachyos-packageinstaller/PKGBUILD b/3party/cachyos-packageinstaller/PKGBUILD new file mode 100644 index 0000000..2878bd8 --- /dev/null +++ b/3party/cachyos-packageinstaller/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-packageinstaller +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Simple Software Application Package Installer for CachyOS which helps setting up & installing applications" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/packageinstaller" +license=(GPLv3) +depends=('qt5-base' 'polkit') +makedepends=('cmake' 'ninja' 'git' 'polkit-qt5' 'qt5-tools') +groups=('cachyos') +source=("packageinstaller-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('5af2e10b7889b51a77ae5e578d20f8fe0eb2f1d9017746102c4288a3f991a399') +provides=('cachyos-packageinstaller') +conflicts=('cachyos-packageinstaller') +options=(strip) + +build() { + cd ${srcdir}/packageinstaller-${pkgver} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd ${srcdir}/packageinstaller-${pkgver} + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/Never/paru/00_make.sh b/3party/cachyos-sysctl-manager/00_make.sh similarity index 92% rename from Never/paru/00_make.sh rename to 3party/cachyos-sysctl-manager/00_make.sh index 30b8975..948e39e 100755 --- a/Never/paru/00_make.sh +++ b/3party/cachyos-sysctl-manager/00_make.sh @@ -22,7 +22,8 @@ do fi done -echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3party/cachyos-sysctl-manager/01_sign.sh b/3party/cachyos-sysctl-manager/01_sign.sh new file mode 100755 index 0000000..2ce3206 --- /dev/null +++ b/3party/cachyos-sysctl-manager/01_sign.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +for i in *.pkg.tar.zst; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +for i in *.pkg.tar.xz; +do + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" +done + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/3party/cachyos-sysctl-manager/PKGBUILD b/3party/cachyos-sysctl-manager/PKGBUILD new file mode 100644 index 0000000..e5f2c20 --- /dev/null +++ b/3party/cachyos-sysctl-manager/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Vladislav Nepogodin + +pkgname=cachyos-sysctl-manager +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Manage linux kernel sysctl options" +arch=(aarch64 x86_64 x86_64_v3) +url="https://github.com/cachyos/sysctl-manager" +license=(GPLv3) +depends=('qt5-base' 'polkit-qt5') +makedepends=('cmake' 'ninja' 'git') +source=("${pkgname}::git+$url.git") +sha512sums=('SKIP') +provides=('cachyos-sysctl-manager') +conflicts=('cachyos-sysctl-manager') +options=(strip) + +pkgver() { + cd "${srcdir}/${pkgname}" +# git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/\1/' | cut -d"-" -f1 +} + +build() { + cd "${srcdir}/${pkgname}" + + CFLAGS=${CFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS} + + _cpuCount=$(grep -c -w ^processor /proc/cpuinfo) + + cmake -S . -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build --parallel $_cpuCount +} + +package() { + cd "${srcdir}/${pkgname}" + DESTDIR="${pkgdir}" cmake --build build --target install + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname/-git}/LICENSE" +} + +# vim:set sw=2 sts=2 et: diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/FETCH_HEAD b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/FETCH_HEAD new file mode 100644 index 0000000..b20cd28 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/FETCH_HEAD @@ -0,0 +1,2 @@ +1ff6c66ab438fe1df097ab2705033ddb4fe373aa not-for-merge branch 'develop' of https://github.com/cachyos/sysctl-manager +3bd74be07bbbfc38e8683f8a6bace4e30dd9a57c not-for-merge tag 'v1.0.0' of https://github.com/cachyos/sysctl-manager diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/HEAD b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/HEAD new file mode 100644 index 0000000..7ee7e4f --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/HEAD @@ -0,0 +1 @@ +ref: refs/heads/develop diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/config b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/config new file mode 100644 index 0000000..09711a5 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/cachyos/sysctl-manager.git + fetch = +refs/*:refs/* + mirror = true diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/description b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/applypatch-msg.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/commit-msg.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/fsmonitor-watchman.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/post-update.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-applypatch.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-commit.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-merge-commit.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-push.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-rebase.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-receive.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/prepare-commit-msg.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/push-to-checkout.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/update.sample b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/info/exclude b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.idx b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.idx new file mode 100644 index 0000000..5dd321e Binary files /dev/null and b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.idx differ diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.pack b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.pack new file mode 100644 index 0000000..321168c Binary files /dev/null and b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.pack differ diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.rev b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.rev new file mode 100644 index 0000000..0ddf5bb Binary files /dev/null and b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/objects/pack/pack-7dbfc73c2471320ac6134c7232d88478e1783046.rev differ diff --git a/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/packed-refs b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/packed-refs new file mode 100644 index 0000000..805b96b --- /dev/null +++ b/3party/cachyos-sysctl-manager/cachyos-sysctl-manager/packed-refs @@ -0,0 +1,3 @@ +# pack-refs with: peeled fully-peeled sorted +1ff6c66ab438fe1df097ab2705033ddb4fe373aa refs/heads/develop +3bd74be07bbbfc38e8683f8a6bace4e30dd9a57c refs/tags/v1.0.0 diff --git a/Never/freeoffice b/3party/freeoffice similarity index 100% rename from Never/freeoffice rename to 3party/freeoffice diff --git a/3party/ftl-sdk b/3party/ftl-sdk new file mode 160000 index 0000000..af654bd --- /dev/null +++ b/3party/ftl-sdk @@ -0,0 +1 @@ +Subproject commit af654bdb09a8243ddd2aff65bf926ba60e5b3224 diff --git a/Bad/get_process.sh b/Bad/get_process.sh deleted file mode 100755 index 97b1d1c..0000000 --- a/Bad/get_process.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -echo "Ready" -sleep 5 -kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/Bad/make.sh b/Bad/make.sh deleted file mode 100755 index 89ab201..0000000 --- a/Bad/make.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/bash - -find . -type f -name "*.xz" -delete -find . -type f -name "*.zst" -delete -find . -type f -name "*.sig" -delete - -REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" - -echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt - -CWD=$(cat pwd.txt) - -for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) -do - cd $CWD/$package_dir - git pull - makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force - - if [ $? == 0 ]; then - for i in *.pkg.tar.zst; - do - if [ -f "${i}" ]; then - echo "Удаление подписи $i.sig" - rm -f $i.sig - echo "Добавление подписи $i.sig" - gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" - fi - done - - for i in *.pkg.tar.xz; - do - if [ -f "${i}" ]; then - echo "Удаление подписи $i.sig" - rm -f $i.sig - echo "Добавление подписи $i.sig" - gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" - fi - done - - package_file=$(ls -1 | grep -v "pkg.tar.zst.sig" | grep "pkg.tar.zst") - if [ -f "$CWD/$package_dir/$package_file" ]; then - mv -v $CWD/$package_dir/$package_file $REPO/ - fi - - package_file=$(ls -1 | grep -v "pkg.tar.xz.sig" | grep "pkg.tar.xz") - if [ -f "$CWD/$package_dir/$package_file" ]; then - mv -v $CWD/$package_dir/$package_file $REPO/ - fi - - package_file=$(ls -1 | grep "pkg.tar.xz.sig") - if [ -f "$CWD/$package_dir/$package_file" ]; then - - mv -v $CWD/$package_dir/$package_file $REPO/ - fi - - package_file=$(ls -1 | grep "pkg.tar.zst.sig") - if [ -f "$CWD/$package_dir/$package_file" ]; then - - mv -v $CWD/$package_dir/$package_file $REPO/ - fi - fi - - cd $CWD -done - -echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s -notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" - -echo "Ready" -sleep 5 -kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/Core/ananicy-cpp b/Core/ananicy-cpp new file mode 160000 index 0000000..bdfb838 --- /dev/null +++ b/Core/ananicy-cpp @@ -0,0 +1 @@ +Subproject commit bdfb8383bc32d83e632daf30f00071e6d1796043 diff --git a/Core/ananicy-rules b/Core/ananicy-rules new file mode 160000 index 0000000..b78fafd --- /dev/null +++ b/Core/ananicy-rules @@ -0,0 +1 @@ +Subproject commit b78fafdf57a73639453934c07e70d0c553c19214 diff --git a/Bad/appimagelauncher b/Core/appimagelauncher similarity index 100% rename from Bad/appimagelauncher rename to Core/appimagelauncher diff --git a/Core/bpftune b/Core/bpftune new file mode 160000 index 0000000..c187d34 --- /dev/null +++ b/Core/bpftune @@ -0,0 +1 @@ +Subproject commit c187d34e8ca82948703b99933cd1a5aaf61866e4 diff --git a/3party/btrfs-assistant b/Core/btrfs-assistant similarity index 100% rename from 3party/btrfs-assistant rename to Core/btrfs-assistant diff --git a/3party/btrfs-snapshots b/Core/btrfs-snapshots similarity index 100% rename from 3party/btrfs-snapshots rename to Core/btrfs-snapshots diff --git a/3party/btrfsmaintenance b/Core/btrfsmaintenance similarity index 100% rename from 3party/btrfsmaintenance rename to Core/btrfsmaintenance diff --git a/Core/melawy-branding/00_make.sh b/Core/chwd/00_make.sh similarity index 100% rename from Core/melawy-branding/00_make.sh rename to Core/chwd/00_make.sh diff --git a/Core/melawy-branding/01_sign.sh b/Core/chwd/01_sign.sh similarity index 100% rename from Core/melawy-branding/01_sign.sh rename to Core/chwd/01_sign.sh diff --git a/Core/chwd/PKGBUILD b/Core/chwd/PKGBUILD new file mode 100644 index 0000000..c4b3425 --- /dev/null +++ b/Core/chwd/PKGBUILD @@ -0,0 +1,84 @@ +# Maintainer: Vladislav Nepogodin + +pkgbase=chwd +pkgname=('chwd' 'chwd-db') +pkgver=1.2.1 +pkgrel=2 +pkgdesc="CachyOS Hardware Detection Tool" +arch=(x86_64) +url="https://github.com/cachyos/chwd" +license=(GPL3) +depends=('gcc-libs' 'pciutils' 'lua') +makedepends=('git' 'cargo' 'mold' 'clang' 'llvm') +groups=('cachyos') +_commit_hash=138bcc312764b53115acb18a3a7278e788310a3e +source=("git+${url}.git#commit=${_commit_hash}" + "git+${url/-cachyos}-db.git") +sha256sums=('SKIP' + 'SKIP') + +prepare() { + cd "$srcdir/$pkgname" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + + cd scripts/chwd-kernel + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/$pkgname" + + # Compile with clang + export AR=llvm-ar + export CC=clang + export CXX=clang++ + export NM=llvm-nm + export RANLIB=llvm-ranlib + + export RUSTFLAGS="-Cembed-bitcode -C opt-level=3 -Ccodegen-units=1 -Clinker=clang -C link-arg=-flto -Clink-arg=-fuse-ld=/usr/bin/mold" + + cd scripts/chwd-kernel + cargo build --release --frozen + + cd ../../ + + cargo build --release --frozen +} + +package_chwd() { + depends=('gcc-libs' 'pciutils' 'lua' 'chwd-db' 'pacman') + provides=('mhwd-cachyos') + conflicts=('mhwd-cachyos') + replaces=('mhwd-cachyos') + + cd "$srcdir/$pkgname" + + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/chwd/LICENSE" + + install -Dm755 "target/release/chwd" "$pkgdir/usr/bin/chwd" + ln -s "/usr/bin/chwd" "$pkgdir/usr/bin/mhwd" + install -Dm755 scripts/chwd "$pkgdir"/var/lib/chwd/scripts/chwd + + install -Dm644 target/release/build/chwd-*/out/chwd.bash "$pkgdir/usr/share/bash-completion/completions/chwd" + install -Dm644 target/release/build/chwd-*/out/chwd.fish "$pkgdir/usr/share/fish/vendor_completions.d/chwd.fish" + install -Dm644 target/release/build/chwd-*/out/_chwd "$pkgdir/usr/share/zsh/site-functions/_chwd" + + install -d -m755 "$pkgdir"/var/lib/chwd/{db,local}/pci + + cd scripts/chwd-kernel + install -Dm755 "target/release/chwd-kernel" "$pkgdir/usr/bin/chwd-kernel" +} + +package_chwd-db() { + pkgdesc="Profiles we use at CachyOS :)" + provides=('mhwd-db-cachyos') + conflicts=('mhwd-db-cachyos') + replaces=('mhwd-db-cachyos') + + cd $pkgname + + mkdir -p "$pkgdir"/var/lib/chwd/db + cp -r pci "$pkgdir"/var/lib/chwd/db/ +} + +# vim:set sw=2 sts=2 et: diff --git a/Core/chwd/chwd-db/HEAD b/Core/chwd/chwd-db/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/Core/chwd/chwd-db/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/Core/chwd/chwd-db/config b/Core/chwd/chwd-db/config new file mode 100644 index 0000000..00ba952 --- /dev/null +++ b/Core/chwd/chwd-db/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/cachyos/chwd-db.git + fetch = +refs/*:refs/* + mirror = true diff --git a/Core/chwd/chwd-db/description b/Core/chwd/chwd-db/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/Core/chwd/chwd-db/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/Core/chwd/chwd-db/hooks/applypatch-msg.sample b/Core/chwd/chwd-db/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/Core/chwd/chwd-db/hooks/commit-msg.sample b/Core/chwd/chwd-db/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/Core/chwd/chwd-db/hooks/fsmonitor-watchman.sample b/Core/chwd/chwd-db/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/Core/chwd/chwd-db/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/Core/chwd/chwd-db/hooks/post-update.sample b/Core/chwd/chwd-db/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/Core/chwd/chwd-db/hooks/pre-applypatch.sample b/Core/chwd/chwd-db/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/Core/chwd/chwd-db/hooks/pre-commit.sample b/Core/chwd/chwd-db/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/Core/chwd/chwd-db/hooks/pre-merge-commit.sample b/Core/chwd/chwd-db/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/Core/chwd/chwd-db/hooks/pre-push.sample b/Core/chwd/chwd-db/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/Core/chwd/chwd-db/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/Core/chwd/chwd-db/hooks/pre-rebase.sample b/Core/chwd/chwd-db/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/Core/chwd/chwd-db/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/Core/chwd/chwd-db/hooks/pre-receive.sample b/Core/chwd/chwd-db/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/Core/chwd/chwd-db/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/Core/chwd/chwd-db/hooks/prepare-commit-msg.sample b/Core/chwd/chwd-db/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/Core/chwd/chwd-db/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/Core/chwd/chwd-db/hooks/push-to-checkout.sample b/Core/chwd/chwd-db/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/Core/chwd/chwd-db/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/Core/chwd/chwd-db/hooks/update.sample b/Core/chwd/chwd-db/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/Core/chwd/chwd-db/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/Core/chwd/chwd-db/info/exclude b/Core/chwd/chwd-db/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/Core/chwd/chwd-db/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.idx b/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.idx new file mode 100644 index 0000000..1c767bf Binary files /dev/null and b/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.idx differ diff --git a/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.pack b/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.pack new file mode 100644 index 0000000..2e36467 Binary files /dev/null and b/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.pack differ diff --git a/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.rev b/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.rev new file mode 100644 index 0000000..2faaf2f Binary files /dev/null and b/Core/chwd/chwd-db/objects/pack/pack-ac8120520ed6fab2b58286ad2a3f02cc5d8585be.rev differ diff --git a/Core/chwd/chwd-db/packed-refs b/Core/chwd/chwd-db/packed-refs new file mode 100644 index 0000000..275f30e --- /dev/null +++ b/Core/chwd/chwd-db/packed-refs @@ -0,0 +1,28 @@ +# pack-refs with: peeled fully-peeled sorted +892f0952c5edfce74187920dd47622469079e8b6 refs/heads/feature/toml +bc878422c2930e4d899d470daa234be93840d157 refs/heads/master +2d4cb7938cd742327c66050519d8dc51c2a969b6 refs/pull/1/head +74ec0628ec8dea61bd081132da350c13c80309b4 refs/pull/10/head +f91b2150f5362a6b001dcb291370601dd0fb0047 refs/pull/11/head +e55b3000d881f6231311ec9f98853794e2acd242 refs/pull/12/head +71fc9e4b09622e0ced0224cd2adb347cbb2da050 refs/pull/13/head +a27de8b737d75b22b989d7348e1bd2b398c2ed66 refs/pull/14/head +c7d68d5d48fe5915344d79280e4d6aad206f9dbc refs/pull/15/head +9ee1cd35d1965763c689659d301a114d69788c7a refs/pull/16/head +4d278779b0d5f8202e92ee4cba15aff6f585872c refs/pull/17/head +de5e550857f6d6c4233f079a7403b6457935db3b refs/pull/18/head +463e0d106c40f3b29c57250994cc7833599f9132 refs/pull/19/head +137624370b2b5861a036b6ab0ca1252fdf7fe3df refs/pull/2/head +892f0952c5edfce74187920dd47622469079e8b6 refs/pull/20/head +6d8755d4a8194fbff9052dde1b4cbebdf204fd7c refs/pull/21/head +ac90426fc03086e27645548cdcc1e1a88febd6d4 refs/pull/22/head +52655024628fd09987d8137b83202a6c5868dcaa refs/pull/23/head +a2b7d8bdeff0f850595e780d4e7d5f46aeace1e7 refs/pull/24/head +9f92e9200084e9b81bcaf94de7b63f4fd22c4887 refs/pull/25/head +3da74493856427cb1710c31450df147ef07dccd3 refs/pull/26/head +6d95c692e37b15941c449d967fabffc33fbcf497 refs/pull/4/head +df41661972e414a30b7f6c0f828bcd898eb54d06 refs/pull/5/head +599f22070f0135356a2c7359c37e14370b62aa5c refs/pull/6/head +1f54c99e0847831284ab1f7f1dd4c3e65865f2e2 refs/pull/7/head +20a982694208a89f3f17b443f04fe8af98d4ffe6 refs/pull/8/head +e58c31c2f659f64201ab34c6bdc1954f48810af3 refs/pull/9/head diff --git a/Core/chwd/chwd/HEAD b/Core/chwd/chwd/HEAD new file mode 100644 index 0000000..cb089cd --- /dev/null +++ b/Core/chwd/chwd/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/Core/chwd/chwd/config b/Core/chwd/chwd/config new file mode 100644 index 0000000..92ff684 --- /dev/null +++ b/Core/chwd/chwd/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://github.com/cachyos/chwd.git + fetch = +refs/*:refs/* + mirror = true diff --git a/Core/chwd/chwd/description b/Core/chwd/chwd/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/Core/chwd/chwd/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/Core/chwd/chwd/hooks/applypatch-msg.sample b/Core/chwd/chwd/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/Core/chwd/chwd/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/Core/chwd/chwd/hooks/commit-msg.sample b/Core/chwd/chwd/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/Core/chwd/chwd/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/Core/chwd/chwd/hooks/fsmonitor-watchman.sample b/Core/chwd/chwd/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/Core/chwd/chwd/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/Core/chwd/chwd/hooks/post-update.sample b/Core/chwd/chwd/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/Core/chwd/chwd/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/Core/chwd/chwd/hooks/pre-applypatch.sample b/Core/chwd/chwd/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/Core/chwd/chwd/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/Core/chwd/chwd/hooks/pre-commit.sample b/Core/chwd/chwd/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/Core/chwd/chwd/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/Core/chwd/chwd/hooks/pre-merge-commit.sample b/Core/chwd/chwd/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/Core/chwd/chwd/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/Core/chwd/chwd/hooks/pre-push.sample b/Core/chwd/chwd/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/Core/chwd/chwd/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/Core/chwd/chwd/hooks/pre-rebase.sample b/Core/chwd/chwd/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/Core/chwd/chwd/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/Core/chwd/chwd/hooks/pre-receive.sample b/Core/chwd/chwd/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/Core/chwd/chwd/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/Core/chwd/chwd/hooks/prepare-commit-msg.sample b/Core/chwd/chwd/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/Core/chwd/chwd/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/Core/chwd/chwd/hooks/push-to-checkout.sample b/Core/chwd/chwd/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/Core/chwd/chwd/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/Core/chwd/chwd/hooks/update.sample b/Core/chwd/chwd/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/Core/chwd/chwd/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/Core/chwd/chwd/info/exclude b/Core/chwd/chwd/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/Core/chwd/chwd/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.idx b/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.idx new file mode 100644 index 0000000..6b69e14 Binary files /dev/null and b/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.idx differ diff --git a/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.pack b/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.pack new file mode 100644 index 0000000..e6fbe59 Binary files /dev/null and b/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.pack differ diff --git a/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.rev b/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.rev new file mode 100644 index 0000000..2cb3b80 Binary files /dev/null and b/Core/chwd/chwd/objects/pack/pack-20dff999373b4ab79759b08beef9ee694b47257c.rev differ diff --git a/Core/chwd/chwd/packed-refs b/Core/chwd/chwd/packed-refs new file mode 100644 index 0000000..319049f --- /dev/null +++ b/Core/chwd/chwd/packed-refs @@ -0,0 +1,61 @@ +# pack-refs with: peeled fully-peeled sorted +e8b3e0f39b6338c8e2298434f16ba966e8d7cb1a refs/heads/master +d68867a9f02dc18d3a4634342510b34e27980311 refs/pull/1/head +8b663b5acc00d1d61312c8abe9de9964ed3b1c22 refs/pull/10/head +6b5d178324611676434da2cb947242758107c60c refs/pull/11/head +5ff6fe8637a95732a06bbc8b864b0f7108983d8b refs/pull/12/head +de80b6fc855819543284f99d2977b360eaf9aedc refs/pull/13/head +45d27c4928499e0480d438eb6a1b8f853384d128 refs/pull/14/head +1dab5e79f8d1c778d6d3aa0b404ec7be0b4ea9ed refs/pull/15/head +e70966c1b93ef3df7e7f3b4ec8ff2f5a23475db4 refs/pull/16/head +5bab5a6cb5d13f7848a387f862fdd4fb301f9484 refs/pull/17/head +bede72273e748172d24cac0339f1d28a31c982e5 refs/pull/18/head +1e47ef190d7aac76a7053bb0a0aef24eebf2ddb3 refs/pull/19/head +7ea77cb395ae530b54d1a62c97b03d608aea0f53 refs/pull/2/head +99cb943dc7baaba5cbe85d572582e236d31e3003 refs/pull/20/head +e8d47b9d24b56e9afc717382f8759f00561def2d refs/pull/21/head +052ab7af26ec87ea93f0148081ea9b1cb003c6a3 refs/pull/22/head +cea7c7e2515d8d218830e429e0138cf787f74685 refs/pull/23/head +3abd39888c6d13a7cb1df7c6895bcfa81575eaa0 refs/pull/24/head +4372374cf4e0baaec793c9704095a2d6735db024 refs/pull/25/head +24436bb2d81d3dc2c1535b9763178b5feadc19eb refs/pull/26/head +1011e779f1d0bc2759d4395ca3c636de28404d35 refs/pull/27/head +0557a2474a5287d0366271e3f8a1ed863f013232 refs/pull/28/head +a98ee38cbbaeacfee5a1592ca75dc61f33027b7f refs/pull/29/head +9f5bbca6f7f1d9e5b6ae43d48ce3e1b4c7157a38 refs/pull/3/head +b93844fe62169df05fa41d4049a79d903b4317f8 refs/pull/30/head +dc7c9377378d6387827bbe5cffefe2418010297c refs/pull/31/head +f02d839db2147909c1f55967dbe24f567d4d867f refs/pull/32/head +72558d5ec17b6d04e8da2eb8f27970374b622548 refs/pull/33/head +350f8e92925b6ead7009e2bd819795f218b272a7 refs/pull/34/head +8f7936fdd43e8e95982a65bfeaf616206945a89e refs/pull/35/head +1c441c08aa40db0a58ca7a24757c66324459bdd6 refs/pull/36/head +24a3efbfaef451141da5f9699f6545a70c20586b refs/pull/37/head +84c372975271e621c2eef9734db1e0b92f1fc958 refs/pull/38/head +400a474d685ad20272d1dc24af0dddddd4f0847d refs/pull/39/head +b6501b32098a4101b68632f89b71df52f7a3fde0 refs/pull/4/head +7ed40153458612ad00fae5dc10e48b1221b6d00c refs/pull/40/head +f9dcfcfa6c5c20db83a0a97bce389fbcd21a2b61 refs/pull/41/head +31ae3bcf1d6b006fc25f4b37175b31b3f913ae3f refs/pull/42/head +d1140c9f361129d11c242db29f95ded5a5d0d299 refs/pull/43/head +c6333a510fcb05c4f56e2e6f9fdb9be9fded44d5 refs/pull/44/head +602f5386329c9a086e0c74d9daf80e940c08af21 refs/pull/45/head +811a5e7579805cb332544578ab8bdcd0348307ca refs/pull/46/head +734ba1e3110f336d8bef06364b052353f98e6535 refs/pull/47/head +2b3276d8131458d516c7788ab16c328a36b48b34 refs/pull/48/head +8ffaf980194fa12989d97d421c9b6433472d56a8 refs/pull/49/head +f6c79ccf2494e0def10081a76e7cac4662f9693b refs/pull/5/head +a365457f9445ba75c99f625ca9cd5a54faa3bd6f refs/pull/50/head +b7d5cec0b81c192a84340e8c7a34a2edcd398f06 refs/pull/51/head +d3c5f9704de630b4903c761095794a8ee7a391ff refs/pull/52/head +a3682f0564ae7ee89201172efe9806cabeee8cad refs/pull/53/head +05e1665df7a8599c9170ba3a6ebd13c7eab6a588 refs/pull/54/head +95bc5aea12efefcdde56e776cc9caa2834f63c5b refs/pull/55/head +103e06fdeb54b483e8ee645ab5a80f5890b3d0a8 refs/pull/56/head +8fe501f25c8b36ce3158a03c87364c50ff88e23c refs/pull/57/head +8dfbe597b93ed540311c75a0e3f11c08f1c31c80 refs/pull/58/head +298a32f4ee1be8034d67cf1fa9e2a527256f9814 refs/pull/59/head +bdbf484bd42f4c861758e9f123eafd0858130d7e refs/pull/6/head +68d3d35e637c4a55975ca067abdf8ddd73a7417d refs/pull/7/head +a74abf18ed4f893e66e31c5ee7e75d9fe2fb473b refs/pull/8/head +341d5733197efbd30dc267951f30dd6707ebdf29 refs/pull/9/head diff --git a/Bad/codelldb b/Core/codelldb similarity index 100% rename from Bad/codelldb rename to Core/codelldb diff --git a/Core/downgrade b/Core/downgrade new file mode 160000 index 0000000..1a10c1c --- /dev/null +++ b/Core/downgrade @@ -0,0 +1 @@ +Subproject commit 1a10c1cb6091853d892854c3fffaa6acf2e4a944 diff --git a/3party/find-the-command b/Core/find-the-command similarity index 100% rename from 3party/find-the-command rename to Core/find-the-command diff --git a/Bad/git_pull.sh b/Core/git_pull.sh similarity index 100% rename from Bad/git_pull.sh rename to Core/git_pull.sh diff --git a/Core/irqbalance b/Core/irqbalance new file mode 160000 index 0000000..b65e351 --- /dev/null +++ b/Core/irqbalance @@ -0,0 +1 @@ +Subproject commit b65e3510bfbb4ce3b42624a764b6c8b70964ac61 diff --git a/Bad/libpamac-full b/Core/libpamac-full similarity index 100% rename from Bad/libpamac-full rename to Core/libpamac-full diff --git a/Core/make.sh b/Core/make.sh index f18c58b..9ac17f8 100755 --- a/Core/make.sh +++ b/Core/make.sh @@ -1,6 +1,10 @@ #!/bin/bash -REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" +find . -type f -name "*.xz" -delete +find . -type f -name "*.zst" -delete +find . -type f -name "*.sig" -delete + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt @@ -9,6 +13,7 @@ CWD=$(cat pwd.txt) for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) do cd $CWD/$package_dir + git pull makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force for i in *.pkg.tar.zst; diff --git a/Core/move_to_repo.sh b/Core/move_to_repo.sh new file mode 100755 index 0000000..7b39cc2 --- /dev/null +++ b/Core/move_to_repo.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy-core/x86_64/" + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.zst" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -delete + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/Bad/ocs-url b/Core/ocs-url similarity index 100% rename from Bad/ocs-url rename to Core/ocs-url diff --git a/3party/pace b/Core/pace similarity index 100% rename from 3party/pace rename to Core/pace diff --git a/3party/paclast b/Core/paclast similarity index 100% rename from 3party/paclast rename to Core/paclast diff --git a/Bad/pamac-all b/Core/pamac-all similarity index 100% rename from Bad/pamac-all rename to Core/pamac-all diff --git a/Bad/pamac-cli b/Core/pamac-cli similarity index 100% rename from Bad/pamac-cli rename to Core/pamac-cli diff --git a/Never/paru-git/.SRCINFO b/Core/paru/.SRCINFO similarity index 100% rename from Never/paru-git/.SRCINFO rename to Core/paru/.SRCINFO diff --git a/Never/paru-bin/.gitignore b/Core/paru/.gitignore similarity index 100% rename from Never/paru-bin/.gitignore rename to Core/paru/.gitignore diff --git a/Core/melawy-check-reboot-required/00_make.sh b/Core/paru/00_make.sh similarity index 100% rename from Core/melawy-check-reboot-required/00_make.sh rename to Core/paru/00_make.sh diff --git a/Core/melawy-check-reboot-required/01_sign.sh b/Core/paru/01_sign.sh similarity index 100% rename from Core/melawy-check-reboot-required/01_sign.sh rename to Core/paru/01_sign.sh diff --git a/Never/paru-git/PKGBUILD b/Core/paru/PKGBUILD similarity index 90% rename from Never/paru-git/PKGBUILD rename to Core/paru/PKGBUILD index fc1e356..162bedf 100644 --- a/Never/paru-git/PKGBUILD +++ b/Core/paru/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Morgan -pkgname=paru-git +pkgname=paru _pkgname=paru -pkgver=1.11.2.r167.g257e011 +pkgver=2.0.0 pkgrel=1 pkgdesc='Feature packed AUR helper' url='https://github.com/morganamilo/paru' @@ -17,6 +17,12 @@ conflicts=('paru') provides=('paru') sha256sums=(SKIP) +pkgver() { + cd "$srcdir/$_pkgname" +# git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/\1/' | cut -d"-" -f1 +} + build () { cd "$srcdir/$_pkgname" @@ -52,8 +58,3 @@ package() { install -d "$pkgdir/usr/share/" cp -r locale "$pkgdir/usr/share/" } - -pkgver() { - cd "$srcdir/$_pkgname" - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' -} diff --git a/3party/preload b/Core/preload similarity index 100% rename from 3party/preload rename to Core/preload diff --git a/3party/ramroot-btrfs b/Core/ramroot-btrfs similarity index 100% rename from 3party/ramroot-btrfs rename to Core/ramroot-btrfs diff --git a/3party/rate-mirrors b/Core/rate-mirrors similarity index 100% rename from 3party/rate-mirrors rename to Core/rate-mirrors diff --git a/Core/systemd-oomd-defaults b/Core/systemd-oomd-defaults new file mode 160000 index 0000000..5405143 --- /dev/null +++ b/Core/systemd-oomd-defaults @@ -0,0 +1 @@ +Subproject commit 540514358c2dbaf48a3b41308cfb7f529066b137 diff --git a/3party/timeshift b/Core/timeshift similarity index 100% rename from 3party/timeshift rename to Core/timeshift diff --git a/3party/timeshift-autosnap b/Core/timeshift-autosnap similarity index 100% rename from 3party/timeshift-autosnap rename to Core/timeshift-autosnap diff --git a/Core/topgrade b/Core/topgrade new file mode 160000 index 0000000..0f4ebe1 --- /dev/null +++ b/Core/topgrade @@ -0,0 +1 @@ +Subproject commit 0f4ebe10de0407b3a1836b2e41b3fb1a6ada18a0 diff --git a/Core/uksmd b/Core/uksmd new file mode 160000 index 0000000..b1dd94c --- /dev/null +++ b/Core/uksmd @@ -0,0 +1 @@ +Subproject commit b1dd94c8e5a886353356ceb1f3f175a578e7fd46 diff --git a/Core/uksmdstats b/Core/uksmdstats new file mode 160000 index 0000000..1375d1e --- /dev/null +++ b/Core/uksmdstats @@ -0,0 +1 @@ +Subproject commit 1375d1e01214d9132fa270b04ffe8ca670055daa diff --git a/Core/yay b/Core/yay new file mode 160000 index 0000000..251d38a --- /dev/null +++ b/Core/yay @@ -0,0 +1 @@ +Subproject commit 251d38a2518a26090382f6d17d8e7a414175f0c3 diff --git a/Design/Melawy/melawy-icon-theme/PKGBUILD b/Design/Melawy/melawy-icon-theme/PKGBUILD index 19c9e69..46d56b2 100644 --- a/Design/Melawy/melawy-icon-theme/PKGBUILD +++ b/Design/Melawy/melawy-icon-theme/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.19 +pkgver=1.20 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD b/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD index 3cc1b6b..44aa53e 100644 --- a/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD +++ b/Design/Melawy/melawy-purple-dark-cursors/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.3 +pkgver=1.4 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD b/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD index ad92916..20fb9b6 100644 --- a/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD +++ b/Design/Melawy/melawy-purple-dark-default-cursors/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.1 +pkgver=1.2 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/Melawy/melawy-purple-light-cursors/PKGBUILD b/Design/Melawy/melawy-purple-light-cursors/PKGBUILD index 3cc1b6b..44aa53e 100644 --- a/Design/Melawy/melawy-purple-light-cursors/PKGBUILD +++ b/Design/Melawy/melawy-purple-light-cursors/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.3 +pkgver=1.4 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD b/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD index ad92916..20fb9b6 100644 --- a/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD +++ b/Design/Melawy/melawy-purple-light-default-cursors/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.1 +pkgver=1.2 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/Melawy/melawy-red-dark-cursors/PKGBUILD b/Design/Melawy/melawy-red-dark-cursors/PKGBUILD index 3cc1b6b..44aa53e 100644 --- a/Design/Melawy/melawy-red-dark-cursors/PKGBUILD +++ b/Design/Melawy/melawy-red-dark-cursors/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.3 +pkgver=1.4 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD b/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD index ad92916..20fb9b6 100644 --- a/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD +++ b/Design/Melawy/melawy-red-dark-default-cursors/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.1 +pkgver=1.2 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Design/$_gitname" diff --git a/Design/make.sh b/Design/make.sh index 4c9a004..210d869 100755 --- a/Design/make.sh +++ b/Design/make.sh @@ -1,58 +1,35 @@ #!/bin/bash -REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" - echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt CWD=$(cat pwd.txt) -for package_dir in $(find . -mindepth 1 -maxdepth 2 -type d) +dir_list=$(find . -mindepth 2 -maxdepth 4 -name "PKGBUILD" -type f) + +for i in ${dir_list[@]} do - cd $CWD/$package_dir - makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + path="$(dirname $i)" + full_path="$CWD/$path" - for i in *.pkg.tar.zst; - do - if [ -f "${i}" ]; then - echo "Удаление подписи $i.sig" - rm -f $i.sig - echo "Добавление подписи $i.sig" - gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" - fi - done + echo "$full_path" + cd "$full_path" - for i in *.pkg.tar.xz; - do - if [ -f "${i}" ]; then - echo "Удаление подписи $i.sig" - rm -f $i.sig - echo "Добавление подписи $i.sig" - gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" - fi - done + $(basename $full_path) - package_file=$(ls -1 | grep -v "pkg.tar.zst.sig" | grep "pkg.tar.zst") - if [ -f "$CWD/$package_dir/$package_file" ]; then - mv -v $CWD/$package_dir/$package_file $REPO/ + git_dir=$(find . -mindepth 1 -maxdepth 1 -name "$(basename $full_path)" -type d) + if [ -d $git_dir ]; then + echo "rm $git_dir" +# rm "$git_dir" fi - package_file=$(ls -1 | grep -v "pkg.tar.xz.sig" | grep "pkg.tar.xz") - if [ -f "$CWD/$package_dir/$package_file" ]; then - mv -v $CWD/$package_dir/$package_file $REPO/ + make_file=$(find . -mindepth 1 -maxdepth 1 -name "*make*\.sh" -type f) + if [ -f "$make_file" ]; then + echo "bash $make_file" + bash "$make_file" + else + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force fi - - package_file=$(ls -1 | grep "pkg.tar.xz.sig") - if [ -f "$CWD/$package_dir/$package_file" ]; then - - mv -v $CWD/$package_dir/$package_file $REPO/ - fi - - package_file=$(ls -1 | grep "pkg.tar.zst.sig") - if [ -f "$CWD/$package_dir/$package_file" ]; then - - mv -v $CWD/$package_dir/$package_file $REPO/ - fi - + unset make_file cd $CWD done diff --git a/Design/make_.sh b/Design/make_.sh new file mode 100755 index 0000000..4c9a004 --- /dev/null +++ b/Design/make_.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt + +CWD=$(cat pwd.txt) + +for package_dir in $(find . -mindepth 1 -maxdepth 2 -type d) +do + cd $CWD/$package_dir + makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + + for i in *.pkg.tar.zst; + do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + + for i in *.pkg.tar.xz; + do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi + done + + package_file=$(ls -1 | grep -v "pkg.tar.zst.sig" | grep "pkg.tar.zst") + if [ -f "$CWD/$package_dir/$package_file" ]; then + mv -v $CWD/$package_dir/$package_file $REPO/ + fi + + package_file=$(ls -1 | grep -v "pkg.tar.xz.sig" | grep "pkg.tar.xz") + if [ -f "$CWD/$package_dir/$package_file" ]; then + mv -v $CWD/$package_dir/$package_file $REPO/ + fi + + package_file=$(ls -1 | grep "pkg.tar.xz.sig") + if [ -f "$CWD/$package_dir/$package_file" ]; then + + mv -v $CWD/$package_dir/$package_file $REPO/ + fi + + package_file=$(ls -1 | grep "pkg.tar.zst.sig") + if [ -f "$CWD/$package_dir/$package_file" ]; then + + mv -v $CWD/$package_dir/$package_file $REPO/ + fi + + cd $CWD +done + +echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s +notify-send -a "$(basename $(pwd)): Make and Move to" -t 10000 "$REPO" "$(date '+%Y.%m.%d %H:%M:%S')" + +echo "Ready" diff --git a/Design/move_to_repo.sh b/Design/move_to_repo.sh new file mode 100755 index 0000000..488d7f5 --- /dev/null +++ b/Design/move_to_repo.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.zst" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -delete + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/Installer/melawy-calamares-config/PKGBUILD b/Installer/melawy-calamares-config/PKGBUILD index 3d8aac2..e97c22b 100644 --- a/Installer/melawy-calamares-config/PKGBUILD +++ b/Installer/melawy-calamares-config/PKGBUILD @@ -4,7 +4,7 @@ _gitname="melawy-calamares-qt6" pkgname="$(basename $(pwd))" release_name=$pkgname -pkgver=3.3.0.10975 +pkgver=3.3.0.10981 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=('any') diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/FETCH_HEAD b/Installer/melawy-calamares-config/melawy-calamares-qt6/FETCH_HEAD index c80097a..19f20b8 100644 --- a/Installer/melawy-calamares-config/melawy-calamares-qt6/FETCH_HEAD +++ b/Installer/melawy-calamares-config/melawy-calamares-qt6/FETCH_HEAD @@ -1 +1 @@ -0690ce0ed3353561eac17de6120d384362b5a50b not-for-merge branch 'calamares' of https://git.melawy.ru/Installer/melawy-calamares-qt6 +6a3f0654b8e842ad89045551424b60d10c0267d9 not-for-merge branch 'calamares' of https://git.melawy.ru/Installer/melawy-calamares-qt6 diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.idx b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.idx new file mode 100644 index 0000000..fd39aff Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.idx differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.pack b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.pack new file mode 100644 index 0000000..0cc15b2 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.pack differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.rev b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.rev new file mode 100644 index 0000000..88ea92e Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-05d0ab15bc984b6e1a31c194216ac88e34bddc63.rev differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.idx b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.idx new file mode 100644 index 0000000..b7a6100 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.idx differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.pack b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.pack new file mode 100644 index 0000000..6875fb5 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.pack differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.rev b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.rev new file mode 100644 index 0000000..c24c36d Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-0dd9f83efa57120ad94b8fd8a2b95dcb02e8baca.rev differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.idx b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.idx new file mode 100644 index 0000000..491bdd7 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.idx differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.pack b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.pack new file mode 100644 index 0000000..8e3e285 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.pack differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.rev b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.rev new file mode 100644 index 0000000..ceeb780 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-4a3d2bbb054ecba4430265dd224e14e8afa36d47.rev differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.idx b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.idx new file mode 100644 index 0000000..2b435d0 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.idx differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.pack b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.pack new file mode 100644 index 0000000..1ddb124 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.pack differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.rev b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.rev new file mode 100644 index 0000000..3e2685b Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-a5939f9c582b50070d06749c582b4db329216818.rev differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.idx b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.idx new file mode 100644 index 0000000..9789033 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.idx differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.pack b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.pack new file mode 100644 index 0000000..7c6d59c Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.pack differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.rev b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.rev new file mode 100644 index 0000000..85104a2 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-ca306bb07c2e4959c4f275c84af1691da051708a.rev differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.idx b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.idx new file mode 100644 index 0000000..831bf0a Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.idx differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.pack b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.pack new file mode 100644 index 0000000..66c2a2b Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.pack differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.rev b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.rev new file mode 100644 index 0000000..780da67 Binary files /dev/null and b/Installer/melawy-calamares-config/melawy-calamares-qt6/objects/pack/pack-d8851e5c79d1df17e57e355ddda319af368629f7.rev differ diff --git a/Installer/melawy-calamares-config/melawy-calamares-qt6/refs/heads/calamares b/Installer/melawy-calamares-config/melawy-calamares-qt6/refs/heads/calamares index 9b98f59..d9f1a48 100644 --- a/Installer/melawy-calamares-config/melawy-calamares-qt6/refs/heads/calamares +++ b/Installer/melawy-calamares-config/melawy-calamares-qt6/refs/heads/calamares @@ -1 +1 @@ -0690ce0ed3353561eac17de6120d384362b5a50b +6a3f0654b8e842ad89045551424b60d10c0267d9 diff --git a/Installer/melawy-calamares-qt5/PKGBUILD b/Installer/melawy-calamares-qt5/PKGBUILD index dd5f539..389f374 100644 --- a/Installer/melawy-calamares-qt5/PKGBUILD +++ b/Installer/melawy-calamares-qt5/PKGBUILD @@ -4,7 +4,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") release_name=$pkgname -pkgver=3.3.0.11076 +pkgver=3.3.0.11077 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=('any') diff --git a/Installer/melawy-calamares-qt6/PKGBUILD b/Installer/melawy-calamares-qt6/PKGBUILD index bdc0215..fbd215d 100644 --- a/Installer/melawy-calamares-qt6/PKGBUILD +++ b/Installer/melawy-calamares-qt6/PKGBUILD @@ -4,7 +4,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") release_name=$pkgname -pkgver=3.3.0.10975 +pkgver=3.3.0.10981 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=('any') diff --git a/Installer/move_to_repo.sh b/Installer/move_to_repo.sh new file mode 100755 index 0000000..488d7f5 --- /dev/null +++ b/Installer/move_to_repo.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.zst" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -delete + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/Never/make.sh b/Melawy/make.sh similarity index 90% rename from Never/make.sh rename to Melawy/make.sh index ca45744..f18c58b 100755 --- a/Never/make.sh +++ b/Melawy/make.sh @@ -1,10 +1,6 @@ #!/bin/bash -find . -type f -name "*.xz" -delete -find . -type f -name "*.zst" -delete -find . -type f -name "*.sig" -delete - -REPO="/data/github/active/Melawy/REPO/melawy-3party/x86_64/" +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" echo -n $( dirname -- "$( readlink -f -- "$0" )" ) > pwd.txt @@ -13,7 +9,6 @@ CWD=$(cat pwd.txt) for package_dir in $(find . -mindepth 1 -maxdepth 1 -type d) do cd $CWD/$package_dir - git pull makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force for i in *.pkg.tar.zst; diff --git a/Core/melawy-branding/.gitignore b/Melawy/melawy-branding/.gitignore similarity index 100% rename from Core/melawy-branding/.gitignore rename to Melawy/melawy-branding/.gitignore diff --git a/Core/melawy-dracut-initramfs/00_make.sh b/Melawy/melawy-branding/00_make.sh similarity index 100% rename from Core/melawy-dracut-initramfs/00_make.sh rename to Melawy/melawy-branding/00_make.sh diff --git a/Core/melawy-dracut-initramfs/01_sign.sh b/Melawy/melawy-branding/01_sign.sh similarity index 100% rename from Core/melawy-dracut-initramfs/01_sign.sh rename to Melawy/melawy-branding/01_sign.sh diff --git a/Core/melawy-branding/PKGBUILD b/Melawy/melawy-branding/PKGBUILD similarity index 100% rename from Core/melawy-branding/PKGBUILD rename to Melawy/melawy-branding/PKGBUILD diff --git a/Core/melawy-branding/README.md b/Melawy/melawy-branding/README.md similarity index 100% rename from Core/melawy-branding/README.md rename to Melawy/melawy-branding/README.md diff --git a/Core/melawy-check-reboot-required/.gitignore b/Melawy/melawy-check-reboot-required/.gitignore similarity index 100% rename from Core/melawy-check-reboot-required/.gitignore rename to Melawy/melawy-check-reboot-required/.gitignore diff --git a/Core/melawy-dracut-ukify/00_make.sh b/Melawy/melawy-check-reboot-required/00_make.sh similarity index 100% rename from Core/melawy-dracut-ukify/00_make.sh rename to Melawy/melawy-check-reboot-required/00_make.sh diff --git a/Core/melawy-dracut-ukify/01_sign.sh b/Melawy/melawy-check-reboot-required/01_sign.sh similarity index 100% rename from Core/melawy-dracut-ukify/01_sign.sh rename to Melawy/melawy-check-reboot-required/01_sign.sh diff --git a/Core/melawy-check-reboot-required/PKGBUILD b/Melawy/melawy-check-reboot-required/PKGBUILD similarity index 100% rename from Core/melawy-check-reboot-required/PKGBUILD rename to Melawy/melawy-check-reboot-required/PKGBUILD diff --git a/Core/melawy-check-reboot-required/README.md b/Melawy/melawy-check-reboot-required/README.md similarity index 100% rename from Core/melawy-check-reboot-required/README.md rename to Melawy/melawy-check-reboot-required/README.md diff --git a/Core/melawy-dracut-initramfs/.gitignore b/Melawy/melawy-dracut-initramfs/.gitignore similarity index 100% rename from Core/melawy-dracut-initramfs/.gitignore rename to Melawy/melawy-dracut-initramfs/.gitignore diff --git a/Core/melawy-etc-skel-kvantum/00_make.sh b/Melawy/melawy-dracut-initramfs/00_make.sh similarity index 100% rename from Core/melawy-etc-skel-kvantum/00_make.sh rename to Melawy/melawy-dracut-initramfs/00_make.sh diff --git a/Core/melawy-etc-skel-kvantum/01_sign.sh b/Melawy/melawy-dracut-initramfs/01_sign.sh similarity index 100% rename from Core/melawy-etc-skel-kvantum/01_sign.sh rename to Melawy/melawy-dracut-initramfs/01_sign.sh diff --git a/Core/melawy-dracut-initramfs/PKGBUILD b/Melawy/melawy-dracut-initramfs/PKGBUILD similarity index 99% rename from Core/melawy-dracut-initramfs/PKGBUILD rename to Melawy/melawy-dracut-initramfs/PKGBUILD index 0217e68..37967b0 100644 --- a/Core/melawy-dracut-initramfs/PKGBUILD +++ b/Melawy/melawy-dracut-initramfs/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.21 +pkgver=1.22 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Core/$_gitname" diff --git a/Core/melawy-dracut-initramfs/README.md b/Melawy/melawy-dracut-initramfs/README.md similarity index 100% rename from Core/melawy-dracut-initramfs/README.md rename to Melawy/melawy-dracut-initramfs/README.md diff --git a/Core/melawy-dracut-ukify/.gitignore b/Melawy/melawy-dracut-ukify/.gitignore similarity index 100% rename from Core/melawy-dracut-ukify/.gitignore rename to Melawy/melawy-dracut-ukify/.gitignore diff --git a/Core/melawy-etc-skel-std-powerman-kvantum/00_make.sh b/Melawy/melawy-dracut-ukify/00_make.sh similarity index 100% rename from Core/melawy-etc-skel-std-powerman-kvantum/00_make.sh rename to Melawy/melawy-dracut-ukify/00_make.sh diff --git a/Core/melawy-etc-skel-std-powerman-kvantum/01_sign.sh b/Melawy/melawy-dracut-ukify/01_sign.sh similarity index 100% rename from Core/melawy-etc-skel-std-powerman-kvantum/01_sign.sh rename to Melawy/melawy-dracut-ukify/01_sign.sh diff --git a/Core/melawy-dracut-ukify/PKGBUILD b/Melawy/melawy-dracut-ukify/PKGBUILD similarity index 99% rename from Core/melawy-dracut-ukify/PKGBUILD rename to Melawy/melawy-dracut-ukify/PKGBUILD index 17e43c5..cb8d72d 100644 --- a/Core/melawy-dracut-ukify/PKGBUILD +++ b/Melawy/melawy-dracut-ukify/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.24 +pkgver=1.26 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" url="https://git.melawy.ru/Core/$_gitname" diff --git a/Core/melawy-dracut-ukify/README.md b/Melawy/melawy-dracut-ukify/README.md similarity index 100% rename from Core/melawy-dracut-ukify/README.md rename to Melawy/melawy-dracut-ukify/README.md diff --git a/Core/melawy-etc-skel-kvantum/.gitignore b/Melawy/melawy-etc-skel-kvantum/.gitignore similarity index 100% rename from Core/melawy-etc-skel-kvantum/.gitignore rename to Melawy/melawy-etc-skel-kvantum/.gitignore diff --git a/Core/melawy-linux-keyring/00_make.sh b/Melawy/melawy-etc-skel-kvantum/00_make.sh similarity index 100% rename from Core/melawy-linux-keyring/00_make.sh rename to Melawy/melawy-etc-skel-kvantum/00_make.sh diff --git a/Core/melawy-linux-keyring/01_sign.sh b/Melawy/melawy-etc-skel-kvantum/01_sign.sh similarity index 100% rename from Core/melawy-linux-keyring/01_sign.sh rename to Melawy/melawy-etc-skel-kvantum/01_sign.sh diff --git a/Core/melawy-etc-skel-kvantum/PKGBUILD b/Melawy/melawy-etc-skel-kvantum/PKGBUILD similarity index 99% rename from Core/melawy-etc-skel-kvantum/PKGBUILD rename to Melawy/melawy-etc-skel-kvantum/PKGBUILD index ae7e506..2e70913 100644 --- a/Core/melawy-etc-skel-kvantum/PKGBUILD +++ b/Melawy/melawy-etc-skel-kvantum/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.15 +pkgver=1.17 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=("any") diff --git a/Core/melawy-etc-skel-kvantum/README.md b/Melawy/melawy-etc-skel-kvantum/README.md similarity index 100% rename from Core/melawy-etc-skel-kvantum/README.md rename to Melawy/melawy-etc-skel-kvantum/README.md diff --git a/Core/melawy-etc-skel-kvantum/ins.install b/Melawy/melawy-etc-skel-kvantum/ins.install similarity index 100% rename from Core/melawy-etc-skel-kvantum/ins.install rename to Melawy/melawy-etc-skel-kvantum/ins.install diff --git a/Core/melawy-etc-skel-std-powerman-kvantum/.gitignore b/Melawy/melawy-etc-skel-std-powerman-kvantum/.gitignore similarity index 100% rename from Core/melawy-etc-skel-std-powerman-kvantum/.gitignore rename to Melawy/melawy-etc-skel-std-powerman-kvantum/.gitignore diff --git a/Core/melawy-linux-mirrorlist/00_make.sh b/Melawy/melawy-etc-skel-std-powerman-kvantum/00_make.sh similarity index 100% rename from Core/melawy-linux-mirrorlist/00_make.sh rename to Melawy/melawy-etc-skel-std-powerman-kvantum/00_make.sh diff --git a/Core/melawy-linux-mirrorlist/01_sign.sh b/Melawy/melawy-etc-skel-std-powerman-kvantum/01_sign.sh similarity index 100% rename from Core/melawy-linux-mirrorlist/01_sign.sh rename to Melawy/melawy-etc-skel-std-powerman-kvantum/01_sign.sh diff --git a/Core/melawy-etc-skel-std-powerman-kvantum/PKGBUILD b/Melawy/melawy-etc-skel-std-powerman-kvantum/PKGBUILD similarity index 99% rename from Core/melawy-etc-skel-std-powerman-kvantum/PKGBUILD rename to Melawy/melawy-etc-skel-std-powerman-kvantum/PKGBUILD index ae7e506..2e70913 100644 --- a/Core/melawy-etc-skel-std-powerman-kvantum/PKGBUILD +++ b/Melawy/melawy-etc-skel-std-powerman-kvantum/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.15 +pkgver=1.17 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=("any") diff --git a/Core/melawy-etc-skel-std-powerman-kvantum/README.md b/Melawy/melawy-etc-skel-std-powerman-kvantum/README.md similarity index 100% rename from Core/melawy-etc-skel-std-powerman-kvantum/README.md rename to Melawy/melawy-etc-skel-std-powerman-kvantum/README.md diff --git a/Core/melawy-etc-skel-std-powerman-kvantum/ins.install b/Melawy/melawy-etc-skel-std-powerman-kvantum/ins.install similarity index 100% rename from Core/melawy-etc-skel-std-powerman-kvantum/ins.install rename to Melawy/melawy-etc-skel-std-powerman-kvantum/ins.install diff --git a/Core/melawy-linux-keyring/.gitignore b/Melawy/melawy-linux-keyring/.gitignore similarity index 100% rename from Core/melawy-linux-keyring/.gitignore rename to Melawy/melawy-linux-keyring/.gitignore diff --git a/Core/melawy-refind-menu-generator/00_make.sh b/Melawy/melawy-linux-keyring/00_make.sh similarity index 100% rename from Core/melawy-refind-menu-generator/00_make.sh rename to Melawy/melawy-linux-keyring/00_make.sh diff --git a/Core/melawy-refind-menu-generator/01_sign.sh b/Melawy/melawy-linux-keyring/01_sign.sh similarity index 100% rename from Core/melawy-refind-menu-generator/01_sign.sh rename to Melawy/melawy-linux-keyring/01_sign.sh diff --git a/Core/melawy-linux-keyring/PKGBUILD b/Melawy/melawy-linux-keyring/PKGBUILD similarity index 100% rename from Core/melawy-linux-keyring/PKGBUILD rename to Melawy/melawy-linux-keyring/PKGBUILD diff --git a/Core/melawy-linux-keyring/README.md b/Melawy/melawy-linux-keyring/README.md similarity index 100% rename from Core/melawy-linux-keyring/README.md rename to Melawy/melawy-linux-keyring/README.md diff --git a/Core/melawy-linux-keyring/ins.install b/Melawy/melawy-linux-keyring/ins.install similarity index 100% rename from Core/melawy-linux-keyring/ins.install rename to Melawy/melawy-linux-keyring/ins.install diff --git a/Core/melawy-linux-mirrorlist/.gitignore b/Melawy/melawy-linux-mirrorlist/.gitignore similarity index 100% rename from Core/melawy-linux-mirrorlist/.gitignore rename to Melawy/melawy-linux-mirrorlist/.gitignore diff --git a/Core/melawy-skel-liveuser/00_make.sh b/Melawy/melawy-linux-mirrorlist/00_make.sh similarity index 100% rename from Core/melawy-skel-liveuser/00_make.sh rename to Melawy/melawy-linux-mirrorlist/00_make.sh diff --git a/Core/melawy-skel-liveuser/01_sign.sh b/Melawy/melawy-linux-mirrorlist/01_sign.sh similarity index 100% rename from Core/melawy-skel-liveuser/01_sign.sh rename to Melawy/melawy-linux-mirrorlist/01_sign.sh diff --git a/Core/melawy-linux-mirrorlist/LICENSE b/Melawy/melawy-linux-mirrorlist/LICENSE similarity index 100% rename from Core/melawy-linux-mirrorlist/LICENSE rename to Melawy/melawy-linux-mirrorlist/LICENSE diff --git a/Core/melawy-linux-mirrorlist/PKGBUILD b/Melawy/melawy-linux-mirrorlist/PKGBUILD similarity index 100% rename from Core/melawy-linux-mirrorlist/PKGBUILD rename to Melawy/melawy-linux-mirrorlist/PKGBUILD diff --git a/Core/melawy-linux-mirrorlist/README.md b/Melawy/melawy-linux-mirrorlist/README.md similarity index 76% rename from Core/melawy-linux-mirrorlist/README.md rename to Melawy/melawy-linux-mirrorlist/README.md index 4b5da0b..ba46e1b 100644 --- a/Core/melawy-linux-mirrorlist/README.md +++ b/Melawy/melawy-linux-mirrorlist/README.md @@ -1,5 +1,5 @@ -# melawy-linux-mirrorlist -Melawy Linux mirror list for use by pacman +# melawy-pamac-helper +Start pamac after pacman -Sy ### Donate [Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) diff --git a/Core/melawy-refind-menu-generator/.gitignore b/Melawy/melawy-refind-menu-generator/.gitignore similarity index 100% rename from Core/melawy-refind-menu-generator/.gitignore rename to Melawy/melawy-refind-menu-generator/.gitignore diff --git a/Core/melawy-skel-root/00_make.sh b/Melawy/melawy-refind-menu-generator/00_make.sh similarity index 100% rename from Core/melawy-skel-root/00_make.sh rename to Melawy/melawy-refind-menu-generator/00_make.sh diff --git a/Core/melawy-skel-root/01_sign.sh b/Melawy/melawy-refind-menu-generator/01_sign.sh similarity index 100% rename from Core/melawy-skel-root/01_sign.sh rename to Melawy/melawy-refind-menu-generator/01_sign.sh diff --git a/Core/melawy-refind-menu-generator/PKGBUILD b/Melawy/melawy-refind-menu-generator/PKGBUILD similarity index 100% rename from Core/melawy-refind-menu-generator/PKGBUILD rename to Melawy/melawy-refind-menu-generator/PKGBUILD diff --git a/Core/melawy-refind-menu-generator/README.md b/Melawy/melawy-refind-menu-generator/README.md similarity index 100% rename from Core/melawy-refind-menu-generator/README.md rename to Melawy/melawy-refind-menu-generator/README.md diff --git a/Core/melawy-skel-liveuser/.gitignore b/Melawy/melawy-skel-liveuser/.gitignore similarity index 100% rename from Core/melawy-skel-liveuser/.gitignore rename to Melawy/melawy-skel-liveuser/.gitignore diff --git a/Melawy/melawy-skel-liveuser/00_make.sh b/Melawy/melawy-skel-liveuser/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/Melawy/melawy-skel-liveuser/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/Never/paru-bin/01_sign.sh b/Melawy/melawy-skel-liveuser/01_sign.sh similarity index 100% rename from Never/paru-bin/01_sign.sh rename to Melawy/melawy-skel-liveuser/01_sign.sh diff --git a/Core/melawy-skel-liveuser/PKGBUILD b/Melawy/melawy-skel-liveuser/PKGBUILD similarity index 99% rename from Core/melawy-skel-liveuser/PKGBUILD rename to Melawy/melawy-skel-liveuser/PKGBUILD index def2ef7..d369cb8 100644 --- a/Core/melawy-skel-liveuser/PKGBUILD +++ b/Melawy/melawy-skel-liveuser/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.21 +pkgver=1.23 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=("any") diff --git a/Core/melawy-skel-liveuser/README.md b/Melawy/melawy-skel-liveuser/README.md similarity index 100% rename from Core/melawy-skel-liveuser/README.md rename to Melawy/melawy-skel-liveuser/README.md diff --git a/Core/melawy-skel-liveuser/ins.install b/Melawy/melawy-skel-liveuser/ins.install similarity index 100% rename from Core/melawy-skel-liveuser/ins.install rename to Melawy/melawy-skel-liveuser/ins.install diff --git a/Core/melawy-skel-root/.gitignore b/Melawy/melawy-skel-root/.gitignore similarity index 100% rename from Core/melawy-skel-root/.gitignore rename to Melawy/melawy-skel-root/.gitignore diff --git a/Melawy/melawy-skel-root/00_make.sh b/Melawy/melawy-skel-root/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/Melawy/melawy-skel-root/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/Never/paru-git/01_sign.sh b/Melawy/melawy-skel-root/01_sign.sh similarity index 100% rename from Never/paru-git/01_sign.sh rename to Melawy/melawy-skel-root/01_sign.sh diff --git a/Core/melawy-skel-root/PKGBUILD b/Melawy/melawy-skel-root/PKGBUILD similarity index 99% rename from Core/melawy-skel-root/PKGBUILD rename to Melawy/melawy-skel-root/PKGBUILD index 54c53c5..bc79b3e 100644 --- a/Core/melawy-skel-root/PKGBUILD +++ b/Melawy/melawy-skel-root/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.21 +pkgver=1.23 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=("any") diff --git a/Core/melawy-skel-root/README.md b/Melawy/melawy-skel-root/README.md similarity index 100% rename from Core/melawy-skel-root/README.md rename to Melawy/melawy-skel-root/README.md diff --git a/Core/melawy-skel-root/ins.install b/Melawy/melawy-skel-root/ins.install similarity index 100% rename from Core/melawy-skel-root/ins.install rename to Melawy/melawy-skel-root/ins.install diff --git a/Melawy/move_to_repo.sh b/Melawy/move_to_repo.sh new file mode 100755 index 0000000..488d7f5 --- /dev/null +++ b/Melawy/move_to_repo.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +REPO="/data/github/active/Melawy/REPO/melawy/x86_64/" + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -exec mv -v {} $REPO \; +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -exec mv -v {} $REPO \; + +find . -mindepth 1 -maxdepth 2 -type f -name "*.xz" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.zst" -delete +find . -mindepth 1 -maxdepth 2 -type f -name "*.sig" -delete + +echo "Ready" +sleep 5 +kill $(ps x | grep konsole | grep $0 | awk '{print $1}') diff --git a/Melawy/pwd.txt b/Melawy/pwd.txt new file mode 100644 index 0000000..a32715d --- /dev/null +++ b/Melawy/pwd.txt @@ -0,0 +1 @@ +/data/github/active/Melawy/PKGBUILD-git.melawy.ru/Core \ No newline at end of file diff --git a/Never/paru-bin/.SRCINFO b/Never/paru-bin/.SRCINFO deleted file mode 100644 index 11c32f8..0000000 --- a/Never/paru-bin/.SRCINFO +++ /dev/null @@ -1,25 +0,0 @@ -pkgbase = paru-bin - pkgdesc = Feature packed AUR helper - pkgver = 1.11.2 - pkgrel = 1 - url = https://github.com/morganamilo/paru - arch = x86_64 - arch = aarch64 - arch = armv7h - license = GPL3 - depends = git - depends = pacman - optdepends = asp: downloading repo pkgbuilds - optdepends = bat: colored pkgbuild printing - optdepends = devtools: build in chroot - provides = paru - conflicts = paru - backup = etc/paru.conf - source_x86_64 = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-x86_64.tar.zst - sha256sums_x86_64 = 8cb2faa8098f259c5faffe2c3e94cdc4f0d4dc1a59921b818f1ec0fc50deb278 - source_aarch64 = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-aarch64.tar.zst - sha256sums_aarch64 = ff9272600e5e0b4e380ced5376a2c2ee480f34e84456235dec785c63378ec804 - source_armv7h = https://github.com/Morganamilo/paru/releases/download/v1.11.2/paru-v1.11.2-armv7h.tar.zst - sha256sums_armv7h = c73b0f4dcba0dd45c222c6a00a923c7811be29a1ff1ab8972bac2c0b569e5968 - -pkgname = paru-bin diff --git a/Never/paru-bin/PKGBUILD b/Never/paru-bin/PKGBUILD deleted file mode 100644 index de018f9..0000000 --- a/Never/paru-bin/PKGBUILD +++ /dev/null @@ -1,36 +0,0 @@ -# Maintainer: Morgan - -pkgname=paru-bin -pkgver=1.11.2 -pkgrel=1 -pkgdesc='Feature packed AUR helper' -url='https://github.com/morganamilo/paru' -source_x86_64=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-x86_64.tar.zst") -source_aarch64=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-aarch64.tar.zst") -source_armv7h=("https://github.com/Morganamilo/paru/releases/download/v$pkgver/paru-v$pkgver-armv7h.tar.zst") -backup=("etc/paru.conf") -arch=('x86_64' 'aarch64' 'armv7h') -license=('GPL3') -depends=('git' 'pacman') -optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot') -conflicts=('paru') -provides=('paru') -sha256sums_x86_64=('8cb2faa8098f259c5faffe2c3e94cdc4f0d4dc1a59921b818f1ec0fc50deb278') -sha256sums_aarch64=('ff9272600e5e0b4e380ced5376a2c2ee480f34e84456235dec785c63378ec804') -sha256sums_armv7h=('c73b0f4dcba0dd45c222c6a00a923c7811be29a1ff1ab8972bac2c0b569e5968') - -package() { - cd "$srcdir/" - - install -Dm755 paru "${pkgdir}/usr/bin/paru" - install -Dm644 paru.conf "${pkgdir}/etc/paru.conf" - - install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8" - install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5" - - install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash" - install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish" - install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru" - - cp -r locale "$pkgdir/usr/share/" -} diff --git a/Never/paru-git/.gitignore b/Never/paru-git/.gitignore deleted file mode 100644 index d9061c4..0000000 --- a/Never/paru-git/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -*.tar.* -pkg/ -src/ -/paru diff --git a/Never/paru/.SRCINFO b/Never/paru/.SRCINFO deleted file mode 100644 index 6d01300..0000000 --- a/Never/paru/.SRCINFO +++ /dev/null @@ -1,24 +0,0 @@ -pkgbase = paru - pkgdesc = Feature packed AUR helper - pkgver = 1.11.1 - pkgrel = 1 - url = https://github.com/morganamilo/paru - arch = i686 - arch = pentium4 - arch = x86_64 - arch = arm - arch = armv7h - arch = armv6h - arch = aarch64 - license = GPL3 - makedepends = cargo - depends = git - depends = pacman - optdepends = asp: downloading repo pkgbuilds - optdepends = bat: colored pkgbuild printing - optdepends = devtools: build in chroot - backup = etc/paru.conf - source = paru-1.11.1.tar.gz::https://github.com/Morganamilo/paru/archive/v1.11.1.tar.gz - sha256sums = 42cefa8cdf48e3aec3f9922235f1e1126a9fe3262f1644494e1be51980e520d8 - -pkgname = paru diff --git a/Never/paru/.gitignore b/Never/paru/.gitignore deleted file mode 100644 index d9061c4..0000000 --- a/Never/paru/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -*.tar.* -pkg/ -src/ -/paru diff --git a/Never/paru/PKGBUILD b/Never/paru/PKGBUILD deleted file mode 100644 index 37f85c6..0000000 --- a/Never/paru/PKGBUILD +++ /dev/null @@ -1,47 +0,0 @@ -# Maintainer: Morgan - -pkgname=paru -pkgver=1.11.1 -pkgrel=1 -pkgdesc='Feature packed AUR helper' -url='https://github.com/morganamilo/paru' -source=("$pkgname-$pkgver.tar.gz::https://github.com/Morganamilo/paru/archive/v$pkgver.tar.gz") -backup=("etc/paru.conf") -arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') -license=('GPL3') -makedepends=('cargo') -depends=('git' 'pacman') -optdepends=('asp: downloading repo pkgbuilds' 'bat: colored pkgbuild printing' 'devtools: build in chroot') -sha256sums=('42cefa8cdf48e3aec3f9922235f1e1126a9fe3262f1644494e1be51980e520d8') - -build () { - cd "$srcdir/$pkgname-$pkgver" - - if pacman -T pacman-git > /dev/null; then - _features+="git," - fi - - if [[ $CARCH != x86_64 ]]; then - export CARGO_PROFILE_RELEASE_LTO=off - fi - - cargo build --locked --features "${_features:-}" --release --target-dir target - ./scripts/mkmo locale/ -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - install -Dm755 target/release/paru "${pkgdir}/usr/bin/paru" - install -Dm644 paru.conf "${pkgdir}/etc/paru.conf" - - install -Dm644 man/paru.8 "$pkgdir/usr/share/man/man8/paru.8" - install -Dm644 man/paru.conf.5 "$pkgdir/usr/share/man/man5/paru.conf.5" - - install -Dm644 completions/bash "${pkgdir}/usr/share/bash-completion/completions/paru.bash" - install -Dm644 completions/fish "${pkgdir}/usr/share/fish/vendor_completions.d/paru.fish" - install -Dm644 completions/zsh "${pkgdir}/usr/share/zsh/site-functions/_paru" - - install -d "$pkgdir/usr/share/" - cp -r locale "$pkgdir/usr/share/" -} diff --git a/Updater/melawy-arch-linux-updater/00_make.sh b/Updater/melawy-arch-linux-updater/00_make.sh index 30b8975..122f2f7 100755 --- a/Updater/melawy-arch-linux-updater/00_make.sh +++ b/Updater/melawy-arch-linux-updater/00_make.sh @@ -22,7 +22,4 @@ do fi done -echo "melawy" | beep -f 200 -l 250 -d 100 -r 1 -n -s -notify-send -a "$(basename $(pwd)): Make" -t 10000 "finished" "$(date '+%Y.%m.%d %H:%M:%S')" - echo "Ready" diff --git a/Updater/melawy-arch-linux-updater/PKGBUILD b/Updater/melawy-arch-linux-updater/PKGBUILD index f5f69d9..b458ad3 100644 --- a/Updater/melawy-arch-linux-updater/PKGBUILD +++ b/Updater/melawy-arch-linux-updater/PKGBUILD @@ -2,7 +2,7 @@ _gitname="$(basename $(pwd))" pkgname=("$_gitname") -pkgver=1.17 +pkgver=1.18 pkgrel=1 pkgdesc="$(head -n 2 README.md | tail -n 1)" arch=('any') diff --git a/Updater/melawy-pamac-helper/.gitignore b/Updater/melawy-pamac-helper/.gitignore new file mode 100644 index 0000000..5d2220c --- /dev/null +++ b/Updater/melawy-pamac-helper/.gitignore @@ -0,0 +1,4 @@ +*.tar.* +pkg/ +src/ +/melawy-linux-mirrorlist diff --git a/Updater/melawy-pamac-helper/00_make.sh b/Updater/melawy-pamac-helper/00_make.sh new file mode 100755 index 0000000..122f2f7 --- /dev/null +++ b/Updater/melawy-pamac-helper/00_make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +makepkg --syncdeps --asdeps --needed --noconfirm --clean --cleanbuild --force + +for i in *.pkg.tar.zst; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +for i in *.pkg.tar.xz; +do + if [ -f "${i}" ]; then + echo "Удаление подписи $i.sig" + rm -f $i.sig + echo "Добавление подписи $i.sig" + gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "$i.sig" "$i" + fi +done + +echo "Ready" diff --git a/Never/paru/01_sign.sh b/Updater/melawy-pamac-helper/01_sign.sh similarity index 100% rename from Never/paru/01_sign.sh rename to Updater/melawy-pamac-helper/01_sign.sh diff --git a/Updater/melawy-pamac-helper/LICENSE b/Updater/melawy-pamac-helper/LICENSE new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/Updater/melawy-pamac-helper/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/Updater/melawy-pamac-helper/PKGBUILD b/Updater/melawy-pamac-helper/PKGBUILD new file mode 100644 index 0000000..0bc3bf9 --- /dev/null +++ b/Updater/melawy-pamac-helper/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Valeria Fadeeva + +_gitname="$(basename $(pwd))" +pkgname=("$_gitname") +pkgver=1.2 +pkgrel=1 +pkgdesc="$(head -n 2 README.md | tail -n 1)" +arch=('any') +url="https://git.melawy.ru/Updater/$_gitname" +license=('AGPL') +depends=("pacman") +optdepends=() +makedepends=("git") +backup=() +provides=("${pkgname}") +conflicts=("${pkgname}") +source=("git+$url.git") +sha256sums=("SKIP") +validpgpkeys=('BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8') + +# pkgver() { +# cd "$srcdir/$_gitname" +# printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +# } + +pkgver() { + cd "$srcdir/$_gitname" + printf "1.%s" "$(git rev-list --count HEAD)" +} + +package() { + install -d "$pkgdir/usr/local/bin/" + install -d "$pkgdir/usr/share/applications/" + + install -Dm755 "${srcdir}/$_gitname/pamac" "$pkgdir/usr/local/bin/" + install -Dm644 "${srcdir}/$_gitname/pamac.desktop" "$pkgdir/usr/share/applications/" +} diff --git a/Updater/melawy-pamac-helper/README.md b/Updater/melawy-pamac-helper/README.md new file mode 100644 index 0000000..ba46e1b --- /dev/null +++ b/Updater/melawy-pamac-helper/README.md @@ -0,0 +1,11 @@ +# melawy-pamac-helper +Start pamac after pacman -Sy + +### Donate +[Tinkoff](https://www.tinkoff.ru/rm/fadeeva.valeriya96/9bLRi79066) + +[YooMoney](https://yoomoney.ru/to/4100115921160758) + +[Qiwi](https://qiwi.com/n/VALERIAFADEEVA) + +Etherium 0x981FBf878fe451BDB83BEaF68078394d4B13213f diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/HEAD b/Updater/melawy-pamac-helper/melawy-pamac-helper/HEAD new file mode 100644 index 0000000..b870d82 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/HEAD @@ -0,0 +1 @@ +ref: refs/heads/main diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/config b/Updater/melawy-pamac-helper/melawy-pamac-helper/config new file mode 100644 index 0000000..27f76b0 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/config @@ -0,0 +1,8 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = true +[remote "origin"] + url = https://git.melawy.ru/Updater/melawy-pamac-helper.git + fetch = +refs/*:refs/* + mirror = true diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/description b/Updater/melawy-pamac-helper/melawy-pamac-helper/description new file mode 100644 index 0000000..498b267 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/applypatch-msg.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/applypatch-msg.sample new file mode 100755 index 0000000..a5d7b84 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +commitmsg="$(git rev-parse --git-path hooks/commit-msg)" +test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} +: diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/commit-msg.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/commit-msg.sample new file mode 100755 index 0000000..b58d118 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/fsmonitor-watchman.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/fsmonitor-watchman.sample new file mode 100755 index 0000000..23e856f --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/fsmonitor-watchman.sample @@ -0,0 +1,174 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use IPC::Open2; + +# An example hook script to integrate Watchman +# (https://facebook.github.io/watchman/) with git to speed up detecting +# new and modified files. +# +# The hook is passed a version (currently 2) and last update token +# formatted as a string and outputs to stdout a new update token and +# all files that have been modified since the update token. Paths must +# be relative to the root of the working tree and separated by a single NUL. +# +# To enable this hook, rename this file to "query-watchman" and set +# 'git config core.fsmonitor .git/hooks/query-watchman' +# +my ($version, $last_update_token) = @ARGV; + +# Uncomment for debugging +# print STDERR "$0 $version $last_update_token\n"; + +# Check the hook interface version +if ($version ne 2) { + die "Unsupported query-fsmonitor hook version '$version'.\n" . + "Falling back to scanning...\n"; +} + +my $git_work_tree = get_working_dir(); + +my $retry = 1; + +my $json_pkg; +eval { + require JSON::XS; + $json_pkg = "JSON::XS"; + 1; +} or do { + require JSON::PP; + $json_pkg = "JSON::PP"; +}; + +launch_watchman(); + +sub launch_watchman { + my $o = watchman_query(); + if (is_work_tree_watched($o)) { + output_result($o->{clock}, @{$o->{files}}); + } +} + +sub output_result { + my ($clockid, @files) = @_; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # binmode $fh, ":utf8"; + # print $fh "$clockid\n@files\n"; + # close $fh; + + binmode STDOUT, ":utf8"; + print $clockid; + print "\0"; + local $, = "\0"; + print @files; +} + +sub watchman_clock { + my $response = qx/watchman clock "$git_work_tree"/; + die "Failed to get clock id on '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + + return $json_pkg->new->utf8->decode($response); +} + +sub watchman_query { + my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') + or die "open2() failed: $!\n" . + "Falling back to scanning...\n"; + + # In the query expression below we're asking for names of files that + # changed since $last_update_token but not from the .git folder. + # + # To accomplish this, we're using the "since" generator to use the + # recency index to select candidate nodes and "fields" to limit the + # output to file names only. Then we're using the "expression" term to + # further constrain the results. + my $last_update_line = ""; + if (substr($last_update_token, 0, 1) eq "c") { + $last_update_token = "\"$last_update_token\""; + $last_update_line = qq[\n"since": $last_update_token,]; + } + my $query = <<" END"; + ["query", "$git_work_tree", {$last_update_line + "fields": ["name"], + "expression": ["not", ["dirname", ".git"]] + }] + END + + # Uncomment for debugging the watchman query + # open (my $fh, ">", ".git/watchman-query.json"); + # print $fh $query; + # close $fh; + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + # Uncomment for debugging the watch response + # open ($fh, ">", ".git/watchman-response.json"); + # print $fh $response; + # close $fh; + + die "Watchman: command returned no output.\n" . + "Falling back to scanning...\n" if $response eq ""; + die "Watchman: command returned invalid output: $response\n" . + "Falling back to scanning...\n" unless $response =~ /^\{/; + + return $json_pkg->new->utf8->decode($response); +} + +sub is_work_tree_watched { + my ($output) = @_; + my $error = $output->{error}; + if ($retry > 0 and $error and $error =~ m/unable to resolve root .* directory (.*) is not watched/) { + $retry--; + my $response = qx/watchman watch "$git_work_tree"/; + die "Failed to make watchman watch '$git_work_tree'.\n" . + "Falling back to scanning...\n" if $? != 0; + $output = $json_pkg->new->utf8->decode($response); + $error = $output->{error}; + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + # Uncomment for debugging watchman output + # open (my $fh, ">", ".git/watchman-output.out"); + # close $fh; + + # Watchman will always return all files on the first query so + # return the fast "everything is dirty" flag to git and do the + # Watchman query just to get it over with now so we won't pay + # the cost in git to look up each individual file. + my $o = watchman_clock(); + $error = $output->{error}; + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + output_result($o->{clock}, ("/")); + $last_update_token = $o->{clock}; + + eval { launch_watchman() }; + return 0; + } + + die "Watchman: $error.\n" . + "Falling back to scanning...\n" if $error; + + return 1; +} + +sub get_working_dir { + my $working_dir; + if ($^O =~ 'msys' || $^O =~ 'cygwin') { + $working_dir = Win32::GetCwd(); + $working_dir =~ tr/\\/\//; + } else { + require Cwd; + $working_dir = Cwd::cwd(); + } + + return $working_dir; +} diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/post-update.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/post-update.sample new file mode 100755 index 0000000..ec17ec1 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-applypatch.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-applypatch.sample new file mode 100755 index 0000000..4142082 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-commit.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-commit.sample new file mode 100755 index 0000000..e144712 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --type=bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-merge-commit.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-merge-commit.sample new file mode 100755 index 0000000..399eab1 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-push.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-push.sample new file mode 100755 index 0000000..4ce688d --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +zero=$(git hash-object --stdin &2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-rebase.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-rebase.sample new file mode 100755 index 0000000..6cbef5c --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-receive.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-receive.sample new file mode 100755 index 0000000..a1fd29e --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/prepare-commit-msg.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/prepare-commit-msg.sample new file mode 100755 index 0000000..10fa14c --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/push-to-checkout.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/push-to-checkout.sample new file mode 100755 index 0000000..af5a0c0 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/push-to-checkout.sample @@ -0,0 +1,78 @@ +#!/bin/sh + +# An example hook script to update a checked-out tree on a git push. +# +# This hook is invoked by git-receive-pack(1) when it reacts to git +# push and updates reference(s) in its repository, and when the push +# tries to update the branch that is currently checked out and the +# receive.denyCurrentBranch configuration variable is set to +# updateInstead. +# +# By default, such a push is refused if the working tree and the index +# of the remote repository has any difference from the currently +# checked out commit; when both the working tree and the index match +# the current commit, they are updated to match the newly pushed tip +# of the branch. This hook is to be used to override the default +# behaviour; however the code below reimplements the default behaviour +# as a starting point for convenient modification. +# +# The hook receives the commit with which the tip of the current +# branch is going to be updated: +commit=$1 + +# It can exit with a non-zero status to refuse the push (when it does +# so, it must not modify the index or the working tree). +die () { + echo >&2 "$*" + exit 1 +} + +# Or it can make any necessary changes to the working tree and to the +# index to bring them to the desired state when the tip of the current +# branch is updated to the new commit, and exit with a zero status. +# +# For example, the hook can simply run git read-tree -u -m HEAD "$1" +# in order to emulate git fetch that is run in the reverse direction +# with git push, as the two-tree form of git read-tree -u -m is +# essentially the same as git switch or git checkout that switches +# branches while keeping the local changes in the working tree that do +# not interfere with the difference between the branches. + +# The below is a more-or-less exact translation to shell of the C code +# for the default behaviour for git's push-to-checkout hook defined in +# the push_to_deploy() function in builtin/receive-pack.c. +# +# Note that the hook will be executed from the repository directory, +# not from the working tree, so if you want to perform operations on +# the working tree, you will have to adapt your code accordingly, e.g. +# by adding "cd .." or using relative paths. + +if ! git update-index -q --ignore-submodules --refresh +then + die "Up-to-date check failed" +fi + +if ! git diff-files --quiet --ignore-submodules -- +then + die "Working directory has unstaged changes" +fi + +# This is a rough translation of: +# +# head_has_history() ? "HEAD" : EMPTY_TREE_SHA1_HEX +if git cat-file -e HEAD 2>/dev/null +then + head=HEAD +else + head=$(git hash-object -t tree --stdin &2 + exit 1 +} + +unset GIT_DIR GIT_WORK_TREE +cd "$worktree" && + +if grep -q "^diff --git " "$1" +then + validate_patch "$1" +else + validate_cover_letter "$1" +fi && + +if test "$GIT_SENDEMAIL_FILE_COUNTER" = "$GIT_SENDEMAIL_FILE_TOTAL" +then + git config --unset-all sendemail.validateWorktree && + trap 'git worktree remove -ff "$worktree"' EXIT && + validate_series +fi diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/update.sample b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/update.sample new file mode 100755 index 0000000..c4d426b --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --type=bool hooks.allowunannotated) +allowdeletebranch=$(git config --type=bool hooks.allowdeletebranch) +denycreatebranch=$(git config --type=bool hooks.denycreatebranch) +allowdeletetag=$(git config --type=bool hooks.allowdeletetag) +allowmodifytag=$(git config --type=bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero=$(git hash-object --stdin &2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/info/exclude b/Updater/melawy-pamac-helper/melawy-pamac-helper/info/exclude new file mode 100644 index 0000000..a5196d1 --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.idx b/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.idx new file mode 100644 index 0000000..a9d3c51 Binary files /dev/null and b/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.idx differ diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.pack b/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.pack new file mode 100644 index 0000000..54594fa Binary files /dev/null and b/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.pack differ diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.rev b/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.rev new file mode 100644 index 0000000..5c21fd5 Binary files /dev/null and b/Updater/melawy-pamac-helper/melawy-pamac-helper/objects/pack/pack-269c90a63ee0309906f44e4c46c886288dd3372b.rev differ diff --git a/Updater/melawy-pamac-helper/melawy-pamac-helper/packed-refs b/Updater/melawy-pamac-helper/melawy-pamac-helper/packed-refs new file mode 100644 index 0000000..5a99c8e --- /dev/null +++ b/Updater/melawy-pamac-helper/melawy-pamac-helper/packed-refs @@ -0,0 +1,2 @@ +# pack-refs with: peeled fully-peeled sorted +ff49e4eaf0e424ddd21e7fbc5571bf754d58315c refs/heads/main diff --git a/СДЕЛАТЬ.txt b/СДЕЛАТЬ.txt new file mode 100644 index 0000000..05ed8a0 --- /dev/null +++ b/СДЕЛАТЬ.txt @@ -0,0 +1,8 @@ +предупреждение: ccache: установленная версия (4.8.3-1) новее, чем в cachyos (4.8-1) +предупреждение: fastfetch: установленная версия (2.2.3-1) новее, чем в cachyos (2.1.2-2) +предупреждение: ftl-sdk: установленная версия (0.10.1-3.2) новее, чем в melawy-3party (0.10.1-3) +предупреждение: kdsoap-ws-discovery-client: установленная версия (0.3.0-2) новее, чем в cachyos (git20200927-2.1) +предупреждение: kvantum-theme-nordic-git: установленная версия (2.2.0.r82.g38f284d-1) новее, чем в cachyos (2.2.0.r71.gff8165c-1) +предупреждение: profile-sync-daemon: установленная версия (1:6.50-1) новее, чем в cachyos (1:6.48-3) +предупреждение: python: установленная версия (3.11.6-1) новее, чем в cachyos (3.11.5-2) +