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: Tue, 29 Dec 2015 15:14:15
Message-Id: 1451402028.20580a3ffb5e142d8a96176088d4b96edbfe42fe.mschiff@gentoo
1 commit: 20580a3ffb5e142d8a96176088d4b96edbfe42fe
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 15:13:30 2015 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 15:13:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20580a3f
7
8 app-backup/bareos: remove old version
9
10 Package-Manager: portage-2.2.26
11
12 app-backup/bareos/Manifest | 1 -
13 app-backup/bareos/bareos-15.2.1.ebuild | 420 ---------------------------------
14 2 files changed, 421 deletions(-)
15
16 diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest
17 index 0b50252..3030c03 100644
18 --- a/app-backup/bareos/Manifest
19 +++ b/app-backup/bareos/Manifest
20 @@ -1,5 +1,4 @@
21 DIST bareos-13.2.4.tar.gz 3467542 SHA256 def68891d074438e55d7a3e570cfaae1c1a8c9479d089815ba0f8f31e1d6eefc SHA512 d7e4bc016993f68521f4438b56adf51e88685195693d00d34103259c3c24d1d7c03cc2b7aecbb55ff88a00d5f169e9e42accd23b17bcd3c837ca78079a9f394f WHIRLPOOL 54b5ee5094be6569c1a7857ebcc98f1e24ee272485327397f1ab0833433a6b46e8b7e3f2cd927668600ba63f2d36a920dc64cb9dfc2f0dd69adb57a70b862848
22 DIST bareos-14.2.2.tar.gz 3811787 SHA256 8792fe79689f7a1053ecb493ba52258acb29d0998b71d65178a311d46b7cf2bf SHA512 be490ab2f8085975f164ac554cac7d6bbef1af01c8350b5816b2033a37827de4a81bead6ce1e699fe5cc44085dce2b6a0330b91239fb87907e22f9c8dc710156 WHIRLPOOL 384415d553d61e7aa1eaa22611cc9d9eacf8338df82d911409e52a774e756b0539810c60be3dade91eadcc679794ad7c3bb5a155d7d699171f6a4fdead5a5470
23 DIST bareos-14.2.5.tar.gz 3820963 SHA256 f42bc34afa913cfb4d6b7ef8856c7195d8b13b21c987da1039d46e6c60f06720 SHA512 600cdf8175b1199b73ddcf8a32df7bca446c294c4c830038f93fe3f053482916745675df3a51bc494cdab00b362d57657a34a94e78bac4bae3acced06347023d WHIRLPOOL 361c0edb411c824f128ccb5e27f4d637ecfdf4f2de7a428a8c4eace6d5c23a33a3868cc1b380dcbf6e06d6c7bb71ff222abad923ea9a0bfb74e78f0445c4058b
24 -DIST bareos-15.2.1.tar.gz 3899227 SHA256 8c44496e19f1bfd3e06bb886967c06db5e9c9a991511d99eefb30deb8a8391d2 SHA512 5c03063ad27d3474431d39354a4dd217e90ad9a3c8c60742b544b33955667b62365e8b4ee5d2b773dfc11c7e154a2713bf8f7cf44d536d6a96288c9f007efb49 WHIRLPOOL 3498c584e8800692adfb92950124643f78bb237364fe7e00c9a4ae26083465ac01250a7fe20f98905db6080de35ec71f943739cea9f6d666e65afdf695f95871
25 DIST bareos-15.2.2.tar.gz 3928079 SHA256 7c7e07c877956385870475382184d39df7232ecd9791c3a3942624473410da93 SHA512 5eb372da510e69fe75175cd6c28e1e2d65372eb0ea58193a6747fceccd4398a343a84abbb379f67849f96242d818f26f2dec3093be56c9f64ea59a1504339d6d WHIRLPOOL 0a79a88fbf6087536f8442fc413f7adbe03ad5affe6dc5550a8e05ded172e15357789637e8a5e606f172a1a0e319d2af20dfbd5144331e37693bbf0543de52e2
26
27 diff --git a/app-backup/bareos/bareos-15.2.1.ebuild b/app-backup/bareos/bareos-15.2.1.ebuild
28 deleted file mode 100644
29 index 1b4325e..0000000
30 --- a/app-backup/bareos/bareos-15.2.1.ebuild
31 +++ /dev/null
32 @@ -1,420 +0,0 @@
33 -# Copyright 1999-2015 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI="5"
38 -
39 -PYTHON_COMPAT=( python2_7 )
40 -PYTHON_REQ_USE="threads"
41 -
42 -inherit eutils multilib python-single-r1 qt4-r2 user
43 -
44 -DESCRIPTION="Featureful client/server network backup suite"
45 -HOMEPAGE="http://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=""
52 -IUSE="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson lmdb logwatch
53 - mysql ndmp postgres python qt4 rados rados-striper readline scsi-crypto sql-pooling
54 - +sqlite ssl static +storage-daemon tcpd vim-syntax"
55 -
56 -DEPEND="
57 - !app-backup/bacula
58 - cephfs? ( sys-cluster/ceph )
59 - rados? ( sys-cluster/ceph )
60 - rados-striper? ( >=sys-cluster/ceph-0.94.2 )
61 - glusterfs? ( sys-cluster/glusterfs )
62 - lmdb? ( dev-db/lmdb )
63 - dev-libs/gmp:0
64 - !clientonly? (
65 - postgres? ( dev-db/postgresql:*[threads] )
66 - mysql? ( virtual/mysql )
67 - sqlite? ( dev-db/sqlite:3 )
68 - director? (
69 - virtual/mta
70 - jansson? ( dev-libs/jansson )
71 - )
72 - )
73 - qt4? (
74 - dev-qt/qtsvg:4
75 - x11-libs/qwt:5
76 - )
77 - fastlz? ( dev-libs/bareos-fastlzlib )
78 - logwatch? ( sys-apps/logwatch )
79 - tcpd? ( sys-apps/tcp-wrappers )
80 - readline? ( sys-libs/readline:0 )
81 - static? (
82 - acl? ( virtual/acl[static-libs] )
83 - sys-libs/zlib[static-libs]
84 - dev-libs/lzo[static-libs]
85 - sys-libs/ncurses:=[static-libs]
86 - ssl? (
87 - !gnutls? ( dev-libs/openssl:0[static-libs] )
88 - gnutls? ( net-libs/gnutls[static-libs] )
89 - )
90 - )
91 - !static? (
92 - acl? ( virtual/acl )
93 - dev-libs/lzo
94 - ssl? (
95 - !gnutls? ( dev-libs/openssl:0 )
96 - gnutls? ( net-libs/gnutls )
97 - )
98 - sys-libs/ncurses:=
99 - sys-libs/zlib
100 - )
101 - python? ( ${PYTHON_DEPS} )
102 - "
103 -RDEPEND="${DEPEND}
104 - !clientonly? (
105 - storage-daemon? (
106 - sys-block/mtx
107 - app-arch/mt-st
108 - )
109 - )
110 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
111 -
112 -REQUIRED_USE="static? ( clientonly )
113 - python? ( ${PYTHON_REQUIRED_USE} )"
114 -
115 -S=${WORKDIR}/${PN}-Release-${PV}
116 -
117 -pkg_setup() {
118 - use mysql && export mydbtypes+="mysql"
119 - use postgres && export mydbtypes+=" postgresql"
120 - use sqlite && export mydbtypes+=" sqlite"
121 -
122 - # create the daemon group and user
123 - if [ -z "$(egetent group bareos 2>/dev/null)" ]; then
124 - enewgroup bareos
125 - einfo
126 - einfo "The group 'bareos' has been created. Any users you add to this"
127 - einfo "group have access to files created by the daemons."
128 - einfo
129 - fi
130 -
131 - if use clientonly && use static && use qt4; then
132 - ewarn
133 - ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
134 - ewarn
135 - fi
136 -
137 - if ! use clientonly; then
138 - if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then
139 - enewuser bareos -1 -1 /var/lib/bareos bareos,disk,tape,cdrom,cdrw
140 - einfo
141 - einfo "The user 'bareos' has been created. Please see the bareos manual"
142 - einfo "for information about running bareos as a non-root user."
143 - einfo
144 - fi
145 - fi
146 -
147 - use python && python-single-r1_pkg_setup
148 -}
149 -
150 -src_prepare() {
151 - # adjusts default configuration files for several binaries
152 - # to /etc/bareos/<config> instead of ./<config>
153 - pushd src >&/dev/null || die
154 - for f in console/console.c dird/dird.c filed/filed.c \
155 - stored/bcopy.c stored/bextract.c stored/bls.c \
156 - stored/bscan.c stored/btape.c stored/stored.c \
157 - qt-console/main.cpp; do
158 - sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \
159 - || die "sed on ${f} failed"
160 - done
161 - popd >&/dev/null || die
162 -
163 - # bug 466690 Use CXXFLAGS instead of CFLAGS
164 - sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
165 -
166 - # stop build for errors in subdirs
167 - epatch "${FILESDIR}"/${PN}-12.4.5-Makefile.patch
168 -
169 - # bat needs to respect LDFLAGS
170 - epatch "${FILESDIR}"/${PN}-12.4.5-bat-ldflags.patch
171 -
172 - # do not strip binaries
173 - for d in filed console dird stored; do
174 - sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
175 - done
176 -}
177 -
178 -src_configure() {
179 - local myconf=''
180 -
181 - if use clientonly; then
182 - myconf="${myconf} \
183 - $(use_enable clientonly client-only) \
184 - $(use_enable !static libtool) \
185 - $(use_enable static static-cons) \
186 - $(use_enable static static-fd)"
187 - fi
188 -
189 - # do not build bat and traymonitor if 'static' clientonly
190 - if ! use clientonly || ! use static; then
191 - myconf="${myconf} \
192 - $(use_enable qt4 bat) \
193 - $(use_enable qt4 traymonitor)"
194 - fi
195 -
196 - myconf="${myconf} \
197 - $(use_with X x) \
198 - $(use_enable acl) \
199 - $(use_enable ipv6) \
200 - $(use_enable ndmp) \
201 - $(use_enable readline) \
202 - $(use_enable !readline conio) \
203 - $(use_enable scsi-crypto) \
204 - $(use_enable sql-pooling) \
205 - $(use_with fastlz) \
206 - $(use_with mysql) \
207 - $(use_with postgres postgresql) \
208 - $(use_with python) \
209 - $(use_with readline) \
210 - $(use_with sqlite sqlite3) \
211 - $(use sqlite || echo "--without-sqlite3") \
212 - $(use_with ssl openssl) \
213 - $(use_with tcpd tcp-wrappers) \
214 - $(use_enable lmdb) \
215 - $(use_with glusterfs) \
216 - $(use_with rados) \
217 - $(use_with rados-striper) \
218 - $(use_with cephfs) \
219 - $(use_with jansson) \
220 - "
221 -
222 - econf \
223 - --libdir=/usr/$(get_libdir) \
224 - --docdir=/usr/share/doc/${PF} \
225 - --htmldir=/usr/share/doc/${PF}/html \
226 - --with-pid-dir=/run/bareos \
227 - --sysconfdir=/etc \
228 - --with-subsys-dir=/run/lock/subsys \
229 - --with-working-dir=/var/lib/bareos \
230 - --with-logdir=/var/log/bareos \
231 - --with-scriptdir=/usr/libexec/bareos \
232 - --with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
233 - --with-backenddir=/usr/$(get_libdir)/${PN}/backend \
234 - --with-dir-user=bareos \
235 - --with-dir-group=bareos \
236 - --with-sd-user=root \
237 - --with-sd-group=bareos \
238 - --with-fd-user=root \
239 - --with-fd-group=bareos \
240 - --with-sbin-perm=0755 \
241 - --with-systemd \
242 - --enable-dynamic-cats-backends \
243 - --enable-dynamic-storage-backends \
244 - --enable-batch-insert \
245 - --disable-afs \
246 - --host=${CHOST} \
247 - ${myconf}
248 - # correct configuration for QT based bat
249 - if use qt4 ; then
250 - pushd src/qt-console
251 - eqmake4
252 - popd
253 - pushd src/qt-tray-monitor
254 - eqmake4
255 - popd
256 - fi
257 -}
258 -
259 -src_compile() {
260 - # workaround for build failing with high -j values
261 - # if ndmp is enabled
262 - use ndmp && MAKEOPTS="$MAKEOPTS -j1"
263 -
264 - # Make build log verbose (bug #447806)
265 - emake NO_ECHO=""
266 -}
267 -
268 -src_install() {
269 - emake DESTDIR="${D}" install
270 - newicon src/images/bareos_logo_shadow.png bareos.png
271 -
272 - # install bat icon and desktop file when enabled
273 - # (for some reason ./configure doesn't pick this up)
274 - if use qt4 && ! use static ; then
275 - doicon src/images/bat.png
276 - domenu scripts/bat.desktop
277 - fi
278 -
279 - # remove some scripts we don't need at all
280 - rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
281 - rm -f "${D}"/usr/sbin/bareos
282 -
283 - # remove upstream init scripts
284 - rm -f "${D}"/etc/init.d/bareos-*
285 -
286 - # rename statically linked apps
287 - if use clientonly && use static ; then
288 - pushd "${D}"/usr/sbin || die
289 - mv static-bareos-fd bareos-fd || die
290 - mv static-bconsole bconsole || die
291 - popd || die
292 - fi
293 -
294 - # extra files which 'make install' doesn't cover
295 - if ! use clientonly; then
296 - # the logrotate configuration
297 - # (now unconditional wrt bug #258187)
298 - diropts -m0755
299 - insinto /etc/logrotate.d
300 - insopts -m0644
301 - newins "${S}"/scripts/logrotate bareos
302 -
303 - # the logwatch scripts
304 - if use logwatch; then
305 - diropts -m0750
306 - dodir /etc/log.d/scripts/services
307 - dodir /etc/log.d/scripts/shared
308 - dodir /etc/log.d/conf/logfiles
309 - dodir /etc/log.d/conf/services
310 - pushd "${S}"/scripts/logwatch >&/dev/null || die
311 - emake DESTDIR="${D}" install
312 - popd >&/dev/null || die
313 - fi
314 - fi
315 -
316 - rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
317 - if ! use qt4; then
318 - rm -vf "${D}"/usr/share/man/man1/bat.1*
319 - fi
320 - if use clientonly || ! use director; then
321 - rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
322 - rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
323 - rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
324 - rm -vf "${D}"/usr/share/man/man8/bwild.8*
325 - rm -vf "${D}"/usr/share/man/man8/bregex.8*
326 - rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
327 - rm -vf "${D}"/usr/libexec/bareos/create_*_database
328 - rm -vf "${D}"/usr/libexec/bareos/drop_*_database
329 - rm -vf "${D}"/usr/libexec/bareos/make_*_tables
330 - rm -vf "${D}"/usr/libexec/bareos/update_*_tables
331 - rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
332 - rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
333 - rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
334 - fi
335 - if use clientonly || ! use storage-daemon; then
336 - rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
337 - rm -vf "${D}"/usr/share/man/man8/bcopy.8*
338 - rm -vf "${D}"/usr/share/man/man8/bextract.8*
339 - rm -vf "${D}"/usr/share/man/man8/bls.8*
340 - rm -vf "${D}"/usr/share/man/man8/bscan.8*
341 - rm -vf "${D}"/usr/share/man/man8/btape.8*
342 - rm -vf "${D}"/usr/libexec/bareos/disk-changer
343 - rm -vf "${D}"/usr/libexec/bareos/mtx-changer
344 - rm -vf "${D}"/usr/libexec/bareos/dvd-handler
345 - rm -vf "${D}"/etc/bareos/mtx-changer.conf
346 - fi
347 - if ! use scsi-crypto; then
348 - rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
349 - fi
350 - if ! use qt4; then
351 - rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1*
352 - fi
353 -
354 - # documentation
355 - dodoc README.md
356 - use ndmp && dodoc README.NDMP
357 - use scsi-crypto && dodoc README.scsicrypto
358 -
359 - # vim-files
360 - if use vim-syntax; then
361 - insinto /usr/share/vim/vimfiles/syntax
362 - doins scripts/bareos.vim
363 - insinto /usr/share/vim/vimfiles/ftdetect
364 - newins scripts/filetype.vim bareos_ft.vim
365 - fi
366 -
367 - # setup init scripts
368 - myscripts="bareos-fd"
369 - if ! use clientonly; then
370 - if use director; then
371 - myscripts="${myscripts} bareos-dir"
372 - fi
373 - if use storage-daemon; then
374 - myscripts="${myscripts} bareos-sd"
375 - fi
376 - fi
377 - for script in ${myscripts}; do
378 - # copy over init script and config to a temporary location
379 - # so we can modify them as needed
380 - cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
381 - cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
382 -
383 - # now set the database dependency for the director init script
384 - case "${script}" in
385 - bareos-dir)
386 - sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die
387 - ;;
388 - *)
389 - ;;
390 - esac
391 -
392 - # install init script and config
393 - newinitd "${T}/${script}".initd "${script}"
394 - newconfd "${T}/${script}".confd "${script}"
395 - done
396 -
397 - # make sure the working directory exists
398 - diropts -m0750
399 - keepdir /var/lib/bareos
400 -
401 - # make sure bareos group can execute bareos libexec scripts
402 - fowners -R root:bareos /usr/libexec/bareos
403 -}
404 -
405 -pkg_postinst() {
406 - if use clientonly; then
407 - fowners root:bareos /var/lib/bareos
408 - else
409 - fowners bareos:bareos /var/lib/bareos
410 - fi
411 -
412 - if ! use clientonly && use director; then
413 - einfo
414 - einfo "If this is a new install, you must create the databases with:"
415 - if use postgres; then
416 - einfo
417 - einfo "For postgresql:"
418 - einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
419 - einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
420 - einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
421 - fi
422 - if use mysql; then
423 - einfo
424 - einfo "For mysql:"
425 - einfo
426 - einfo " Make sure root has direct access to your mysql server. You may want to"
427 - einfo " create a /root/.my.cnf file with"
428 - einfo " [client]"
429 - einfo " user=root"
430 - einfo " password=YourPasswordForAccessingMysqlAsRoot"
431 - einfo " before running:"
432 - einfo " /usr/libexec/bareos/create_bareos_database mysql"
433 - einfo " /usr/libexec/bareos/make_bareos_tables mysql"
434 - einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
435 - fi
436 - einfo
437 - fi
438 -
439 - if use sqlite; then
440 - einfo
441 - einfo "Be aware that Bareos does not officially support SQLite database."
442 - einfo "Best use it only for a client-only installation. See Bug #445540."
443 - einfo
444 - einfo "It is strongly recommended to use either postgresql or mysql as"
445 - einfo "catalog database backend."
446 - einfo
447 - fi
448 -
449 - einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
450 - einfo "you have to enable 'USE=qt4'."
451 - einfo
452 -}