1 Commits

Author SHA1 Message Date
SoftExpert
d8c110c10d add cups 2025-01-10 00:14:48 +01:00
78 changed files with 39 additions and 328 deletions

View File

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

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,6 +6,7 @@ if [ "$#" -eq 0 ]; then
else
for arg in "$@"
do
sed -i 's/arch_linux/artix_linux/g' "${arg}/PKGBUILD"
sed -e "s|./configure|./configure --disable-systemd|" \
-i "${arg}/PKGBUILD"
done
fi
fi

View File

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

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 +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 "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 +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

@@ -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,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,elogind,' \
-i $i/PKGBUILD
done

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 +0,0 @@
CONFIG_OPTIONS=-D systemd=disabled

View File

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

View File

@@ -1 +0,0 @@
../_common/d-systemd.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,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-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

View File

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

View File

@@ -1,9 +0,0 @@
#!/bin/bash
for i in $@; do
sed -e '/systemd/d' \
-e '/journald/d' \
-e '/sssd-perms.conf/i\ rm -rf $pkgdir/etc/systemd' \
-i "$i"/PKGBUILD
done

View File

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

View File

@@ -7,6 +7,5 @@ else
for arg in "$@"
do
rm "${arg}/uwsgi.install"
sed -i '/install=uwsgi\.install/Id' "${arg}/PKGBUILD"
done
fi

View File

@@ -1,2 +1,2 @@
CONFIG_OPTIONS=-D USE_SYSTEMD=OFF\n -D ENABLE_JOURNALD_LOG=OFF
CONFIG_OPTIONS=-DUSE_SYSTEMD=OFF\n -DENABLE_JOURNALD_LOG=OFF
OPTION_VAR=cmake_options

View File

@@ -1,2 +1,2 @@
CONFIG_OPTIONS=-D USE_SYSTEMD=OFF\n -D ENABLE_JOURNALD_LOG=OFF
CONFIG_OPTIONS=-DUSE_SYSTEMD=OFF\n -DENABLE_JOURNALD_LOG=OFF
OPTION_VAR=cmake_options

View File

@@ -1,2 +1,2 @@
CONFIG_OPTIONS=-D USE_SYSTEMD=OFF\n -D ENABLE_JOURNALD_LOG=OFF
CONFIG_OPTIONS=-DUSE_SYSTEMD=OFF\n -DENABLE_JOURNALD_LOG=OFF
OPTION_VAR=cmake_options

View File

@@ -5,11 +5,4 @@ for i in "$@"; do
-e '/mingw32-strip/d' \
-e '/depends/i CFLAGS+=" -Wno-error=incompatible-pointer-types -fPIC"' \
-i "$i"/PKGBUILD
for arg in "$@"
do
sed -e '/systemctl/d' \
-e '/post_install/a \ echo "binfmt binary formats will be updated at reboot"' \
-i $arg/wine.install
done
done

View File

@@ -8,11 +8,4 @@ else
-e 's|-ffat-lto-objects|-ffat-lto-objects -fPIC|' \
-i $arg/PKGBUILD
done
for arg in "$@"
do
sed -e '/systemctl/d' \
-e '/post_install/a \ echo "binfmt binary formats will be updated at reboot"' \
-i $arg/wine.install
done
fi

View File

@@ -1,2 +1,2 @@
CONFIG_OPTIONS=-D USE_SYSTEMD=OFF\n -D ENABLE_JOURNALD_LOG=OFF
CONFIG_OPTIONS=-DUSE_SYSTEMD=OFF\n -DENABLE_JOURNALD_LOG=OFF
OPTION_VAR=cmake_options

View File

@@ -1 +0,0 @@
../_common/rm-service.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 's/ sysusers.conf/ sysusers.conf)/' -i "${arg}/PKGBUILD"
done
fi

View File

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

View File

@@ -1,13 +0,0 @@
#!/bin/bash
# removes service files that are included via globbing
if [ "$#" -eq 0 ]; then
echo "Usage: $0 <package repo>"
exit 1
else
for arg in "$@"
do
sed -i -E "s/service,|,service//g" "${arg}/PKGBUILD"
done
fi

View File

@@ -1,24 +0,0 @@
#!/usr/bin/perl
# remove services that are on the SAME LINE as other files
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);
my $content = <FILE>;
close(FILE);
$content =~ s/zabbix[^\s]*\.service //g;
open(FILE,">$file_name");
print FILE $content;
close(FILE);
}

View File

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

View File

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