Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/bareos/
Date: Sat, 01 Aug 2020 14:14:39
Message-Id: 1596291173.fe13d0c0b558ae861f14d6ceaedb1e8c18613269.mschiff@gentoo
1 commit: fe13d0c0b558ae861f14d6ceaedb1e8c18613269
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 14:10:42 2020 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 14:12:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe13d0c0
7
8 app-backup/bareos: remove old 19.2 version
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.23
11 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
12
13 app-backup/bareos/Manifest | 1 -
14 app-backup/bareos/bareos-19.2.7.ebuild | 374 ---------------------------------
15 2 files changed, 375 deletions(-)
16
17 diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest
18 index 1a93cb3c16b..d0024070cfb 100644
19 --- a/app-backup/bareos/Manifest
20 +++ b/app-backup/bareos/Manifest
21 @@ -1,4 +1,3 @@
22 DIST bareos-17.2.10.tar.gz 4190783 BLAKE2B d2deb9368438b5281ea36768b80cc15840135a77a19952daa895c4e30ee6ad231d9ecf28a6d860bd372eb08c1c34f9f827843745c87f465d3a59ab048aecc001 SHA512 3e145627a08927790deb8f75e5167e6e69710733eb1866a93adb34617c274c2b51145a6b1253388784f67bc4886fec7fbb423893a36d377bb96334a2dc7768f2
23 DIST bareos-18.2.9.tar.gz 10554581 BLAKE2B 1277956a87794e707050c119a0e2d6a879f47bd67bde7fa230796b6f9a8c0b6ca1cddf35f12b6e53d0841f6cfbb86c586157b9705d36c515adaf1021bb23edc1 SHA512 f40c0bc696f31ee4eb443cc7a76a5810620a2fbb5fa421afc580e047879ce86b1288de92679695e00074a3bfd5a5ac2a4cb4fb8f8acbb39e615df19ad9cf7934
24 -DIST bareos-19.2.7.tar.gz 12602338 BLAKE2B 31fa9c9966b22913c2af6eaa6c6f704396d353341878817a574388925f35b437331b057b2a147a8217502f9198b39539d2fa68c4047e191dc918123c0f674a7d SHA512 cb467846a41d42a469704d48c3a1b03ebf5fdc71b9268c1e438e46b86073d55993dfd9bf26242db593db8b1814009c060fd65122d434bad2986c24613f6865c6
25 DIST bareos-19.2.8.tar.gz 12604929 BLAKE2B c3af2d0a62b861a4ad5ca5c115a2039356009b7524505e1beb9004636fd09dd2b6ca784a5aae8c1cec3db518fb047cde429c469b8298a6bb473b097012358302 SHA512 60bbbbd949a63f978cf1ed7d0cfc22c22f117d8c2700eb47531e15b2d91fc700c522519f0b816cd1040283f09b4c81f36910c66c8b6f4bf1ff22180e979bdeb5
26
27 diff --git a/app-backup/bareos/bareos-19.2.7.ebuild b/app-backup/bareos/bareos-19.2.7.ebuild
28 deleted file mode 100644
29 index cb87707808e..00000000000
30 --- a/app-backup/bareos/bareos-19.2.7.ebuild
31 +++ /dev/null
32 @@ -1,374 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PYTHON_COMPAT=( python2_7 )
39 -CMAKE_WARN_UNUSED_CLI=no
40 -#CMAKE_REMOVE_MODULES=yes
41 -
42 -inherit python-any-r1 systemd cmake-utils
43 -
44 -DESCRIPTION="Featureful client/server network backup suite"
45 -HOMEPAGE="https://www.bareos.org/"
46 -SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
47 -RESTRICT="mirror"
48 -
49 -LICENSE="AGPL-3"
50 -SLOT="0"
51 -KEYWORDS="~amd64 ~x86"
52 -IUSE="X acl ceph clientonly +director glusterfs ipv6 jansson lmdb libressl
53 - logwatch mysql ndmp +postgres readline scsi-crypto
54 - sqlite static +storage-daemon systemd tcpd vim-syntax xattr"
55 -
56 -# get cmake variables from core/cmake/BareosSetVariableDefaults.cmake
57 -DEPEND="
58 - !app-backup/bacula
59 - acct-group/${PN}
60 - !x86? (
61 - ceph? ( sys-cluster/ceph )
62 - )
63 - glusterfs? ( sys-cluster/glusterfs )
64 - lmdb? ( dev-db/lmdb )
65 - dev-libs/gmp:0
66 - !clientonly? (
67 - acct-user/${PN}
68 - postgres? ( dev-db/postgresql:*[threads] )
69 - mysql? ( virtual/mysql )
70 - sqlite? ( dev-db/sqlite:3 )
71 - director? (
72 - virtual/mta
73 - jansson? ( dev-libs/jansson )
74 - )
75 - )
76 - logwatch? ( sys-apps/logwatch )
77 - tcpd? ( sys-apps/tcp-wrappers )
78 - readline? ( sys-libs/readline:0 )
79 - static? (
80 - acl? ( virtual/acl[static-libs] )
81 - sys-libs/zlib[static-libs]
82 - dev-libs/lzo[static-libs]
83 - sys-libs/ncurses:=[static-libs]
84 - !libressl? ( dev-libs/openssl:0=[static-libs] )
85 - libressl? ( dev-libs/libressl:0=[static-libs] )
86 - )
87 - !static? (
88 - acl? ( virtual/acl )
89 - dev-libs/lzo
90 - !libressl? ( dev-libs/openssl:0= )
91 - libressl? ( dev-libs/libressl:0= )
92 - sys-libs/ncurses:=
93 - sys-libs/zlib
94 - )
95 - "
96 -RDEPEND="${DEPEND}
97 - !clientonly? (
98 - storage-daemon? (
99 - sys-block/mtx
100 - app-arch/mt-st
101 - )
102 - )
103 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
104 - "
105 -BDEPEND="${PYTHON_DEPS}"
106 -
107 -REQUIRED_USE="
108 - !clientonly? ( || ( mysql postgres sqlite ) )
109 - static? ( clientonly )
110 - x86? ( !ceph )
111 -"
112 -
113 -S=${WORKDIR}/${PN}-Release-${PV}
114 -
115 -src_prepare() {
116 - use mysql && export mydbtypes+=( mysql )
117 - use postgres && export mydbtypes+=( postgresql )
118 - use sqlite && export mydbtypes+=( sqlite )
119 -
120 - # enables default database driver in catalog
121 - pushd core/src/defaultconfigs >&/dev/null || die
122 - sed -i -e 's/#dbdriver/dbdriver/' -e '/XXX_REPLACE_WITH_DATABASE_DRIVER_XXX/d' $(grep -rl XXX_REPLACE_WITH_DATABASE_DRIVER_XXX) \
123 - || die "sed on MyCatalog.conf.in failed"
124 - popd >&/dev/null || die
125 -
126 - # fix gentoo version detection
127 - eapply -p0 "${FILESDIR}/${PN}-cmake-gentoo.patch"
128 -
129 - # fix missing DESTDIR in symlink creation
130 - sed -i '/bareos-symlink-default-db-backend.cmake/d' "${S}/core/src/cats/CMakeLists.txt"
131 -
132 - CMAKE_USE_DIR="$S/core"
133 - cmake-utils_src_prepare
134 -}
135 -
136 -src_configure() {
137 - local mycmakeargs=()
138 -
139 - CMAKE_USE_DIR="$S/core"
140 -
141 - pushd core/platforms >&/dev/null || die
142 - cmake_comment_add_subdirectory '${DISTNAME}'
143 - popd >&/dev/null || die
144 -
145 - if use clientonly; then
146 - mycmakeargs+=(
147 - -Dclient-only=ON
148 - -Dstatic-cons=$(usex static)
149 - -Dstatic-fd=$(usex static)
150 - )
151 - fi
152 -
153 - for useflag in acl ipv6 ndmp scsi-crypto \
154 - systemd mysql lmdb; do
155 - mycmakeargs+=( -D$useflag=$(usex $useflag) )
156 - done
157 -
158 - mycmakeargs+=(
159 - -DDEFAULT_DB_TYPE=${mydbtypes[0]}
160 - -Darchivedir=/var/lib/bareos/storage
161 - -Dbackenddir=/usr/$(get_libdir)/${PN}/backend
162 - -Dbasename="`hostname -s`"
163 - -Dbatch-insert=yes
164 - -Dbsrdir=/var/lib/bareos/bsr
165 - -Dconfdir=/etc/bareos
166 - -Dcoverage=yes
167 - -Ddb_password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1`
168 - -Ddir-group=bareos
169 - -Ddir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
170 - -Ddir-user=bareos
171 - -Ddocdir=/usr/share/doc/${PF}
172 - -Ddynamic-cats-backends=yes
173 - -Ddynamic-storage-backends=yes
174 - -Dfd-group=bareos
175 - -Dfd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
176 - -Dfd-user=root
177 - -Dhost=${CHOST}
178 - -Dhostname="`hostname -s`"
179 - -Dhtmldir=/usr/share/doc/${PF}/html
180 - -Dlibdir=/usr/$(get_libdir)
181 - -Dlogdir=/var/log/bareos
182 - -Dmandir=/usr/share/man
183 - -Dmon-dir-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
184 - -Dmon-fd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
185 - -Dmon-sd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
186 - -Dmysql=$(usex mysql)
187 - -Dopenssl=yes
188 - -Dpiddir=/run/bareos
189 - -Dplugindir=/usr/$(get_libdir)/${PN}/plugin
190 - -Dpostgresql=$(usex postgres)
191 - -Dsbin-perm=0755
192 - -Dsbindir=/usr/sbin
193 - -Dscriptdir=/usr/libexec/bareos
194 - -Dsd-group=bareos
195 - -Dsd-password="`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`"
196 - -Dsd-user=root
197 - -Dsqlite3=$(usex sqlite)
198 - -Dsubsysdir=/run/lock/subsys
199 - -Dsysconfdir=/etc
200 - -Dworkingdir=/var/lib/bareos
201 - -Dx=$(usex X)
202 - )
203 -
204 - cmake-utils_src_configure
205 -}
206 -
207 -src_install() {
208 - cmake-utils_src_install
209 -
210 - # remove some scripts we don't need at all
211 - rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
212 - rm -f "${D}"/usr/sbin/bareos
213 -
214 - # remove upstream init scripts
215 - rm -f "${D}"/etc/init.d/bareos-*
216 -
217 - # rename statically linked apps
218 - if use clientonly && use static ; then
219 - pushd "${D}"/usr/sbin || die
220 - mv static-bareos-fd bareos-fd || die
221 - mv static-bconsole bconsole || die
222 - popd || die
223 - fi
224 -
225 - # extra files which 'make install' doesn't cover
226 - if ! use clientonly; then
227 - # the logrotate configuration
228 - # (now unconditional wrt bug #258187)
229 - diropts -m0755
230 - insinto /etc/logrotate.d
231 - insopts -m0644
232 - newins "${S}"/core/scripts/logrotate bareos
233 -
234 - # the logwatch scripts
235 - if use logwatch; then
236 - diropts -m0750
237 - dodir /etc/log.d/scripts/services
238 - dodir /etc/log.d/scripts/shared
239 - dodir /etc/log.d/conf/logfiles
240 - dodir /etc/log.d/conf/services
241 - pushd "${S}"/core/scripts/logwatch >&/dev/null || die
242 -
243 - into /etc/log.d/scripts/services
244 - dobin bareos
245 -
246 - into /etc/log.d/scripts/shared
247 - dobin applybareosdate
248 -
249 - insinto /etc/log.d/conf/logfiles
250 - newins logfile.bareos.conf bareos.conf
251 -
252 - insinto /etc/log.d/conf/services
253 - newins services.bareos.conf bareos.conf
254 -
255 - popd >&/dev/null || die
256 - fi
257 - fi
258 -
259 - rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
260 - if use clientonly || ! use director; then
261 - if use systemd; then
262 - rm -vf "${D}"/lib/systemd/system/bareos-dir.service
263 - fi
264 - rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
265 - rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
266 - rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
267 - rm -vf "${D}"/usr/share/man/man8/bwild.8*
268 - rm -vf "${D}"/usr/share/man/man8/bregex.8*
269 - rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
270 - rm -vf "${D}"/usr/libexec/bareos/create_*_database
271 - rm -vf "${D}"/usr/libexec/bareos/drop_*_database
272 - rm -vf "${D}"/usr/libexec/bareos/make_*_tables
273 - rm -vf "${D}"/usr/libexec/bareos/update_*_tables
274 - rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
275 - rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
276 - rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
277 - fi
278 - if use clientonly || ! use storage-daemon; then
279 - if use systemd; then
280 - rm -vf "${D}"/lib/systemd/system/bareos-sd.service
281 - fi
282 - rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
283 - rm -vf "${D}"/usr/share/man/man8/bcopy.8*
284 - rm -vf "${D}"/usr/share/man/man8/bextract.8*
285 - rm -vf "${D}"/usr/share/man/man8/bls.8*
286 - rm -vf "${D}"/usr/share/man/man8/bscan.8*
287 - rm -vf "${D}"/usr/share/man/man8/btape.8*
288 - rm -vf "${D}"/usr/libexec/bareos/disk-changer
289 - rm -vf "${D}"/usr/libexec/bareos/mtx-changer
290 - rm -vf "${D}"/usr/libexec/bareos/dvd-handler
291 - rm -vf "${D}"/etc/bareos/mtx-changer.conf
292 - fi
293 - if ! use scsi-crypto; then
294 - rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
295 - fi
296 -
297 - # documentation
298 - dodoc README.md
299 - dodoc core/README.configsubdirectories
300 - use glusterfs dodoc core/README.glusterfs
301 - use ndmp && dodoc core/README.NDMP
302 - use scsi-crypto && dodoc core/README.scsicrypto
303 -
304 - # vim-files
305 - if use vim-syntax; then
306 - insinto /usr/share/vim/vimfiles/syntax
307 - doins core/scripts/bareos.vim
308 - insinto /usr/share/vim/vimfiles/ftdetect
309 - newins core/scripts/filetype.vim bareos_ft.vim
310 - fi
311 -
312 - # setup init scripts
313 - myscripts="bareos-fd"
314 - if ! use clientonly; then
315 - if use director; then
316 - myscripts+=" bareos-dir"
317 - fi
318 - if use storage-daemon; then
319 - myscripts+=" bareos-sd"
320 - fi
321 - fi
322 - for script in ${myscripts}; do
323 - # copy over init script and config to a temporary location
324 - # so we can modify them as needed
325 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
326 - cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
327 -
328 - # now set the database dependency for the director init script
329 - case "${script}" in
330 - bareos-dir)
331 - sed -i -e "s:%databasetypes%:${mydbtypes[*]}:" "${T}/${script}".confd || die
332 - ;;
333 - *)
334 - ;;
335 - esac
336 -
337 - # install init script and config
338 - newinitd "${T}/${script}".initd "${script}"
339 - newconfd "${T}/${script}".confd "${script}"
340 - done
341 -
342 - # install systemd unit files
343 - if use systemd; then
344 - if ! use clientonly; then
345 - use director && systemd_dounit core/platforms/systemd/bareos-dir.service
346 - use storage-daemon && systemd_dounit core/platforms/systemd/bareos-sd.service
347 - fi
348 - systemd_dounit core/platforms/systemd/bareos-fd.service
349 - fi
350 -
351 - # make sure the working directory exists
352 - diropts -m0750
353 - keepdir /var/lib/bareos
354 - keepdir /var/lib/bareos/storage
355 -
356 - diropts -m0755
357 - keepdir /var/log/bareos
358 -
359 - # make sure bareos group can execute bareos libexec scripts
360 - fowners -R root:bareos /usr/libexec/bareos
361 -}
362 -
363 -pkg_postinst() {
364 - if use clientonly; then
365 - fowners root:bareos /var/lib/bareos
366 - else
367 - fowners bareos:bareos /var/lib/bareos
368 - fi
369 -
370 - if ! use clientonly && use director; then
371 - einfo
372 - einfo "If this is a new install, you must create the database:"
373 - if use postgres; then
374 - einfo
375 - einfo "For postgresql:"
376 - einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
377 - einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
378 - einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
379 - fi
380 - if use mysql; then
381 - einfo
382 - einfo "For mysql:"
383 - einfo
384 - einfo " Make sure root has direct access to your mysql server. You may want to"
385 - einfo " create a /root/.my.cnf file with"
386 - einfo " [client]"
387 - einfo " user=root"
388 - einfo " password=YourPasswordForAccessingMysqlAsRoot"
389 - einfo " before running:"
390 - einfo " /usr/libexec/bareos/create_bareos_database mysql"
391 - einfo " /usr/libexec/bareos/make_bareos_tables mysql"
392 - einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
393 - fi
394 - einfo
395 - fi
396 -
397 - if use sqlite; then
398 - einfo
399 - einfo "Be aware that Bareos does not officially support SQLite database."
400 - einfo "Best use it only for a client-only installation. See Bug #445540."
401 - einfo
402 - einfo "It is strongly recommended to use either postgresql or mysql as"
403 - einfo "catalog database backend."
404 - einfo
405 - fi
406 -}