summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules6
-rw-r--r--README.md2
-rw-r--r--archlinuxaba/bareos/PKGBUILD710
-rw-r--r--archlinuxaba/bareos/bareos-bconsole.install11
-rw-r--r--archlinuxaba/bareos/bareos-common.install31
-rw-r--r--archlinuxaba/bareos/bareos-database-mysql.install24
-rw-r--r--archlinuxaba/bareos/bareos-database-postgresql.install24
-rw-r--r--archlinuxaba/bareos/bareos-director.install19
-rw-r--r--archlinuxaba/bareos/bareos-filedaemon.install11
-rw-r--r--archlinuxaba/bareos/bareos-storage-fifo.install8
-rw-r--r--archlinuxaba/bareos/bareos-storage-tape.install8
-rw-r--r--archlinuxaba/bareos/bareos-storage.install14
-rwxr-xr-xarchlinuxaba/bareos/check-if-bareos-backup-is-running19
-rw-r--r--archlinuxaba/bareos/xattr.patch21
-rw-r--r--archlinuxaba/mtop/.SRCINFO20
-rw-r--r--archlinuxaba/mtop/PKGBUILD46
-rw-r--r--archlinuxaba/mtop/mtoprc3
-rw-r--r--archlinuxaba/nagircbot/.SRCINFO14
-rw-r--r--archlinuxaba/nagircbot/PKGBUILD22
-rw-r--r--archlinuxaba/pacman-mirrorlist32/PKGBUILD34
-rw-r--r--archlinuxaba/pacman-mirrorlist32/mirrorlist43
-rw-r--r--archlinuxaba/pacman-mirrorlist32/update-list26
-rw-r--r--archlinuxaba/pacman-mirrorlist32/upgpkg4
-rw-r--r--archlinuxaba/tinc/PKGBUILD44
m---------maintained/check_ssl_cert0
m---------maintained/newsboat-og0
m---------maintained/pacman-static0
m---------maintained/pdfalto0
m---------maintained/thruk0
29 files changed, 1164 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index ae610cc..6d551ff 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -52,3 +52,9 @@
[submodule "maintained/cppcms"]
path = maintained/cppcms
url = ssh://aur@aur.archlinux.org/cppcms.git
+[submodule "maintained/pdfalto"]
+ path = maintained/pdfalto
+ url = ssh://aur@aur.archlinux.org/pdfalto.git
+[submodule "maintained/pacman-static"]
+ path = maintained/pacman-static
+ url = ssh://aur@aur.archlinux.org/pacman-static
diff --git a/README.md b/README.md
index 10cf64e..61eca43 100644
--- a/README.md
+++ b/README.md
@@ -10,3 +10,5 @@ Packages are split in three categories
- adapted: local fork if for some reason I'm not happy with the
existing package on AUR. I really try hard to keep it empty and
contribute upstream. :-)
+- archlinuxaba: modified PKGBUILDs for building packages for
+ archlinuxaba repo
diff --git a/archlinuxaba/bareos/PKGBUILD b/archlinuxaba/bareos/PKGBUILD
new file mode 100644
index 0000000..3b899bc
--- /dev/null
+++ b/archlinuxaba/bareos/PKGBUILD
@@ -0,0 +1,710 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Michael Spradling <mike@mspradling.com>
+
+pkgbase='bareos'
+
+pkgname=("${pkgbase}-common"
+ "${pkgbase}-bconsole"
+ "${pkgbase}-database-common"
+ "${pkgbase}-database-postgresql"
+ "${pkgbase}-database-tools"
+# "${pkgbase}-devel"
+ "${pkgbase}-director"
+ "${pkgbase}-storage-fifo"
+ "${pkgbase}-tools"
+ "${pkgbase}-filedaemon"
+ "${pkgbase}-storage"
+ "${pkgbase}-storage-tape"
+ "${pkgbase}-director-python-plugin"
+ "${pkgbase}-filedaemon-python-plugin"
+ "${pkgbase}-storage-python-plugin"
+ "${pkgbase}-webui")
+
+pkgver=21.1.2
+pkgrel=1.0
+arch=(x86_64 i486 i686 pentium4 armv6h armv7h aarch64)
+groups=('bareos')
+pkgdesc="Bareos - Backup Archiving REcovery Open Sourced"
+url="http://www.bareos.org"
+license=('AGPL3')
+_pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'jansson=2.14'
+ 'libacl.so=1'
+ 'libpam.so=0'
+ 'libpq.so=5'
+ 'libreadline.so=8'
+ 'lzo=2.10'
+ 'openssl=1.1.1.o'
+ 'python2=2.7.18'
+ 'zlib=1:1.2.12'
+)
+_pinned_dependencies_libmariadbclient=(
+ 'libmariadb.so=3'
+)
+makedepends=(systemd acl attr bash cmake lsb-release python "${_pinned_dependencies[@]}")
+makedepends_x86_64=(ceph "${_pinned_dependencies_libmariadbclient[@]}")
+makedepends_i686=("${_pinned_dependencies_libmariadbclient[@]}")
+makedepends_pentium4=("${_pinned_dependencies_libmariadbclient[@]}")
+makedepends_armv6h=("${_pinned_dependencies_libmariadbclient[@]}")
+makedepends_armv7h=("${_pinned_dependencies_libmariadbclient[@]}")
+makedepends_aarch64=(ceph "${_pinned_dependencies_libmariadbclient[@]}")
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/$pkgbase/$pkgbase/archive/Release/$pkgver.tar.gz"
+'xattr.patch'
+'check-if-bareos-backup-is-running'
+)
+sha512sums=('acdc787ff828add93c81b2b7d293dec90f2aa22aa3aee3002662bd30e88dc0dc58b753bb63ca7c111fac6c7eeea888938236c1169f92ed6cec27941036c7b6b1'
+ 'c535f89866816669208d56e21ffb13f70aa962e578847bc7bcc76a3e8ad54b252c8e09b745b500064d6f02cb5497cb81b62dd1c156d2e907c393aaa091aa5f0e'
+ '0235763891f368c13931f0fc43e3ae2d7ec796b7ef35896b6b9c048345d539308abe4a9bafda4e95221a89231d2f373ac3cfc2098d572d4068a1c068d27452f6'
+)
+
+prepare() {
+ cd $pkgbase-Release-$pkgver
+ patch -p1 -i ../xattr.patch
+}
+
+build() {
+ cd $pkgbase-Release-$pkgver
+ mkdir build
+ cd build
+
+ cmake .. \
+ -Dprefix=/usr \
+ -Dsbindir=/usr/bin \
+ -Dsysconfdir=/etc \
+ -Dconfdir=/etc/$pkgbase \
+ -Dworkingdir=/etc/$pkgbase \
+ -Dlocalstatedir=/ \
+ -Dlibdir=/usr/lib/$pkgbase \
+ -Dmandir=/usr/share/man \
+ -Ddisable-conio=yes \
+ -Ddynamic-cats-backends=yes \
+ -Ddynamic-storage-backends=yes \
+ -Dpython=yes \
+ -Dopenssl=yes \
+ -Ddisable-rpath=yes \
+ -Dpostgresql=yes \
+ -Dndmp=no \
+ -Dhostname='XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX' \
+ -Ddir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
+ -Dfd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
+ -Dsd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
+ -Dmon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
+ -Dmon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
+ -Dmon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
+ -Dbasename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \
+ -Dlogdir=/var/log/$pkgbase \
+ -Ddir-user=$pkgbase \
+ -Ddir-group=$pkgbase \
+ -Dsd-user=$pkgbase \
+ -Dsd-group=$pkgbase \
+ -Dfd-user=root \
+ -Dpid-dir=/run/bareos \
+ -Dfd-group=root \
+ -Dconfigtemplatedir=/usr/share/$pkgbase/config \
+ -Dworking-dir=/var/lib/$pkgbase \
+ -Dplugindir=/usr/lib/$pkgbase/plugins \
+ -Dscriptdir=/usr/lib/$pkgbase/scripts \
+ -Dbackenddir=/usr/lib/$pkgbase/backends \
+ -Darchivedir=/var/lib/$pkgbase/storage \
+ -Dbsrdir=/var/lib/$pkgbase \
+ -Dsubsys-dir=/run/$pkgbase \
+ -Dsystemd=yes
+
+ make
+ make DESTDIR="$srcdir/install" install
+
+ # Currently upstream systemd file does not automatically create run directory
+ for _daemon in 'dir' 'fd' 'sd'; do
+ sed -i '
+ /^StandardOutput=syslog$/d
+ /\[Service\]/a RuntimeDirectory=bareos/'"${_daemon}"'
+ s@^\(WorkingDirectory=\).*$@\1/run/bareos/'"${_daemon}"'@
+ s@^\(PIDFile=\).*/\([^/]\+\)$@\1/run/bareos/'"${_daemon}"'/\2@
+ ' "$srcdir/bareos-Release-$pkgver/core/platforms/systemd/bareos-${_daemon}.service"
+ done
+
+ sed -i '1 a PID Directory = /run/bareos/dir' \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/director/bareos-dir.conf"
+ sed -i '1 a PID Directory = /run/bareos/sd' \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/storage/bareos-sd.conf"
+ sed -i '1 a PID Directory = /run/bareos/fd' \
+ "$srcdir/install/usr/share/bareos/config/bareos-fd.d/client/myself.conf"
+ find "$srcdir/install/usr/share/bareos/config" -type f \
+ -exec sed -i 's@/usr/local/bin/@/usr/bin/@g' {} \;
+}
+
+package_bareos-common() {
+ # Matches bareos-common.install.in
+ pkgdesc="${pkgdesc} - Common files"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'jansson=2.14'
+ 'libacl.so=1'
+ 'lzo=2.10'
+ 'openssl=1.1.1.o'
+ 'zlib=1:1.2.12'
+ )
+ depends=('bash' "${_pinned_dependencies[@]}")
+ install=bareos-common.install
+
+# are these really 'common'?
+# usr/lib/bareos/libbareoslmdb.so
+# usr/lib/bareos/libbareossd.so
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos"/libbareos.so* \
+ "$srcdir/install/usr/lib/bareos"/libbareosfind.so* \
+ "$srcdir/install/usr/lib/bareos"/libbareoslmdb.so* \
+ "$srcdir/install/usr/lib/bareos"/libbareossd.so* \
+ "$srcdir/install/usr/lib/bareos"/libbareosfastlz.so* \
+ -t "$pkgdir/usr/lib/bareos"
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/scripts/bareos-config" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+ install -Dm644 \
+ "$srcdir/install/usr/lib/bareos/scripts/bareos-config-lib.sh" \
+ "$srcdir/install/usr/lib/bareos/scripts/btraceback.gdb" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bsmtp" \
+ "$srcdir/install/usr/bin/btraceback" \
+ -t "$pkgdir/usr/bin"
+
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man1/bsmtp.1" \
+ -t "$pkgdir/usr/share/man/man1/"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/btraceback.8" \
+ -t "$pkgdir/usr/share/man/man8/"
+
+ install -dm755 "$pkgdir/var/lib/bareos"
+ install -dm750 "$pkgdir/etc/bareos"
+ install -dm755 "$pkgdir/run/bareos"
+}
+
+package_bareos-bconsole() {
+ pkgdesc="${pkgdesc} - Admin Tool (CLI)"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'jansson=2.14'
+ 'libreadline.so=8'
+ )
+ depends=("bareos-common=$pkgver" "${_pinned_dependencies[@]}")
+ groups+=('bareos-client')
+ install=bareos-bconsole.install
+
+ backup=('etc/bareos/bconsole.conf')
+
+ install -Dm640 "$srcdir/install/usr/share/bareos/config/bconsole.conf" \
+ -t "$pkgdir/etc/bareos"
+ install -Dm755 "$srcdir/install/usr/bin/bconsole" \
+ -t "$pkgdir/usr/bin"
+ install -Dm644 "$srcdir/install/usr/share/man/man1/bconsole.1" \
+ -t "$pkgdir/usr/share/man/man1"
+ chmod -R o-rx "$pkgdir/etc/bareos"
+}
+
+package_bareos-database-common() {
+ pkgdesc="${pkgdesc} - Generic abstration libs and tools for sql catalog"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ )
+ depends=("bareos-common=$pkgver" 'libcap' 'lzo' 'zlib' 'openssl' 'bash' 'jansson' "${_pinned_dependencies[@]}")
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos"/libbareoscats.so* \
+ "$srcdir/install/usr/lib/bareos"/libbareossql.so* \
+ -t "$pkgdir/usr/lib/bareos"
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/scripts/create_bareos_database" \
+ "$srcdir/install/usr/lib/bareos/scripts/drop_bareos_database" \
+ "$srcdir/install/usr/lib/bareos/scripts/drop_bareos_tables" \
+ "$srcdir/install/usr/lib/bareos/scripts/grant_bareos_privileges" \
+ "$srcdir/install/usr/lib/bareos/scripts/make_bareos_tables" \
+ "$srcdir/install/usr/lib/bareos/scripts/update_bareos_tables" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/versions.map" \
+ -t "$pkgdir/usr/lib/bareos/scripts/ddl"
+}
+
+package_bareos-database-postgresql() {
+ pkgdesc="${pkgdesc} - Libs and tools for postgresql catalog"
+ provides=("bareos-database=$pkgver")
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'libpq.so=5'
+ )
+ depends=("bareos-common=$pkgver" "bareos-database-common=$pkgver" "${_pinned_dependencies[@]}")
+ install='bareos-database-postgresql.install'
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/backends/libbareoscats-postgresql.so" \
+ -t "$pkgdir/usr/lib/bareos/backends"
+ install -Dm644 \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/drops/postgresql.sql" \
+ -t "$pkgdir/usr/lib/bareos/scripts/ddl/drops"
+ install -Dm644 \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/grants/postgresql-change_owner.dbconfig-template.sql" \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/grants/postgresql-readonly.sql" \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/grants/postgresql.sql" \
+ -t "$pkgdir/usr/lib/bareos/scripts/ddl/grants"
+ install -Dm644 \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/creates/postgresql.sql" \
+ -t "$pkgdir/usr/lib/bareos/scripts/ddl/creates"
+ install -Dm644 \
+ "$srcdir/install/usr/lib/bareos/scripts/ddl/updates/"*".sql" \
+ -t "$pkgdir/usr/lib/bareos/scripts/ddl/updates"
+}
+
+package_bareos-database-tools() {
+ pkgdesc="${pkgdesc} - CLI tools with database dpendencies (dbcheck, bscan)"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'jansson=2.14'
+ 'openssl=1.1.1.o'
+ )
+ depends=("bareos-common=$pkgver" "bareos-database-common=$pkgver" "${_pinned_dependencies[@]}")
+
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bareos-dbcheck" \
+ "$srcdir/install/usr/bin/bscan" \
+ -t "$pkgdir/usr/bin"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/bareos-dbcheck.8" \
+ "$srcdir/install/usr/share/man/man8/bscan.8" \
+ -t "$pkgdir/usr/share/man/man8"
+}
+
+#package_bareos-devel() {
+# pkgdesc="${pkgdesc} - Devel headers"
+# arch=(any)
+# # TODO
+# install -d $pkgdir/usr/include/bareos
+#}
+
+package_bareos-director() {
+ pkgdesc="${pkgdesc} - Director daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'jansson=2.14'
+ 'libpam.so=0'
+ 'openssl=1.1.1.o'
+ )
+ depends=("bareos-common=$pkgver" "bareos-database=$pkgver" "bareos-database-common=$pkgver" 'bash' "${_pinned_dependencies[@]}")
+ install=bareos-director.install
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/scripts/delete_catalog_backup" \
+ "$srcdir/install/usr/lib/bareos/scripts/make_catalog_backup" \
+ "$srcdir/install/usr/lib/bareos/scripts/make_catalog_backup.pl" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+ install -Dm644 \
+ "$srcdir/install/usr/lib/bareos/scripts/query.sql" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+
+ backup=(
+ 'etc/bareos/bareos-dir.d/catalog/MyCatalog.conf'
+ 'etc/bareos/bareos-dir.d/client/bareos-fd.conf'
+ 'etc/bareos/bareos-dir.d/console/bareos-mon.conf'
+ 'etc/bareos/bareos-dir.d/director/bareos-dir.conf'
+ 'etc/bareos/bareos-dir.d/fileset/Catalog.conf'
+ 'etc/bareos/bareos-dir.d/fileset/LinuxAll.conf'
+ 'etc/bareos/bareos-dir.d/fileset/SelfTest.conf'
+ 'etc/bareos/bareos-dir.d/fileset/Windows All Drives.conf'
+ 'etc/bareos/bareos-dir.d/job/backup-bareos-fd.conf'
+ 'etc/bareos/bareos-dir.d/job/BackupCatalog.conf'
+ 'etc/bareos/bareos-dir.d/job/RestoreFiles.conf'
+ 'etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf'
+ 'etc/bareos/bareos-dir.d/messages/Daemon.conf'
+ 'etc/bareos/bareos-dir.d/messages/Standard.conf'
+ 'etc/bareos/bareos-dir.d/pool/Differential.conf'
+ 'etc/bareos/bareos-dir.d/pool/Full.conf'
+ 'etc/bareos/bareos-dir.d/pool/Incremental.conf'
+ 'etc/bareos/bareos-dir.d/pool/Scratch.conf'
+ 'etc/bareos/bareos-dir.d/profile/operator.conf'
+ 'etc/bareos/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf'
+ 'etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf'
+ 'etc/bareos/bareos-dir.d/storage/File.conf'
+ )
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/catalog/MyCatalog.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/catalog"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/client/bareos-fd.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/client"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/console/bareos-mon.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/console"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/director/bareos-dir.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/director"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/fileset/Catalog.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/fileset/LinuxAll.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/fileset/SelfTest.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/fileset/Windows All Drives.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/fileset"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/job/backup-bareos-fd.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/job/BackupCatalog.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/job/RestoreFiles.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/job"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/jobdefs/DefaultJob.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/jobdefs"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/messages/Daemon.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/messages/Standard.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/messages"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/pool/Differential.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/pool/Full.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/pool/Incremental.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/pool/Scratch.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/pool"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/profile/operator.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/profile"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/schedule/WeeklyCycleAfterBackup.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/schedule/WeeklyCycle.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/schedule"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/storage/File.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/storage"
+
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bareos-dir" \
+ -t "$pkgdir/usr/bin"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/bareos-dir.8" \
+ "$srcdir/install/usr/share/man/man8/bareos.8" \
+ -t "$pkgdir/usr/share/man/man8"
+
+ install -Dm644 \
+ "$srcdir/bareos-Release-$pkgver/core/platforms/systemd/bareos-dir.service" \
+ -t "$pkgdir/usr/lib/systemd/system/"
+ chmod -R o-rx "$pkgdir/etc/bareos"
+}
+
+package_bareos-storage-fifo() {
+ pkgdesc="${pkgdesc} - FIFO support for storage daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ )
+ depends=("bareos-storage=$pkgver" 'libcap' 'openssl' 'jansson' 'lzo' "${_pinned_dependencies[@]}")
+ install=bareos-storage-fifo.install
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/backends/libbareossd-fifo.so" \
+ -t "$pkgdir/usr/lib/bareos/backends"
+ backup=(
+ 'etc/bareos/bareos-dir.d/storage/NULL.conf.example'
+ 'etc/bareos/bareos-sd.d/device/NULL.conf.example'
+ )
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/storage/NULL.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/storage"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/device/NULL.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/device"
+ chmod -R o-rx "$pkgdir/etc/bareos"
+}
+
+package_bareos-tools() {
+ pkgdesc="${pkgdesc} - CLI tools (bcopy, bextract, bls, bregeq, bwild)"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ )
+ depends=("bareos-common=$pkgver" "${_pinned_dependencies[@]}")
+
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bregex" \
+ "$srcdir/install/usr/bin/bwild" \
+ "$srcdir/install/usr/bin/bcopy" \
+ "$srcdir/install/usr/bin/bextract" \
+ "$srcdir/install/usr/bin/bls" \
+ "$srcdir/install/usr/bin/bpluginfo" \
+ -t "$pkgdir/usr/bin"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man1/bwild.1" \
+ "$srcdir/install/usr/share/man/man1/bregex.1" \
+ -t "$pkgdir/usr/share/man/man1"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/bcopy.8" \
+ "$srcdir/install/usr/share/man/man8/bextract.8" \
+ "$srcdir/install/usr/share/man/man8/bls.8" \
+ "$srcdir/install/usr/share/man/man8/bpluginfo.8" \
+ -t "$pkgdir/usr/share/man/man8"
+}
+
+package_bareos-filedaemon() {
+ pkgdesc="${pkgdesc} - File daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'jansson=2.14'
+ 'zlib=1:1.2.12'
+ )
+ depends=("bareos-common=$pkgver" "${_pinned_dependencies[@]}")
+ groups+=('bareos-client')
+ install=bareos-filedaemon.install
+
+ backup=(
+ 'etc/bareos/bareos-fd.d/client/myself.conf'
+ 'etc/bareos/bareos-fd.d/director/bareos-dir.conf'
+ 'etc/bareos/bareos-fd.d/director/bareos-mon.conf'
+ 'etc/bareos/bareos-fd.d/messages/Standard.conf'
+ )
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-fd.d/client/myself.conf" \
+ -t "$pkgdir/etc/bareos/bareos-fd.d/client"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-fd.d/director/bareos-dir.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-fd.d/director/bareos-mon.conf" \
+ -t "$pkgdir/etc/bareos/bareos-fd.d/director"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-fd.d/messages/Standard.conf" \
+ -t "$pkgdir/etc/bareos/bareos-fd.d/messages"
+
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bareos-fd" \
+ "$srcdir/check-if-bareos-backup-is-running" \
+ -t "$pkgdir/usr/bin"
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/plugins/bpipe-fd.so" \
+ -t "$pkgdir/usr/lib/bareos/plugins"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/bareos-fd.8" \
+ -t "$pkgdir/usr/share/man/man8"
+ install -Dm644 \
+ "$srcdir/bareos-Release-$pkgver/core/platforms/systemd/bareos-fd.service" \
+ -t "$pkgdir/usr/lib/systemd/system"
+ chmod -R o-rx "$pkgdir/etc/bareos"
+}
+
+package_bareos-storage() {
+ pkgdesc="${pkgdesc} - Storage daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ )
+ depends=("bareos-common=$pkgver" 'lzo' 'jansson' 'openssl' 'libcap' "${_pinned_dependencies[@]}")
+ install=bareos-storage.install
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/plugins/autoxflate-sd.so" \
+ -t "$pkgdir/usr/lib/bareos/plugins"
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/scripts/disk-changer" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+ backup=(
+ 'etc/bareos/bareos-sd.d/device/FileStorage.conf'
+ 'etc/bareos/bareos-sd.d/director/bareos-dir.conf'
+ 'etc/bareos/bareos-sd.d/director/bareos-mon.conf'
+ 'etc/bareos/bareos-sd.d/messages/Standard.conf'
+ 'etc/bareos/bareos-sd.d/storage/bareos-sd.conf'
+ )
+ install -Dm644 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/device/FileStorage.conf" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/device"
+ install -Dm644 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/director/bareos-dir.conf" \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/director/bareos-mon.conf" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/director"
+ install -Dm644 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/messages/Standard.conf" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/messages"
+ install -Dm644 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/storage/bareos-sd.conf" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/storage"
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bareos-sd" \
+ -t "$pkgdir/usr/bin"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/bareos-sd.8" \
+ -t "$pkgdir/usr/share/man/man8"
+ install -Dm644 \
+ "$srcdir/bareos-Release-$pkgver/core/platforms/systemd/bareos-sd.service" \
+ -t "$pkgdir/usr/lib/systemd/system"
+ install -dm750 "$pkgdir/var/lib/bareos/storage"
+ chmod -R o-rx "$pkgdir/etc/bareos"
+}
+
+package_bareos-storage-tape() {
+ pkgdesc="${pkgdesc} - Tape support for storage daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ )
+ depends=("bareos-common=$pkgver" "bareos-storage=$pkgver" 'libcap' 'bash' 'openssl' 'jansson' 'lzo' "${_pinned_dependencies[@]}")
+ install=bareos-storage-tape.install
+ backup=(
+ 'etc/bareos/mtx-changer.conf'
+ 'etc/bareos/bareos-dir.d/storage/Tape.conf.example'
+ 'etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf.example'
+ 'etc/bareos/bareos-sd.d/device/tapedrive-0.conf.example'
+ )
+ install -Dm640 \
+ "$srcdir/install/etc/bareos/mtx-changer.conf" \
+ -t "$pkgdir/etc/bareos"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-dir.d/storage/Tape.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/storage"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/autochanger/autochanger-0.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/autochanger"
+ install -Dm640 \
+ "$srcdir/install/usr/share/bareos/config/bareos-sd.d/device/tapedrive-0.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-sd.d/device"
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/backends/libbareossd-gentape.so" \
+ "$srcdir/install/usr/lib/bareos/backends/libbareossd-tape.so" \
+ -t "$pkgdir/usr/lib/bareos/backends"
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/scripts/mtx-changer" \
+ -t "$pkgdir/usr/lib/bareos/scripts"
+ install -Dm644 \
+ "$srcdir/install/usr/share/man/man8/bscrypto.8" \
+ "$srcdir/install/usr/share/man/man8/btape.8" \
+ -t "$pkgdir/usr/share/man/man8"
+ install -Dm755 \
+ "$srcdir/install/usr/bin/bscrypto" \
+ "$srcdir/install/usr/bin/btape" \
+ -t "$pkgdir/usr/bin"
+ chmod -R o-rx "$pkgdir/etc/bareos"
+}
+
+package_bareos-director-python-plugin() {
+ pkgdesc="${pkgdesc} - Python plugin for director daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'python2=2.7.18'
+ )
+ depends=("bareos-common=$pkgver" "bareos-director=$pkgver" 'libcap' 'jansson' 'lzo' 'python' "${_pinned_dependencies[@]}")
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/plugins/python-dir.so" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosDirWrapper.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosDirPluginBaseclass.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/bareos-dir-class-plugin.py" \
+ -t "$pkgdir/usr/lib/bareos/plugins"
+}
+
+package_bareos-filedaemon-python-plugin() {
+ pkgdesc="${pkgdesc} - Python plugin for file daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'python2=2.7.18'
+ )
+ depends=("bareos-common=$pkgver" "bareos-filedaemon=$pkgver" 'python' "${_pinned_dependencies[@]}" 'libcap' 'lzo' 'jansson')
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/plugins/python-fd.so" \
+ "$srcdir/install/usr/lib/bareos/plugins/bareos-fd-local-fileset.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosFdPluginBaseclass.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosFdPluginLocalFileset.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosFdWrapper.py" \
+ -t "$pkgdir/usr/lib/bareos/plugins"
+}
+
+package_bareos-storage-python-plugin() {
+ pkgdesc="${pkgdesc} - Python plugin for storage daemon"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ 'gcc-libs=12.1.0'
+ 'glibc>=2.31'
+ 'python2=2.7.18'
+ )
+ depends=("bareos-common=$pkgver" "bareos-storage=$pkgver" 'lzo' 'python' 'libcap' 'jansson' "${_pinned_dependencies[@]}")
+
+ install -Dm755 \
+ "$srcdir/install/usr/lib/bareos/plugins/python-sd.so" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosSdPluginBaseclass.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/BareosSdWrapper.py" \
+ "$srcdir/install/usr/lib/bareos/plugins/bareos-sd-class-plugin.py" \
+ -t "$pkgdir/usr/lib/bareos/plugins"
+}
+
+package_bareos-webui() {
+ arch=('any')
+ pkgdesc="${pkgdesc} - Webui (Bareos web administration)"
+ local _pinned_dependencies
+ _pinned_dependencies=(
+ )
+ depends=('php' 'php-fpm' 'jansson')
+ optdepend=('nginx' 'apache')
+ backup=('etc/bareos-webui/directors.ini'
+ 'etc/bareos-webui/configuration.ini'
+ 'etc/bareos/bareos-dir.d/console/admin.conf.example'
+ 'etc/bareos/bareos-dir.d/profile/webui-admin.conf')
+
+ install -dm755 \
+ "$pkgdir/etc" \
+ "$pkgdir/usr/share/webapps"
+ mv \
+ "$srcdir/install/usr/local/share/bareos-webui" \
+ "$pkgdir/usr/share/webapps/"
+ mv \
+ "$srcdir/install/etc/bareos-webui" \
+ "$pkgdir/etc/"
+
+ install -Dm644 \
+ "$srcdir/install/etc/httpd/conf.d/bareos-webui.conf" \
+ -t "$pkgdir/etc/httpd/conf.d/extra"
+ install -Dm644 \
+ "$srcdir/install/etc/bareos/bareos-dir.d/console/admin.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/console"
+ install -Dm644 \
+ "$srcdir/install/etc/bareos/bareos-dir.d/profile/webui-admin.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/profile"
+}
+
+makedepends+=(
+ $(
+ for _pn in "${pkgname[@]}"; do
+ (
+ eval "$(
+ declare -f "package_${_pn}" \
+ | sed '
+ s/^\s*_pinned_dependencies=(\(.*\));\?$/echo \1/
+ t
+ /\[ "${CARCH}" /!d
+ s/return/exit/
+ '
+ )"
+ ) \
+ | tr ' ' '\n' \
+ | tr -d '"'"'"
+ done \
+ | sort -u
+ )
+)
diff --git a/archlinuxaba/bareos/bareos-bconsole.install b/archlinuxaba/bareos/bareos-bconsole.install
new file mode 100644
index 0000000..e78060c
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-bconsole.install
@@ -0,0 +1,11 @@
+## arg 1: the new package version
+post_install() {
+ /usr/lib/bareos/scripts/bareos-config initialize_local_hostname
+ /usr/lib/bareos/scripts/bareos-config initialize_passwords
+
+ chown -R bareos:bareos /etc/bareos
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/archlinuxaba/bareos/bareos-common.install b/archlinuxaba/bareos/bareos-common.install
new file mode 100644
index 0000000..4261570
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-common.install
@@ -0,0 +1,31 @@
+# arg 1: the new package version
+pre_install() {
+ # Create User/Group
+ getent group bareos > /dev/null || groupadd --system bareos
+ getent passwd bareos > /dev/null || useradd --system --gid bareos \
+ --home-dir /var/lib/bareos --no-create-home bareos
+
+}
+
+# arg 1: the new package version
+post_install() {
+ chown bareos:bareos /var/lib/bareos/
+ chown bareos:bareos /run/bareos/
+ #chown bareos:bareos /var/log/bareos/
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ pre_install
+}
+
+post_upgrade() {
+ post_install
+}
+
+# arg 1: the old package version
+post_remove() {
+ getent passwd bareos > /dev/null && userdel bareos
+ rm -f /etc/bareos/.rndpwd
+}
diff --git a/archlinuxaba/bareos/bareos-database-mysql.install b/archlinuxaba/bareos/bareos-database-mysql.install
new file mode 100644
index 0000000..dcfdf04
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-database-mysql.install
@@ -0,0 +1,24 @@
+yellow='\e[0;33m'
+coloroff='\e[0m'
+
+# arg 0: the new package version
+post_install() {
+ echo -e "${yellow}NOTE: Please see documentation (section 2.4.2) to setup database:${coloroff}"
+ #echo -e "${yellow} http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-400002.4.2${coloroff}"
+ echo -e "${yellow} http://download.bareos.org/bareos/release/17.2/documentation/html/bareos-manual-main-reference.html#QQ2-1-47${coloroff}"
+
+}
+
+# arg 0: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ #echo -e "${yellow}NOTE: Please see documentation (section) 3.1.2 to update database${coloroff}"
+ #echo -e "${yellow} http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-450003.1.2${coloroff}"
+ echo -e "${yellow}NOTE: Please see documentation (section) 4.2.2 to update database${coloroff}"
+ echo -e "${yellow} http://download.bareos.org/bareos/release/17.2/documentation/html/bareos-manual-main-reference.html#x1-710004.2.2${coloroff}"
+}
+
+# arg 0: the old package version
+post_remove() {
+ echo -e "${yellow}NOTE: To remove all traces of bareos please delete the bareos database.${coloroff}"
+}
diff --git a/archlinuxaba/bareos/bareos-database-postgresql.install b/archlinuxaba/bareos/bareos-database-postgresql.install
new file mode 100644
index 0000000..dcfdf04
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-database-postgresql.install
@@ -0,0 +1,24 @@
+yellow='\e[0;33m'
+coloroff='\e[0m'
+
+# arg 0: the new package version
+post_install() {
+ echo -e "${yellow}NOTE: Please see documentation (section 2.4.2) to setup database:${coloroff}"
+ #echo -e "${yellow} http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-400002.4.2${coloroff}"
+ echo -e "${yellow} http://download.bareos.org/bareos/release/17.2/documentation/html/bareos-manual-main-reference.html#QQ2-1-47${coloroff}"
+
+}
+
+# arg 0: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ #echo -e "${yellow}NOTE: Please see documentation (section) 3.1.2 to update database${coloroff}"
+ #echo -e "${yellow} http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-450003.1.2${coloroff}"
+ echo -e "${yellow}NOTE: Please see documentation (section) 4.2.2 to update database${coloroff}"
+ echo -e "${yellow} http://download.bareos.org/bareos/release/17.2/documentation/html/bareos-manual-main-reference.html#x1-710004.2.2${coloroff}"
+}
+
+# arg 0: the old package version
+post_remove() {
+ echo -e "${yellow}NOTE: To remove all traces of bareos please delete the bareos database.${coloroff}"
+}
diff --git a/archlinuxaba/bareos/bareos-director.install b/archlinuxaba/bareos/bareos-director.install
new file mode 100644
index 0000000..b464fee
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-director.install
@@ -0,0 +1,19 @@
+## arg 1: the new package version
+post_install() {
+ /usr/lib/bareos/scripts/bareos-config initialize_local_hostname
+ /usr/lib/bareos/scripts/bareos-config initialize_passwords
+
+ chown -R bareos:bareos /etc/bareos
+
+ /usr/lib/bareos/scripts/bareos-config initialize_database_driver
+ /usr/lib/bareos/scripts/bareos-config apply_dbconfig_settings
+
+ #for dir in /etc/bareos/bareos-dir-export/ /etc/bareos/bareos-dir-export/client; do
+ #chown bareos:bareos "$dir"
+ #chmod 750 "$dir"
+ #done
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/archlinuxaba/bareos/bareos-filedaemon.install b/archlinuxaba/bareos/bareos-filedaemon.install
new file mode 100644
index 0000000..d88a620
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-filedaemon.install
@@ -0,0 +1,11 @@
+## arg 1: the new package version
+post_install() {
+ /usr/lib/bareos/scripts/bareos-config initialize_local_hostname
+ /usr/lib/bareos/scripts/bareos-config initialize_passwords
+
+ chown -R bareos:bareos /etc/bareos
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/archlinuxaba/bareos/bareos-storage-fifo.install b/archlinuxaba/bareos/bareos-storage-fifo.install
new file mode 100644
index 0000000..8d57d95
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-storage-fifo.install
@@ -0,0 +1,8 @@
+## arg 1: the new package version
+post_install() {
+ chown -R bareos:bareos /etc/bareos
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/archlinuxaba/bareos/bareos-storage-tape.install b/archlinuxaba/bareos/bareos-storage-tape.install
new file mode 100644
index 0000000..8d57d95
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-storage-tape.install
@@ -0,0 +1,8 @@
+## arg 1: the new package version
+post_install() {
+ chown -R bareos:bareos /etc/bareos
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/archlinuxaba/bareos/bareos-storage.install b/archlinuxaba/bareos/bareos-storage.install
new file mode 100644
index 0000000..8833363
--- /dev/null
+++ b/archlinuxaba/bareos/bareos-storage.install
@@ -0,0 +1,14 @@
+## arg 1: the new package version
+post_install() {
+ /usr/lib/bareos/scripts/bareos-config initialize_local_hostname
+ /usr/lib/bareos/scripts/bareos-config initialize_passwords
+
+ chown -R bareos:bareos /etc/bareos
+ chown bareos:bareos /var/lib/bareos/storage/
+
+ /usr/lib/bareos/scripts/bareos-config setup_sd_user
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/archlinuxaba/bareos/check-if-bareos-backup-is-running b/archlinuxaba/bareos/check-if-bareos-backup-is-running
new file mode 100755
index 0000000..bc3d2e1
--- /dev/null
+++ b/archlinuxaba/bareos/check-if-bareos-backup-is-running
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+if [ $# -ne 0 ]; then
+ >&2 echo 'check-if-bareos-backup-is-running: too many arguments'
+ exit 2
+fi
+
+if cat /proc/net/tcp* \
+| awk '{print $2 " " $3}' \
+| grep -vw '\(000000000000000000000000\)\?00000000:0000' \
+| tr ' ' '\n' \
+| grep -F : \
+| cut -d: -f2 \
+| grep -qxiF '238F'; then
+ >&2 echo 'bareos-fd is connected to bareos-sd'
+ exit 1
+else
+ >&2 echo 'bareos-fd is not connected to bareos-sd'
+fi
diff --git a/archlinuxaba/bareos/xattr.patch b/archlinuxaba/bareos/xattr.patch
new file mode 100644
index 0000000..47294da
--- /dev/null
+++ b/archlinuxaba/bareos/xattr.patch
@@ -0,0 +1,21 @@
+--- a/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h 2020-12-16 08:46:16.000000000 +0100
++++ b/core/src/droplet/libdroplet/include/droplet/cdmi/crcmodel.h 2021-01-09 21:50:10.506666487 +0100
+@@ -79,7 +79,6 @@
+ #ifndef DONE_STYLE
+
+ typedef unsigned long ulong;
+-typedef unsigned bool;
+ typedef unsigned char* p_ubyte_;
+
+ # ifndef TRUE
+@@ -107,8 +107,8 @@
+ int cm_width; /* Parameter: Width in bits [8,32]. */
+ ulong cm_poly; /* Parameter: The algorithm's polynomial. */
+ ulong cm_init; /* Parameter: Initial register value. */
+- bool cm_refin; /* Parameter: Reflect input bytes? */
+- bool cm_refot; /* Parameter: Reflect output CRC? */
++ _Bool cm_refin; /* Parameter: Reflect input bytes? */
++ _Bool cm_refot; /* Parameter: Reflect output CRC? */
+ ulong cm_xorot; /* Parameter: XOR this to output CRC. */
+
+ ulong cm_reg; /* Context: Context during execution. */
diff --git a/archlinuxaba/mtop/.SRCINFO b/archlinuxaba/mtop/.SRCINFO
new file mode 100644
index 0000000..4d40b65
--- /dev/null
+++ b/archlinuxaba/mtop/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Wed May 31 10:45:24 UTC 2017
+pkgbase = mtop
+ pkgdesc = MySQL top (monitor and examine slow queries)
+ pkgver = 0.6.6
+ pkgrel = 4
+ url = "http://mtop.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = perl-dbd-mysql
+ depends = perl-curses
+ backup = etc/mtoprc
+ source = http://downloads.sourceforge.net/project/mtop/mtop/v0.6.6/mtop-0.6.6.tar.gz
+ source = mtoprc
+ sha256sums = 2e7fc09511d2d0f130da1f52bf85fcfeea0be2cc3aa3d93b88498605c0281d74
+ sha256sums = 88709b23b3edfb5ec52a88af76cfad422c1fd0f6d9c773b8c9a2516de2b2ecc5
+
+pkgname = mtop
+
diff --git a/archlinuxaba/mtop/PKGBUILD b/archlinuxaba/mtop/PKGBUILD
new file mode 100644
index 0000000..05d7b34
--- /dev/null
+++ b/archlinuxaba/mtop/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Christian Hesse <mail@eworm.de>
+
+pkgname=mtop
+pkgver=0.6.6
+pkgrel=4.0
+pkgdesc='MySQL top (monitor and examine slow queries)'
+arch=('i686' 'x86_64')
+url='"http://mtop.sourceforge.net/'
+license=('GPL')
+depends=('perl-dbd-mysql' 'perl-curses')
+backup=('etc/mtoprc')
+source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ 'mtoprc')
+sha256sums=('2e7fc09511d2d0f130da1f52bf85fcfeea0be2cc3aa3d93b88498605c0281d74'
+ '88709b23b3edfb5ec52a88af76cfad422c1fd0f6d9c773b8c9a2516de2b2ecc5')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+ /usr/bin/perl Makefile.PL --prefix=/usr
+
+ make
+}
+
+check() (
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+
+ make test
+)
+
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make install INSTALLDIRS="vendor" DESTDIR="${pkgdir}"
+
+ install -D -m0755 "${srcdir}/mtoprc" "${pkgdir}/etc/mtoprc"
+}
+
diff --git a/archlinuxaba/mtop/mtoprc b/archlinuxaba/mtop/mtoprc
new file mode 100644
index 0000000..4a0cd5d
--- /dev/null
+++ b/archlinuxaba/mtop/mtoprc
@@ -0,0 +1,3 @@
+--dbuser=root
+--password=
+--seconds=1
diff --git a/archlinuxaba/nagircbot/.SRCINFO b/archlinuxaba/nagircbot/.SRCINFO
new file mode 100644
index 0000000..8941fe4
--- /dev/null
+++ b/archlinuxaba/nagircbot/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = nagircbot
+ pkgdesc = IRC bot announcing Nagios status
+ pkgver = 0.0.33
+ pkgrel = 6
+ url = https://www.vanheusden.com/nagircbot/
+ arch = i686
+ arch = pentium4
+ arch = x86_64
+ license = GPL
+ depends = openssl
+ source = https://www.vanheusden.com/nagircbot/nagircbot-0.0.33.tgz
+ sha512sums = 1e4d69cef4a425e8540ff408688cf7899c04098ec47acbd6da601f48e01f808958982e7d8a1519934bd5aa895fe0f8dedc51d80460f85097355d5bdea79fd708
+
+pkgname = nagircbot
diff --git a/archlinuxaba/nagircbot/PKGBUILD b/archlinuxaba/nagircbot/PKGBUILD
new file mode 100644
index 0000000..0254545
--- /dev/null
+++ b/archlinuxaba/nagircbot/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+pkgname=nagircbot
+pkgver=0.0.33
+pkgrel=6
+arch=('i686' 'pentium4' 'x86_64')
+pkgdesc='IRC bot announcing Nagios status'
+url='https://www.vanheusden.com/nagircbot/'
+source=("https://www.vanheusden.com/$pkgname/$pkgname-$pkgver.tgz")
+sha512sums=('1e4d69cef4a425e8540ff408688cf7899c04098ec47acbd6da601f48e01f808958982e7d8a1519934bd5aa895fe0f8dedc51d80460f85097355d5bdea79fd708')
+license=(GPL)
+depends=(openssl)
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -Dm755 nagircbot -t "$pkgdir/usr/bin"
+ install -Dm644 license.txt -t "$pkgdir/usr/share/licenses/$pkgname"
+}
diff --git a/archlinuxaba/pacman-mirrorlist32/PKGBUILD b/archlinuxaba/pacman-mirrorlist32/PKGBUILD
new file mode 100644
index 0000000..d04d0f0
--- /dev/null
+++ b/archlinuxaba/pacman-mirrorlist32/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Florian Pritz <bluewind@xinu.at>
+# Contributor: Dan McGee <dan@archlinux.org>
+
+pkgname=pacman-mirrorlist32
+pkgver=20220227
+pkgrel=1
+pkgdesc="Arch Linux mirror list for use by pacman"
+arch=('any')
+url="https://www.archlinux32.org/mirrorlist/"
+license=('GPL')
+backup=(etc/pacman.d/mirrorlist32)
+source=(mirrorlist)
+
+# NOTE on building this package:
+# * Go to the trunk/ directory
+# * Run bash -c ". PKGBUILD; updatelist"
+# * Update the checksums, update pkgver
+# * Build the package
+
+updatelist() {
+ rm -f mirrorlist
+ curl -o mirrorlist https://archlinux.org/mirrorlist/all/
+}
+
+package() {
+ mkdir -p "$pkgdir/etc/pacman.d"
+ install -m644 "$srcdir/mirrorlist" "$pkgdir/etc/pacman.d/mirrorlist32"
+}
+
+md5sums=('4d128b619e8a091c03bf4d9afc98ce82')
+sha256sums=('09192974301b9bc282a39be1a0e5f5abbb24724e11d18a7fe0737f07b198e12d')
+# Maintainer: Erich Eckner <deep42thought@archlinux32.org>
+sha256sums=('14f12aae9207b813d398a12952556a7dcadc0ce6e1fba9598d7886048103ef51')
+md5sums=('9786c52a2711a5560a3ce3c2c0234d2e')
diff --git a/archlinuxaba/pacman-mirrorlist32/mirrorlist b/archlinuxaba/pacman-mirrorlist32/mirrorlist
new file mode 100644
index 0000000..5b0a458
--- /dev/null
+++ b/archlinuxaba/pacman-mirrorlist32/mirrorlist
@@ -0,0 +1,43 @@
+##
+## Arch Linux repository mirrorlist for i686
+## Generated on 2022-03-18
+##
+
+## Belarus
+#Server = http://mirror.datacenter.by/pub/archlinux32/$arch/$repo
+#Server = https://mirror.datacenter.by/pub/archlinux32/$arch/$repo
+
+## France
+#Server = http://archlinux32.agoctrl.org/$arch/$repo
+#Server = https://archlinux32.agoctrl.org/$arch/$repo
+
+## Germany
+#Server = http://de.mirror.archlinux32.org/$arch/$repo
+#Server = https://de.mirror.archlinux32.org/$arch/$repo
+#Server = http://mirror.archlinux32.org/$arch/$repo
+#Server = https://mirror.archlinux32.org/$arch/$repo
+## note: you need to resolve via openNIC (or similar) to access the next mirror
+#Server = http://mirror.archlinux32.oss/$arch/$repo
+
+## Greece
+#Server = http://gr.mirror.archlinux32.org/$arch/$repo
+
+## Poland
+#Server = http://mirror.juniorjpdj.pl/archlinux32/$arch/$repo
+#Server = https://mirror.juniorjpdj.pl/archlinux32/$arch/$repo
+
+## Russia
+#Server = http://mirror.yandex.ru/archlinux32/$arch/$repo
+#Server = https://mirror.yandex.ru/archlinux32/$arch/$repo
+
+## Switzerland
+#Server = https://archlinux32.andreasbaumann.cc/$arch/$repo
+#Server = http://archlinux32.andreasbaumann.cc/$arch/$repo
+
+## United States
+#Server = https://32.arlm.tyzoid.com/$arch/$repo
+#Server = https://mirror.math.princeton.edu/pub/archlinux32/$arch/$repo
+#Server = http://mirror.math.princeton.edu/pub/archlinux32/$arch/$repo
+#Server = https://mirror.clarkson.edu/archlinux32/$arch/$repo
+#Server = http://mirror.clarkson.edu/archlinux32/$arch/$repo
+#Server = https://mirror.bradiceanu.net/archlinux32/$arch/$repo
diff --git a/archlinuxaba/pacman-mirrorlist32/update-list b/archlinuxaba/pacman-mirrorlist32/update-list
new file mode 100644
index 0000000..2223f9b
--- /dev/null
+++ b/archlinuxaba/pacman-mirrorlist32/update-list
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+cd "${0%/*}"
+
+sed -i '
+ 1i ##\
+## Arch Linux repository mirrorlist for i686\
+## Generated on '"$(date +%F)"'\
+##\
+
+ 1,/^$/d
+' mirrorlist
+
+sed -i '
+ /^[^#]/d
+' PKGBUILD
+
+printf "pkgver=%s\n" "$(date '+%Y%m%d')" >> PKGBUILD
+for sum_type in sha256 md5; do
+ printf "%ssums=('%s')\n" \
+ "${sum_type}" \
+ "$(
+ ${sum_type}sum mirrorlist | \
+ awk '{print $1}'
+ )" >> PKGBUILD
+done
diff --git a/archlinuxaba/pacman-mirrorlist32/upgpkg b/archlinuxaba/pacman-mirrorlist32/upgpkg
new file mode 100644
index 0000000..29a9952
--- /dev/null
+++ b/archlinuxaba/pacman-mirrorlist32/upgpkg
@@ -0,0 +1,4 @@
+upgpkg_pre_upgrade() {
+ updatelist
+ _newpkgver="$(date +%Y%m%d)"
+}
diff --git a/archlinuxaba/tinc/PKGBUILD b/archlinuxaba/tinc/PKGBUILD
new file mode 100644
index 0000000..31fcc78
--- /dev/null
+++ b/archlinuxaba/tinc/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
+# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
+# Contributor: helios
+# Contributor: Lothar Gesslein
+# Contributor: Dominik George <nik@naturalnet.de>
+
+pkgname=tinc
+pkgver=1.0.36
+pkgrel=1
+
+pkgdesc="VPN (Virtual Private Network) daemon"
+url="https://www.tinc-vpn.org/"
+arch=('x86_64')
+license=('GPL')
+
+depends=('lzo' 'openssl' 'zlib')
+
+source=(https://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz{,.sig})
+
+md5sums=('535b58ee026ec9551954dcc6ed56edca'
+ 'SKIP')
+validpgpkeys=('D62BDD168EFBE48BC60E8E234A6084B9C0D71F4A')
+
+build() {
+ cd tinc-$pkgver
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=/usr/bin \
+ --with-systemd=/usr/lib/systemd/system
+ make
+}
+
+package() {
+ cd tinc-$pkgver
+
+ make DESTDIR="$pkgdir/" install
+ install -dm755 "$pkgdir"/usr/share/tinc/examples
+ cp -a doc/sample-config/. "$pkgdir"/usr/share/tinc/examples/
+ find "$pkgdir"/usr/share/tinc/examples -type f -exec chmod 644 {} +
+ find "$pkgdir"/usr/share/tinc/examples -type d -exec chmod 755 {} +
+}
diff --git a/maintained/check_ssl_cert b/maintained/check_ssl_cert
-Subproject eadb2deb4e2ba6b3044d062dabcff076210ecf2
+Subproject 5f940b63cf978fcd8d32ac25d6bf4b0f6b3fc11
diff --git a/maintained/newsboat-og b/maintained/newsboat-og
-Subproject 39a0923d3bf09ac315abb2185da6d55d42d0293
+Subproject d4af73fbf859568adf1b17447ebe0fdac600ab0
diff --git a/maintained/pacman-static b/maintained/pacman-static
new file mode 160000
+Subproject 7ad7a3c377d17a984390d76012639bc626e5f6f
diff --git a/maintained/pdfalto b/maintained/pdfalto
new file mode 160000
+Subproject b6a53b48c3e8edac787b4c290140bd15225213d
diff --git a/maintained/thruk b/maintained/thruk
-Subproject afcbcc2abf45bad9b50c821be0f3343c8396613
+Subproject 48fd6d4fa46e2e66e90ac3d65c515b7bfac91fd