1 |
commit: a29ba2f7c15e89551f6f59faec44c18a63e38ed6 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 2 17:32:56 2016 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 20:56:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a29ba2f7 |
7 |
|
8 |
app-backup/bacula: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
app-backup/bacula/Manifest | 1 - |
13 |
app-backup/bacula/bacula-5.0.3-r4.ebuild | 381 ------------------------------- |
14 |
2 files changed, 382 deletions(-) |
15 |
|
16 |
diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest |
17 |
index bf59f2b..f88d16d 100644 |
18 |
--- a/app-backup/bacula/Manifest |
19 |
+++ b/app-backup/bacula/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
-DIST bacula-5.0.3.tar.gz 3800556 SHA256 9905598e18bbe94fa871ddcb3f13ef8b754dcb301331b67b5b92a65eb834fdb4 SHA512 feb4a7333b4c898aec175c6e8b45ce5d4eb6e15100a9f27c6010e1a17b44133b7d181d25419e923321d8bd7147d85342bf1e0dca8387d6e9cd269a0e2fec4626 WHIRLPOOL 65a900cc740a300b509a02d953ec5265e3cfbd2ce85d8e40b47e1f1fdd6d77885ec48e68471cc559accd6707fdd9f1cbb34fba22371e806d404abed052a168fb |
22 |
DIST bacula-5.2.13.tar.gz 4243395 SHA256 a4bed458bf001889bd06bf31671b5d9908055a1d1e8113fd750ae4d326607ad8 SHA512 dfdff353f5b6ed4d85013dc292526706bbd67066f7057a114012172926c819c8df1eb8779166d5a90db3a49a5584f0a8daf7566cc93cf4fa3f1bdda245b55cf0 WHIRLPOOL f559a3650ae45e149a80cdc74ab84e32c94f492321c2222c18003bacfb6690615befc3a37826055f6c436a4af6ace4b81497181f2ec4f641b0ad3a13817488a7 |
23 |
DIST bacula-7.0.5.tar.gz 3216406 SHA256 1457849eb33011b43371801b62ffa13d29bebe51be8d5a36da563b87bb094a49 SHA512 df7908769fd13a1cb2e0491d3773577db40c0f1c010b887c6dc6d7e0bc0b408fbfc260e6d5a2a34975e5b424152c7f558b33aeedea45f366636739295641394b WHIRLPOOL 47642c52928d84a50c01adfb8afa49c0c9376cba3b0f709d0c5113cba3380e047ded04980ffad339deeb1ce6d3a8ec59f58cf1968223973def7074a446a09da5 |
24 |
DIST bacula-7.2.0.tar.gz 3301720 SHA256 818606fe69c50c3ca21b91e609d4ac6ca08e4189419b89d3ec2e81c8c0389e1c SHA512 ff50db48039c9040d4995f53a8d83ad6e5568da254527d07cfe450bf0e4a25717387b5e4aa9f29197c284f513240e714c48d8232d7d7edb9159afbc13cd0cd54 WHIRLPOOL 17f5b19a6fb9bf2a05e79663c7810358cf79aebad7f2709a01fadf15d5d494a243290e9c66e30c8b9bde6a627e238b77c1853a0d40891c5f5f4b390ae0ded1e5 |
25 |
|
26 |
diff --git a/app-backup/bacula/bacula-5.0.3-r4.ebuild b/app-backup/bacula/bacula-5.0.3-r4.ebuild |
27 |
deleted file mode 100644 |
28 |
index 10565ef..0000000 |
29 |
--- a/app-backup/bacula/bacula-5.0.3-r4.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,381 +0,0 @@ |
32 |
-# Copyright 1999-2015 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Id$ |
35 |
- |
36 |
-EAPI="5" |
37 |
- |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
-PYTHON_REQ_USE="threads" |
40 |
- |
41 |
-inherit eutils multilib python-single-r1 qt4-r2 user libtool |
42 |
- |
43 |
-MY_PV=${PV/_beta/-b} |
44 |
-MY_P=${PN}-${MY_PV} |
45 |
-#DOC_VER="${MY_PV}" |
46 |
- |
47 |
-DESCRIPTION="Featureful client/server network backup suite" |
48 |
-HOMEPAGE="http://www.bacula.org/" |
49 |
- |
50 |
-#DOC_SRC_URI="mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.bz2" |
51 |
-SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz" |
52 |
-# doc? ( ${DOC_SRC_URI} ) |
53 |
- |
54 |
-LICENSE="AGPL-3" |
55 |
-SLOT="0" |
56 |
-KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
57 |
-IUSE="acl bacula-clientonly bacula-nodir bacula-nosd ipv6 logwatch mysql postgres python qt4 readline +sqlite ssl static tcpd vim-syntax X" |
58 |
- |
59 |
-# maintainer comment: |
60 |
-# postgresql-base should have USE=threads (see bug 326333) but fails to build |
61 |
-# atm with it (see bug #300964) |
62 |
-DEPEND=" |
63 |
- >=sys-libs/zlib-1.1.4 |
64 |
- dev-libs/gmp |
65 |
- !bacula-clientonly? ( |
66 |
- postgres? ( dev-db/postgresql[threads] ) |
67 |
- mysql? ( virtual/mysql ) |
68 |
- sqlite? ( dev-db/sqlite:3 ) |
69 |
- !bacula-nodir? ( virtual/mta ) |
70 |
- ) |
71 |
- qt4? ( |
72 |
- dev-qt/qtsvg:4 |
73 |
- x11-libs/qwt:5 |
74 |
- ) |
75 |
- logwatch? ( sys-apps/logwatch ) |
76 |
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
77 |
- readline? ( >=sys-libs/readline-4.1 ) |
78 |
- static? ( |
79 |
- acl? ( virtual/acl[static-libs] ) |
80 |
- sys-libs/zlib[static-libs] |
81 |
- sys-libs/ncurses[static-libs] |
82 |
- ssl? ( dev-libs/openssl[static-libs] ) |
83 |
- ) |
84 |
- !static? ( |
85 |
- acl? ( virtual/acl ) |
86 |
- sys-libs/zlib |
87 |
- sys-libs/ncurses |
88 |
- ssl? ( dev-libs/openssl ) |
89 |
- ) |
90 |
- python? ( ${PYTHON_DEPS} ) |
91 |
- " |
92 |
-RDEPEND="${DEPEND} |
93 |
- !bacula-clientonly? ( |
94 |
- !bacula-nosd? ( |
95 |
- sys-block/mtx |
96 |
- app-arch/mt-st |
97 |
- ) |
98 |
- ) |
99 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
100 |
- |
101 |
-REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly ) |
102 |
- static? ( bacula-clientonly ) |
103 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
104 |
- |
105 |
-S=${WORKDIR}/${MY_P} |
106 |
- |
107 |
-pkg_setup() { |
108 |
- #XOR and !bacula-clientonly controlled by REQUIRED_USE |
109 |
- use mysql && export mydbtype="mysql" |
110 |
- use postgres && export mydbtype="postgresql" |
111 |
- use sqlite && export mydbtype="sqlite3" |
112 |
- |
113 |
- # create the daemon group and user |
114 |
- if [ -z "$(egetent group bacula 2>/dev/null)" ]; then |
115 |
- enewgroup bacula |
116 |
- einfo |
117 |
- einfo "The group 'bacula' has been created. Any users you add to this" |
118 |
- einfo "group have access to files created by the daemons." |
119 |
- einfo |
120 |
- fi |
121 |
- |
122 |
- if use bacula-clientonly && use static && use qt4; then |
123 |
- ewarn |
124 |
- ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag." |
125 |
- ewarn |
126 |
- fi |
127 |
- |
128 |
- if ! use bacula-clientonly; then |
129 |
- if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then |
130 |
- enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw |
131 |
- einfo |
132 |
- einfo "The user 'bacula' has been created. Please see the bacula manual" |
133 |
- einfo "for information about running bacula as a non-root user." |
134 |
- einfo |
135 |
- fi |
136 |
- fi |
137 |
- |
138 |
- use python && python-single-r1_pkg_setup |
139 |
-} |
140 |
- |
141 |
-src_prepare() { |
142 |
- # adjusts default configuration files for several binaries |
143 |
- # to /etc/bacula/<config> instead of ./<config> |
144 |
- pushd src >&/dev/null || die |
145 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
146 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
147 |
- stored/bscan.c stored/btape.c stored/stored.c \ |
148 |
- qt-console/main.cpp; do |
149 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \ |
150 |
- || die "sed on ${f} failed" |
151 |
- done |
152 |
- popd >&/dev/null || die |
153 |
- |
154 |
- # drop automatic install of unneeded documentation (for bug 356499) |
155 |
- epatch "${FILESDIR}"/${PV}/${P}-doc.patch |
156 |
- |
157 |
- # bug #310087 |
158 |
- epatch "${FILESDIR}"/${PV}/${P}-as-needed.patch |
159 |
- |
160 |
- # bug #311161 |
161 |
- epatch "${FILESDIR}"/${PV}/${P}-lib-search-path.patch |
162 |
- |
163 |
- # stop build for errors in subdirs |
164 |
- epatch "${FILESDIR}"/${PV}/${P}-Makefile.patch |
165 |
- |
166 |
- # bat needs to respect LDFLAGS |
167 |
- epatch "${FILESDIR}"/${PV}/${P}-ldflags.patch |
168 |
- |
169 |
- # bug #328701 |
170 |
- epatch "${FILESDIR}"/${PV}/${P}-openssl-1.patch |
171 |
- |
172 |
- epatch "${FILESDIR}"/${PV}/${P}-fix-static.patch |
173 |
- |
174 |
- # fix CVE-2012-4430 |
175 |
- epatch "${FILESDIR}"/${PV}/${P}-cve.patch |
176 |
- |
177 |
- # fix bundled libtool (bug 466696) |
178 |
- # But first move directory with M4 macros out of the way. |
179 |
- # It is only needed by i autoconf and gives errors during elibtoolize. |
180 |
- mv autoconf/libtool autoconf/libtool1 || die |
181 |
- elibtoolize |
182 |
-} |
183 |
- |
184 |
-src_configure() { |
185 |
- local myconf='' |
186 |
- |
187 |
- if use bacula-clientonly; then |
188 |
- myconf="${myconf} \ |
189 |
- $(use_enable bacula-clientonly client-only) \ |
190 |
- $(use_enable !static libtool) \ |
191 |
- $(use_enable static static-cons) \ |
192 |
- $(use_enable static static-fd)" |
193 |
- else |
194 |
- myconf="${myconf} \ |
195 |
- $(use_enable !bacula-nodir build-dird) \ |
196 |
- $(use_enable !bacula-nosd build-stored)" |
197 |
- # bug #311099 |
198 |
- # database support needed by dir-only *and* sd-only |
199 |
- # build as well (for building bscan, btape, etc.) |
200 |
- myconf="${myconf} \ |
201 |
- --with-${mydbtype} \ |
202 |
- --enable-batch-insert" |
203 |
- fi |
204 |
- |
205 |
- # do not build bat if 'static' clientonly |
206 |
- if ! use bacula-clientonly || ! use static; then |
207 |
- myconf="${myconf} \ |
208 |
- $(use_enable qt4 bat)" |
209 |
- fi |
210 |
- |
211 |
- myconf="${myconf} \ |
212 |
- --disable-tray-monitor \ |
213 |
- $(use_with X x) \ |
214 |
- $(use_with python) \ |
215 |
- $(use_enable !readline conio) \ |
216 |
- $(use_enable readline) \ |
217 |
- $(use_with readline readline /usr) \ |
218 |
- $(use_with ssl openssl) \ |
219 |
- $(use_enable ipv6) \ |
220 |
- $(use_enable acl) \ |
221 |
- $(use_with tcpd tcp-wrappers)" |
222 |
- |
223 |
- econf \ |
224 |
- --libdir=/usr/$(get_libdir) \ |
225 |
- --docdir=/usr/share/doc/${PF} \ |
226 |
- --htmldir=/usr/share/doc/${PF}/html \ |
227 |
- --with-pid-dir=/var/run \ |
228 |
- --sysconfdir=/etc/bacula \ |
229 |
- --with-subsys-dir=/var/lock/subsys \ |
230 |
- --with-working-dir=/var/lib/bacula \ |
231 |
- --with-scriptdir=/usr/libexec/bacula \ |
232 |
- --with-dir-user=bacula \ |
233 |
- --with-dir-group=bacula \ |
234 |
- --with-sd-user=root \ |
235 |
- --with-sd-group=bacula \ |
236 |
- --with-fd-user=root \ |
237 |
- --with-fd-group=bacula \ |
238 |
- --enable-smartalloc \ |
239 |
- --disable-afs \ |
240 |
- --host=${CHOST} \ |
241 |
- ${myconf} |
242 |
- # correct configuration for QT based bat |
243 |
- if use qt4 ; then |
244 |
- pushd src/qt-console |
245 |
- eqmake4 |
246 |
- popd |
247 |
- fi |
248 |
-} |
249 |
- |
250 |
-src_compile() { |
251 |
- # Make build log verbose (bug #447806) |
252 |
- emake NO_ECHO="" |
253 |
-} |
254 |
- |
255 |
-src_install() { |
256 |
- emake DESTDIR="${D}" install |
257 |
- doicon scripts/bacula.png |
258 |
- |
259 |
- # install bat when enabled (for some reason ./configure doesn't pick this up) |
260 |
- if use qt4 && ! use static ; then |
261 |
- dosbin "${S}"/src/qt-console/.libs/bat |
262 |
- doicon src/qt-console/images/bat_icon.png |
263 |
- domenu scripts/bat.desktop |
264 |
- fi |
265 |
- |
266 |
- # remove some scripts we don't need at all |
267 |
- rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql} |
268 |
- |
269 |
- # rename statically linked apps |
270 |
- if use bacula-clientonly && use static ; then |
271 |
- pushd "${D}"/usr/sbin || die |
272 |
- mv static-bacula-fd bacula-fd || die |
273 |
- mv static-bconsole bconsole || die |
274 |
- popd || die |
275 |
- fi |
276 |
- |
277 |
- # extra files which 'make install' doesn't cover |
278 |
- if ! use bacula-clientonly; then |
279 |
- # the database update scripts |
280 |
- diropts -m0750 |
281 |
- insinto /usr/libexec/bacula/updatedb |
282 |
- insopts -m0754 |
283 |
- doins "${S}"/updatedb/* |
284 |
- fperms 0640 /usr/libexec/bacula/updatedb/README |
285 |
- |
286 |
- # the logrotate configuration |
287 |
- # (now unconditional wrt bug #258187) |
288 |
- diropts -m0755 |
289 |
- insinto /etc/logrotate.d |
290 |
- insopts -m0644 |
291 |
- newins "${S}"/scripts/logrotate bacula |
292 |
- |
293 |
- # the logwatch scripts |
294 |
- if use logwatch; then |
295 |
- diropts -m0750 |
296 |
- dodir /etc/log.d/scripts/services |
297 |
- dodir /etc/log.d/scripts/shared |
298 |
- dodir /etc/log.d/conf/logfiles |
299 |
- dodir /etc/log.d/conf/services |
300 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
301 |
- emake DESTDIR="${D}" install |
302 |
- popd >&/dev/null || die |
303 |
- fi |
304 |
- fi |
305 |
- |
306 |
- rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1* |
307 |
- if ! use qt4; then |
308 |
- rm -vf "${D}"/usr/share/man/man1/bat.1* |
309 |
- fi |
310 |
- rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1* |
311 |
- if use bacula-clientonly || use bacula-nodir; then |
312 |
- rm -vf "${D}"/usr/share/man/man8/bacula-dir.8* |
313 |
- rm -vf "${D}"/usr/share/man/man8/dbcheck.8* |
314 |
- rm -vf "${D}"/usr/share/man/man1/bsmtp.1* |
315 |
- rm -vf "${D}"/usr/libexec/bacula/create_*_database |
316 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_database |
317 |
- rm -vf "${D}"/usr/libexec/bacula/make_*_tables |
318 |
- rm -vf "${D}"/usr/libexec/bacula/update_*_tables |
319 |
- rm -vf "${D}"/usr/libexec/bacula/drop_*_tables |
320 |
- rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges |
321 |
- rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup |
322 |
- fi |
323 |
- if use bacula-clientonly || use bacula-nosd; then |
324 |
- rm -vf "${D}"/usr/share/man/man8/bacula-sd.8* |
325 |
- rm -vf "${D}"/usr/share/man/man8/bcopy.8* |
326 |
- rm -vf "${D}"/usr/share/man/man8/bextract.8* |
327 |
- rm -vf "${D}"/usr/share/man/man8/bls.8* |
328 |
- rm -vf "${D}"/usr/share/man/man8/bscan.8* |
329 |
- rm -vf "${D}"/usr/share/man/man8/btape.8* |
330 |
- rm -vf "${D}"/usr/libexec/bacula/disk-changer |
331 |
- rm -vf "${D}"/usr/libexec/bacula/mtx-changer |
332 |
- rm -vf "${D}"/usr/libexec/bacula/dvd-handler |
333 |
- fi |
334 |
- |
335 |
- # documentation |
336 |
- dodoc ChangeLog ReleaseNotes SUPPORT technotes |
337 |
- |
338 |
- # vim-files |
339 |
- if use vim-syntax; then |
340 |
- insinto /usr/share/vim/vimfiles/syntax |
341 |
- doins scripts/bacula.vim |
342 |
- insinto /usr/share/vim/vimfiles/ftdetect |
343 |
- newins scripts/filetype.vim bacula_ft.vim |
344 |
- fi |
345 |
- |
346 |
- # setup init scripts |
347 |
- myscripts="bacula-fd" |
348 |
- if ! use bacula-clientonly; then |
349 |
- if ! use bacula-nodir; then |
350 |
- myscripts="${myscripts} bacula-dir" |
351 |
- fi |
352 |
- if ! use bacula-nosd; then |
353 |
- myscripts="${myscripts} bacula-sd" |
354 |
- fi |
355 |
- fi |
356 |
- for script in ${myscripts}; do |
357 |
- # copy over init script and config to a temporary location |
358 |
- # so we can modify them as needed |
359 |
- cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
360 |
- cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
361 |
- |
362 |
- # now set the database dependancy for the director init script |
363 |
- case "${script}" in |
364 |
- bacula-dir) |
365 |
- case "${mydbtype}" in |
366 |
- sqlite3) |
367 |
- # sqlite databases don't have a daemon |
368 |
- sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die |
369 |
- ;; |
370 |
- *) |
371 |
- # all other databases have daemons |
372 |
- sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die |
373 |
- ;; |
374 |
- esac |
375 |
- ;; |
376 |
- *) |
377 |
- ;; |
378 |
- esac |
379 |
- |
380 |
- # install init script and config |
381 |
- newinitd "${T}/${script}".initd "${script}" |
382 |
- newconfd "${T}/${script}".confd "${script}" |
383 |
- done |
384 |
- |
385 |
- # make sure the working directory exists |
386 |
- diropts -m0750 |
387 |
- keepdir /var/lib/bacula |
388 |
- |
389 |
- # make sure bacula group can execute bacula libexec scripts |
390 |
- fowners -R root:bacula /usr/libexec/bacula |
391 |
-} |
392 |
- |
393 |
-pkg_postinst() { |
394 |
- if use bacula-clientonly; then |
395 |
- fowners root:bacula /var/lib/bacula |
396 |
- else |
397 |
- fowners bacula:bacula /var/lib/bacula |
398 |
- fi |
399 |
- |
400 |
- if ! use bacula-clientonly && ! use bacula-nodir; then |
401 |
- einfo |
402 |
- einfo "If this is a new install, you must create the ${mydbtype} databases with:" |
403 |
- einfo " /usr/libexec/bacula/create_${mydbtype}_database" |
404 |
- einfo " /usr/libexec/bacula/make_${mydbtype}_tables" |
405 |
- einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges" |
406 |
- einfo |
407 |
- fi |
408 |
- |
409 |
- einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
410 |
- einfo "you have to enable 'USE=qt4'." |
411 |
- einfo |
412 |
-} |