summaryrefslogtreecommitdiff
path: root/app-backup
diff options
context:
space:
mode:
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/bacula/bacula-15.0.3-r1.ebuild457
-rw-r--r--app-backup/bacula/bacula-15.0.3-r3.ebuild (renamed from app-backup/bacula/bacula-15.0.3-r2.ebuild)7
-rw-r--r--app-backup/bareos/Manifest2
-rw-r--r--app-backup/bareos/bareos-22.1.8.ebuild434
-rw-r--r--app-backup/bareos/bareos-23.1.5.ebuild439
-rw-r--r--app-backup/borgmatic/Manifest2
-rw-r--r--app-backup/borgmatic/borgmatic-2.0.13.ebuild (renamed from app-backup/borgmatic/borgmatic-2.0.11.ebuild)0
-rw-r--r--app-backup/dar/Manifest1
-rw-r--r--app-backup/dar/dar-2.8.1-r1.ebuild2
-rw-r--r--app-backup/dar/dar-2.8.2.ebuild100
-rw-r--r--app-backup/deja-dup/Manifest1
-rw-r--r--app-backup/deja-dup/deja-dup-44.2.ebuild2
-rw-r--r--app-backup/deja-dup/deja-dup-48.4.ebuild58
-rw-r--r--app-backup/duplicati/Manifest165
-rw-r--r--app-backup/duplicati/duplicati-2.2.0.1.2025.11.09.ebuild (renamed from app-backup/duplicati/duplicati-2.1.0.103_p20241221-r1.ebuild)308
-rw-r--r--app-backup/duplicity/Manifest2
-rw-r--r--app-backup/duplicity/duplicity-3.0.5-r1.ebuild4
-rw-r--r--app-backup/duplicity/duplicity-3.0.6.3-r1.ebuild (renamed from app-backup/duplicity/duplicity-3.0.6.2.ebuild)17
-rw-r--r--app-backup/duplicity/duplicity-3.0.7.ebuild (renamed from app-backup/duplicity/duplicity-3.0.6.3.ebuild)17
-rw-r--r--app-backup/duplicity/duplicity-9999.ebuild17
-rw-r--r--app-backup/rdiff-backup/rdiff-backup-2.2.6.ebuild2
21 files changed, 1197 insertions, 840 deletions
diff --git a/app-backup/bacula/bacula-15.0.3-r1.ebuild b/app-backup/bacula/bacula-15.0.3-r1.ebuild
deleted file mode 100644
index 32e5634de154..000000000000
--- a/app-backup/bacula/bacula-15.0.3-r1.ebuild
+++ /dev/null
@@ -1,457 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit desktop flag-o-matic libtool qmake-utils systemd
-
-MY_PV=${PV/_beta/-b}
-MY_P=${PN}-${MY_PV}
-
-DESCRIPTION="Featureful client/server network backup suite"
-HOMEPAGE="https://www.bacula.org/"
-SRC_URI="https://downloads.sourceforge.net/bacula/${MY_P}.tar.gz"
-
-S=${WORKDIR}/${MY_P}
-
-LICENSE="AGPL-3"
-SLOT="0"
-KEYWORDS="amd64 ~ppc ~sparc x86"
-IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt5 readline selinux +sqlite ssl static tcpd vim-syntax X"
-
-DEPEND="
- !bacula-clientonly? (
- !bacula-nodir? ( virtual/mta )
- postgres? ( dev-db/postgresql:=[threads(+)] )
- mysql? ( || ( dev-db/mysql-connector-c dev-db/mariadb-connector-c ) )
- sqlite? ( dev-db/sqlite:3 )
- )
- dev-libs/gmp:0
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtwidgets:5
- )
- logwatch? ( sys-apps/logwatch )
- readline? ( sys-libs/readline:0 )
- static? (
- dev-libs/lzo[static-libs]
- sys-libs/ncurses:=[static-libs]
- virtual/zlib:=[static-libs]
- acl? ( virtual/acl[static-libs(+)] )
- ssl? (
- dev-libs/openssl:0=[static-libs]
- )
- )
- !static? (
- dev-libs/lzo
- sys-libs/ncurses:=
- virtual/zlib:=
- acl? ( virtual/acl )
- ssl? (
- dev-libs/openssl:0=
- )
- )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- dev-util/patchelf
-"
-RDEPEND="${DEPEND}
- acct-user/bacula
- acct-group/bacula
- !bacula-clientonly? (
- !bacula-nosd? (
- app-arch/mt-st
- sys-block/mtx
- )
- )
- selinux? ( sec-policy/selinux-bacula )
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
-"
-
-REQUIRED_USE="
- !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
- static? ( bacula-clientonly )
-"
-
-# suppress warning wrt 'implicit function declaration' in config logs
-# bug 900663
-QA_CONFIG_IMPL_DECL_SKIP=(
- makedev # designed to check availability in
- # used header file
-)
-
-pkg_setup() {
- #XOR and !bacula-clientonly controlled by REQUIRED_USE
- use mysql && export mydbtype="mysql"
- use postgres && export mydbtype="postgresql"
- use sqlite && export mydbtype="sqlite3"
-
- if use bacula-clientonly && use static && use qt5; then
- ewarn
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag."
- ewarn
- fi
-}
-
-src_prepare() {
- # adjusts default configuration files for several binaries
- # to /etc/bacula/<config> instead of ./<config>
- pushd src >&/dev/null || die
- for f in console/console.c dird/dird.c filed/filed.c \
- stored/bcopy.c stored/bextract.c stored/bls.c \
- stored/bscan.c stored/btape.c stored/stored.c \
- qt-console/main.cpp; do
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
- || die "sed on ${f} failed"
- done
- popd >&/dev/null || die
-
- # bug 466688 drop deprecated categories from Desktop file
- sed -i -e 's/Application;//' scripts/bat.desktop.in || die
-
- # bug 466690 Use CXXFLAGS instead of CFLAGS
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
-
- # drop automatic install of unneeded documentation (for bug 356499)
- eapply -p0 "${FILESDIR}"/7.2.0/${PN}-7.2.0-doc.patch
-
- # bug #310087
- eapply "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
-
- # bug #311161
- eapply -p0 "${FILESDIR}"/9.0.2/${PN}-9.0.2-lib-search-path.patch
-
- # bat needs to respect LDFLAGS and CFLAGS
- eapply -p0 "${FILESDIR}"/9.0.6/${PN}-9.0.6-bat-pro.patch
-
- # tray-monitor needs to respect LDFLAGS and CFLAGS
- eapply -p0 "${FILESDIR}"/tray-monitor-pro.patch
-
- # bug #328701
- eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
-
- eapply -p0 "${FILESDIR}"/${PN}-15.0.2-fix-static.patch
-
- # fix soname in libbaccat.so, see bugs #602952, #790140 and #845126
- eapply "${FILESDIR}/bacula-fix-sonames-new.patch"
-
- # correct library search path for slibtool usage (bug #914389)
- eapply -p0 "${FILESDIR}/${PN}-15.0.2-fix_slibtool.patch"
-
- # do not strip binaries
- sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
- sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
- sed -i -e "s/+= qt$/+= qt nostrip/" \
- src/qt-console/tray-monitor/tray-monitor.pro.in || die
-
- eapply_user
-
- # Fix systemd unit files:
- # bug 497748
- sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
- sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
- # bug 504370
- sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
- # bug 584442 and 504368
- sed -i -e 's/@dir_user@/root/g' platforms/systemd/bacula-dir.service.in || die
-
- # build 'bat' for Qt5
- export QMAKE="$(qt5_get_bindir)"/qmake
-
- # adapt to >=Qt-5.9 (see bug #644566)
- # qmake needs an existing target file to generate install instructions
- sed -i -e 's#bins.files = bat#bins.files = .libs/bat#g' \
- src/qt-console/bat.pro.in || die
- mkdir src/qt-console/.libs || die
- touch src/qt-console/.libs/bat || die
- chmod 755 src/qt-console/.libs/bat || die
-
- # same for tray-monitor (bug #915605)
- sed -i -e 's#bins.files = bac#bins.files = .libs/bac#g' \
- src/qt-console/tray-monitor/tray-monitor.pro.in || die
- mkdir src/qt-console/tray-monitor/.libs || die
- touch src/qt-console/tray-monitor/.libs/bacula-tray-monitor || die
- chmod 755 src/qt-console/tray-monitor/.libs/bacula-tray-monitor || die
-
- eapply -p0 "${FILESDIR}/fix_tray_monitor.patch" || die
-
- # Don't let program install man pages directly
- sed -i -e 's/ manpages//' Makefile.in || die
-
- # correct installation for plugins to mode 0755 (bug #725946)
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/Makefile ||die
- sed -i -e "s/(INSTALL_PROGRAM) /(INSTALL_LIB) /" src/plugins/fd/docker/Makefile ||die
-
- # drop reliance on installed 'which' program (bug #940692)
- eapply "${FILESDIR}"/${PN}-drop-which.patch
-
- # fix bundled libtool (bug 466696)
- # But first move directory with M4 macros out of the way.
- # It is only needed by autoconf and gives errors during elibtoolize.
- mv autoconf/libtool autoconf/libtool1 || die
- elibtoolize
-}
-
-src_configure() {
- # -Werror=lto-type-mismatch
- # bug #940695
- #
- # common datastructures with partial different components for
- # different tools of the backup suite
- filter-lto
-
- local myconf=''
-
- if use bacula-clientonly; then
- myconf="${myconf} \
- $(use_enable bacula-clientonly client-only) \
- $(use_enable !static libtool) \
- $(use_enable static static-cons) \
- $(use_enable static static-fd)"
- else
- myconf="${myconf} \
- $(use_enable !bacula-nodir build-dird) \
- $(use_enable !bacula-nosd build-stored)"
- # bug #311099
- # database support needed by dir-only *and* sd-only
- # build as well (for building bscan, btape, etc.)
- myconf="${myconf}
- --with-${mydbtype}"
- fi
-
- # do not build bat if 'static' clientonly
- if ! use bacula-clientonly || ! use static; then
- myconf="${myconf} \
- $(use_enable qt5 bat)"
- fi
-
- myconf="${myconf} \
- $(use_with X x) \
- $(use_enable batch-insert) \
- $(use_enable !readline conio) \
- $(use_enable readline) \
- $(use_with ssl openssl) \
- $(use_enable ipv6) \
- $(use_enable acl) \
- $(use_with tcpd tcp-wrappers)"
-
- econf \
- --with-pid-dir=/var/run \
- --sysconfdir=/etc/bacula \
- --with-archivedir=/var/lib/bacula/tmp \
- --with-subsys-dir=/var/lock/subsys \
- --with-working-dir=/var/lib/bacula \
- --with-logdir=/var/lib/bacula \
- --with-scriptdir=/usr/libexec/bacula \
- --with-systemd=$(systemd_get_systemunitdir) \
- --with-dir-user=bacula \
- --with-dir-group=bacula \
- --with-sd-user=root \
- --with-sd-group=bacula \
- --with-fd-user=root \
- --with-fd-group=bacula \
- --enable-smartalloc \
- --disable-afs \
- --without-s3 \
- --host=${CHOST} \
- ${myconf}
-}
-
-src_compile() {
- # Make build log verbose (bug #447806)
- emake NO_ECHO=""
-}
-
-src_install() {
- emake DESTDIR="${D}" install
- doicon scripts/bacula.png
- keepdir /var/lib/bacula/tmp
-
- # remove not needed .la files #840957
- find "${ED}" -name '*.la' -delete || die
-
- # install bat icon and desktop file when enabled
- # (for some reason ./configure doesn't pick this up)
- if use qt5 && ! use static ; then
- doicon src/qt-console/images/bat_icon.png
- domenu scripts/bat.desktop
- fi
-
- # remove some scripts we don't need at all
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
-
- # rename statically linked apps
- if use bacula-clientonly && use static ; then
- pushd "${D}"/usr/sbin || die
- mv static-bacula-fd bacula-fd || die
- mv static-bconsole bconsole || die
- popd || die
- fi
-
- # extra files which 'make install' doesn't cover
- if ! use bacula-clientonly; then
- # the database update scripts
- diropts -m0750
- insinto /usr/libexec/bacula/updatedb
- insopts -m0754
- doins "${S}"/updatedb/*
- fperms 0640 /usr/libexec/bacula/updatedb/README
-
- # the logrotate configuration
- # (now unconditional wrt bug #258187)
- diropts -m0755
- insinto /etc/logrotate.d
- insopts -m0644
- newins "${S}"/scripts/logrotate bacula
-
- # the logwatch scripts
- if use logwatch; then
- diropts -m0750
- dodir /usr/share/logwatch/scripts/services
- dodir /usr/share/logwatch/scripts/shared
- dodir /etc/logwatch/conf/logfiles
- dodir /etc/logwatch/conf/services
- pushd "${S}"/scripts/logwatch >&/dev/null || die
- emake DESTDIR="${D}" install
- popd >&/dev/null || die
- fi
- fi
-
- # Install all man pages
- doman "${S}"/manpages/*.[18]
-
- if ! use qt5; then
- rm -vf "${D}"/usr/share/man/man1/bat.1*
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
- fi
-
- if use bacula-clientonly || use bacula-nodir ; then
- rm -vf "${D}"/usr/libexec/bacula/create_*_database
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
- fi
- if use bacula-clientonly || use bacula-nosd; then
- rm -vf "${D}"/usr/libexec/bacula/disk-changer
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler
- fi
-
- # documentation
- dodoc ChangeLog ReleaseNotes SUPPORT
-
- # install examples (bug #457504)
- if use examples; then
- docinto examples/
- dodoc -r examples/*
- fi
-
- # vim-files
- if use vim-syntax; then
- insinto /usr/share/vim/vimfiles/syntax
- doins scripts/bacula.vim
- insinto /usr/share/vim/vimfiles/ftdetect
- newins scripts/filetype.vim bacula_ft.vim
- fi
-
- # setup init scripts
- myscripts="bacula-fd"
- if ! use bacula-clientonly; then
- if ! use bacula-nodir; then
- myscripts="${myscripts} bacula-dir"
- fi
- if ! use bacula-nosd; then
- myscripts="${myscripts} bacula-sd"
- fi
- fi
- for script in ${myscripts}; do
- # copy over init script and config to a temporary location
- # so we can modify them as needed
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
- cp "${FILESDIR}/newscripts/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
-
- # now set the database dependency for the director init script
- case "${script}" in
- bacula-dir)
- case "${mydbtype}" in
- sqlite3)
- # sqlite databases don't have a daemon
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
- ;;
- *)
- # all other databases have daemons
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
- ;;
- esac
- ;;
- *)
- ;;
- esac
-
- # install init script and config
- newinitd "${T}/${script}".initd "${script}"
- newconfd "${T}/${script}".confd "${script}"
- done
-
- systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
-
- # make sure the working directory exists
- diropts -m0750
- keepdir /var/lib/bacula
-
- # make sure bacula group can execute bacula libexec scripts
- fowners -R root:bacula /usr/libexec/bacula
-}
-
-pkg_postinst() {
- if use bacula-clientonly; then
- fowners root:bacula /var/lib/bacula
- else
- fowners bacula:bacula /var/lib/bacula
- fi
-
- einfo
- einfo "A group 'bacula' has been created. Any users you add to this"
- einfo "group have access to files created by the daemons."
- einfo
- einfo "A user 'bacula' has been created. Please see the bacula manual"
- einfo "for information about running bacula as a non-root user."
- einfo
-
- if ! use bacula-clientonly && ! use bacula-nodir; then
- einfo
- einfo "If this is a new install, you must create the ${mydbtype} databases with:"
- einfo " /usr/libexec/bacula/create_${mydbtype}_database"
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
- einfo
-
- ewarn "ATTENTION!"
- ewarn "The format of the database may have changed."
- ewarn "If you just upgraded from a version below 9.0.0 you must run"
- ewarn "'update_bacula_tables' now."
- ewarn "Make sure to have a backup of your catalog before."
- ewarn
- fi
-
- if use sqlite; then
- einfo
- einfo "Be aware that Bacula does not officially support SQLite database anymore."
- einfo "Best use it only for a client-only installation. See Bug #445540."
- einfo
- fi
-
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
- einfo "you have to enable 'USE=qt5'."
- einfo
- einfo "/var/lib/bacula/tmp was configured for archivedir. This dir will be used during"
- einfo "restores, so be sure to set it to an appropriate in dir in the bacula config."
-
- einfo
- einfo "If you adapt the port numbers for baculas components in the config files"
- einfo "make sure to adapt the file names for the pidfile accordingly"
- einfo "(see init.d scripts)."
-}
diff --git a/app-backup/bacula/bacula-15.0.3-r2.ebuild b/app-backup/bacula/bacula-15.0.3-r3.ebuild
index 0e0f138ec937..40587364d857 100644
--- a/app-backup/bacula/bacula-15.0.3-r2.ebuild
+++ b/app-backup/bacula/bacula-15.0.3-r3.ebuild
@@ -17,7 +17,7 @@ S=${WORKDIR}/${MY_P}
LICENSE="AGPL-3"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+KEYWORDS="amd64 ~ppc ~sparc x86"
IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 logwatch mysql postgres qt6 readline selinux +sqlite ssl static tcpd vim-syntax X"
DEPEND="
@@ -30,6 +30,7 @@ DEPEND="
dev-libs/gmp:0
qt6? (
dev-qt/qtbase:6[gui,widgets]
+ !sys-apps/bat
)
logwatch? ( sys-apps/logwatch )
readline? ( sys-libs/readline:0 )
@@ -87,7 +88,7 @@ pkg_setup() {
if use bacula-clientonly && use static && use qt6; then
ewarn
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt6' useflag."
+ ewarn "Building statically linked 'bat' is not supported. Ignoring 'qt6' useflag."
ewarn
fi
}
@@ -154,6 +155,8 @@ src_prepare() {
# build 'bat' for Qt6 (#952935)
eapply -p2 ../${PN}-15.0.3-qt6-gentoo.patch # patch to work with Qt6
+ sed -i -e "s/Qt5Gui/Qt6Gui/g" configure || die # fix check for Qt
+ # during configure phase
export QMAKE="$(qt6_get_bindir)"/qmake
diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest
index f9e89754a853..efb8dbc60fe6 100644
--- a/app-backup/bareos/Manifest
+++ b/app-backup/bareos/Manifest
@@ -1,6 +1,8 @@
DIST bareos-21.1.11.tar.gz 11669843 BLAKE2B 17dfb0b667e6d5e932ff464ecc9f6f5fdf23c694e71fe81848aca38629095b44a8ebee6ad117dd5090e803d3a8a0f6ea9dff47d7760b90a65e11a92b705523e9 SHA512 34ca24352529639b9608fa1bd68bc593b52d9f03d3f6e95ab7be67983bc28fc5a1807a94ea7cc23b4119dfb27ad2c38aedb2899a425edf62afb89884bb8fe644
DIST bareos-22.1.7.tar.gz 14760496 BLAKE2B 4ff502ea07c9c03e351ac4d3adb46051c1bf67eb598ec0eeed4120945d5e43648477af6f5748bb98a2f475a9712874b5858e98b39ef5eace2f2719df6e6948f1 SHA512 64f5a33763ece79ce11c64b0f8135a4f5252ab30224e4c67979caf4d9abf52aa264b6e67e66db0b6c49df9f5f353ae9c988639fcc191d633c0b5ec84ec89db39
+DIST bareos-22.1.8.tar.gz 14769894 BLAKE2B 4273427092edab5feb18ccc812640924c1a21b7dd21c8ffa47d4f449e1619027ed93a3a1b4589dfc9464fe024c5bcc8856539f62d498d1cfd21b6f7518a2abf4 SHA512 afee759140332a6203c96672d1327a73235fd09b47ef0954f604b6a040ca87f3cf223327a4143f42dad1ee49d808d2c404e164420989b1fc91ef977f63980d59
DIST bareos-23.1.3.tar.gz 14009664 BLAKE2B 767796804eb6baa6e108430a8e25de51562a99212537607a43e727702cdc3dfbd2b11365d2efca518d62518970ee53779ff2fa1d369995c4bee5b2478ee689a6 SHA512 bec95f0278a68a7ab6a96e6af97cd7c30af411a2b8eba5aa73fa1f9d33f952d5eb60c79b9d29010ce2a91855edff351d8a7143d4399709769a76925d8909e764
DIST bareos-23.1.4.tar.gz 14014536 BLAKE2B 1458f5c1a5bc1a9163ba63638949b7f7562b6d6e1c730982130043081eb8c942e86fb044b35fcfcc847c42b86f95f80f25c11f4e4200a1a40ad0df119c2146d7 SHA512 abe581a2cc792353770fe503f8037ec70d1a9284f088784b46504a2c39b4262387b20f27181c98b45f62128b8b631fc5f22d48b658f1e6aafb1ca17291728d39
+DIST bareos-23.1.5.tar.gz 14037537 BLAKE2B b0dbc9705e772e6f8ac00dc589cf04a43c849c4324831202c83cddad0ae666d21beeccd450cd98bec89f443c9667021bcbcd83d0f1b79b3ef090edee5281984f SHA512 ecea8add925853df3f9a7ec6eb334ac2cc96abc937a476c30c0fa3508d6a0fbf2a73f7c3fa2945cc2f21631f54ab084a4679fb77d2436390bc6950fb73cd4cea
DIST bareos-24.0.5.tar.gz 13392425 BLAKE2B 942189a1f51795e14602d88566f734dfdf349339fbd39b54239a9ba9aca4840f776724bc206ec470d66f1a2e9c27041249f3a838c6eb6100c183535bfdb62968 SHA512 ab4b179a2a087a961e2dfc26615b5208efb8dd5e2a300d600085ea4244599195fe5db0a31457dc865c38f9e9e1142de1a719aa930f5efd9ee1cd9393c5f1f9a6
DIST bareos-24.0.7.tar.gz 13402073 BLAKE2B 9b1d609cfe4d520042950b5cc672538e8a907a44a74573adf2f90e9009a99147ee85f6fe7f71e0093daa3239e99817a1c030cb7fa54ebb9b6c42916b723c7115 SHA512 79426e652dc6cc0a29dec3b8876fb319371cb53bc235fb3c6c344a46eded20add31181ddc827deeb0e10a9d460327261f7eb9e5f45faf5ca06b45d8bf9cfee6c
diff --git a/app-backup/bareos/bareos-22.1.8.ebuild b/app-backup/bareos/bareos-22.1.8.ebuild
new file mode 100644
index 000000000000..925446ed1719
--- /dev/null
+++ b/app-backup/bareos/bareos-22.1.8.ebuild
@@ -0,0 +1,434 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+CMAKE_WARN_UNUSED_CLI=no
+
+inherit python-any-r1 systemd cmake tmpfiles
+
+if [[ ${PV} == *9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+ S=${WORKDIR}/${PN}-Release-${PV}
+fi
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="https://www.bareos.org/"
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="X acl ceph clientonly +director glusterfs ipv6 lmdb
+ logwatch ndmp readline scsi-crypto split-usr
+ static +storage-daemon systemd tcpd test vim-syntax vmware xattr"
+
+# some tests still fail propably due to missing bits in src_test -> TODO
+RESTRICT="mirror test"
+#RESTRICT="
+# mirror
+# !test? ( test )
+#"
+
+# get cmake variables from core/cmake/BareosSetVariableDefaults.cmake
+DEPEND="
+ !app-backup/bacula
+ acct-group/${PN}
+ !x86? (
+ ceph? ( sys-cluster/ceph )
+ )
+ glusterfs? ( sys-cluster/glusterfs )
+ lmdb? ( dev-db/lmdb )
+ dev-libs/gmp:0
+ !clientonly? (
+ acct-user/${PN}
+ dev-db/postgresql:*[threads(+)]
+ director? (
+ virtual/mta
+ )
+ )
+ logwatch? ( sys-apps/logwatch )
+ ndmp? ( net-libs/rpcsvc-proto )
+ tcpd? ( sys-apps/tcp-wrappers )
+ readline? ( sys-libs/readline:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ dev-libs/jansson:=[static-libs]
+ dev-libs/lzo[static-libs]
+ dev-libs/openssl:0=[static-libs]
+ sys-libs/ncurses:=[static-libs]
+ virtual/zlib:=[static-libs]
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/jansson:=
+ dev-libs/lzo
+ dev-libs/openssl:0=
+ sys-libs/ncurses:=
+ virtual/zlib:=
+ )
+ X? (
+ dev-qt/qtbase:6[widgets]
+ )
+ "
+RDEPEND="${DEPEND}
+ !clientonly? (
+ storage-daemon? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+ "
+
+BDEPEND="
+ ${PYTHON_DEPS}
+ test? (
+ dev-cpp/gtest
+ dev-db/postgresql:*[server,threads(+)]
+ dev-db/mariadb:*[server]
+ )
+"
+
+REQUIRED_USE="
+ static? ( clientonly )
+ x86? ( !ceph )
+"
+
+PATCHES=(
+ # fix gentoo platform support
+ "${FILESDIR}/${PN}-21-cmake-gentoo.patch"
+ "${FILESDIR}/${PN}-22.0.2-werror.patch"
+ "${FILESDIR}/${PN}-21.1.2-no-automagic-ccache.patch"
+)
+
+pkg_pretend() {
+ local active_removed_backend=""
+ if has_version "<app-backup/bareos-21[director,mysql]"; then
+ if grep -qhriE "dbdriver.*=.*mysql" /etc/bareos/; then
+ active_removed_backend=MySQL
+ fi
+ elif has_version "<app-backup/bareos-21[director,sqlite]"; then
+ if grep -qhriE "dbdriver.*=.*sqlite" /etc/bareos/; then
+ active_removed_backend=SQLite
+ fi
+ fi
+ if [[ -n $active_removed_backend ]]; then
+ ewarn
+ ewarn "You are currently using bareos with the $active_removed_backend"
+ ewarn "catalog backend."
+ ewarn
+ ewarn "THIS IS NOT SUPPORTED ANYMORE"
+ ewarn
+ ewarn "Beginning with version 21.0.0 bareos has dropped support for"
+ ewarn "MySQL and SQLite catalog backends."
+ ewarn
+ ewarn "To upgrade to bareos >=21.0.0 you need to migrate to PostgreSQL"
+ ewarn "catalog backend using the 'bareos-dbcopy' tool of your current"
+ ewarn "installation first."
+ ewarn
+ die "current catalog backend not supported anymore"
+ fi
+}
+
+src_test() {
+ # initialze catalog test database
+ initdb -D "${T}"/pgsql || die
+ pg_ctl -w -D "${T}"/pgsql start \
+ -o "-h '' -k '${T}'" || die
+ createuser -h "${T}" bareos || die
+ createdb -h "${T}" --owner bareos bareos || die
+ export PGHOST="${T}"
+
+ # initiale mariadb database for backup tests
+ # $USER must be set and != root
+ export USER=portage
+
+ default
+ cmake_src_test
+
+ pg_ctl -w -D "${T}"/pgsql stop || die
+ rm -rvf "${T}"/pgsql
+}
+
+src_prepare() {
+ # fix missing DESTDIR in symlink creation
+ sed -i '/bareos-symlink-default-db-backend.cmake/d' "${S}/core/src/cats/CMakeLists.txt"
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=()
+
+ cmake_comment_add_subdirectory webui
+
+ if use clientonly; then
+ mycmakeargs+=(
+ -Dclient-only=ON
+ -Dstatic-cons=$(usex static)
+ -Dstatic-fd=$(usex static)
+ )
+ fi
+
+ for useflag in acl ipv6 ndmp scsi-crypto \
+ systemd lmdb; do
+ mycmakeargs+=( -D$useflag=$(usex $useflag) )
+ done
+ if use X; then
+ mycmakeargs+=( -Dtraymonitor=yes )
+ fi
+
+ mycmakeargs+=(
+ -DHAVE_PYTHON=0
+ -Darchivedir=/var/lib/bareos/storage
+ -Dbackenddir=/usr/$(get_libdir)/${PN}/backend
+ -Dbasename="`hostname -s`"
+ -Dbatch-insert=yes
+ -Dbsrdir=/var/lib/bareos/bsr
+ -Dconfdir=/etc/bareos
+ -Dcoverage=no
+ -Ddb_password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1`
+ -Ddir-group=bareos
+ -Ddir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
+ -Ddir-user=bareos
+ -Ddocdir=/usr/share/doc/${PF}
+ -Ddynamic-cats-backends=yes
+ -Ddynamic-storage-backends=yes
+ -Dfd-group=bareos
+ -Dfd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
+ -Dfd-user=root
+ -Dhost=${CHOST}
+ -Dhostname="`hostname -s`"
+ -Dhtmldir=/usr/share/doc/${PF}/html
+ -Dlibdir=/usr/$(get_libdir)
+ -Dlogdir=/var/log/bareos
+ -Dmandir=/usr/share/man
+ -Dmon-dir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
+ -Dmon-fd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
+ -Dmon-sd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
+ -Dopenssl=yes
+ -Dpiddir=/run/bareos
+ -Dplugindir=/usr/$(get_libdir)/${PN}/plugin
+ -Dsbin-perm=0755
+ -Dsbindir=/usr/sbin
+ -Dscriptdir=/usr/libexec/bareos
+ -Dsd-group=bareos
+ -Dsd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
+ -Dsd-user=root
+ -Dsubsysdir=/run/lock/subsys
+ -Dsysconfdir=/etc
+ -Dworkingdir=/var/lib/bareos
+ -Dx=$(usex X)
+ )
+
+ # disable droplet support for now as it does not build with gcc 10
+ # ... and this is a bundled lib, which should have its own package
+ cd core && cmake_comment_add_subdirectory "src/droplet"
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd}
+ rm -f "${D}"/usr/sbin/bareos
+
+ # remove upstream init scripts and systemd units
+ rm -f "${D}"/etc/init.d/bareos-* "${D}"/lib/systemd/system/bareos-*.service
+
+ # remove misc stuff we do not need in production
+ rm -f "${D}"/etc/bareos/bareos-regress.conf
+ rm -f "${D}"/etc/logrotate.d/bareos-dir
+
+ # remove duplicate binaries being installed in /usr/sbin and replace
+ # them by symlinks to not break systems that still use split-usr
+ if use split-usr; then
+ for f in bwild bregex bsmtp bconsole; do
+ rm -f "${D}/usr/sbin/$f" || die
+ ln -s "../bin/$f" "${D}/usr/sbin/$f" || die
+ done
+ fi
+
+ # get rid of py2 stuff
+ rm -rf "$D"/usr/lib64/python2.7 || die
+ rm -f "$D"/usr/lib64/bareos/plugin/python-fd.so || die
+ if ! use vmware; then
+ rm -f "$D"/usr/lib64/bareos/plugin/{BareosFdPluginVMware.py,bareos-fd-vmware.py}
+ fi
+
+ # rename statically linked apps
+ if use clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bareos-fd bareos-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use clientonly; then
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/core/scripts/logrotate bareos
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/core/scripts/logwatch >&/dev/null || die
+
+ into /etc/log.d/scripts/services
+ dobin bareos
+
+ into /etc/log.d/scripts/shared
+ dobin applybareosdate
+
+ insinto /etc/log.d/conf/logfiles
+ newins logfile.bareos.conf bareos.conf
+
+ insinto /etc/log.d/conf/services
+ newins services.bareos.conf bareos.conf
+
+ popd >&/dev/null || die
+ fi
+ fi
+
+ rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
+ if use clientonly || ! use director; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/share/man/man8/bwild.8*
+ rm -vf "${D}"/usr/share/man/man8/bregex.8*
+ rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
+ rm -vf "${D}"/usr/libexec/bareos/create_*_database
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_database
+ rm -vf "${D}"/usr/libexec/bareos/make_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/update_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
+ fi
+ if use clientonly || ! use storage-daemon; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bareos/disk-changer
+ rm -vf "${D}"/usr/libexec/bareos/mtx-changer
+ rm -vf "${D}"/usr/libexec/bareos/dvd-handler
+ rm -vf "${D}"/etc/bareos/mtx-changer.conf
+ fi
+ if ! use scsi-crypto; then
+ rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
+ fi
+
+ # documentation
+ dodoc README.md
+ dodoc core/README.configsubdirectories
+ use glusterfs dodoc core/README.glusterfs
+ use ndmp && dodoc core/README.NDMP
+ use scsi-crypto && dodoc core/README.scsicrypto
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins core/scripts/bareos.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins core/scripts/filetype.vim bareos_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bareos-fd"
+ if ! use clientonly; then
+ if use director; then
+ myscripts+=" bareos-dir"
+ fi
+ if use storage-daemon; then
+ myscripts+=" bareos-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # install init script and config
+ newinitd "${FILESDIR}/${script}-21-r1".initd "${script}"
+ newconfd "${FILESDIR}/${script}-21".confd "${script}"
+ done
+
+ # install systemd unit files
+ if use systemd; then
+ if ! use clientonly; then
+ use director && systemd_newunit "${FILESDIR}"/bareos-dir-21.service bareos-dir.service
+ use storage-daemon && systemd_dounit "${FILESDIR}"/bareos-sd.service
+ fi
+ systemd_dounit "${FILESDIR}"/bareos-fd.service
+ fi
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bareos
+ keepdir /var/lib/bareos/storage
+
+ # set log directory ownership
+ if ! use clientonly; then
+ diropts -m0755 -o bareos -g bareos
+ fi
+ keepdir /var/log/bareos
+
+ newtmpfiles "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
+
+ # make sure bareos group can execute bareos libexec scripts
+ fowners -R root:bareos /usr/libexec/bareos
+}
+
+pkg_postinst() {
+ tmpfiles_process bareos.conf
+
+ if use clientonly; then
+ fowners root:bareos /var/lib/bareos
+ else
+ fowners bareos:bareos /var/lib/bareos
+ fi
+
+ if ! use clientonly && use director; then
+ einfo
+ einfo "If this is a new install, you must create the database:"
+ einfo
+ einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database'"
+ einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables'"
+ einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges'"
+ einfo
+ einfo "or run"
+ einfo
+ einfo " emerge --config app-backup/bareos"
+ einfo
+ einfo "t