1 Commits

Author SHA1 Message Date
SoftExpert
d8c110c10d add cups 2025-01-10 00:14:48 +01:00
129 changed files with 51 additions and 499 deletions

View File

@@ -1,26 +0,0 @@
name: Required Approvals
on:
pull_request:
branches: [ master ]
pull_request_review:
branches: [ master ]
permissions:
checks: write
pull-requests: read
jobs:
required-approvals:
runs-on: ubuntu-latest
steps:
- name: Check required approvals
uses: https://gitea.artixlinux.org/corysanin/configurable-required-approvals@v1
with:
requirements: |
- patterns:
- "patches/_common/*"
- ".gitea/**/*"
requiredApprovals: 1
github-token: ${{ secrets.ACCESS_TOKEN }}

View File

@@ -11,4 +11,4 @@ else
do
sed -i '/\.service/d' "${arg}/PKGBUILD"
done
fi
fi

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/systemd-to-udev.sh

View File

@@ -1,7 +0,0 @@
#!/bin/bash
for i in $@; do
sed -e '/unitdir/ s|/usr/lib/systemd/system|no|' \
-e '/udevsystem/ s|udev|systemd|' \
-i ${i}/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/rm-timer.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/rm-systemd-deps.sh

View File

@@ -6,9 +6,7 @@ if [ "$#" -eq 0 ]; then
else
for arg in "$@"
do
sed -e "s|'etc/conf.d/smartd'||" \
sed -e "s|./configure|./configure --disable-systemd|" \
-i "${arg}/PKGBUILD"
sed -i '/etc\/conf.d\/smartd/d' "${arg}/PKGBUILD"
done
fi
fi

View File

@@ -1 +0,0 @@
../_common/rm-socket.sh

View File

@@ -1 +0,0 @@
../_common/add-source.pl

View File

@@ -1,44 +0,0 @@
#!/usr/bin/perl
# add-package.pl
# Appends the contents of PACKAGE_APPEND env variable to the end of the package function.
# Can be configured to target a different function with PACKAGE_BLOCK.
# \n in PACKAGE_APPEND are interpreted as newlines.
# Setting PACKAGE_NO_NEWLINE will disable appending any additional newlines before
# the append_var.
use strict;
use warnings;
if (@ARGV == 0 || ! $ENV{'PACKAGE_APPEND'}) {
die("Usage: $0 <package repo>\n");
}
# Process entire file instead of line by line.
undef $/;
for (@ARGV) {
my $file_name = $_ . "/PKGBUILD";
open(my $input, '<', $file_name) or die("Could not open file '$file_name' $!\n");
my $content = <$input>;
close($input);
my $package_block = $ENV{'PACKAGE_BLOCK'} // 'package';
my $append_var = $ENV{'PACKAGE_APPEND'};
my $extra_newline = $ENV{'PACKAGE_NO_NEWLINE'} ? "" : "\n";
$append_var =~ s/\\n/\n/g; # change \n to actual newlines
if ($content =~ /(
${package_block}\s*\(\)\s*\{)/) {
$content =~ s/(
${package_block}\s*\(\)\s*\{[\s\S]*?
)(\})/$1${extra_newline}${append_var}\n}/;
} else {
die("Function '${package_block}' not found in '$file_name'.\n");
}
open($input, ">", $file_name) or die("Could not write to file '$file_name' $!\n");
print $input $content;
close($input);
}

View File

@@ -1 +0,0 @@
../_common/d-systemd.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1,4 +0,0 @@
SOURCES= tmpfiles.d\n sysusers.d
SOURCES_NO_NEWLINE=yes
PACKAGE_APPEND= # sysusers.d\n install -vDm 644 "$srcdir/sysusers.d" "$pkgdir/usr/lib/sysusers.d/${pkgname}.conf"\n # tmpfiles.d\n install -vDm 644 "$srcdir/tmpfiles.d" "$pkgdir/usr/lib/tmpfiles.d/${pkgname}.conf"
PACKAGE_NO_NEWLINE=yes

View File

@@ -1 +0,0 @@
../_common/systemd-to-udev.sh

View File

@@ -1,15 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e "s/arch-/artix-/g" \
-i "${arg}/PKGBUILD" && \
sed -E 's|(build\(\).*$)|\1\n export DOTNET_CLI_TELEMETRY_OPTOUT=1|' \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
../_common/insert-config-options.pl

View File

@@ -1,14 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e "s/ archlinux / artixlinux /" \
-i "${arg}/PKGBUILD"
sed -E 's|(\s+install -vDm644 "\$srcdir/origin\.)(archlinux)(" "\$pkgdir/etc/dpkg/origins/)(archlinux)"|\1\2\3\4"\n\1artixlinux\3artixlinux"|' \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1,2 +0,0 @@
OPTION_VAR=source
CONFIG_OPTIONS=origin.artixlinux

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +1 @@
CONFIG_OPTIONS=-D systemd=disabled
CONFIG_OPTIONS=-D systemd=disabled\n -D elogind=enabled

View File

@@ -6,6 +6,9 @@ if [ "$#" -eq 0 ]; then
else
for arg in "$@"
do
sed -i '/systemd/d' "${arg}/PKGBUILD"
sed -e 's|gkrellm.service\s*)|)|' \
-e "s|'[a-f0-9]\{64\}'\s*)|)|" \
-i "${arg}/PKGBUILD"
sed -i '/gkrellm\.service/d' "${arg}/PKGBUILD"
done
fi

View File

@@ -1,11 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -i 's/--print-errorlogs --no-rebuild/--print-errorlogs --no-rebuild ||:/' "${arg}/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
CONFIG_OPTIONS=-D systemd=disabled

View File

@@ -8,7 +8,9 @@ if [ "$#" -eq 0 ]; then
else
for arg in "$@"
do
sed -e "s/'geth-user.service'//" \
sed -e "s/'geth-user.service'//g" \
-e "s/'806ab43221f0c203e663a78afced694786a5adb033f06fab07d07904384d7645'//g" \
-i "${arg}/PKGBUILD"
# TODO: remove the newline and trailing whitespace after
done
fi

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1,11 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -i 's/arch_linux/artix_linux/g' "${arg}/PKGBUILD"
done
fi

View File

@@ -7,9 +7,6 @@ else
for arg in "$@"
do
sed -i 's/Arch/Artix/' "${arg}/grub.default"
sed -i 's/Arch/Artix/' "${arg}/sbat.csv"
sed -i 's/arch/artix/' "${arg}/sbat.csv"
sed -i 's|https://archlinux.org/packages/core/x86_64/grub/|https://gitea.artixlinux.org/packages/grub/|' "${arg}/sbat.csv"
line_number=$(grep -n "_package_grub-common_and_bios" "${arg}/PKGBUILD" | tail -1 | cut -d : -f 1)
line_number=$((line_number+1))
UPDATE_GRUB='

View File

@@ -1 +0,0 @@
../_common/rm-systemd-deps.sh

View File

@@ -1,11 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -i "s|-Dsystemdsystemunitdir=/usr/lib/systemd/system|-Dsystemdsystemunitdir=''|" "${arg}/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
../_common/rm-systemd-deps.sh

View File

@@ -1,8 +1,6 @@
#!/bin/bash
for i in $@; do
sed -e '/cross-file/a\ -D session_tracking=elogind' \
-e '/systemd/d' \
-e '/makedepends/a\ libelogind' \
sed -e '/redhat/a\ -D session_tracking=elogind'
-i "$i"/PKGBUILD
done

View File

@@ -1,6 +0,0 @@
#!/bin/bash
for i in $@; do
sed -e 's|systemd-libs|udev|' \
-i $i/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/d-systemd.sh

View File

@@ -1,6 +0,0 @@
#!/bin/bash
for i in $@ ; do
sed -e 's,systemd,elogind,' \
-i $i/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/d-systemd.sh

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/rm-socket.sh

View File

@@ -0,0 +1,12 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e 's|git+https://github.com/JuliaLang/llvm-project|llvm-project-j::git+https://github.com/JuliaLang/llvm-project|' \
-e 's|llvm-project/llvm|llvm-project-j/llvm|' -i "${arg}/PKGBUILD"
done
fi

View File

@@ -1,5 +0,0 @@
#!/bin/sh
for i in $@; do
sed -e 's|prog/{detect/sensors-detect,init/{sensord,lm_sensors}.service}|prog/detect/sensors-detect|' \
-i $i/PKGBUILD
done

View File

@@ -1,7 +0,0 @@
#!/bin/sh
for i in $@; do
sed -e 's|healthd.service||' \
-e '/service/d' \
-e '0,/${srcdir}\/sensord.conf/{//d;}' \
-i $i/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/rm-timer.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1,14 +0,0 @@
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e '/services and timer/d' \
-e '/{service,timer}/d' \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1,6 +0,0 @@
#!/bin/bash
for i in $@; do
sed -e '/bus-provider/s|libsystemd|libelogind|' \
-e '/makedepends/s|systemd|elogind|' \
-i $i/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/systemd-libs-to-libelogind.sh

View File

@@ -1 +0,0 @@
../_common/systemd-libs-to-libelogind.sh

View File

@@ -1 +0,0 @@
../_common/systemd-to-elogind.sh

View File

@@ -1,6 +0,0 @@
#!/bin/bash
for i in $@; do
sed -e '/gtk_doc/a\ -D systemd_journal=false' \
-e '/gtk_doc/a\ -D systemdsystemunitdir=no' \
-i ${i}/PKGBUILD
done

View File

@@ -1 +0,0 @@
CONFIG_OPTIONS=-D systemd=disabled

View File

@@ -1 +0,0 @@
../_common/systemd-libs-to-libelogind.sh

View File

@@ -1,15 +0,0 @@
#!/bin/bash
# rm-nftables-service.sh
# replace nftables.service with empty string in PKGBUILD files
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e "s/'nftables.service'//" \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1,15 +0,0 @@
#!/bin/bash
# rm-systemd-comment.sh
# removes any commented line that contains "systemd" in the PKGBUILD file
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e "/^\s*#.*systemd/d" \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/d-systemd.sh

View File

@@ -0,0 +1 @@
../_common/rm-blocks.pl

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1,14 +0,0 @@
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e "s,systemd-libs,libudev," \
-i ${arg}/PKGBUILD
sed -e "s/systemd/udev/" \
-e "/rulesdir/a\ -Dno_systemd=true" \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
../_common/rm-systemd-deps.sh

View File

@@ -1,6 +0,0 @@
#!/bin/bash
for i in $@ ; do
sed -e 's|tar.gz|tar.gz)|' \
-i $i/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/rm-socket.sh

View File

@@ -1 +0,0 @@
../_common/rm-systemd-deps.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1,6 +0,0 @@
#!/bin/sh
for i in $@; do
sed -i '0,/sysusers/{s|sysusers|sysusers)|}' \
$i/PKGBUILD
done

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/skip-systemd-install.pl

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/rm-systemd-deps.sh

View File

@@ -1 +0,0 @@
../_common/add-source.pl

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1,28 +0,0 @@
#!/usr/bin/perl
# add-prepare-function.pl
# Inserts a prepare() function before the build() function in PKGBUILD.
use strict;
use warnings;
if (@ARGV == 0) {
die("Usage: $0 <package repo>\n");
}
# Process entire file instead of line by line.
undef $/;
for (@ARGV) {
my $file_name = $_ . "/PKGBUILD";
open(FILE, $file_name) or die("Cannot open $file_name: $!");
my $content = <FILE>;
close(FILE);
# Insert prepare() function before build()
if ($content =~ s/^(\s*)build\(\)\s*{/$1\nprepare() {\n patch -Np1 -d \$pkgname -i ..\/0001-no-systemd.patch\n}\n$1build() {/m) {
open(FILE, ">$file_name") or die("Cannot write to $file_name: $!");
print FILE $content;
close(FILE);
}
}

View File

@@ -1,13 +0,0 @@
#!/bin/bash
# add sysusersdir option to build options in PKGBUILD
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"; do
sed -e "/artix-meson \${pkgname} build/s|$| -D sysusersdir=/usr/lib/sysusers.d|" \
-i "$arg/PKGBUILD"
done
fi

View File

@@ -1 +0,0 @@
SOURCES= '0001-no-systemd.patch'

View File

@@ -0,0 +1,22 @@
#!/usr/bin/perl
use strict;
use warnings;
if (@ARGV == 0) {
die("Usage: $0 <package repo>\n");
}
# Process entire file instead of line by line.
undef $/;
for (@ARGV) {
my $file_name = $_ . "/PKGBUILD";
open(my $fh, '<', $file_name) or die "Could not open file '$file_name' $!";
my $content = <$fh>;
close($fh);
$content =~ s/(makedepends=\(\s*.*?)(\))/${1} 'argon2'$2/s;
open($fh, '>', $file_name) or die "Could not open file '$file_name' $!";
print $fh $content;
close($fh);
}

View File

@@ -1,15 +0,0 @@
#!/bin/bash
# rm-service.sh
# Indiscriminately removes all lines that contain ".service"
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -e 's/sha256sums=/)\nsha256sums=/' \
-i "${arg}/PKGBUILD"
done
fi

View File

@@ -1,16 +0,0 @@
#!/bin/bash
# rm-systemd-patch.sh
# Indiscriminately removes all lines that contain
# "rabbitmq-customize-systemd-service.patch". And removes the patch file.
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -i '/rabbitmq-customize-systemd-service.patch/d' "${arg}/PKGBUILD"
rm "rabbitmq-customize-systemd-service.patch"
done
fi

View File

@@ -1 +0,0 @@
../_common/rm-service.sh

View File

@@ -1 +0,0 @@
../_common/updpkgsums.sh

View File

@@ -1 +0,0 @@
../_common/systemd-to-udev.sh

Some files were not shown because too many files have changed in this diff Show More