diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-02-16 12:59:29 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-02-16 12:59:29 +0000 |
commit | 79599515788b85b18aa655e7b7f8cc05c1bbddd8 (patch) | |
tree | ade7cb031f363fad64c77139dea7aa3d81908537 /app-backup | |
parent | 6bc2e4d7c5906e46a8f275a876ead6ec41aca5bb (diff) |
gentoo resync : 16.02.1018
Diffstat (limited to 'app-backup')
27 files changed, 1058 insertions, 218 deletions
diff --git a/app-backup/Manifest.gz b/app-backup/Manifest.gz Binary files differindex c434f959fa6c..8e3f545df23c 100644 --- a/app-backup/Manifest.gz +++ b/app-backup/Manifest.gz diff --git a/app-backup/backupninja/Manifest b/app-backup/backupninja/Manifest index 5a97429fbbb2..bed171621ffe 100644 --- a/app-backup/backupninja/Manifest +++ b/app-backup/backupninja/Manifest @@ -1,4 +1,3 @@ DIST backupninja-1.0.1.tar.gz 167991 BLAKE2B 736ded9f562e894ec74e78afb9677f61889c18310b5aabe76dab7aafd550653281fc8641b416c022d49062261d67f8e6ed2aeef9c9b7054b3538c5be983bf424 SHA512 24b898526c1efa91cde6b1a0f0f7c0820c7db5b11ea36f458b45a91e94adfc77636421d7ad2245c196999886a06a3be43253e52654bc07423b1ac5571275c580 -EBUILD backupninja-1.0.1-r1.ebuild 610 BLAKE2B ef6cbef8953b4eab113a272b6da06f24b9affaefd3135547b0a20ace6ebb085fbff642fbffee5a34416817dd52220f40abba44e11f8f0260217eb4200c274de2 SHA512 35ccd96ef2fa4d5fca4d675b8f722bc7f0b30ad3e04d9272578271d1cb3202514ecf325f84a76395710fab325f9fa420fa4381a719a3b698c07baed50ece42d0 -EBUILD backupninja-1.0.1.ebuild 551 BLAKE2B 8b190c3dd248dfa3e775c294ec8a5dbb533a847156640beedf4fee4ca5e098c8041969cd51a8a409d3080bed4cec13a2abea353646691ccb5fd9295d27733bd7 SHA512 98be990b26dabd570740bda02d06bb5b63acd633014918b866e58ddf963f002b319858cf03e17aa0dc5ed2a4f386b889c274c7d32885f4f6e6bff6a058aa616b +EBUILD backupninja-1.0.1-r1.ebuild 605 BLAKE2B 2c657be45da26c37910991398a4a791ad0a8e76f466eb88caac0168b2a4b8373de5ca6ebfa850c3ca0d746c0517f9004dd2f683ff307f00544eb4938df50635b SHA512 42dac334eb042c714b93cfd2ac40cfcb079fd78366a431050f8025b51064165f9c9bb3b99cdf86c62f2288d0dcfa399d76819260906033a8479588136f3c46fa MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/app-backup/backupninja/backupninja-1.0.1-r1.ebuild b/app-backup/backupninja/backupninja-1.0.1-r1.ebuild index 793e1f9e1589..71f0667e0d7d 100644 --- a/app-backup/backupninja/backupninja-1.0.1-r1.ebuild +++ b/app-backup/backupninja/backupninja-1.0.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -13,7 +13,7 @@ SRC_URI="https://labs.riseup.net/code/attachments/download/${NODE_NUMBER}/${P}.t LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" RDEPEND="dev-util/dialog" DEPEND="" diff --git a/app-backup/backupninja/backupninja-1.0.1.ebuild b/app-backup/backupninja/backupninja-1.0.1.ebuild deleted file mode 100644 index 52c076b2fd1c..000000000000 --- a/app-backup/backupninja/backupninja-1.0.1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -# This thing change with every release, how idiotic... -NODE_NUMBER=275 - -DESCRIPTION="lightweight, extensible meta-backup system" -HOMEPAGE="http://riseuplabs.org/backupninja/" -SRC_URI="https://labs.riseup.net/code/attachments/download/${NODE_NUMBER}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -RDEPEND="dev-util/dialog" - -DOCS=( AUTHORS FAQ TODO README NEWS ) - -src_prepare() { - default - eautoreconf -} diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest index 027d8e3f767f..634d57d65cb6 100644 --- a/app-backup/bacula/Manifest +++ b/app-backup/bacula/Manifest @@ -36,6 +36,7 @@ DIST bacula-9.0.8.tar.gz 4475511 BLAKE2B be321a2a215cc2b127423cf8d103303957c7064 DIST bacula-9.2.1.tar.gz 4115337 BLAKE2B 17c678bee46c9788d9abf220d0c810f94864f9f1609fc25513b2cf0a11ac584fc2ca4429fa49d7af567d316b92c243900bed21511b59f8976fd230186896c70f SHA512 6b14372fb505a4c5e084b96154c764b20e173504e335813cfffd406eb1739a301a5352047696501a11fcc297381a9fbed6e0e8714ad62998f02edbd9e0ff8d1b DIST bacula-9.2.2.tar.gz 4115575 BLAKE2B affc6efa3543836690e3d89eb37faa2d5066344308dc29a22c491374f04a2fd00bedb57a869d0bcf8a0f58d806bc9f9b9381330c22984ddb4d5acd97b757d2c8 SHA512 390ac0ad205c3694fe02c6842740b188bde0be469d0a9b89388d3f75746c7cca6a536a2386e06a5069c84863f28dae3449250ff71e63b9ff14e8f7b074df1708 DIST bacula-9.4.1.tar.gz 4162956 BLAKE2B f3fdd2ab64dc4fe50210d83a80ce16f36996f6d23bb67326e8bcee97ae9fd83b2dc8a96eabcd86c522c5e1ca5b8923110e97c03be953427a5c5f59140fdea332 SHA512 5e05a939c5f457a121879a6108ce2ac6403dde556b415af4e5013e4f100cf4d878f3d468fd680fa1633a4c8d6ce3d7a6ed351a1600ef780166cd4be9b70191ee +DIST bacula-9.4.2.tar.gz 4163642 BLAKE2B 5b12b44749186fbcd0da4eb97fca304cc8a0152cff87dd9dcf7058452a853a8a58208537496978a213067691cecaa5626e21d3a94438981e12f028a6157d3fb8 SHA512 f8c8f4c788ced1ab846e02656a0a1d9d1b65fe57ae0b888780167ac7e9272e8ca624ef5c41bd44a7454cf518c8e451c2201970b3e4862a99b4290a377da40b0d EBUILD bacula-5.2.13-r7.ebuild 11663 BLAKE2B 77bc96341c0450302e7ede70cbffb446a9aaeeaac012663a4e69f31dcc54b99dde1a79684a4763cfb2368dff5e0f5191973ce374099bd9f8234e823f5f66e909 SHA512 8c660e98f9e45f92535a16a32723077588a922b33c8fabb513a4c36968082002a93fb8f30b24d2ca620516945e48f35954a83b185657dfaa8849ad9200031a50 EBUILD bacula-9.0.6-r4.ebuild 12771 BLAKE2B 0fc64ea5973fb0b00d9c1f3526cf1e152447fd553277f244f72570564d17dccfd7a1ba4c8975f5487c09e128915c89b5da093038d1c1829b5adfecd07f576db0 SHA512 44c3ce89ec455c7e53c5e17f730898f08cda0c696c53d17ce94df8658be35aea7d6a5b4a196a213291cf9f29db306ff6a35edbfe9128835c3299c4695f7261f6 EBUILD bacula-9.0.8-r1.ebuild 12628 BLAKE2B 92cc9de59903df745fc1215366d9fae6ef07bc603d86431374439116ca661fc85f395f1f9de304a50066cdd6f0b6c6bf4f202d31aea456f40f9aefcffdee52b9 SHA512 0c6eec46f9c99e27e591e8b3a61704dc53e02a252a499d06962ca8d559317c4678f3ec5e0dad7577620fdf25c9c566f6c73e9a4980547a5fa8c350b31a43e99c @@ -44,4 +45,5 @@ EBUILD bacula-9.2.2-r1.ebuild 12613 BLAKE2B 73a95b0add3c2154cdf2fa2c680e01b325ce EBUILD bacula-9.2.2.ebuild 12706 BLAKE2B 45820bbe4312c2bd27d63cbb353e35e9e2248c5469b84c4453edb47f97c71e23306b1753ae2df02e86ffb02da21c6f94c9a3a0fb1d70a811ff7a548e63679b4b SHA512 7646a09bf6353023d6bf8d37701fa45c7a01deb5239cf2901f84f1720602df2e81d41adb0f93aa182dcf74ccd844b741ae32ea1736afcf02f5e668a2c14f82a3 EBUILD bacula-9.4.1-r1.ebuild 12731 BLAKE2B 3eba23d53d9a42bf4ae129b4b5ddd34f674d8b55bbbcb39897d6e90db725e1f2300e99b384dfbce92575c12da2083ab87cecb89a3300c756a6ea185b79963d2a SHA512 62c9492cf92335bff829db11df3a2e1d4bb0d07a9b5acce3e60bbb3a914fa445974acffb38a20f8f5d4c98a84c48fa6e8c6af2e6f37f3d8a69cbfb1262e3c172 EBUILD bacula-9.4.1.ebuild 12608 BLAKE2B 7529068f572bb3518e532d0b45c59f48a4a98933954bd795f68044e118ac165752cac760ee8be7c9b25aa49a6a45e398ab313a95488ca5dd44ea082ff89a741b SHA512 16f015f37e0e168a37cdb61e21fa47a732478d401ba96a20ff4d3300977465e349f291ff534c8303a8f76807a2c7967d546d291f5226ddd96ceefbd69ffe483f +EBUILD bacula-9.4.2.ebuild 12625 BLAKE2B 5cb51a6e1193bc4b09c8f1e12b8478a72141a10b4fbf007df10fbeca37453b7e16dce676ff880a4100e528fb2b54ecc447fff521d0d3f2f527f3e76643769235 SHA512 a5ba0538058fb57b2ef07eeaa69953635390d5e142fc53d83fe26e2ee17bf4b370e9f5412c791353107ff3eff191e8ecf05c02305938755c67878932fbb06e76 MISC metadata.xml 696 BLAKE2B 9a24744f1035e27017f140768b70ab4406e80e1eec452968cfa82e7686876d359ac7a90f9c5998356fc9b4170b9132842d3295877cfa6740d6f1d42e804afbcf SHA512 dcf03b8409574b0e4fb43fefc1f24f7ebc096ff04d79beef0bd31714b233f324bec87387cad8f3eb5c08ab972feae82a32702718aaef39255eec07e6e0352875 diff --git a/app-backup/bacula/bacula-9.4.2.ebuild b/app-backup/bacula/bacula-9.4.2.ebuild new file mode 100644 index 000000000000..b342f18eb77c --- /dev/null +++ b/app-backup/bacula/bacula-9.4.2.ebuild @@ -0,0 +1,435 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop libtool qmake-utils systemd user + +MY_PV=${PV/_beta/-b} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Featureful client/server network backup suite" +HOMEPAGE="http://www.bacula.org/" +SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="acl bacula-clientonly bacula-nodir bacula-nosd +batch-insert examples ipv6 libressl logwatch mysql postgres qt5 readline +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/qtsvg:5 + x11-libs/qwt:6 + ) + logwatch? ( sys-apps/logwatch ) + readline? ( sys-libs/readline:0 ) + static? ( + dev-libs/lzo[static-libs] + sys-libs/ncurses:=[static-libs] + sys-libs/zlib[static-libs] + acl? ( virtual/acl[static-libs] ) + ssl? ( + !libressl? ( dev-libs/openssl:0=[static-libs] ) + libressl? ( dev-libs/libressl:0=[static-libs] ) + ) + ) + !static? ( + dev-libs/lzo + sys-libs/ncurses:= + sys-libs/zlib + acl? ( virtual/acl ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) +" +RDEPEND="${DEPEND} + !bacula-clientonly? ( + !bacula-nosd? ( + app-arch/mt-st + sys-block/mtx + ) + ) + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) +" + +REQUIRED_USE=" + !bacula-clientonly? ( ^^ ( mysql postgres sqlite ) ) + static? ( bacula-clientonly ) +" + +S=${WORKDIR}/${MY_P} + +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" + + # create the daemon group and user + if [ -z "$(egetent group bacula 2>/dev/null)" ]; then + enewgroup bacula + einfo + einfo "The group 'bacula' has been created. Any users you add to this" + einfo "group have access to files created by the daemons." + einfo + fi + + if use bacula-clientonly && use static && use qt5; then + ewarn + ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt5' useflag." + ewarn + fi + + if ! use bacula-clientonly; then + if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then + enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw + einfo + einfo "The user 'bacula' has been created. Please see the bacula manual" + einfo "for information about running bacula as a non-root user." + einfo + fi + 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 + + # bug #328701 + eapply -p0 "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch + + eapply -p0 "${FILESDIR}"/9.0.8/${PN}-9.0.8-fix-static.patch + + # fix soname in libbaccat.so bug #602952 + eapply -p0 "${FILESDIR}/bacula-fix-sonames.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 + + # fix file not found error during make depend + eapply -p0 "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch + + 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 + + # fix handling of libressl version + # needs separate handling for <libressl-2.7 and >=libressl2.7 + # (see bug #655520) + if has_version "<dev-libs/libressl-2.7"; then + eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl26.patch + else + eapply -p0 "${FILESDIR}"/9.4.0/${PN}-9.4.0-libressl27.patch + fi + + # Don't let program install man pages directly + rm "${S}"/manpages/Makefile.in || die "Unable to remove man pages Makefile.in" + eapply -p1 "${FILESDIR}/bacula-fix-manpages.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() { + 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 readline readline /usr) \ + $(use_with ssl openssl) \ + $(use_enable ipv6) \ + $(use_enable acl) \ + $(use_with tcpd tcp-wrappers)" + + econf \ + --libdir=/usr/$(get_libdir) \ + --docdir=/usr/share/doc/${PF} \ + --htmldir=/usr/share/doc/${PF}/html \ + --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 + + # 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 + + if ! use qt5; then + rm -vf "${D}"/usr/share/man/man1/bat.1* + fi + rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* + + 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 all man pages + doman "${S}"/manpages/* + + # 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 dependancy 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 + + 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." +} diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest index bb5b98c971ad..80c813638341 100644 --- a/app-backup/bareos/Manifest +++ b/app-backup/bareos/Manifest @@ -1,18 +1,26 @@ AUX bareos-12.4.5-Makefile.patch 924 BLAKE2B ea4e413f5e1ddb5d23aa030e5d7a4e96b23cd987fc86d2958c5275994198f8aa3705b5554e545440f31cfaed45283e34a08aa4e27087d81edc192d1e9884d63f SHA512 f1b5da39d01f6b00851810c6a0cbcda9ac0561fb165054f6f2c4540943b41af9d524a6a8aca1ae87d55fa8624aecf44c3c0db03c2d7c22690a84c16994289eed AUX bareos-12.4.5-bat-ldflags.patch 389 BLAKE2B 9e1d80037755eba2ae47951aa1e603ac3bac1b26f1cbc0681730ab7ba08846f4670989c517bfe02a6b869b880456e992d3e40fd0d7488d63494a547a902c3c24 SHA512 811fd6ffc2a1c4aeef3afd9001fd2bf01c70ef3f75ed6949ec6b064a9e6ce7a4893ffe464e5c9c67e33fdf92e00b0601500930165891b70d403d31a2ee347434 +AUX bareos-cmake-gentoo.patch 516 BLAKE2B 685734517fc166413250782ed35445761b19efd9b7ffedb8436a71f5aea84e38633c61318c914169d3ea40daf0c45e3fe229136cdb1a98dc087cd56b91a4b1d2 SHA512 c0d89844a66f851f556e00faf42e85157c744f1547b37d95f5dd0c58a0ab62fb60a8aead87546ea37f5f9d0eb247a3e1a715d042aafe9b422a3eefe37518b743 +AUX bareos-cmake-rados.patch 718 BLAKE2B be3c5822a122fb9d6a5bdd6cb388e3edbb59c6e2aafb9e16991bf0c62ab2dbdf0757de88382318bbd9f6b0fb7d48de11c9d0cd6ab276b6fb6c4f61f8b756237a SHA512 46b6ced3bcdf7e6a72029803a60775cfc06b2313004214dfe7d7ffa64f954fb80cb93f7374b967b33b4035aac8fce4412f13833aa57a83e4ce98c503f147918e +AUX bareos-cmake-symlink-default-db-backend.patch 779 BLAKE2B edb161632215ed8bdc75cae27d54f603787d5f3cbfcf19e180cb7234f661c35527c24dfef38b7c455fd28a46539eae94d157c4777549381c0db64c5fe531d35d SHA512 f5c07d611b7e9f5dc85e0e1440b5bcf43f80a6a6a3b7aead0b88a7a924c9cc8c42bad016d81a0ad55baecc5888e850a516bc86b52a65ddf460c3059fe7f299ee +AUX bareos-dir.confd 640 BLAKE2B 0c80793f66ef9f3b46995a2dcf150b3d7a8a9f53ff97896887314ab31d6082949ac3db2c260b2fc7551c035183c31558cc853f768eca5b0bebdfa483280780b5 SHA512 af71699773ade63c98e2016f48b4d108f29a419a7533444245df4507a7ad7b807948986f9f850ce1f9af58fb445ecd44a5d880f68732b371a7a87dbc5a25ec7c AUX bareos-dir.confd-16 641 BLAKE2B d13945b9459a3900d1695815d4076f884b9269aa2ea0661aa9fb18345c6febff34154dce976fc467b60e339257d61e6d0403623fe44a2903b51cc44bfe0fb8a3 SHA512 f25d778958fc4081b54bd88a357cb8ba7bc3573c7e262e66996fdc9c05d184cb48e34941e7e1f5ee6c96605c7224ef475b72d6815d2ed5f72fd2ce0cf66c5776 AUX bareos-dir.initd 491 BLAKE2B 8b937fedf288587f0180fd83ad4e13c383d476b62f9cc8a58cf1a75d8394de2ec2a1ff0314030577bc439ac1b7c1825a929c4d22df0599eccdd00b169d199d29 SHA512 044136eb9260001943d377f977ab913b7999374d9389c275744087cbd18d0a7311c87d96d05551e83a179dc82ab2d5151bf2c5945082eae4f9e6bf44cb5bf060 AUX bareos-dir.service 263 BLAKE2B 4ee4fc9da7fb1deeb2f880e52c2fccd7f742c273b4a46b66dec04a8377c71e42a3054901d2381b255d2e4022a7b3967a7399359da13900143aef07b17a53cfa7 SHA512 628444c68e85c0540e4ef74ef283fa1cd70d718cdbf8e82eb6aedc44e737bfc47f8803e25ab1fce80c7084bfe1430cbab0cdd6c1adc7aa44219d0af574349f8f +AUX bareos-fd.confd 208 BLAKE2B a2c4692fd2736604ebd1f12d84f300bac8df46a08859ce61cca8417d2645f75bb14f24b5f4fcad70175b11d28a4c052116a1fe99028d634a2fe1fa89cf2c4313 SHA512 8134d37f9d74ced01e769c1a04461e0141cc88cc305441079d9e672d29083ff4ab329a2c36dd2bdc9b7f07204233ff1b6ebd72af2dcbb15af63759be9d0878bc AUX bareos-fd.confd-16 211 BLAKE2B bc1a36f5f2c1c42d2dbe0ae5bb922d01d2d26beabf3a890e8b8cec48521b73a14904dd3faba3e681fc03a4bd8ccfb0520e0d0ae28bbba45c9082c7e985953153 SHA512 e1e2d8784a7309acc93c4028a88770e642fa69261d1798e4a763ddcf92995916d29f199fad31d6fbb09209c5967fcc2fe6602ac0d28693213878692c634d837c AUX bareos-fd.initd 457 BLAKE2B b02399e5112673c94afcbca67399b5a4627d3e0c863a7e9a61255598bf5b846a344b1eaf8a59665bc9abd091b68d67fe4bacfd796a1b97beebe66e28ee6a6fba SHA512 444802b07cff09feb931795869e7cb50f3406a9f895c3baf69a16607ea7ae2da6553d6f819f7fca2ec4c7c86ebffbc9ba925513325b547fb12aab411ac4d68eb AUX bareos-fd.service 219 BLAKE2B 741e82a3d1369b5e33642a80381e0d0604ef852552aba2501d632e0f56fbb8da376d0aa7b4ef5478ec0fdd45ed2bcfc91a30517da4022cfabadb671400eb05bb SHA512 3233ee11054ea1b4ab44f183f88614b55a5b6999bec5914c1ba69e98805df9d9515a0e57612ae66b00132bd776cbcca60f5daaf7647241f5c0faa0570c86859b +AUX bareos-sd.confd 360 BLAKE2B d965bf4cf1db59982b57ee0b848f9f7156d695a37d2a3b4cb339ce5ac4b27717db6d609a71b8e318fb297a6065c6ce0c20d6e18180a9d47843de5299a43ce6cd SHA512 4077174b5b49f425d53ec36bde039cee0dc55204c1127467c01bb57c58e6495e000b032f060c5ae6d757472934127776667a78238bcc28fbbe7a713d3da18039 AUX bareos-sd.confd-16 361 BLAKE2B 3c5feb7e6615db5395f2895ed4ea3e0745c4da0ca68cbdd6c899da0be63db0a7ee561aa44404490ef227a08fe5f339c337fd4eadf43a384741d3071ef4332772 SHA512 1cd7a0a6b16d95db4ac39a4858caf0df35b3cd68e6ed87dff687c48008e4f31597e8510ac6a2e1442a80dec7e5608341832b55d3e2ae96793f203fd95700da22 AUX bareos-sd.initd 481 BLAKE2B c14f2640be1685aaa0304dcfff2c272e37cb55cce92c7e2808eeaa94b20d4cfb4a705b53d06880f5b5c50b96162ea4d6cb23160b6e31ec34889b867c3aad09e1 SHA512 e094df3f44ed39207129bb86020b223037acc7bda408a69711b68376d1044dbe67001370395dd4442df6b4e78e92dc5125dd14dad6c4826716df2084fbd45916 AUX bareos-sd.service 243 BLAKE2B 198c1f93f63fc015989523bae1932637c9e25d9b02719dfaa8aa1900d0a408ff686bf25f3966645d5c09d6ec6c78f3326a70c5c53cae42f1dd5fdbd88a164541 SHA512 efd8ee4abfde37cf0c9c660ba714b22cf5bd7ce895af20deb80c1d2747b985e2a61ddfa76a557374d78feeec3c68f855976bd9af5f7d61c9588b8db41287211d DIST bareos-16.2.7.tar.gz 4282998 BLAKE2B 9101a49d1178e0bcc4843cc4472a2082827a7bd7595389c0fa3699d36651ca70fce674509eeaddc8f806a5df1dba6afc89c05be183e7561e013d23bd157ef294 SHA512 028f38dd77fed5e3af6ee50aa44cb2f82349bd38e40eadebc552a95100166291ae0c68073daa2513919da330c66bb54a3050f1d99cbf3b5354f2450a789f6c00 DIST bareos-17.2.6.tar.gz 4181984 BLAKE2B a1666b38626228ebf00f6a42f1a5b74c78c26a7178fa5333c9c8fb24ccfda146d20c35d35cbe43b6f53ba1b0ce1dd9b8ad30309997689c39493b51a0db9f5c9b SHA512 5f5ac8cfe028c97fa3120e149f1eb029406b74530517bf6e21574bd726e26c6b78740977635b45cbc2232fda0ee28f1b4338d91a8fa0a86ba05209cce82cd0b2 DIST bareos-17.2.7.tar.gz 4184028 BLAKE2B dc817ca3b21ea13d9dbd1e3c5691e09bc3adff535e0032e1fbcfff8d07b96b2bf21976f020d778dd16137e51283c2a3dcab78dbe28f7fb6f3a60d43938f6b770 SHA512 254eddacb067ef7e82b7a54bdfcbffd5cfa033fa045f697c7e5b5c28dd064b5e1ce9f6aa946282c60f59972beae0b1b7901882b77c3f71cf16efdd73934135cc +DIST bareos-18.2.6.tar.gz 9991951 BLAKE2B 9fdaf852e748f0c01d06e2fd72351e7b9bf18e8fea92307fb85437441b4ce504f9c6ddbd42cd2185b6dc08158502a7db581bef662c2bd84c86c885d6b89eebba SHA512 b6618173a803db4cfc3fe7edfe8c9e4e4128195f44383cd7df5b9866da4290686ed7cb42499edec957a5d9ab8bbd92d26258ce58f13fba84fb569167956768c3 EBUILD bareos-16.2.7-r1.ebuild 11323 BLAKE2B 0abe24334ae68f7ef819d76cc03bce740158c0fa600850640eb907e33e32c07822e10633bf0d1bbb86d8acb5a0e2d0a37c228eb93544b256d68d43b32cea1748 SHA512 3c43211665dc550212218b87063d6094016db80ac9c620be9d88268d17141b9f08946faaf25ee1c90f2b58bb5519c6d96a4ce1960fdbf1c62664f94b9be55c44 EBUILD bareos-17.2.6.ebuild 11245 BLAKE2B 825e335734933a03ea224f90cb5d843dc99a3831f17387cf8e4129751e6c2d9b3b80b189f6b1be644ba4dd807f13b61121d65bef9449ba40f9f686c9c91caedd SHA512 1f2039ab93d3a7434acc66048cc674230dd7b5bd14c09860b5a493b677db34e8436669f7ae2f19fb70bec9b34f79eb72ee43b4cace821dcdde316c5a62bbae38 EBUILD bareos-17.2.7-r1.ebuild 11256 BLAKE2B 1c56690a9c413239ccb3a1e8654119164198af0948363328b964785aa21789c6dc5ff9c034d57aefa007c4fc307b86d9228d92e13dec10fa12a21c7eeb509b32 SHA512 e1e740c5f05b7d96b8a6b9c58d5876c99fc7773954ce2f37a3491229d72a156aa01139369a67d1826b0fc68d67eb65ae71540e401b905d605562da469eece1ad +EBUILD bareos-18.2.6.ebuild 11909 BLAKE2B 791279efa5e64137af93102d14ef0de73e3520051e2692b1a64c502849fc3a6b3b2742fece0055c817d0e3c7069627902a5c4e3f2671579837c1f00648f54064 SHA512 82343c693339cd780c56592ece850bf41e0e12ce6f0a1d74c4a0712f034fc6436c9950a0a033eb05393c714e60c2da1a1b8b3c4f040bf352d45247f6e22c2334 MISC metadata.xml 1440 BLAKE2B 588672b8975b109eb293f8a251ea5745cbcdab83acac5b1efb3318e2b06eeecfb48114974fd0854fc98480a8607ef7603e0882a2c74d3a301023cdafc67348ff SHA512 b76bc10f031dc5ab0abd71980706a3beebfb50a8e7d273bdfbf85124309ba98ab4542d6e273691a8105c8c5a078b3886d891131a79c587ab62f361e7bba7b5b7 diff --git a/app-backup/bareos/bareos-18.2.6.ebuild b/app-backup/bareos/bareos-18.2.6.ebuild new file mode 100644 index 000000000000..6a140c54f77c --- /dev/null +++ b/app-backup/bareos/bareos-18.2.6.ebuild @@ -0,0 +1,409 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="threads" +CMAKE_WARN_UNUSED_CLI=yes +#CMAKE_REMOVE_MODULES=yes + +inherit eutils multilib python-single-r1 systemd user cmake-utils + +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 libressl + logwatch mysql ndmp +postgres python 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 + 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? ( + postgres? ( dev-db/postgresql:*[threads] ) + mysql? ( virtual/mysql ) + 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? ( + !libressl? ( dev-libs/openssl:0=[static-libs] ) + libressl? ( dev-libs/libressl:0=[static-libs] ) + ) + gnutls? ( net-libs/gnutls[static-libs] ) + ) + ) + !static? ( + acl? ( virtual/acl ) + dev-libs/lzo + ssl? ( + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + gnutls? ( net-libs/gnutls ) + ) + sys-libs/ncurses:= + sys-libs/zlib + ) + python? ( ${PYTHON_DEPS} ) + " +RDEPEND="${DEPEND} + !clientonly? ( + storage-daemon? ( + sys-block/mtx + app-arch/mt-st + ) + ) + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" + +REQUIRED_USE="static? ( clientonly ) + python? ( ${PYTHON_REQUIRED_USE} )" + +S=${WORKDIR}/${PN}-Release-${PV} + +pkg_setup() { + # create the daemon group and user + if [ -z "$(egetent group bareos 2>/dev/null)" ]; then + enewgroup bareos + einfo + einfo "The group 'bareos' has been created. Any users you add to this" + einfo "group have access to files created by the daemons." + einfo + fi + + if ! use clientonly; then + if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then + enewuser bareos -1 -1 /var/lib/bareos bareos,tape,cdrom,cdrw + einfo + einfo "The user 'bareos' has been created. Please see the bareos manual" + einfo "for information about running bareos as a non-root user." + einfo + fi + fi + + use python && python-single-r1_pkg_setup +} + +src_prepare() { + use mysql && export mydbtypes+=( mysql ) + use postgres && export mydbtypes+=( postgresql ) + use sqlite && export mydbtypes+=( sqlite ) + + # enables default database driver in catalog + pushd core/src/defaultconfigs >&/dev/null || die + sed -i -e 's/#dbdriver/dbdriver/' -e '/XXX_REPLACE_WITH_DATABASE_DRIVER_XXX/d' $(grep -rl XXX_REPLACE_WITH_DATABASE_DRIVER_XXX) \ + || die "sed on MyCatalog.conf.in failed" + popd >&/dev/null || die + + epatch "${FILESDIR}/bareos-cmake-rados.patch" + + # fix gentoo version detection + epatch "${FILESDIR}/bareos-cmake-gentoo.patch" + + # fix missing DESTDIR in symlink creation + epatch "${FILESDIR}/bareos-cmake-symlink-default-db-backend.patch" + + eapply_user + + CMAKE_USE_DIR="$S/core" + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=() + + CMAKE_USE_DIR="$S/core" + + pushd core/platforms >&/dev/null || die + cmake_comment_add_subdirectory '${DISTNAME}' + popd >&/dev/null || die + + if use clientonly; then + mycmakeargs+=( + -Dclient-only=YES + -Dstatic-cons=$(usex static) + -Dstatic-fd=$(usex static) + ) + fi + + for useflag in acl ipv6 ndmp readline scsi-crypto sql-pooling \ + fastlz mysql python lmdb glusterfs rados \ + rados-striper cephfs jansson; do + + mycmakeargs+=( -D$useflag=$(usex $useflag) ) + done + + mycmakeargs+=( + -DDEFAULT_DB_TYPE=${mydbtypes[0]} + -Dx=$(usex X) + -Dpostgresql=$(usex postgres) + -Dmysql=$(usex mysql) + -Dsqlite3=$(usex sqlite) + -Dopenssl=$(usex ssl) + -Dtcp-wrapper=$(usex tcpd) + -Dlibdir=/usr/$(get_libdir) + -Dsbindir=/usr/sbin + -Dmandir=/usr/share/man + -Ddocdir=/usr/share/doc/${PF} + -Dhtmldir=/usr/share/doc/${PF}/html + -Darchivedir=/var/lib/bareos/storage + -Dbsrdir=/var/lib/bareos/bsr + -Dpiddir=/run/bareos + -Dsysconfdir=/etc + -Dconfdir=/etc/bareos + -Dsubsys-dir=/run/lock/subsys + -Dworkingdir=/var/lib/bareos + -Dlogdir=/var/log/bareos + -Dscriptdir=/usr/libexec/bareos + -Dplugindir=/usr/$(get_libdir)/${PN}/plugin + -Dbackenddir=/usr/$(get_libdir)/${PN}/backend + -Ddir-user=bareos + -Ddir-group=bareos + -Dsd-user=root + -Dsd-group=bareos + -Dfd-user=root + -Dfd-group=bareos + -Dsbin-perm=0755 + -Dsystemd=yes + -Ddb_password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1` + -Ddynamic-cats-backends=yes + -Ddynamic-storage-backends=yes + -Dbatch-insert=yes + -Dhost=${CHOST} + -Dcoverage=yes + -Dpython=yes + -Dsmartalloc=yes + -Ddir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`" + -Dfd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`" + -Dsd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`" + -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`" + -Dbasename="`hostname -s`" + -Dhostname="`hostname -s`" + ) + + cmake-utils_src_configure +} + +src_install() { + #emake DESTDIR="${D}" install + cmake-utils_src_install + newicon core/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}"/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}"/lib/systemd/system/bareos-dir.service + 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}"/lib/systemd/system/bareos-sd.service + 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 + # 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}/${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 + if ! use clientonly; then + use director && systemd_dounit core/platforms/systemd/bareos-dir.service + use storage-daemon && systemd_dounit core/platforms/systemd/bareos-sd.service + fi + systemd_dounit core/platforms/systemd/bareos-fd.service + + # make sure the working directory exists + diropts -m0750 + keepdir /var/lib/bareos + keepdir /var/lib/bareos/storage + + diropts -m0755 + keepdir /var/log/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-cmake-gentoo.patch b/app-backup/bareos/files/bareos-cmake-gentoo.patch new file mode 100644 index 000000000000..0f67a9e5d9de --- /dev/null +++ b/app-backup/bareos/files/bareos-cmake-gentoo.patch @@ -0,0 +1,11 @@ +--- core/cmake/distname.sh.orig 2019-01-31 12:39:26.000000000 +0100 ++++ core/cmake/distname.sh 2019-02-05 10:26:43.258936535 +0100 +@@ -134,7 +134,7 @@ + elif test -f /etc/gentoo-release + then + DISTNAME=gentoo +- DISTVER=`awk '/version / { print $5 }' < /etc/gentoo-release` ++ DISTVER=`awk '/release / { print $5 }' < /etc/gentoo-release` + elif test -f /etc/debian_version + then + if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then diff --git a/app-backup/bareos/files/bareos-cmake-rados.patch b/app-backup/bareos/files/bareos-cmake-rados.patch new file mode 100644 index 000000000000..c9a0c176692e --- /dev/null +++ b/app-backup/bareos/files/bareos-cmake-rados.patch @@ -0,0 +1,21 @@ +--- core/cmake/BareosCheckSymbols.cmake.orig 2018-12-05 23:39:37.307627387 +0100 ++++ core/cmake/BareosCheckSymbols.cmake 2018-12-05 23:40:00.999464771 +0100 +@@ -21,7 +21,7 @@ + + + CHECK_SYMBOL_EXISTS(__stub_lchmod features.h LCHMOD_IS_A_STUB1) +-CHECK_SYMBOL_EXISTS(__stub___lchmod features_h LCHMOD_IS_A_STUB2) ++#CHECK_SYMBOL_EXISTS(__stub___lchmod features_h LCHMOD_IS_A_STUB2) + + + +@@ -43,7 +43,9 @@ + + cmake_push_check_state() + SET(CMAKE_REQUIRED_LIBRARIES ${RADOS_LIBRARIES}) ++if ("${HAVE_RADOS}") + CHECK_SYMBOL_EXISTS(rados_ioctx_set_namespace rados/librados.h HAVE_RADOS_NAMESPACES) + CHECK_SYMBOL_EXISTS(rados_nobjects_list_open rados/librados.h HAVE_RADOS_NOBJECTS_LIST) ++endif() + cmake_pop_check_state() + diff --git a/app-backup/bareos/files/bareos-cmake-symlink-default-db-backend.patch b/app-backup/bareos/files/bareos-cmake-symlink-default-db-backend.patch new file mode 100644 index 000000000000..8c46fdf0dc86 --- /dev/null +++ b/app-backup/bareos/files/bareos-cmake-symlink-default-db-backend.patch @@ -0,0 +1,9 @@ +--- work/bareos-Release-18.2.5/core/cmake/bareos-symlink-default-db-backend.cmake.orig 2019-01-31 12:39:26.000000000 +0100 ++++ work/bareos-Release-18.2.5/core/cmake/bareos-symlink-default-db-backend.cmake 2019-02-05 11:00:24.559983661 +0100 +@@ -19,5 +19,5 @@ + MESSAGE(STATUS "${CMAKE_COMMAND} -E create_symlink ${libdir}/libbareoscats${CMAKE_SHARED_LIBRARY_SUFFIX} ${backenddir}/libbareoscats-${default_db_backend}${CMAKE_SHARED_LIBRARY_SUFFIX}") + execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink + ${backenddir}/libbareoscats-${default_db_backend}${CMAKE_SHARED_LIBRARY_SUFFIX} +- ${libdir}/libbareoscats${CMAKE_SHARED_LIBRARY_SUFFIX}.${BAREOS_NUMERIC_VERSION} ++ $ENV{DESTDIR}/${libdir}/libbareoscats${CMAKE_SHARED_LIBRARY_SUFFIX}.${BAREOS_NUMERIC_VERSION} + ) diff --git a/app-backup/bareos/files/bareos-dir.confd b/app-backup/bareos/files/bareos-dir.confd new file mode 100644 index 000000000000..6d755bf93344 --- /dev/null +++ b/app-backup/bareos/files/bareos-dir.confd @@ -0,0 +1,17 @@ +# Copyright 1999-2019 Gentoo Authors +# 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 bareos -g bareos" diff --git a/app-backup/bareos/files/bareos-fd.confd b/app-backup/bareos/files/bareos-fd.confd new file mode 100644 index 000000000000..5e429a6bd31c --- /dev/null +++ b/app-backup/bareos/files/bareos-fd.confd @@ -0,0 +1,7 @@ +# Copyright 1999-2019 Gentoo Authors +# 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-sd.confd b/app-backup/bareos/files/bareos-sd.confd new file mode 100644 index 000000000000..d0153b2b30b5 --- /dev/null +++ b/app-backup/bareos/files/bareos-sd.confd @@ -0,0 +1,10 @@ +# Copyright 1999-2019 Gentoo Authors +# 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 bareos -g bareos" diff --git a/app-backup/borgbackup/Manifest b/app-backup/borgbackup/Manifest index 918ebd0ce7ae..70ac64cc1eb4 100644 --- a/app-backup/borgbackup/Manifest +++ b/app-backup/borgbackup/Manifest @@ -1,8 +1,6 @@ -DIST borgbackup-1.1.6.tar.gz 3441523 BLAKE2B 13b1892774e857432a77d1f67d981046a0670b4ba2f3665502f7b729a211fc47e10a87feca308d5089c984cfe4665e7e70ca68bb9aa6e188893a0d088e84df93 SHA512 5741c48bdb70a26d40bd583f207460e35bb7dd560424889d37eb4d90ee96947457faf09bae0fa2b26b42ec71ef6eeaec1b770ba3257223a2637fcb55266e4a17 -DIST borgbackup-1.1.7.tar.gz 3446832 BLAKE2B c4e2ce7c08f0df479d3333e5766ea070d0c1e18abc88fc8787e4212eff27e8e4505759f80f3bdda80d2b9a737241b907a41749edca9a6138eae2a5620913908d SHA512 586420b9cad7e731f2f1b8b05f3cd3dc606691c5a5ec307e887035d941ac5ac6d4c988783660969960a1221e4d9f2b865ee5558d4007ea7524632d0a50a8a402 DIST borgbackup-1.1.8.tar.gz 3456058 BLAKE2B cad55216f92025418e1a427f4b578d6b7eafa03f6b3e9c4fccb148dd3856c4f6649928fb4227249c534add125f9b3a2a0b6ed808ae12c5e60a28f9df4fb0031a SHA512 1455e68bcedab8f35f9426dc73958c6a6565ad1f1cc274ce59d34a12e3a7bfa1d12fa2b8e8dd3e71824e1cd0927babf79f4e99d4e516454ed12dbd3970d0e921 -EBUILD borgbackup-1.1.6.ebuild 1088 BLAKE2B b89c1c7d27543d4b83d8c00b29e45b0602a6c6c27c5d04ed8309d0701bc37470b09befcaa33304124235ca37d83e84809f077027eb9eca333f78ade8e1bd63e6 SHA512 5a679f0db9dd1fb59f7c6c97c180e55289b3e175c3920e81956b34870a95349023d65165f1c7f3156df1dc8fc40801184a57380684d6fba18df42e018e063c71 -EBUILD borgbackup-1.1.7.ebuild 1090 BLAKE2B 54321c9dadf7b6bf077a286375c3ebc84b5f8e545e6d103d0af24253fed071f67a547b6a33af03b00bf72b765122125c16041fe6668d42f99d4809a74f87047e SHA512 c135ae63d7fa35c806fd9ffb0bcf4be28fb935a539843253054c4169d38affaefa1dce2d9388def85022bcbe4b232f4e0e762abe5715b5e87d18fb70d7cb64a9 -EBUILD borgbackup-1.1.8.ebuild 1087 BLAKE2B 90935501258bb349c0c96960d29906d35b4188fa153c64a610ec9a699fe6a1fcb24d24c43a84cc0076e4bfacce23b2db37fa52c91bdbc8ee51b148e821126dec SHA512 20ad7b217f80a05ae404b9e27af123db10be43b55edba61ac8a9025832058b56bf23ec6a4651fcb1a817c5447562f677fdfdce9ef161eb6e42b26dcad58629e6 -EBUILD borgbackup-9999.ebuild 1090 BLAKE2B 54321c9dadf7b6bf077a286375c3ebc84b5f8e545e6d103d0af24253fed071f67a547b6a33af03b00bf72b765122125c16041fe6668d42f99d4809a74f87047e SHA512 c135ae63d7fa35c806fd9ffb0bcf4be28fb935a539843253054c4169d38affaefa1dce2d9388def85022bcbe4b232f4e0e762abe5715b5e87d18fb70d7cb64a9 +DIST borgbackup-1.1.9.tar.gz 3468259 BLAKE2B 91c89304cf22328a0bd74583c22370343915209a204f52c65290dbec0cb688392c2e80b946a55317f8c58ef23099e710c16a34c6bfbbfb547a3e4b38c3c81c37 SHA512 466288258700fb0b3dae936c79fd423d26bea2d721dd70112b3cfd0f8e2bb335144a00de76743c31d336f6c19793775260d154326ec70d6d6d0a4e5ad6a59e59 +EBUILD borgbackup-1.1.8.ebuild 1098 BLAKE2B 6e895efce696d6a149b9c063e336986f50e72832bfcbfe691db09ed623bd3beb511c12fad7fd607e2ef024a2373bbfd37448e5313b8f9898d56f3d284442f35a SHA512 feb2ce7ddd4a315330fd50154f07e94be146abe4e467ac32f6729f4bbfb0f28f8a60492ec42a8ee57a52ea2262c0a1d7f3d06116f6c03c60f5a53175f0b373f3 +EBUILD borgbackup-1.1.9.ebuild 1100 BLAKE2B ad3e554828e9dfd8fc2b1485c854a9e3070351bce7376c73bfe36f732e4e6b49f8627a4858d6304b024558865714f741a4a518850a58943f5da05af1ece9029a SHA512 5142d4e783354d1d126b0db9406520b855622c93a86e8c9e8e9475a770538087ad45e1d17438e79022d35d5225b8bbf0f756c7e627665b5960b827207365409b +EBUILD borgbackup-9999.ebuild 1100 BLAKE2B ad3e554828e9dfd8fc2b1485c854a9e3070351bce7376c73bfe36f732e4e6b49f8627a4858d6304b024558865714f741a4a518850a58943f5da05af1ece9029a SHA512 5142d4e783354d1d126b0db9406520b855622c93a86e8c9e8e9475a770538087ad45e1d17438e79022d35d5225b8bbf0f756c7e627665b5960b827207365409b MISC metadata.xml 380 BLAKE2B 2ac9cd2f49c605955fb4133ff30d52e578bb45b0717348e6909cf7cd172ce9a7436d30394466ece7d889d02802f500f86297072a755b24905c17342cd7aee5e4 SHA512 4160c5674dbb51e9e3fa3c0d29fca6b7ab4073f2e2be1a2eca88ff049b4b5f066d04c747130c45d31a9c63ee2fe3bcb5f521017a581e7f6b69eb07fb94b83661 diff --git a/app-backup/borgbackup/borgbackup-1.1.6.ebuild b/app-backup/borgbackup/borgbackup-1.1.6.ebuild deleted file mode 100644 index c94a558657c3..000000000000 --- a/app-backup/borgbackup/borgbackup-1.1.6.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_{4,5,6} ) - -inherit distutils-r1 - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/${PN}/borg.git" - inherit git-r3 -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="amd64 x86" -fi - -DESCRIPTION="Deduplicating backup program with compression and authenticated encryption" -HOMEPAGE="https://borgbackup.readthedocs.io/" - -LICENSE="BSD" -SLOT="0" -IUSE="libressl" - -# Unfortunately we have a file conflict with app-office/borg, bug #580402 -RDEPEND=" - !!app-office/borg - app-arch/lz4 - dev-python/llfuse[${PYTHON_USEDEP}] - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/pyzmq[${PYTHON_USEDEP}] - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) -" - -DEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - dev-python/cython[${PYTHON_USEDEP}] - ${RDEPEND} -" - -python_prepare_all() { - # allow use of new (renamed) msgpack - sed -i "s|'msgpack-python.*',||g" setup.py || die - distutils-r1_python_prepare_all -} diff --git a/app-backup/borgbackup/borgbackup-1.1.8.ebuild b/app-backup/borgbackup/borgbackup-1.1.8.ebuild index 15ee3092744c..9cdb1a9c1ce8 100644 --- a/app-backup/borgbackup/borgbackup-1.1.8.ebuild +++ b/app-backup/borgbackup/borgbackup-1.1.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -12,7 +12,7 @@ if [[ ${PV} == "9999" ]] ; then inherit git-r3 else SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="amd64 x86" fi DESCRIPTION="Deduplicating backup program with compression and authenticated encryption" @@ -26,6 +26,7 @@ IUSE="libressl" RDEPEND=" !!app-office/borg app-arch/lz4 + virtual/acl dev-python/llfuse[${PYTHON_USEDEP}] dev-python/msgpack[${PYTHON_USEDEP}] dev-python/pyzmq[${PYTHON_USEDEP}] diff --git a/app-backup/borgbackup/borgbackup-1.1.7.ebuild b/app-backup/borgbackup/borgbackup-1.1.9.ebuild index fdd80a89ecd9..dc020049d631 100644 --- a/app-backup/borgbackup/borgbackup-1.1.7.ebuild +++ b/app-backup/borgbackup/borgbackup-1.1.9.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{4,5,6} ) @@ -26,6 +26,7 @@ IUSE="libressl" RDEPEND=" !!app-office/borg app-arch/lz4 + virtual/acl dev-python/llfuse[${PYTHON_USEDEP}] dev-python/msgpack[${PYTHON_USEDEP}] dev-python/pyzmq[${PYTHON_USEDEP}] diff --git a/app-backup/borgbackup/borgbackup-9999.ebuild b/app-backup/borgbackup/borgbackup-9999.ebuild index fdd80a89ecd9..dc020049d631 100644 --- a/app-backup/borgbackup/borgbackup-9999.ebuild +++ b/app-backup/borgbackup/borgbackup-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{4,5,6} ) @@ -26,6 +26,7 @@ IUSE="libressl" RDEPEND=" !!app-office/borg app-arch/lz4 + virtual/acl dev-python/llfuse[${PYTHON_USEDEP}] dev-python/msgpack[${PYTHON_USEDEP}] dev-python/pyzmq[${PYTHON_USEDEP}] diff --git a/app-backup/dar/Manifest b/app-backup/dar/Manifest index 5f59248776a1..dcfe2336c75c 100644 --- a/app-backup/dar/Manifest +++ b/app-backup/dar/Manifest @@ -1,7 +1,9 @@ DIST dar-2.5.11.tar.gz 1891928 BLAKE2B 536cccca2533f7ddbc8b95972fe00e9c87a404481e6afbd7aa3634c00598403c18950eb876aefe71a818c3bf4df75bff5f3904dc69bd1d75880f6c8a349911a5 SHA512 36b90218a34ac7f41ce9ca0a2167cfb2fd243b23b8e84350153e8804f0faabf87291b4e4b061533bcb0ca079f087c074eeaa12a54ee8084dd386a072ac503847 DIST dar-2.5.18.tar.gz 1931746 BLAKE2B 3d47665a1ab955ab9467d8f10a686565c549e1be57e77a9bcf65f1ea25c9b70d6d148d4b9dc35112b3ca74f9df05505c74e3a7eaa211b6a8b466308121206a2f SHA512 cde787bb4c3a3a1014efdb5e437b963d762eb87c512e1de1d60471035c535965e03adb5f75abc2bc95633bb6fb61226027d836a87fc903995e3a27a540632e69 DIST dar-2.6.1.tar.gz 2098547 BLAKE2B 6c1fe1670cf46faefe04544f3d7fce0dc819e24a493c6bc903465a11e4b25a9642faf68a0bb66a2c6a92bba2782f24c5694b14571ff2c205f7954941f14aca63 SHA512 492c9ce6d7928271e5b7f263773b2129c7a237ca192cd40698848d3bcf212224c76d29c3e33ff5a8642594697f5bba660f5e97d1c7529a5794e078f2de0716e9 +DIST dar-2.6.2.tar.gz 2100192 BLAKE2B 1eb2f92e5162070a75182741f850e79932593f68fd1f31a4a1d19af77c6f86df0c8e5b995b5ccd265f051891827bfa89bf71832cb7ce6f97d9ab70e768c867b4 SHA512 88f128f99a3fe22866056e2fc881276c13731004e40437f9e2c363c4e24f603ab5b9fe7126e4f950526ccfc1b6f86fe1a4494036e83e1faf9a647ce239293ea4 EBUILD dar-2.5.11.ebuild 2402 BLAKE2B 2399becf88620c4f86746df445e74c39b677f17352c3468462e4a64a3719c53cfd2fa25471026d3e950cd07c9231d83169e470e0adab51ed13b3ff4e9b08dc3c SHA512 2519d1c4ee298e6439cf09946efd68d9ee8f627087f276e629ed0bb9af9b9b50889dc9cff8888e98b40f2bbe8cde59e26bdebaaffef177829bf7d40994ed9ded EBUILD dar-2.5.18.ebuild 2398 BLAKE2B da4f12e9a5a975303cc0801c1081bc2742454b8f0fc2ee3f059bee3cdd1c1fbefc10765c9f83cd48c512e1bc634b93612aaf91498e73e37a71580d02373216ab SHA512 4da51e445dc0fe62d0f615b652fb53d3699a942bc1371616a9cd9f52a1bab61fbf5d5397bacac3d8ce1cae24554feff56b3392dcc6fe23564f9eadd4725b85dc EBUILD dar-2.6.1.ebuild 2559 BLAKE2B 831dafd72157ed23c4e30f593ba0b35fb5c3ee8bf7ac151a7f16eb26561cede5172735238b7ea9c91d3760e6ab1f0c44ac71942f28d1fb4e17ac9dd8c169cd2c SHA512 0c09d5fd841bb7a5a0e83eaba5b10a4eac8c3eebc94a321d48ab52e0bea0c518f538469ae5e002c1f1d188674eb633bd1535499ecd60d7c6f11b22ab1880c667 +EBUILD dar-2.6.2.ebuild 2559 BLAKE2B 831dafd72157ed23c4e30f593ba0b35fb5c3ee8bf7ac151a7f16eb26561cede5172735238b7ea9c91d3760e6ab1f0c44ac71942f28d1fb4e17ac9dd8c169cd2c SHA512 0c09d5fd841bb7a5a0e83eaba5b10a4eac8c3eebc94a321d48ab52e0bea0c518f538469ae5e002c1f1d188674eb633bd1535499ecd60d7c6f11b22ab1880c667 MISC metadata.xml 887 BLAKE2B 7fc6c15d3f725d59a115a839feb6d138b806e1f0e168c6e726e83c9f0185c46cbf869284e17872a376ce52f515fc0446134b5f3a449a578a33c10154876fa1f5 SHA512 9210de7c2f273c52c39555e2db525b1bdaa58c44d22deab887d1bf96e42ac9e8f32545461c7129d4673ced220a6445ddda68c6c2733e5660fcad05e98db56817 diff --git a/app-backup/dar/dar-2.6.2.ebuild b/app-backup/dar/dar-2.6.2.ebuild new file mode 100644 index 000000000000..f84ffdbd95af --- /dev/null +++ b/app-backup/dar/dar-2.6.2.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit flag-o-matic + +DESCRIPTION="A full featured backup tool, aimed for disks" +HOMEPAGE="http://dar.linux.free.fr/" +SRC_URI="mirror://sourceforge/dar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux" +IUSE="curl dar32 dar64 doc gcrypt gpg lzo nls static static-libs xattr" + +RESTRICT="test" # need to be run as root + +RDEPEND=">=sys-libs/zlib-1.2.3:= + !static? ( + app-arch/bzip2:= + app-arch/xz-utils:= + sys-libs/libcap + curl? ( net-misc/curl ) + gcrypt? ( dev-libs/libgcrypt:0= ) + gpg? ( app-crypt/gpgme ) + lzo? ( dev-libs/lzo:= ) + xattr? ( sys-apps/attr:= ) + )" + +DEPEND="${RDEPEND} + static? ( + app-arch/bzip2[static-libs] + app-arch/xz-utils[static-libs] + sys-libs/libcap[static-libs] + sys-libs/zlib[static-libs] + curl? ( net-misc/curl[static-libs] ) + gcrypt? ( dev-libs/libgcrypt:0=[static-libs] ) + gpg? ( + app-crypt/gpgme[static-libs] + dev-libs/libassuan[static-libs] + dev-libs/libgpg-error[static-libs] + ) + lzo? ( dev-libs/lzo[static-libs] ) + xattr? ( sys-apps/attr[static-libs] ) + ) + nls? ( + sys-devel/gettext + virtual/libintl + ) + doc? ( app-doc/doxygen )" + +REQUIRED_USE="?? ( dar32 dar64 ) + gpg? ( gcrypt )" + +#PATCHES=( +#) + +src_configure() { + # configure.ac is totally funked up regarding the AC_ARG_ENABLE + # logic. + # For example "--enable-dar-static" causes configure to DISABLE + # static builds of dar. + # Do _not_ use $(use_enable) until you have verified that the + # logic has been fixed by upstream. + local myconf=( + --disable-upx + $(usex curl '' --disable-libcurl-linking) + $(usex dar32 --enable-mode=32 '') + $(usex dar64 --enable-mode=64 '') + $(usex doc '' --disable-build-html) + #$(usex examples --enable-examples '') + $(usex gcrypt '' --disable-libgcrypt-linking) + $(usex gpg '' --disable-gpgme-linking) + $(usex lzo '' --disable-liblzo2-linking) + $(usex nls '' --disable-nls) + #$(usex rsync '' --disable-librsync-linking) + $(usex xattr '' --disable-ea-support) + ) + + # Bug 103741 + filter-flags -fomit-frame-pointer + + if ! use static ; then + myconf+=( --disable-dar-static ) + if ! use static-libs ; then + myconf+=( --disable-static ) + fi + fi + + econf ${myconf[@]} +} + +src_install() { + emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install + + local DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) + einstalldocs + + find "${ED}" -name '*.la' -delete || die + if ! use static-libs ; then + find "${ED}" -name '*.a' -delete || die + fi +} diff --git a/app-backup/fsarchiver/Manifest b/app-backup/fsarchiver/Manifest index 34c405c9f26c..43f405ceefe2 100644 --- a/app-backup/fsarchiver/Manifest +++ b/app-backup/fsarchiver/Manifest @@ -1,6 +1,3 @@ -AUX fsarchiver-0.8.4-xattr.patch 1875 BLAKE2B 57841c69bbfe68a55f83affb5e0ec2f7583673d1741d780e71bd55817a5659dc34d75b56bea531ad41365ff741b6c17965926456809b61fbdeedfad33c9b0867 SHA512 cc1e632bd7147da8af77d4f45c473617f1d40768dd30f94880384f3cfb3f43df85ab6f3917b48a2299a267a7c8861ba5f3b1bbef1e8a706eebba8a849fda2e50 -DIST fsarchiver-0.8.4.tar.gz 298793 BLAKE2B 706b1ed8a3966703ce8e6b0e16a502645317158478422e0fb999ed277185f83ca9a5a607f189c9bbf6b63c6bf1b4d9589d51fcbf3b256d57b6cd056757156ae3 SHA512 15712e5fdb9695148e8fe42791952acf0c7d34611c3467a0cb2e2631c9c5f1c55a4e839098085e6a72c2d8988b05e6f515ef772bcc5766b57a07da65a5209efd DIST fsarchiver-0.8.5.tar.gz 298502 BLAKE2B 434fbc945bb4999243fe2b6a212c6b04118ae37749b4b14b590cf8269e541a5b09954e75a898126c8a55b5b516f458a1cf1842b4a9f4ead2185c7b5e8c99343c SHA512 bf427dfcc5a73fc799710766dc1c1392ed379565ec68d7cef49e9391da749e08fb655f2b86b4ab4db7cacaf323286b4673a7c3fbebba81ac50d0b66c1f0b91ff -EBUILD fsarchiver-0.8.4.ebuild 1161 BLAKE2B 4efb9c4f957970f0d9a419100014ad9ebb280f1c264d8861e36b75235fc17592651573fed512d42a4075b85c44ba9a9c7208ec4839a4eeec4e370264e20fb439 SHA512 2faf1f1528578db1b5a1abc3e6e525b5e6121021b2a6658ea04546de151f89ac5e94c8481fc4bd8ff0a347e8e7aca40bfe8e3f6f60198be2f10c15a6fbb6c3fd -EBUILD fsarchiver-0.8.5.ebuild 1140 BLAKE2B 92fc4c9a6bac17acc897d674ac16eccc34621ec2755ddb98fe1c01468772798116e22a3335fe541e62891e0309f84af8a379d8940885a18acbc53c6b8da5d5d6 SHA512 c29a3b4facc93afa1ca6262534d1ce2969efe7007806cd25c93cb0941184cdf892ecc6631dcdcf198b1b4e99c3f87fc1549987a5386762924a7cd15d23563790 +EBUILD fsarchiver-0.8.5.ebuild 1135 BLAKE2B 9395a21a4f32abd29770fed6317c254504648c59417afec5b1752e016fdbc9503ca79ff8dbce58dfcd20737f51174021dbd8790c376d7034afb23edb3540243f SHA512 114f32eda95edd7147cd0019d0043a4536efcd8bdad68b7144c8a6a0e345bb90ae5bdb7b6a2e38caf6b336546caffc69c3b37703a5a5077182b4a4bcfbab803f MISC metadata.xml 436 BLAKE2B 4f26964f353b98b6548e6770a99284de8311945435cf88c449bd84b3b37096f56431702382bd3a317e4ea69fdeb17a9a22bff75203d83e44f9ebc492311e5180 SHA512 f6e8e65d36a2e548c63b8f940cf3d883807096b0cba45adadefe74260e8c86e8cb1d63e2740fa75a5ad452bb5ca9ffc776b917404165f6aff11e2cfc02b28e99 diff --git a/app-backup/fsarchiver/files/fsarchiver-0.8.4-xattr.patch b/app-backup/fsarchiver/files/fsarchiver-0.8.4-xattr.patch deleted file mode 100644 index cbc879008dfe..000000000000 --- a/app-backup/fsarchiver/files/fsarchiver-0.8.4-xattr.patch +++ /dev/null @@ -1,67 +0,0 @@ -From 57759f2b1106b6d19f3bc11b21463f4307dfc3d8 Mon Sep 17 00:00:00 2001 -From: Lars Wendler <polynomial-c@gentoo.org> -Date: Tue, 20 Feb 2018 10:13:30 +0100 -Subject: [PATCH] Replace <attr/xattr.h> with <sys/xattr.h> - -The former has been long deprecated and removed in attr-2.4.48 ---- - configure.ac | 2 +- - src/oper_restore.c | 3 ++- - src/oper_save.c | 7 ++++++- - 3 files changed, 9 insertions(+), 3 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 66cfbf3..ae9aae8 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -114,7 +114,7 @@ PKG_CHECK_MODULES([BLKID], [blkid]) - PKG_CHECK_MODULES([UUID], [uuid]) - - dnl Check for header files installed with a library --AC_CHECK_HEADER([attr/xattr.h],, [AC_MSG_ERROR([attr/xattr.h not found. you may have to install a package called attr, libattr, libattr-devel])]) -+AC_CHECK_HEADER([sys/xattr.h],, [AC_MSG_ERROR([sys/xattr.h not found.])]) - - dnl Check for standard header files. - AC_CHECK_HEADERS([malloc.h unistd.h pthread.h]) -diff --git a/src/oper_restore.c b/src/oper_restore.c -index dd8af1f..92eb5f6 100644 ---- a/src/oper_restore.c -+++ b/src/oper_restore.c -@@ -24,7 +24,8 @@ - #include <assert.h> - #include <string.h> - #include <stdlib.h> --#include <attr/xattr.h> -+#include <sys/xattr.h> -+#include <errno.h> - #include <sys/time.h> - #include <sys/stat.h> - #include <gcrypt.h> -diff --git a/src/oper_save.c b/src/oper_save.c -index ce6f194..ff29074 100644 ---- a/src/oper_save.c -+++ b/src/oper_save.c -@@ -29,7 +29,8 @@ - #include <sys/param.h> - #include <sys/statvfs.h> - #include <sys/stat.h> --#include <attr/xattr.h> -+#include <sys/xattr.h> -+#include <errno.h> - #include <zlib.h> - #include <assert.h> - #include <gcrypt.h> -@@ -59,6 +60,10 @@ - #include "error.h" - #include "queue.h" - -+#ifndef ENOATTR -+#define ENOATTR ENODATA -+#endif -+ - typedef struct s_savear - { carchwriter ai; - cregmulti regmulti; --- -2.16.2 - diff --git a/app-backup/fsarchiver/fsarchiver-0.8.4.ebuild b/app-backup/fsarchiver/fsarchiver-0.8.4.ebuild deleted file mode 100644 index 392119c19cf0..000000000000 --- a/app-backup/fsarchiver/fsarchiver-0.8.4.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -DESCRIPTION="Flexible filesystem archiver for backup and deployment tool" -HOMEPAGE="http://www.fsarchiver.org" -SRC_URI="https://github.com/fdupoux/${PN}/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="debug lz4 lzma lzo static zstd" - -DEPEND="dev-libs/libgcrypt:0= - >=sys-fs/e2fsprogs-1.41.4 - lz4? ( app-arch/lz4 ) - lzma? ( >=app-arch/xz-utils-4.999.9_beta ) - lzo? ( >=dev-libs/lzo-2.02 ) - static? ( - lz4? ( app-arch/lz4[static-libs] ) - lzma? ( app-arch/xz-utils[static-libs] ) - lzo? ( dev-libs/lzo[static-libs] ) - zstd? ( app-arch/zstd[static-libs] ) - ) - zstd? ( app-arch/zstd ) -" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}/${P}-xattr.patch" -) - -src_prepare() { - default - sed -i -e 's/^\([a-z]*_CFLAGS.*\)-ggdb/\1/' src/Makefile.am \ - || die "seding failed" - eautoreconf -} - -src_configure() { - local myeconfargs=( - $(use_enable debug devel) - $(use_enable lz4) - $(use_enable lzma) - $(use_enable lzo) - $(use_enable static) - $(use_enable zstd) - ) - econf "${myeconfargs[@]}" -} diff --git a/app-backup/fsarchiver/fsarchiver-0.8.5.ebuild b/app-backup/fsarchiver/fsarchiver-0.8.5.ebuild index 7d22bbd4d2b7..439502caca03 100644 --- a/app-backup/fsarchiver/fsarchiver-0.8.5.ebuild +++ b/app-backup/fsarchiver/fsarchiver-0.8.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -11,7 +11,7 @@ SRC_URI="https://github.com/fdupoux/${PN}/releases/download/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" IUSE="debug lz4 lzma lzo static zstd" CDEPEND="dev-libs/libgcrypt:0= diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest index 3a9647cbb4f8..8f5c986c5093 100644 --- a/app-backup/snapper/Manifest +++ b/app-backup/snapper/Manifest @@ -2,7 +2,8 @@ AUX cron-confd.patch 916 BLAKE2B 52672e59ebbfde9dd120516d9c0fb80443b8bfe38d08ec9 AUX snapper-0.5.6-swap.patch 852 BLAKE2B 89b05a268d3fed009665c9db6e43d5552023940b14c5afb58521582ba10c9ce332cf2aa07dcb336dd8cb825e5063a553aa6fcb84f597e380831bf0d507b7a96b SHA512 7ec3a471ece6e24c6e225f45401635317197a8d4daebb32817df64b035df3a7df02f0af85677a37d7a2b69af1afc785d70bcfe42252cc7453bc7eb2f7aa2740b DIST snapper-0.5.6.tar.bz2 580047 BLAKE2B 3b945acbf734db1925dad5515323a64a2c08ee8226a593025f9160e0d1b1140734b2b498d036256946159900b50fec8567147dc0a974c281be747e977bcbd05b SHA512 392427d097cbe221bf7ca0ae20bc065dffaa4d0017ed750c41748d71128fc7ce054bb4425d6dbed7308a530df71815f80f56e60d72aab17ef3e0a16f3b3ba47e DIST snapper-0.8.1.tar.bz2 591061 BLAKE2B 5f9ae50469f43e930de4c4479428c94b24441832bd713847c6792ff583fb79badfa341b53cc63abfedb787367b22b715de9f83f9172dec945f7b3071c06137ba SHA512 9fa20311f346de54c4f5d1cabb42dce5c677eaac03b3fac2a6049f408553911f5a968b1920fd014f3318ebb6911f2e6bce06463e976b468927e250e16fe783a0 +DIST snapper-0.8.2.tar.bz2 591558 BLAKE2B 552c07d1d83e6a8db1e1661b523aeb7164335bb6ebbeb07489325b6d23d8a5def730ac1cf0da06ab65b7a9fc1284d0d05ca0f875bc897504c1bbb45698b40294 SHA512 d968490782a47112f7ba2474555cafe450833cf055734186c79991dd836f9c5d8d669a6c65dd29b05da298e46f65e0ac5c4a1dae3b548a01dbf1b11d7e00c462 EBUILD snapper-0.5.6-r1.ebuild 1720 BLAKE2B 8f0007910dad5e443dcc1945e225ca4b25a8d916ae20748a1c37bb0398b8d8d996dfa0c1a9ad6e17b9b3d57864fbceb10801783e1bb82ec6e6ce2897519ee127 SHA512 b7a8aa1602022326a43efbb405cf7dd3f978799dfcfdfeefd52a148bcc8c4c208a1699bbde1b73f447c356125bd4857ec9093fef845281db5e95d06695ec3b2c -EBUILD snapper-0.5.6.ebuild 1689 BLAKE2B 1cec6466a39993a32bfcfd2935f10243c3b6cf3a4fa4cb6768b4fada52fd1fff0e08d51559675d9d03a3fc4978d5b93e8bea458dfc5b2b2e65af7e437988bdef SHA512 049e53c5dacf41bad8c7da90a7734f42125965f3f50c841e1810ee682d2e3dfc1586a5c8bb2ed6b45c3a6d06b9b2f96039966687e56cf650168a7f8251c36c16 EBUILD snapper-0.8.1.ebuild 1729 BLAKE2B 5dc6a58a46466120a8afa0ce116559a61eee4545e5039da5ee9361a1e06ff8ae532d630e085567f77fdffe87ee43047eae653c6a819945c2b643581f6275deed SHA512 6894a8117da291b2c3c9ea0fbc4c45febe0daf7ab9b92ceac13f9c7efd0d44b529945d57cb9b3f5de685f4ffbbdb5a7681a8213c3b2e4fe64f3e47afeeff6f87 +EBUILD snapper-0.8.2.ebuild 1691 BLAKE2B cc80aeba71d1413c1c292c21e760ba5ced7d10273282a0508279723bde7ae092e9e764ef788afc0767aadcd8fa448659f91a6ed9027be87639ed0ff45463a94b SHA512 f7d8f90baf610a7c53632a5a7da3acd28c912e9ace4c6e267f29f31e496c377d2470e44d3c640fb3731780c8f250d00ee26bb266db46b633d0c125f39ef30fdc MISC metadata.xml 1300 BLAKE2B a6f8d0942ec42f06331ec08d2b87a8ed5e395718d064eee7de11ae1a41cc0cffd85f012704076dacc46846d35a13bd1f9743ddda511e30a9967b241354ca619b SHA512 4f22d97f6fe05d89a973079f2373dac101859e73327b06eacc1a8a08260f234453240158c5cff320ef888259fc09e32d8abba080d08b0fb06964bf041ba68157 diff --git a/app-backup/snapper/snapper-0.5.6.ebuild b/app-backup/snapper/snapper-0.8.2.ebuild index c2bd86dbdcb2..1ce8e5e12348 100644 --- a/app-backup/snapper/snapper-0.5.6.ebuild +++ b/app-backup/snapper/snapper-0.8.2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit systemd @@ -11,7 +11,7 @@ SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="~amd64 ~x86" IUSE="lvm pam xattr" RDEPEND="dev-libs/boost:=[threads] |