commit:     4f9b633db556b1e0eec81fb835b0ea9c07001b0e
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 20 12:35:14 2021 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Fri Aug 20 12:35:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f9b633d

app-backup/bareos: cleanup 17.2 (EOL)

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 app-backup/bareos/Manifest                  |   1 -
 app-backup/bareos/bareos-17.2.10.ebuild     | 358 ----------------------------
 app-backup/bareos/files/bareos-dir.confd-16 |  17 --
 app-backup/bareos/files/bareos-dir.service  |  13 -
 app-backup/bareos/files/bareos-fd.confd-16  |   7 -
 app-backup/bareos/files/bareos-fd.service   |  12 -
 app-backup/bareos/files/bareos-sd.confd-16  |  10 -
 app-backup/bareos/files/bareos-sd.service   |  12 -
 8 files changed, 430 deletions(-)

diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest
index 54825eab2ce..4fc2c693c6b 100644
--- a/app-backup/bareos/Manifest
+++ b/app-backup/bareos/Manifest
@@ -1,4 +1,3 @@
-DIST bareos-17.2.10.tar.gz 4190783 BLAKE2B 
d2deb9368438b5281ea36768b80cc15840135a77a19952daa895c4e30ee6ad231d9ecf28a6d860bd372eb08c1c34f9f827843745c87f465d3a59ab048aecc001
 SHA512 
3e145627a08927790deb8f75e5167e6e69710733eb1866a93adb34617c274c2b51145a6b1253388784f67bc4886fec7fbb423893a36d377bb96334a2dc7768f2
 DIST bareos-18.2.10.tar.gz 10558902 BLAKE2B 
ffeac4169131dfc28ec0c9cd9816962492a920b3309ba41a48eec37641fc35027e5f1d1f7d9bf3a7fc2ce2982899e991f4d846f42852e7fbf0643090cccf7096
 SHA512 
2c31029fdcabe26d36d5aab5ed91686bb0b497eef707ca8fbf82a72a62259651aae4a7516a8812141f6a8e0e2de97e16e5f008d11bb1e483f176f67397e5f69e
 DIST bareos-19.2.9.tar.gz 12886739 BLAKE2B 
93b01a71e0824efc8a82c62107de03a0e6df23f600e005c9a98f5f0e541b13c4181dbb11b79fdd2a6f144e1cdbc25a95b1b310576bd3b79721f757c652881626
 SHA512 
b480a9a8dd459b8af3ab353bc5de2f8d1498d5754416972990add8cc6c8ea40462f6bde01ae92ca23f91c96d8ac2e6daf1dae085de80f021d52c5c87dc9a103e
 DIST bareos-20.0.2.tar.gz 13333946 BLAKE2B 
f035fc8b98bf176bd675895b459ac78fa43575a686af11d5c43ff6b86451894d9aaa53600f87253da29dac06271c01bb269777284d903001821918405499e536
 SHA512 
f3a0f481a2c9b3a422f4db3e094587c97fe10e2ea5e7a8ba44e9971b0a11746ae4ad598ea469d5c8ec0dfb962e4104c00931397905aebbf3e22af49834043994

diff --git a/app-backup/bareos/bareos-17.2.10.ebuild 
b/app-backup/bareos/bareos-17.2.10.ebuild
deleted file mode 100644
index bcf92fecb1c..00000000000
--- a/app-backup/bareos/bareos-17.2.10.ebuild
+++ /dev/null
@@ -1,358 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-inherit desktop systemd
-
-DESCRIPTION="Featureful client/server network backup suite"
-HOMEPAGE="http://www.bareos.org/";
-SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> 
${P}.tar.gz"
-RESTRICT="mirror"
-
-LICENSE="AGPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson 
lmdb
-       logwatch mysql ndmp +postgres rados rados-striper readline scsi-crypto
-       sql-pooling sqlite ssl static +storage-daemon tcpd vim-syntax"
-REQUIRED_USE="!clientonly? ( || ( mysql postgres sqlite ) )"
-
-DEPEND="
-       !app-backup/bacula
-       acct-group/${PN}
-       cephfs? ( sys-cluster/ceph )
-       rados? ( sys-cluster/ceph )
-       rados-striper? ( >=sys-cluster/ceph-0.94.2 )
-       glusterfs? ( sys-cluster/glusterfs )
-       lmdb? ( dev-db/lmdb )
-       dev-libs/gmp:0
-       !clientonly? (
-               acct-user/${PN}
-               postgres? ( dev-db/postgresql:*[threads] )
-               mysql? ( dev-db/mysql-connector-c:0= )
-               sqlite? ( dev-db/sqlite:3 )
-               director? (
-                       virtual/mta
-                       jansson? ( dev-libs/jansson )
-               )
-       )
-       fastlz? ( dev-libs/bareos-fastlzlib )
-       logwatch? ( sys-apps/logwatch )
-       tcpd? ( sys-apps/tcp-wrappers )
-       readline? ( sys-libs/readline:0 )
-       static? (
-               acl? ( virtual/acl[static-libs] )
-               sys-libs/zlib[static-libs]
-               dev-libs/lzo[static-libs]
-               sys-libs/ncurses:=[static-libs]
-               ssl? (
-                       !gnutls? (
-                               dev-libs/openssl:0=[static-libs]
-                       )
-                       gnutls? ( net-libs/gnutls[static-libs] )
-               )
-       )
-       !static? (
-               acl? ( virtual/acl )
-               dev-libs/lzo
-               ssl? (
-                       !gnutls? (
-                               dev-libs/openssl:0=
-                       )
-                       gnutls? ( net-libs/gnutls )
-               )
-               sys-libs/ncurses:=
-               sys-libs/zlib
-       )
-       "
-RDEPEND="${DEPEND}
-       !clientonly? (
-               storage-daemon? (
-                       sys-block/mtx
-                       app-arch/mt-st
-               )
-       )
-       vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
-
-REQUIRED_USE="static? ( clientonly )"
-
-S=${WORKDIR}/${PN}-Release-${PV}
-
-pkg_setup() {
-       use mysql && export mydbtypes+="mysql"
-       use postgres && export mydbtypes+=" postgresql"
-       use sqlite && export mydbtypes+=" sqlite"
-}
-
-src_prepare() {
-       # adjusts default configuration files for several binaries
-       # to /etc/bareos/<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; do
-               sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' 
"${f}" \
-                       || die "sed on ${f} failed"
-       done
-       popd >&/dev/null || die
-
-       # enables default database driver in catalog
-       pushd src/defaultconfigs/bareos-dir.d/catalog >&/dev/null || die
-               sed -i -e 's/#dbdriver/dbdriver/' -e '/XXX_REPLACE/d' 
MyCatalog.conf.in \
-                       || die "sed on MyCatalog.conf.in failed"
-       popd >&/dev/null || die
-
-       # bug 466690 Use CXXFLAGS instead of CFLAGS
-       sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
-
-       # do not strip binaries
-       for d in filed console dird stored; do
-               sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
-       done
-
-       eapply_user
-}
-
-src_configure() {
-       local myconf=''
-
-       addpredict /var/lib/logrotate.status
-
-       if use clientonly; then
-               myconf="${myconf} \
-                       $(use_enable clientonly client-only) \
-                       $(use_enable !static libtool) \
-                       $(use_enable static static-cons) \
-                       $(use_enable static static-fd)"
-       fi
-
-       myconf="${myconf} \
-               $(use_with X x) \
-               $(use_enable acl) \
-               $(use_enable ipv6) \
-               $(use_enable ndmp) \
-               $(use_enable readline) \
-               $(use_enable !readline conio) \
-               $(use_enable scsi-crypto) \
-               $(use_enable sql-pooling) \
-               $(use_with fastlz) \
-               $(use_with mysql) \
-               $(use_with postgres postgresql) \
-               $(use_with readline) \
-               $(use_with sqlite sqlite3) \
-               $(use sqlite || echo "--without-sqlite3") \
-               $(use_with ssl openssl) \
-               $(use_with tcpd tcp-wrappers) \
-               $(use_enable lmdb) \
-               $(use_with glusterfs) \
-               $(use_with rados) \
-               $(use_with rados-striper) \
-               $(use_with cephfs) \
-               $(use_with jansson) \
-               "
-
-       econf \
-               --without-python \
-               --with-pid-dir=/run/bareos \
-               --with-subsys-dir=/run/lock/subsys \
-               --with-working-dir=/var/lib/bareos \
-               --with-logdir=/var/log/bareos \
-               --with-scriptdir=/usr/libexec/bareos \
-               --with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
-               --with-backenddir=/usr/$(get_libdir)/${PN}/backend \
-               --with-dir-user=bareos \
-               --with-dir-group=bareos \
-               --with-sd-user=root \
-               --with-sd-group=bareos \
-               --with-fd-user=root \
-               --with-fd-group=bareos \
-               --with-sbin-perm=0755 \
-               --with-systemd \
-               --with-db-password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | 
fold -w 16 | head -n 1` \
-               --enable-dynamic-cats-backends \
-               --enable-dynamic-storage-backends \
-               --enable-batch-insert \
-               --disable-afs \
-               --host=${CHOST} \
-               ${myconf}
-}
-
-src_compile() {
-       # Make build log verbose (bug #447806)
-       emake NO_ECHO=""
-}
-
-src_install() {
-       emake DESTDIR="${D}" install
-       newicon src/images/bareos_logo_shadow.png bareos.png
-
-       # 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,startmysql,stopmysql}
-       rm -f "${D}"/usr/sbin/bareos
-
-       # remove upstream init scripts
-       rm -f "${D}"/etc/init.d/bareos-*
-
-       # 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}"/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}"/scripts/logwatch >&/dev/null || die
-                       emake DESTDIR="${D}" install
-                       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
-       use ndmp && dodoc README.NDMP
-       use scsi-crypto && dodoc README.scsicrypto
-
-       # vim-files
-       if use vim-syntax; then
-               insinto /usr/share/vim/vimfiles/syntax
-               doins scripts/bareos.vim
-               insinto /usr/share/vim/vimfiles/ftdetect
-               newins scripts/filetype.vim bareos_ft.vim
-       fi
-
-       # setup init scripts
-       myscripts="bareos-fd"
-       if ! use clientonly; then
-               if use director; then
-                       myscripts="${myscripts} bareos-dir"
-               fi
-               if use storage-daemon; then
-                       myscripts="${myscripts} bareos-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-16 "${T}/${script}".confd || 
die "failed to copy ${script}.confd"
-               cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die 
"failed to copy ${script}.initd"
-
-               # now set the database dependency for the director init script
-               case "${script}" in
-                       bareos-dir)
-                               sed -i -e "s:%databasetypes%:${mydbtypes}:" 
"${T}/${script}".confd || die
-                               ;;
-                       *)
-                               ;;
-               esac
-
-               # install init script and config
-               newinitd "${T}/${script}".initd "${script}"
-               newconfd "${T}/${script}".confd "${script}"
-       done
-
-       # install systemd unit files
-       use director && systemd_dounit "${FILESDIR}"/bareos-dir.service
-       use storage-daemon && systemd_dounit "${FILESDIR}"/bareos-sd.service
-       systemd_dounit "${FILESDIR}"/bareos-fd.service
-
-       # make sure the working directory exists
-       diropts -m0750
-       keepdir /var/lib/bareos
-
-       # make sure bareos group can execute bareos libexec scripts
-       fowners -R root:bareos /usr/libexec/bareos
-}
-
-pkg_postinst() {
-       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:"
-               if use postgres; then
-                       einfo
-                       einfo "For postgresql:"
-                       einfo "  su postgres -c 
'/usr/libexec/bareos/create_bareos_database postgresql'"
-                       einfo "  su postgres -c 
'/usr/libexec/bareos/make_bareos_tables postgresql'"
-                       einfo "  su postgres -c 
'/usr/libexec/bareos/grant_bareos_privileges postgresql'"
-               fi
-               if use mysql; then
-                       einfo
-                       einfo "For mysql:"
-                       einfo
-                       einfo "  Make sure root has direct access to your mysql 
server. You may want to"
-                       einfo "  create a /root/.my.cnf file with"
-                       einfo "    [client]"
-                       einfo "    user=root"
-                       einfo "    password=YourPasswordForAccessingMysqlAsRoot"
-                       einfo "  before running:"
-                       einfo "  /usr/libexec/bareos/create_bareos_database 
mysql"
-                       einfo "  /usr/libexec/bareos/make_bareos_tables mysql"
-                       einfo "  /usr/libexec/bareos/grant_bareos_privileges 
mysql"
-               fi
-               einfo
-       fi
-
-       if use sqlite; then
-               einfo
-               einfo "Be aware that Bareos does not officially support SQLite 
database."
-               einfo "Best use it only for a client-only installation. See Bug 
#445540."
-               einfo
-               einfo "It is strongly recommended to use either postgresql or 
mysql as"
-               einfo "catalog database backend."
-               einfo
-       fi
-}

diff --git a/app-backup/bareos/files/bareos-dir.confd-16 
b/app-backup/bareos/files/bareos-dir.confd-16
deleted file mode 100644
index a11eba90a75..00000000000
--- a/app-backup/bareos/files/bareos-dir.confd-16
+++ /dev/null
@@ -1,17 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# Config file for /etc/init.d/bareos-dir
-
-# Bareos can use more than one catalog database and each one can 
-# be of any supported type.
-# If a database server where you store a bareos catalog
-# is on a different machine, you might want to remove the corresponding
-# type from the rc_need variable.
-rc_need="%databasetypes%"
-
-# Options for the director daemon.
-# The director can be run as a non-root user, however
-# please ensure that this user has proper permissions to
-# access your backup devices.
-DIR_OPTIONS="-u root -g bareos"

diff --git a/app-backup/bareos/files/bareos-dir.service 
b/app-backup/bareos/files/bareos-dir.service
deleted file mode 100644
index 440d3c3be98..00000000000
--- a/app-backup/bareos/files/bareos-dir.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-       Description=Bareos Director
-       After=syslog.target network.target
-       Requires=bareos-sd.service bareos-fd.service
-
-[Install]
-       WantedBy=multi-user.target
-
-[Service]
-       Type=forking
-       User=root
-       ExecStartPre=-/bin/mkdir /run/bareos
-       ExecStart=/usr/sbin/bareos-dir

diff --git a/app-backup/bareos/files/bareos-fd.confd-16 
b/app-backup/bareos/files/bareos-fd.confd-16
deleted file mode 100644
index e3b8a1f576f..00000000000
--- a/app-backup/bareos/files/bareos-fd.confd-16
+++ /dev/null
@@ -1,7 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# Config file for /etc/init.d/bareos-fd
-
-# Options for the file daemon.
-FD_OPTIONS="-u root -g bareos"

diff --git a/app-backup/bareos/files/bareos-fd.service 
b/app-backup/bareos/files/bareos-fd.service
deleted file mode 100644
index 10328609425..00000000000
--- a/app-backup/bareos/files/bareos-fd.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-       Description=Bareos File Daemon
-       After=syslog.target network.target
-
-[Install]
-       WantedBy=multi-user.target
-
-[Service]
-       Type=forking
-       User=root
-       ExecStartPre=-/bin/mkdir /run/bareos
-       ExecStart=/usr/sbin/bareos-fd

diff --git a/app-backup/bareos/files/bareos-sd.confd-16 
b/app-backup/bareos/files/bareos-sd.confd-16
deleted file mode 100644
index 5d377b978dd..00000000000
--- a/app-backup/bareos/files/bareos-sd.confd-16
+++ /dev/null
@@ -1,10 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# Config file for /etc/init.d/bareos-sd
-
-# Options for the storage daemon.
-# The storage daemon can be run as a non-root user, however
-# please ensure that this user has proper permissions to
-# access your backup devices.
-SD_OPTIONS="-u root -g bareos"

diff --git a/app-backup/bareos/files/bareos-sd.service 
b/app-backup/bareos/files/bareos-sd.service
deleted file mode 100644
index 6c617ec6a37..00000000000
--- a/app-backup/bareos/files/bareos-sd.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-        Description=Bareos Storage Daemon
-        After=syslog.target network-online.target
-
-[Install]
-       WantedBy=multi-user.target
-
-[Service]
-       Type=forking
-       User=root
-       ExecStartPre=-/bin/mkdir /run/bareos
-       ExecStart=/usr/sbin/bareos-sd

Reply via email to