69 Commits

Author SHA1 Message Date
07a7a1a017 revert enrichment 2025-04-01 21:42:30 +02:00
3afe97c069 Merge pull request 'enrich rm-service.sh' (#337) from nous into master
Reviewed-on: #337
2025-04-01 21:18:56 +02:00
d8ea56a0e9 enrich rm-service.sh 2025-04-01 22:14:06 +03:00
e2e663f6ac Merge pull request 'add(mailman3): to remove service and timer' (#336) from mailman3 into master
Reviewed-on: #336
2025-04-01 19:18:23 +02:00
820445a7fd add(mailman3): to remove service and timer 2025-04-01 17:17:48 +00:00
bdd94c2002 Merge pull request 'remove(fwupd): deperecated mason option' (#335) from fwupd into master
Reviewed-on: #335
2025-04-01 00:41:25 +02:00
0ee3a93cfe remove(fwupd): deperecated mason option 2025-03-31 22:40:28 +00:00
446ce8038f Merge pull request 'tailscale: add' (#334) from tailscale into master
Reviewed-on: #334
2025-03-28 11:18:14 +01:00
8a2cc18623 tailscale: add 2025-03-28 05:16:56 -05:00
01b64c79ea Merge pull request 'xf86-video-intel' (#333) from xf86-video-intel into master
Reviewed-on: #333
2025-03-25 06:20:04 +01:00
e3ba5402d1 xf86-video-intel 2025-03-25 00:19:20 -05:00
daf018bbe1 Merge pull request 'Add: dropbear' (#332) from dropbear into master
Reviewed-on: #332
2025-03-22 07:51:35 +01:00
73ab4a55a8 Add: dropbear 2025-03-22 01:50:01 -05:00
b5a561eb1a update gnome-keyring 2025-03-21 10:15:50 -05:00
3b80258281 update mutter 2025-03-21 10:12:13 -05:00
2646349640 remove mutter45 2025-03-21 10:12:03 -05:00
c3588d4faf Merge pull request 'lib32-libusb: systemd-to-elogind' (#330) from libusb into master
Reviewed-on: #330
2025-03-21 02:35:38 +01:00
3eba7de91c lib32-libusb: systemd-to-elogind 2025-03-20 20:34:59 -05:00
e25b724342 Merge pull request 'fix: prosody' (#329) from prosody-fix into master
Reviewed-on: #329
2025-03-19 06:38:47 +01:00
a2c6e7661f fix: prosody 2025-03-19 00:38:28 -05:00
fa32a2e637 Merge pull request 'update gkrellm' (#328) from gkrellm-2.4.0 into master
Reviewed-on: #328
2025-03-17 22:49:17 +01:00
19094503a7 update gkrellm 2025-03-17 16:48:44 -05:00
9dce721680 Merge pull request 'sssd: Add' (#327) from sssd into master
Reviewed-on: #327
2025-03-16 07:14:32 +01:00
8626ef30a4 sssd: Add 2025-03-16 01:13:40 -05:00
a18fe9c324 webkit: format cmake switches 2025-03-15 12:46:03 -05:00
2776fe64d9 Merge pull request 'remove(php-legacy): 05-add-makedepends-options.pl' (#325) from lemonpie-changes into master
Reviewed-on: #325
2025-03-11 23:25:39 +01:00
dd487cfe44 remove(php-legacy): 05-add-makedepends-options.pl
argon2 is now defined as a dependency in the PKGBUILD of arch
2025-03-11 22:13:41 +00:00
0db03d553a Merge pull request 'opensips: fix' (#324) from opensips into master
Reviewed-on: #324
2025-03-10 08:43:27 +01:00
0b05e475c9 opensips: fix 2025-03-10 02:42:18 -05:00
398a5669ae Merge pull request 'opensips: Add' (#323) from opensips into master
Reviewed-on: #323
2025-03-10 08:32:40 +01:00
d07b3212a1 opensips: Add 2025-03-10 02:28:40 -05:00
e03e6eec70 Merge pull request 'Spotifyd: Add' (#322) from spotifyd into master
Reviewed-on: #322
2025-03-10 08:27:19 +01:00
72dbf85780 Spotifyd: Add 2025-03-10 02:26:35 -05:00
1704f9cd21 Merge pull request 'Add libutempter' (#321) from libutempter into master
Reviewed-on: #321
2025-03-09 06:52:21 +01:00
fda8fdc354 Add libutempter 2025-03-08 23:51:37 -06:00
91054f944b Merge pull request 'wine-staging:update' (#320) from wine-staging-install into master
Reviewed-on: #320
2025-03-09 00:21:47 +01:00
c69ad40b70 wine-staging:update 2025-03-08 17:19:45 -06:00
ec0a5881b8 Merge pull request 'wine:update' (#319) from wine-install into master
Reviewed-on: #319
2025-03-09 00:10:31 +01:00
3e0aaa6a59 wine:update 2025-03-08 17:08:20 -06:00
a2da1b0872 Merge pull request 'Add: open-iscsi' (#318) from open-iscsi into master
Reviewed-on: #318
2025-03-03 10:01:19 +00:00
df32b0d3c3 Add: open-iscsi 2025-03-03 04:00:34 -06:00
cf3c1d4e93 Merge pull request 'change(go-ethereum): use updpkgsums instead of sed to remove sha256sums' (#317) from go-ethereum into master
Reviewed-on: #317
2025-02-26 00:31:42 +00:00
d94829c6da Merge pull request 'add(dnscrypt-proxy): patches' (#316) from dnscrypt-proxy into master
Reviewed-on: #316
2025-02-26 00:30:12 +00:00
3392fda648 change(go-ethereum): use updpkgsums instead of sed to remove sha256sums 2025-02-26 00:24:02 +00:00
cb21b4496b add(dnscrypt-proxy): patches
- remove systemd
- add extra sources
- update pkgsums
2025-02-26 00:04:32 +00:00
34bfebff9e Merge pull request 'add(conmon): patch to remove systemd deps' (#315) from conmon into master
Reviewed-on: #315
2025-02-25 23:17:50 +00:00
d2c7f69115 add(conmon): patch to remove systemd deps 2025-02-25 23:17:09 +00:00
98e51f1caa add xmms2 2025-02-22 10:08:31 -06:00
6e1afcda88 add sfml 2025-02-22 10:02:46 -06:00
bcfdd34372 add mpd 2025-02-22 09:21:43 -06:00
e33f0b1008 Merge pull request 'add dotnet and dotnet accessories' (#312) from dotnet into master
Reviewed-on: #312
2025-02-15 06:45:13 +01:00
18f932e5fa add dotnet and dotnet accessories 2025-02-15 00:44:37 -05:00
a4704f829f Merge pull request 'add(rabbitmq): patches to remove systemd' (#311) from lemonpie-changes into master
Reviewed-on: #311
2025-02-07 04:18:40 +01:00
a8d834948a add(rabbitmq): patches to remove systemd 2025-02-07 03:16:53 +00:00
d74dcea179 Merge pull request 'add(passim): patches to remove systemd' (#310) from lemonpie-changes into master
Reviewed-on: #310
2025-02-06 04:52:28 +01:00
892c350b2d add(passim): patches to remove systemd 2025-02-06 03:50:31 +00:00
0ed8634a94 add iio-sensor-proxy 2025-01-31 09:21:39 -06:00
841e0ddcfd Merge pull request 'add certbot' (#308) from certbot into master
Reviewed-on: #308
2025-01-18 05:38:13 +01:00
cf5186b704 add certbot 2025-01-17 23:37:35 -05:00
b30d0b6280 Merge pull request 'add dpkg' (#307) from dpkg into master
Reviewed-on: #307
2025-01-18 02:44:24 +01:00
1b6a9279a3 add dpkg 2025-01-17 20:43:41 -05:00
c3ad3d2055 Merge pull request 'lib32-polkit: Fix' (#306) from polkit into master
Reviewed-on: #306
2025-01-14 09:49:22 +01:00
a2592311fa lib32-polkit: Fix 2025-01-14 01:03:09 -06:00
90f05f7c54 add niri 2025-01-12 21:49:16 -06:00
b9d7875f84 fix grub 2025-01-10 00:33:06 +01:00
817fb5aedc Merge pull request 'fix(uwsgi): remove post install msg from PKGBUILD instruction.' (#303) from lemonpie-changes into master
Reviewed-on: #303
2025-01-10 00:29:12 +01:00
d71bf086ba fix(uwsgi): remove post install msg from PKGBUILD instruction. 2025-01-09 23:09:48 +00:00
dcc67696aa Merge pull request 'add zabbix' (#301) from zabbix into master
Reviewed-on: #301
2025-01-09 23:14:45 +01:00
35a84f3643 add zabbix 2025-01-09 17:13:56 -05:00
78 changed files with 339 additions and 36 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,44 @@
#!/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

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

View File

@@ -0,0 +1,4 @@
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

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

View File

@@ -0,0 +1,15 @@
#!/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

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

View File

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

View File

@@ -0,0 +1,14 @@
#!/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

2
patches/dpkg/env.txt Normal file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,11 @@
#!/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,6 +7,9 @@ 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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,14 @@
#!/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

1
patches/mpd/01-d-systemd.sh Symbolic link
View File

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

1
patches/mpd/env.txt Normal file
View File

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

View File

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

1
patches/niri/d-systemd.sh Symbolic link
View File

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

View File

@@ -0,0 +1,14 @@
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

6
patches/opensips/opensips.sh Executable file
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,28 @@
#!/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

@@ -0,0 +1,13 @@
#!/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

1
patches/passim/env.txt Normal file
View File

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

View File

@@ -1,22 +0,0 @@
#!/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

@@ -0,0 +1,15 @@
#!/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

@@ -0,0 +1,16 @@
#!/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

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

View File

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

View File

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

View File

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

View File

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

9
patches/sssd/sssd.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/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

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

View File

@@ -7,5 +7,6 @@ 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=-DUSE_SYSTEMD=OFF\n -DENABLE_JOURNALD_LOG=OFF
CONFIG_OPTIONS=-D USE_SYSTEMD=OFF\n -D ENABLE_JOURNALD_LOG=OFF
OPTION_VAR=cmake_options

View File

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

View File

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

View File

@@ -5,4 +5,11 @@ 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,4 +8,11 @@ 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=-DUSE_SYSTEMD=OFF\n -DENABLE_JOURNALD_LOG=OFF
CONFIG_OPTIONS=-D USE_SYSTEMD=OFF\n -D ENABLE_JOURNALD_LOG=OFF
OPTION_VAR=cmake_options

View File

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

View File

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

View File

@@ -0,0 +1,11 @@
#!/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

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

View File

@@ -0,0 +1,13 @@
#!/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

24
patches/zabbix/02-dang-you.pl Executable file
View File

@@ -0,0 +1,24 @@
#!/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

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

View File

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