From 7f0ccc917c7abe6223784c703d86cd14755691fb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 3 Jul 2021 22:39:47 +0100 Subject: gentoo resync : 03.07.2021 --- app-backup/Manifest.gz | Bin 8699 -> 8703 bytes app-backup/burp/Manifest | 4 +- app-backup/burp/burp-2.2.18-r1.ebuild | 108 --------------- app-backup/burp/burp-2.2.18-r2.ebuild | 109 +++++++++++++++ app-backup/burp/burp-2.3.36-r1.ebuild | 121 ++++++++++++++++ app-backup/burp/burp-2.3.36.ebuild | 120 ---------------- app-backup/cdbkup/Manifest | 2 +- app-backup/cdbkup/cdbkup-1.0-r3.ebuild | 37 ----- app-backup/cdbkup/cdbkup-1.0-r4.ebuild | 39 ++++++ app-backup/tsm/Manifest | 2 +- app-backup/tsm/tsm-8.1.6.0-r1.ebuild | 240 -------------------------------- app-backup/tsm/tsm-8.1.6.0-r2.ebuild | 243 +++++++++++++++++++++++++++++++++ 12 files changed, 516 insertions(+), 509 deletions(-) delete mode 100644 app-backup/burp/burp-2.2.18-r1.ebuild create mode 100644 app-backup/burp/burp-2.2.18-r2.ebuild create mode 100644 app-backup/burp/burp-2.3.36-r1.ebuild delete mode 100644 app-backup/burp/burp-2.3.36.ebuild delete mode 100644 app-backup/cdbkup/cdbkup-1.0-r3.ebuild create mode 100644 app-backup/cdbkup/cdbkup-1.0-r4.ebuild delete mode 100644 app-backup/tsm/tsm-8.1.6.0-r1.ebuild create mode 100644 app-backup/tsm/tsm-8.1.6.0-r2.ebuild (limited to 'app-backup') diff --git a/app-backup/Manifest.gz b/app-backup/Manifest.gz index 942d662e53b4..56e492663cf1 100644 Binary files a/app-backup/Manifest.gz and b/app-backup/Manifest.gz differ diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest index 6a9ca6200df3..27534f1325dc 100644 --- a/app-backup/burp/Manifest +++ b/app-backup/burp/Manifest @@ -5,6 +5,6 @@ AUX burp.initd 1083 BLAKE2B ae26457422dcb3b80400b78faf930e0df86b9873ffc8665281ef AUX burp.service 193 BLAKE2B fa9a00f32999834afaf84db9d28f2e8b65688e784e32f78bc019069649c50b4c17f1cc48db3b0a62e2e269db801182321e5daccc169eaa560677bd3ff52b5ffe SHA512 5ccb7fc0535d15afca1afe21b3bb937f53203b8a893730a2745e88a5effb1add73c0f109c3419e22244def1bf978378889d47953e68586a7da8909286ccf5dcd DIST burp-2.2.18.tar.gz 632805 BLAKE2B 6106aa4bd96db035ad5893c2fe314537e620a67519295fdf99efaf2c5a639bedd15b4c8d95caa3daa3072dfac28a1ba7fd7bb4f949d9ea2b70bd13060a22f2c6 SHA512 beb14c61ace6d61b98a10fc4e6709eec9722e28990de862eef6a75984f9fbd0f903c5fe64d20ed84c95528a9889bc22618ba6d2318318cf5d515b35688db0a4d DIST burp-2.3.36.tar.gz 619564 BLAKE2B 8f30fb8808c8a3167467ef0bcdc84cd7c2e885ee6a8aa285d96f9187aeb33eacb90fefe382ddb74bbabcfefde6faa9ac6125e3bf4a6eb9778b650e74e812991d SHA512 48b852aca8ccf0abd696b9434cb83c0447845192096d0f3f0c032c328dcc20314faf68db94fa14da72692327432b78eb3680e83b1e892dd30c9aa2f340838ee3 -EBUILD burp-2.2.18-r1.ebuild 2772 BLAKE2B 2057b4ca33ed84a585c72331530d9a005c27e2984b881ddc901772c235c13e99ed5c85ea43242f1239f57266b8732b0a9430b36ed6f693a6c5b2c43369d4c4bb SHA512 c94c2fc785841b59426e14bca60d6043564a00e32d246da19fde038a53dd776e0e50baf9920f8c2301d06f5d1134340403ce4ebce4acdefb489c6de0d1d47098 -EBUILD burp-2.3.36.ebuild 3145 BLAKE2B cd081eec0f83ea620fb3df808498ba171ced19196f96227ea13bf7fe70501ef1f0cdfa1b96bb1e638e3aa228714a3b11bf928050cccf13e902de2bc4fe783d79 SHA512 2c705b0ab512ee4fc0a90dab06cc8af6ea275c612c8c3915ae865e7d62562cfc49743b4542dbc59421a21128022096f49fd00fc69f6cd0dac5664bfaa24d0730 +EBUILD burp-2.2.18-r2.ebuild 2802 BLAKE2B 5836cb858ddefee698aa1781b30c0e2102cdff4acb1d8f1d53cec0afb4183085c4435ce0b0a4fe74cbeb348d9c8430580207b479da6a7bd3bb67ef4a91ac5499 SHA512 b7015a72e38382af5308eb5b3e666b52c5c34a9965178dc728e7163a1e77bdbcc7a00dd0801c14b2a48087b72fff3f770149801b8ae8ae9fadbe8eb3ce17ca71 +EBUILD burp-2.3.36-r1.ebuild 3175 BLAKE2B a5688984d46f9e3e26330c531ed88fe870fc799ad5c37abf2d28d49c3bc64eb827ed47ca335e94e28b3169e82352b347f5b13b0c736c9a17d2e6baa9d3229ddf SHA512 7bac5fe7037833ef67c769363471b2a0d892919c6dcbd5cf968c5f7c75d4f8b2166baeef4df7f8d0aac391e89009007065d5ecbd27bf663a4d5b713299d944f8 MISC metadata.xml 606 BLAKE2B b308037e2ad18ba69c0e85815c6e9036441759b790d8c32df0e1f09ceeac707db0ef5623e5a1caf0bb314366fa123ebb6a5ec4ec53a196ec3326d0eec42dbab4 SHA512 8a3b20deaa3129bb695dbece9431354d554a64ecbfa025b7a87d7d84cf2431f09650fdc203ec67d3d7d44a4eb4157a0093ee49a395e4c931a450f0a094fc368b diff --git a/app-backup/burp/burp-2.2.18-r1.ebuild b/app-backup/burp/burp-2.2.18-r1.ebuild deleted file mode 100644 index 198aa059230c..000000000000 --- a/app-backup/burp/burp-2.2.18-r1.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools systemd - -DESCRIPTION="Network backup and restore client and server for Unix and Windows" -HOMEPAGE="https://burp.grke.org/" -SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="AGPL-3" -SLOT="0" -KEYWORDS="amd64 ~arm x86" -IUSE="acl ipv6 test xattr" - -RESTRICT="!test? ( test )" - -CDEPEND=" acct-group/burp - acct-user/burp - dev-libs/uthash - net-libs/librsync - sys-libs/ncurses:0= - sys-libs/zlib - dev-libs/openssl:0= - acl? ( sys-apps/acl ) - xattr? ( sys-apps/attr )" -DEPEND="${CDEPEND} - virtual/pkgconfig - test? ( dev-libs/check )" -RDEPEND="${CDEPEND} - virtual/logger" - -PATCHES=( - "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch - "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch - "${FILESDIR}"/${PN}-2.0.54-server_user.patch -) - -src_prepare() { - default - - eautoreconf -} - -src_configure() { - local myeconfargs=( - --localstatedir=/var - --sysconfdir=/etc/burp - --enable-largefile - $(use_enable acl) - $(use_enable ipv6) - $(use_enable xattr) - ) - # --runstatedir option will only work from autoconf-2.70 onwards - runstatedir='/run' \ - econf "${myeconfargs[@]}" -} - -src_install() { - default - keepdir /var/spool/burp - fowners -R root:${PN} /var/spool/burp - fperms 0770 /var/spool/burp - - emake DESTDIR="${D}" install-configs - fowners -R root:${PN} /etc/burp - fperms 0750 /etc/burp - fperms 0640 /etc/burp/burp-server.conf - fperms 0750 /etc/burp/clientconfdir - - newinitd "${FILESDIR}"/${PN}.initd ${PN} - systemd_dounit "${FILESDIR}"/${PN}.service -} - -pkg_postinst() { - elog "Burp ebuilds now support the autoupgrade mechanism in both" - elog "client and server mode. In both cases it is disabled by" - elog "default. You almost certainly do NOT want to enable it in" - elog "client mode because upgrades obtained this way will not be" - elog "managed by Portage." - - if [[ ! -e /etc/burp/CA/index.txt ]]; then - elog "" - elog "At first run burp server will generate DH parameters and SSL" - elog "certificates. You should adjust configuration before." - elog "Server configuration is located at" - elog "" - elog " /etc/burp/burp-server.conf" - elog "" - fi - - # According to PMS this can be a space-separated list of version - # numbers, even though in practice it is typically just one. - local oldver - for oldver in ${REPLACING_VERSIONS}; do - if [[ $(ver_cut 1 ${oldver}) -lt 2 ]]; then - ewarn "Starting with version 2.0.54 we no longer patch bedup to use" - ewarn "the server config file by default. If you use bedup, please" - ewarn "update your scripts to invoke it as" - ewarn "" - ewarn " bedup -c /etc/burp/burp-server.conf" - ewarn "" - ewarn "Otherwise deduplication will not work!" - break - fi - done -} diff --git a/app-backup/burp/burp-2.2.18-r2.ebuild b/app-backup/burp/burp-2.2.18-r2.ebuild new file mode 100644 index 000000000000..b9b40e1d1d59 --- /dev/null +++ b/app-backup/burp/burp-2.2.18-r2.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd + +DESCRIPTION="Network backup and restore client and server for Unix and Windows" +HOMEPAGE="https://burp.grke.org/" +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="acl ipv6 test xattr" + +RESTRICT="!test? ( test )" + +CDEPEND="acct-group/burp + acct-user/burp + dev-libs/uthash + dev-libs/openssl:0= + net-libs/librsync:= + sys-libs/ncurses:0= + sys-libs/zlib + virtual/libcrypt:= + acl? ( sys-apps/acl ) + xattr? ( sys-apps/attr )" +DEPEND="${CDEPEND} + test? ( dev-libs/check )" +BDEPEND="virtual/pkgconfig" +RDEPEND="${CDEPEND} + virtual/logger" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch + "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch + "${FILESDIR}"/${PN}-2.0.54-server_user.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --localstatedir=/var + --sysconfdir=/etc/burp + --enable-largefile + $(use_enable acl) + $(use_enable ipv6) + $(use_enable xattr) + ) + # --runstatedir option will only work from autoconf-2.70 onwards + runstatedir='/run' \ + econf "${myeconfargs[@]}" +} + +src_install() { + default + keepdir /var/spool/burp + fowners -R root:${PN} /var/spool/burp + fperms 0770 /var/spool/burp + + emake DESTDIR="${D}" install-configs + fowners -R root:${PN} /etc/burp + fperms 0750 /etc/burp + fperms 0640 /etc/burp/burp-server.conf + fperms 0750 /etc/burp/clientconfdir + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service +} + +pkg_postinst() { + elog "Burp ebuilds now support the autoupgrade mechanism in both" + elog "client and server mode. In both cases it is disabled by" + elog "default. You almost certainly do NOT want to enable it in" + elog "client mode because upgrades obtained this way will not be" + elog "managed by Portage." + + if [[ ! -e /etc/burp/CA/index.txt ]]; then + elog "" + elog "At first run burp server will generate DH parameters and SSL" + elog "certificates. You should adjust configuration before." + elog "Server configuration is located at" + elog "" + elog " /etc/burp/burp-server.conf" + elog "" + fi + + # According to PMS this can be a space-separated list of version + # numbers, even though in practice it is typically just one. + local oldver + for oldver in ${REPLACING_VERSIONS}; do + if [[ $(ver_cut 1 ${oldver}) -lt 2 ]]; then + ewarn "Starting with version 2.0.54 we no longer patch bedup to use" + ewarn "the server config file by default. If you use bedup, please" + ewarn "update your scripts to invoke it as" + ewarn "" + ewarn " bedup -c /etc/burp/burp-server.conf" + ewarn "" + ewarn "Otherwise deduplication will not work!" + break + fi + done +} diff --git a/app-backup/burp/burp-2.3.36-r1.ebuild b/app-backup/burp/burp-2.3.36-r1.ebuild new file mode 100644 index 000000000000..226ee26f9004 --- /dev/null +++ b/app-backup/burp/burp-2.3.36-r1.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd + +DESCRIPTION="Network backup and restore client and server for Unix and Windows" +HOMEPAGE="https://burp.grke.org/" +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="acl ipv6 test xattr" + +RESTRICT="!test? ( test )" + +CDEPEND="acct-group/burp + acct-user/burp + dev-libs/uthash + dev-libs/openssl:0= + net-libs/librsync:= + sys-libs/ncurses:0= + sys-libs/zlib + virtual/libcrypt:= + acl? ( sys-apps/acl ) + xattr? ( sys-apps/attr )" +DEPEND="${CDEPEND} + test? ( dev-libs/check )" +BDEPEND="virtual/pkgconfig" +RDEPEND="${CDEPEND} + virtual/logger" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch + "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch + "${FILESDIR}"/${PN}-2.0.54-server_user.patch +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --localstatedir=/var + --sysconfdir=/etc/burp + --enable-largefile + $(use_enable acl) + $(use_enable ipv6) + $(use_enable xattr) + ) + # --runstatedir option will only work from autoconf-2.70 onwards + runstatedir='/run' \ + econf "${myeconfargs[@]}" +} + +src_test() { + # See https://github.com/grke/burp/issues/869 + local -x CK_DEFAULT_TIMEOUT=10 + default +} + +src_install() { + default + keepdir /var/spool/burp + fowners -R root:${PN} /var/spool/burp + fperms 0770 /var/spool/burp + + emake DESTDIR="${D}" install-configs + fowners -R root:${PN} /etc/burp + fperms 0750 /etc/burp + fperms 0640 /etc/burp/burp-server.conf + fperms 0750 /etc/burp/clientconfdir + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service +} + +pkg_postinst() { + ewarn + ewarn "You are installing a development version of burp. These versions contain" + ewarn "new features but might have unexpected issues. It is recommended by upstream" + ewarn "to use the current stable version (i.e. currently the 2.2 branch) instead." + ewarn + + elog "Burp ebuilds now support the autoupgrade mechanism in both" + elog "client and server mode. In both cases it is disabled by" + elog "default. You almost certainly do NOT want to enable it in" + elog "client mode because upgrades obtained this way will not be" + elog "managed by Portage." + + if [[ ! -e /etc/burp/CA/index.txt ]]; then + elog "" + elog "At first run burp server will generate DH parameters and SSL" + elog "certificates. You should adjust configuration before." + elog "Server configuration is located at" + elog "" + elog " /etc/burp/burp-server.conf" + elog "" + fi + + # According to PMS this can be a space-separated list of version + # numbers, even though in practice it is typically just one. + local oldver + for oldver in ${REPLACING_VERSIONS}; do + if [[ $(ver_cut 1 ${oldver}) -lt 2 ]]; then + ewarn "Starting with version 2.0.54 we no longer patch bedup to use" + ewarn "the server config file by default. If you use bedup, please" + ewarn "update your scripts to invoke it as" + ewarn "" + ewarn " bedup -c /etc/burp/burp-server.conf" + ewarn "" + ewarn "Otherwise deduplication will not work!" + break + fi + done +} diff --git a/app-backup/burp/burp-2.3.36.ebuild b/app-backup/burp/burp-2.3.36.ebuild deleted file mode 100644 index bea45d6bcc62..000000000000 --- a/app-backup/burp/burp-2.3.36.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools systemd - -DESCRIPTION="Network backup and restore client and server for Unix and Windows" -HOMEPAGE="https://burp.grke.org/" -SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="AGPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="acl ipv6 test xattr" - -RESTRICT="!test? ( test )" - -CDEPEND=" acct-group/burp - acct-user/burp - dev-libs/uthash - net-libs/librsync - sys-libs/ncurses:0= - sys-libs/zlib - dev-libs/openssl:0= - acl? ( sys-apps/acl ) - xattr? ( sys-apps/attr )" -DEPEND="${CDEPEND} - virtual/pkgconfig - test? ( dev-libs/check )" -RDEPEND="${CDEPEND} - virtual/logger" - -PATCHES=( - "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch - "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch - "${FILESDIR}"/${PN}-2.0.54-server_user.patch -) - -src_prepare() { - default - - eautoreconf -} - -src_configure() { - local myeconfargs=( - --localstatedir=/var - --sysconfdir=/etc/burp - --enable-largefile - $(use_enable acl) - $(use_enable ipv6) - $(use_enable xattr) - ) - # --runstatedir option will only work from autoconf-2.70 onwards - runstatedir='/run' \ - econf "${myeconfargs[@]}" -} - -src_test() { - # See https://github.com/grke/burp/issues/869 - local -x CK_DEFAULT_TIMEOUT=10 - default -} - -src_install() { - default - keepdir /var/spool/burp - fowners -R root:${PN} /var/spool/burp - fperms 0770 /var/spool/burp - - emake DESTDIR="${D}" install-configs - fowners -R root:${PN} /etc/burp - fperms 0750 /etc/burp - fperms 0640 /etc/burp/burp-server.conf - fperms 0750 /etc/burp/clientconfdir - - newinitd "${FILESDIR}"/${PN}.initd ${PN} - systemd_dounit "${FILESDIR}"/${PN}.service -} - -pkg_postinst() { - ewarn - ewarn "You are installing a development version of burp. These versions contain" - ewarn "new features but might have unexpected issues. It is recommended by upstream" - ewarn "to use the current stable version (i.e. currently the 2.2 branch) instead." - ewarn - - elog "Burp ebuilds now support the autoupgrade mechanism in both" - elog "client and server mode. In both cases it is disabled by" - elog "default. You almost certainly do NOT want to enable it in" - elog "client mode because upgrades obtained this way will not be" - elog "managed by Portage." - - if [[ ! -e /etc/burp/CA/index.txt ]]; then - elog "" - elog "At first run burp server will generate DH parameters and SSL" - elog "certificates. You should adjust configuration before." - elog "Server configuration is located at" - elog "" - elog " /etc/burp/burp-server.conf" - elog "" - fi - - # According to PMS this can be a space-separated list of version - # numbers, even though in practice it is typically just one. - local oldver - for oldver in ${REPLACING_VERSIONS}; do - if [[ $(ver_cut 1 ${oldver}) -lt 2 ]]; then - ewarn "Starting with version 2.0.54 we no longer patch bedup to use" - ewarn "the server config file by default. If you use bedup, please" - ewarn "update your scripts to invoke it as" - ewarn "" - ewarn " bedup -c /etc/burp/burp-server.conf" - ewarn "" - ewarn "Otherwise deduplication will not work!" - break - fi - done -} diff --git a/app-backup/cdbkup/Manifest b/app-backup/cdbkup/Manifest index 824cb7360f83..5efb0e04a889 100644 --- a/app-backup/cdbkup/Manifest +++ b/app-backup/cdbkup/Manifest @@ -1,3 +1,3 @@ DIST cdbkup-1.0.tar.gz 38252 BLAKE2B f16209fac8a4c64b628caf9770c67e944add326a7aeeec0b76a1018b8441fd7cfd92de1a657eb8efe0eb49f30fb3f0e135f090291d8c07da1fef313a81f4b0ab SHA512 f95a7540704c16a01e65397fb63b5b97011685c62d3c9a9b2e303470fed5a31f909cb700035466e89ccd181401fd3c19d427fa32c40ece1ba77c1dba9322969d -EBUILD cdbkup-1.0-r3.ebuild 716 BLAKE2B a678c1d19e60283ae41203ddff6f1ed11cd34a2d815b452d2d1000327bd79d90f0a473477da535b364a5daf050b3db56068dbfaf5bfaefc709d2d767c38a42a5 SHA512 3778744558ae6031e01a59707cc4f340b94c96c2fd4b7d059551c91abe22167a6b9f93758db7d558e012356c9ae285e391a242fb838ce298f1ca2ef6f994c9f0 +EBUILD cdbkup-1.0-r4.ebuild 695 BLAKE2B d84a64452b4f31fd980981770186c5ae9292a4c23b63322884bff5c449d78908d3107f4f950d22b3f70580c96c11690c4c5f520e149ffcf2a86988ceaab66492 SHA512 59de8b92202f442f23f8265f94f2f3f7a50c77088e7ba0b16c20389ba1bc00736b614b91b4bac09514b7fd7ee55f4bcc7f03bce93f93ad7260c42bd9e012b9bf MISC metadata.xml 392 BLAKE2B d840db592ea3cc9fe268652b9fe71d4fb5ce2637e4d0b97d1329d3e389678775677a530de9a31c76b0fd61667964d0a7899b899fa3d39d01b5ce39f2c4910c65 SHA512 12309a51f3fd6a5fe322a90d71cb554c07b1dcbe42aa5052f3b84f9e361dce74e90bf4915852b7d7d563488451f4e6148a9fc24bb7ef539178f4abc8f0805ff8 diff --git a/app-backup/cdbkup/cdbkup-1.0-r3.ebuild b/app-backup/cdbkup/cdbkup-1.0-r3.ebuild deleted file mode 100644 index 2f203321b536..000000000000 --- a/app-backup/cdbkup/cdbkup-1.0-r3.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="performs full/incremental backups of local/remote filesystems onto CD-R(W)s" -HOMEPAGE="http://cdbkup.sourceforge.net/" -SRC_URI="mirror://sourceforge/cdbkup/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="" - -DEPEND=" - app-cdr/cdrtools - net-misc/openssh - sys-apps/util-linux -" -RDEPEND="${DEPEND} - !app-misc/cdcat -" - -src_prepare() { - default - sed -i -e "s:doc/cdbkup:doc/${P}:" Makefile.in || die - sed -i -e 's/make /$(MAKE) /' Makefile.in || die -} - -src_configure() { - econf --with-snardir=/etc/cdbkup --with-dumpgrp=users -} - -src_install() { - default - dodoc COMPLIANCE -} diff --git a/app-backup/cdbkup/cdbkup-1.0-r4.ebuild b/app-backup/cdbkup/cdbkup-1.0-r4.ebuild new file mode 100644 index 000000000000..c7d7b9066e0e --- /dev/null +++ b/app-backup/cdbkup/cdbkup-1.0-r4.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Performs full/incremental backups of local/remote filesystems onto CD-R(W)s" +HOMEPAGE="http://cdbkup.sourceforge.net/" +SRC_URI="mirror://sourceforge/cdbkup/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND=" + app-cdr/cdrtools + net-misc/openssh + sys-apps/util-linux +" +RDEPEND="${DEPEND} + !app-misc/cdcat +" + +src_prepare() { + default + + sed -i \ + -e "s:doc/cdbkup:doc/${PF}:" \ + -e 's/make /$(MAKE) /' \ + Makefile.in || die +} + +src_configure() { + econf --with-snardir=/etc/cdbkup --with-dumpgrp=users +} + +src_install() { + default + dodoc COMPLIANCE +} diff --git a/app-backup/tsm/Manifest b/app-backup/tsm/Manifest index 8e7172bd4144..e97f1f029716 100644 --- a/app-backup/tsm/Manifest +++ b/app-backup/tsm/Manifest @@ -5,5 +5,5 @@ AUX dsmcad.init.d-r1 531 BLAKE2B 840b6431f083df2da7f42d79a1b28a87ed3b90d497e54a1 AUX dsmcad.service 224 BLAKE2B cb84b8616daa3649b8b29c58aa91fffbb119dfd1e84810ed61564fd45380ac792c89c20da1f8296f617467c411605f86a5cc2190d2135be771348c1d58b7c56c SHA512 e3572098abf5b2831d10a3b649337b5c9f1cd9fda4ed58844408b6fe31fdc68a3bbc197eab227f9808bc9ab4b4a7488c766aaa472e801d88631b6b8ec398eb45 AUX tsm.logrotate 60 BLAKE2B bb367d3da53f8061d71e3753ab8c46595d5cf91485da920f032473a99d3241d22fdbe576cc99088c99e97c63d3f2af920d4602878830fb815a58dc8321d37a2a SHA512 2f412c61a21dbb2c69b2c12130ae12844787d998098de269da2b8a284c2ed86f7244c2854d7050f2a521b3fbe7239f1ec4339f3b434c67b9cd57980fe5de5a92 DIST 8.1.6.0-TIV-TSMBAC-LinuxX86.tar 215961600 BLAKE2B de7e3083a87e72763ffee5adbabc20f546edbc771a9ea0017af591b677cb55832c366ec42da6258ccbb81368f7934acfd116eee77236737d8015cc7588d95d3e SHA512 82897f8af6e1408b25eb95206500fa2e05f17983843de3a3456d71ee3cc25188e31a0a2b11c7ee5cf02c3a6aa46fbba03e2a31e697868905739e97c75bfd5984 -EBUILD tsm-8.1.6.0-r1.ebuild 7424 BLAKE2B 2f65100e69dee5f7f1ae4d558de12f2e2ee554629f58b25565abbf2b97e43bb4223122ba36b9919dca4155fa4999ac210d0d9805daf641a364fed9dea066a6ce SHA512 1dc17a93cf1e034fa7511d9b8c021c5c74c2c5c8a605179212120dd7d640218f5e5b2912751763dc8686aea33d090bdf1256c2335fb8dc34eb0ad2d4c437603c +EBUILD tsm-8.1.6.0-r2.ebuild 7488 BLAKE2B 8ab07597c6cfed5782bf1cf96662cca63dde62ff42138b9ee9a41e2b570d7e484d46bf95b5338269a9b70338c6fa4995c7db77cb8fec1c9036d09b4dc4a9db88 SHA512 a9616ad6451d04be58ca2078f6ee81cb5bb4219bfe85c3807515fa4f14628868d7c6d15095d3aa5538a3b7ee1d7fdf8683cd8c307d9f809d0485dcfd0074a6ee MISC metadata.xml 398 BLAKE2B 78fb8e9d30a09caddcc2006326db44bbb2c12b83e174f8af3263d738a1ae958922297d910225137a0f9056f50f76086aeb5ee37e342a1302fb060159f1c50c99 SHA512 d232b0705cc9e5ec35eca0f5c2492b5211cc083db2f825268055b1097017f60967d2e12d61083173593a3c9387f6879584abc2cbe58da69c32fb2ff6d2e83903 diff --git a/app-backup/tsm/tsm-8.1.6.0-r1.ebuild b/app-backup/tsm/tsm-8.1.6.0-r1.ebuild deleted file mode 100644 index 8e4c399042d6..000000000000 --- a/app-backup/tsm/tsm-8.1.6.0-r1.ebuild +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit versionator readme.gentoo-r1 rpm systemd pax-utils - -DESCRIPTION="IBM Spectrum Protect (former Tivoli Storage Manager) Backup/Archive Client, API" -HOMEPAGE="https://www.ibm.com/us-en/marketplace/data-protection-and-recovery" - -MY_PV_MAJOR=$(get_major_version) -MY_PV_MINOR=$(get_version_component_range 2) -MY_PV_TINY=$(get_version_component_range 3) -MY_PV_PATCH=$(get_version_component_range 4) - -MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}" -MY_PVR_ALLDOTS=${PV} - -if [[ ${MY_PV_PATCH} == 0 ]]; then - MY_RELEASE_PATH=maintenance -else - MY_RELEASE_PATH=patches -fi -BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/" -BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/" -BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/" -SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar" -SRC_URI="${BASE_URI}${SRC_TAR}" - -RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so -LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab - dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a - ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C - || ( BSD GPL-2+ ) gSOAP libpng tsm" - -SLOT="0" -KEYWORDS="-* amd64" -IUSE="acl java +tsm-cit +tsm-hw" -QA_PREBUILT="*" - -# not available (yet?) -#MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT ja:JA_JP -# ko:KO_KR pl:PL_PL pt-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW" -MY_LANG_PV="${MY_PVR_ALLDOTS}-" -for lang in ${MY_LANGS}; do - IUSE="${IUSE} l10n_${lang%:*}" - SRC_URI="${SRC_URI} l10n_${lang%:*}? ( \ -${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \ -${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )" -done -unset lang - -DEPEND=" - acct-group/tsm -" -RDEPEND=" - acct-group/tsm - dev-libs/expat - dev-libs/libxml2 - sys-fs/fuse:0 - acl? ( sys-apps/acl ) - java? ( >=virtual/jre-1.7 ) -" - -S="${WORKDIR}/bacli" - -pkg_setup() { - DOC_CONTENTS=" - Note that you have to be root to be able to use the Tivoli Storage Manager - client. The dsmtca trusted agent binary does not exist anymore. - - For information on how to give other users access, please see the following - URLs: - https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.8/client/c_cfg_nonadmin.html#c_macuninst_nonadmin - https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.8/client/c_secure_pwd.html#c_secure_pwd__sec_no_tca - " -} - -src_unpack() { - local rpm rpms lang - mkdir bacli || die - cd bacli || die - unpack ${SRC_TAR} - - cd "${S}" - for rpm in *.rpm; do - case ${rpm} in - TIVsm-APIcit.*|TIVsm-BAcit.*) - use tsm-cit && rpms="${rpms} ./${rpm}" - ;; - TIVsm-BAhdw.*) - use tsm-hw && rpms="${rpms} ./${rpm}" - ;; - TIVsm-JBB.*|*-filepath-*) - # "journal based backup" for all filesystems - # requires a kernel module. - # "Linux Filepath source code" available - # by request from vendor - ;; - *) - rpms="${rpms} ./${rpm}" - ;; - esac - done - for rpm in ${A}; do - case ${rpm} in - *.rpm) - rpms="${rpms} ${rpm}" - ;; - esac - done - - rpm_unpack ${rpms} - - # Avoid strange error messages caused by read-only files - chmod -R u+w "${S}" || die -} - -src_install() { - cp -a opt "${D}" || die - cp -a usr "${D}" || die - - # The RPM files contain postinstall scripts which can be extracted - # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 . - # Below we try to mimic the behaviour of these scripts. - # We don't deal with SELinux compliance (yet), though. - local RPM_INSTALL_PREFIX CLIENTDIR i - RPM_INSTALL_PREFIX=/opt - CLIENTDIR=${RPM_INSTALL_PREFIX}/tivoli/tsm/client - - # Create links for messages; this is spread over several postin scripts. - #for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do - # dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i} - # dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i} - #done - - # Mimic TIVsm-API64 postinstall script - for i in libgpfs.so libdmapi.so; do - dosym ../..${CLIENTDIR}/api/bin64/${i} /usr/lib64/${i} - done - - # The TIVsm-BA postinstall script only does messages and ancient upgrades - - # The gscrypt64 postinstall script only deals with s390[x] SELinux - # and the symlink for the iccs library which we handle in the loop below. - - # Move stuff from /usr/local to /opt, #452332 - mv "${D}"/usr/local/ibm "${D}"/opt/ || die - rmdir "${D}"/usr/local || die - - # Mimic gskssl64 postinstall script - for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do - dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \ - /usr/lib64/libgsk8${i}_64.so - done - for i in capicmd ver; do - dosym ../../opt/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/gsk${i}_64 - done - - # Done with the postinstall scripts as the RPMs contain them. - # Now on to some more Gentoo-specific installation. - - [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system" - - # Avoid "QA Notice: Found an absolute symlink in a library directory" - local target - find "${D}"usr/lib* -lname '/*' | while read i; do - target=$(readlink "${i}") - rm -v "${i}" || die - dosym "../..${target}" "${i#${D}}" - done - - keepdir /var/log/tsm - insinto /etc/logrotate.d - newins "${FILESDIR}/tsm.logrotate" tsm - - keepdir /etc/tivoli - - cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die - echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys - echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys - - # Added the hostname to be more friendly, the admin will need to edit this file anyway - echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys - echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys - echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys - dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys - - cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt" - dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt - - # Setup the env - dodir /etc/env.d - ENV_FILE="${D}/etc/env.d/80tivoli" - echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE} - echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE} - echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE} - # echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE} - - echo 'SEARCH_DIRS_MASK="/opt/tivoli/tsm/client/ba/bin"' > "${T}/80${PN}" || die - insinto "/etc/revdep-rebuild" - doins "${T}/80${PN}" - - newconfd "${FILESDIR}/dsmc.conf.d" dsmc - newinitd "${FILESDIR}/dsmc.init.d" dsmc - newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad - - # Need this for hardened, otherwise a cryptic "connection to server lost" message appears - pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc" - - systemd_dounit "${FILESDIR}/dsmc.service" - systemd_dounit "${FILESDIR}/dsmcad.service" - - readme.gentoo_create_doc -} - -pkg_postinst() { - local i dirs - for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do - if [[ ! -e ${i} ]]; then - touch ${i} || die - chown :tsm ${i} || die - chmod 0660 ${i} || die - fi - done - - # Bug #375041: the log directory itself should not be world writable. - # Have to do this in postinst due to bug #141619 - chown root:tsm /var/log/tsm || die - chmod 0750 /var/log/tsm || die - - # Bug 508052: directories used to be too restrictive, have to widen perms. - dirs=( /opt/tivoli $(find /opt/tivoli/tsm -type d) ) - chown root:root "${dirs[@]}" || die - chmod 0755 "${dirs[@]}" || die - - FORCE_PRINT_ELOG=1 - DISABLE_AUTOFORMATTING=1 - readme.gentoo_print_elog -} diff --git a/app-backup/tsm/tsm-8.1.6.0-r2.ebuild b/app-backup/tsm/tsm-8.1.6.0-r2.ebuild new file mode 100644 index 000000000000..c8bfb5d1b7e5 --- /dev/null +++ b/app-backup/tsm/tsm-8.1.6.0-r2.ebuild @@ -0,0 +1,243 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit versionator readme.gentoo-r1 rpm systemd pax-utils + +DESCRIPTION="IBM Spectrum Protect (former Tivoli Storage Manager) Backup/Archive Client, API" +HOMEPAGE="https://www.ibm.com/us-en/marketplace/data-protection-and-recovery" + +MY_PV_MAJOR=$(get_major_version) +MY_PV_MINOR=$(get_version_component_range 2) +MY_PV_TINY=$(get_version_component_range 3) +MY_PV_PATCH=$(get_version_component_range 4) + +MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}" +MY_PVR_ALLDOTS=${PV} + +if [[ ${MY_PV_PATCH} == 0 ]]; then + MY_RELEASE_PATH=maintenance +else + MY_RELEASE_PATH=patches +fi +BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/" +BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/" +BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/" +SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar" +SRC_URI="${BASE_URI}${SRC_TAR}" + +RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so +LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab + dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a + ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C + || ( BSD GPL-2+ ) gSOAP libpng tsm" + +SLOT="0" +KEYWORDS="-* amd64" +IUSE="acl java +tsm-cit +tsm-hw" +QA_PREBUILT="*" + +# not available (yet?) +#MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT ja:JA_JP +# ko:KO_KR pl:PL_PL pt-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW" +MY_LANG_PV="${MY_PVR_ALLDOTS}-" +for lang in ${MY_LANGS}; do + IUSE="${IUSE} l10n_${lang%:*}" + SRC_URI="${SRC_URI} l10n_${lang%:*}? ( \ +${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \ +${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )" +done +unset lang + +DEPEND=" + acct-group/tsm +" +RDEPEND=" + acct-group/tsm + dev-libs/expat + dev-libs/libxml2 + sys-fs/fuse:0 + acl? ( sys-apps/acl ) + java? ( >=virtual/jre-1.7 ) + || ( + sys-libs/glibc[crypt(+)] + sys-libs/libxcrypt[compat] + )" + +S="${WORKDIR}/bacli" + +pkg_setup() { + DOC_CONTENTS=" + Note that you have to be root to be able to use the Tivoli Storage Manager + client. The dsmtca trusted agent binary does not exist anymore. + + For information on how to give other users access, please see the following + URLs: + https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.8/client/c_cfg_nonadmin.html#c_macuninst_nonadmin + https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.8/client/c_secure_pwd.html#c_secure_pwd__sec_no_tca + " +} + +src_unpack() { + local rpm rpms lang + mkdir bacli || die + cd bacli || die + unpack ${SRC_TAR} + + cd "${S}" + for rpm in *.rpm; do + case ${rpm} in + TIVsm-APIcit.*|TIVsm-BAcit.*) + use tsm-cit && rpms="${rpms} ./${rpm}" + ;; + TIVsm-BAhdw.*) + use tsm-hw && rpms="${rpms} ./${rpm}" + ;; + TIVsm-JBB.*|*-filepath-*) + # "journal based backup" for all filesystems + # requires a kernel module. + # "Linux Filepath source code" available + # by request from vendor + ;; + *) + rpms="${rpms} ./${rpm}" + ;; + esac + done + for rpm in ${A}; do + case ${rpm} in + *.rpm) + rpms="${rpms} ${rpm}" + ;; + esac + done + + rpm_unpack ${rpms} + + # Avoid strange error messages caused by read-only files + chmod -R u+w "${S}" || die +} + +src_install() { + cp -a opt "${D}" || die + cp -a usr "${D}" || die + + # The RPM files contain postinstall scripts which can be extracted + # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 . + # Below we try to mimic the behaviour of these scripts. + # We don't deal with SELinux compliance (yet), though. + local RPM_INSTALL_PREFIX CLIENTDIR i + RPM_INSTALL_PREFIX=/opt + CLIENTDIR=${RPM_INSTALL_PREFIX}/tivoli/tsm/client + + # Create links for messages; this is spread over several postin scripts. + #for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do + # dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i} + # dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i} + #done + + # Mimic TIVsm-API64 postinstall script + for i in libgpfs.so libdmapi.so; do + dosym ../..${CLIENTDIR}/api/bin64/${i} /usr/lib64/${i} + done + + # The TIVsm-BA postinstall script only does messages and ancient upgrades + + # The gscrypt64 postinstall script only deals with s390[x] SELinux + # and the symlink for the iccs library which we handle in the loop below. + + # Move stuff from /usr/local to /opt, #452332 + mv "${D}"/usr/local/ibm "${D}"/opt/ || die + rmdir "${D}"/usr/local || die + + # Mimic gskssl64 postinstall script + for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do + dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \ + /usr/lib64/libgsk8${i}_64.so + done + for i in capicmd ver; do + dosym ../../opt/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/gsk${i}_64 + done + + # Done with the postinstall scripts as the RPMs contain them. + # Now on to some more Gentoo-specific installation. + + [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system" + + # Avoid "QA Notice: Found an absolute symlink in a library directory" + local target + find "${D}"usr/lib* -lname '/*' | while read i; do + target=$(readlink "${i}") + rm -v "${i}" || die + dosym "../..${target}" "${i#${D}}" + done + + keepdir /var/log/tsm + insinto /etc/logrotate.d + newins "${FILESDIR}/tsm.logrotate" tsm + + keepdir /etc/tivoli + + cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die + echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys + echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys + + # Added the hostname to be more friendly, the admin will need to edit this file anyway + echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys + echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys + echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys + dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys + + cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt" + dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt + + # Setup the env + dodir /etc/env.d + ENV_FILE="${D}/etc/env.d/80tivoli" + echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE} + echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE} + echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE} + # echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE} + + echo 'SEARCH_DIRS_MASK="/opt/tivoli/tsm/client/ba/bin"' > "${T}/80${PN}" || die + insinto "/etc/revdep-rebuild" + doins "${T}/80${PN}" + + newconfd "${FILESDIR}/dsmc.conf.d" dsmc + newinitd "${FILESDIR}/dsmc.init.d" dsmc + newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad + + # Need this for hardened, otherwise a cryptic "connection to server lost" message appears + pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc" + + systemd_dounit "${FILESDIR}/dsmc.service" + systemd_dounit "${FILESDIR}/dsmcad.service" + + readme.gentoo_create_doc +} + +pkg_postinst() { + local i dirs + for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do + if [[ ! -e ${i} ]]; then + touch ${i} || die + chown :tsm ${i} || die + chmod 0660 ${i} || die + fi + done + + # Bug #375041: the log directory itself should not be world writable. + # Have to do this in postinst due to bug #141619 + chown root:tsm /var/log/tsm || die + chmod 0750 /var/log/tsm || die + + # Bug 508052: directories used to be too restrictive, have to widen perms. + dirs=( /opt/tivoli $(find /opt/tivoli/tsm -type d) ) + chown root:root "${dirs[@]}" || die + chmod 0755 "${dirs[@]}" || die + + FORCE_PRINT_ELOG=1 + DISABLE_AUTOFORMATTING=1 + readme.gentoo_print_elog +} -- cgit v1.2.3