1 |
commit: c3ff146257f15f5ec74115adf4dac88d13913d00 |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 1 14:06:13 2020 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 1 14:12:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ff1462 |
7 |
|
8 |
app-backup/bareos: remove old 17.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-17.2.9.ebuild | 366 --------------------------------- |
15 |
2 files changed, 367 deletions(-) |
16 |
|
17 |
diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest |
18 |
index 6874232e06f..741274fb308 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-17.2.9.tar.gz 4190637 BLAKE2B 266627ac023695971acc5d730765c08ddde673ba75398547687d5f2ccbfb7c440221b8c0a617bc6a3b0d2089cd22604ebe838decc65ce3c1f7ae5cdb99833118 SHA512 ac40f867d495aa64693a209dbfceb55f22425a2079dc000dabd8c6ffce79b1a2578bc0110970a6aace7c3e039c7110d1d395c31b372c0d3e5f18b43e682a70a9 |
24 |
DIST bareos-18.2.8.tar.gz 10552800 BLAKE2B c13aabbb7f450c1c9c02f39b130d34057cfc4cec590c68acde5d3592d0f238c0e52bf3acbb55e697610252b3f6bd528c2e87ea09c83aba02f303d144a62b44b2 SHA512 61c9155a02ec0f3a21e06db4f5701dabb25411219d98940b50912c16ac38ec007584a7ef9728f2f12acf2823339a25eba3c9b34a6fa9e625a1d2d0778653b860 |
25 |
DIST bareos-19.2.7.tar.gz 12602338 BLAKE2B 31fa9c9966b22913c2af6eaa6c6f704396d353341878817a574388925f35b437331b057b2a147a8217502f9198b39539d2fa68c4047e191dc918123c0f674a7d SHA512 cb467846a41d42a469704d48c3a1b03ebf5fdc71b9268c1e438e46b86073d55993dfd9bf26242db593db8b1814009c060fd65122d434bad2986c24613f6865c6 |
26 |
|
27 |
diff --git a/app-backup/bareos/bareos-17.2.9.ebuild b/app-backup/bareos/bareos-17.2.9.ebuild |
28 |
deleted file mode 100644 |
29 |
index aa5473acd45..00000000000 |
30 |
--- a/app-backup/bareos/bareos-17.2.9.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,366 +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 |
-PYTHON_REQ_USE="threads" |
40 |
- |
41 |
-inherit python-single-r1 systemd |
42 |
- |
43 |
-DESCRIPTION="Featureful client/server network backup suite" |
44 |
-HOMEPAGE="http://www.bareos.org/" |
45 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
-RESTRICT="mirror" |
47 |
- |
48 |
-LICENSE="AGPL-3" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~amd64 ~x86" |
51 |
-IUSE="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson lmdb libressl |
52 |
- logwatch mysql ndmp +postgres python rados rados-striper readline scsi-crypto |
53 |
- sql-pooling sqlite ssl static +storage-daemon tcpd vim-syntax" |
54 |
-REQUIRED_USE="!clientonly? ( || ( mysql postgres sqlite ) )" |
55 |
- |
56 |
-DEPEND=" |
57 |
- !app-backup/bacula |
58 |
- acct-group/${PN} |
59 |
- cephfs? ( sys-cluster/ceph ) |
60 |
- rados? ( sys-cluster/ceph ) |
61 |
- rados-striper? ( >=sys-cluster/ceph-0.94.2 ) |
62 |
- glusterfs? ( sys-cluster/glusterfs ) |
63 |
- lmdb? ( dev-db/lmdb ) |
64 |
- dev-libs/gmp:0 |
65 |
- !clientonly? ( |
66 |
- acct-user/${PN} |
67 |
- postgres? ( dev-db/postgresql:*[threads] ) |
68 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
69 |
- sqlite? ( dev-db/sqlite:3 ) |
70 |
- director? ( |
71 |
- virtual/mta |
72 |
- jansson? ( dev-libs/jansson ) |
73 |
- ) |
74 |
- ) |
75 |
- fastlz? ( dev-libs/bareos-fastlzlib ) |
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 |
- ssl? ( |
85 |
- !gnutls? ( |
86 |
- !libressl? ( dev-libs/openssl:0=[static-libs] ) |
87 |
- libressl? ( dev-libs/libressl:0=[static-libs] ) |
88 |
- ) |
89 |
- gnutls? ( net-libs/gnutls[static-libs] ) |
90 |
- ) |
91 |
- ) |
92 |
- !static? ( |
93 |
- acl? ( virtual/acl ) |
94 |
- dev-libs/lzo |
95 |
- ssl? ( |
96 |
- !gnutls? ( |
97 |
- !libressl? ( dev-libs/openssl:0= ) |
98 |
- libressl? ( dev-libs/libressl:0= ) |
99 |
- ) |
100 |
- gnutls? ( net-libs/gnutls ) |
101 |
- ) |
102 |
- sys-libs/ncurses:= |
103 |
- sys-libs/zlib |
104 |
- ) |
105 |
- python? ( ${PYTHON_DEPS} ) |
106 |
- " |
107 |
-RDEPEND="${DEPEND} |
108 |
- !clientonly? ( |
109 |
- storage-daemon? ( |
110 |
- sys-block/mtx |
111 |
- app-arch/mt-st |
112 |
- ) |
113 |
- ) |
114 |
- vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
115 |
- |
116 |
-REQUIRED_USE="static? ( clientonly ) |
117 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
118 |
- |
119 |
-S=${WORKDIR}/${PN}-Release-${PV} |
120 |
- |
121 |
-pkg_setup() { |
122 |
- use mysql && export mydbtypes+="mysql" |
123 |
- use postgres && export mydbtypes+=" postgresql" |
124 |
- use sqlite && export mydbtypes+=" sqlite" |
125 |
- use python && python-single-r1_pkg_setup |
126 |
-} |
127 |
- |
128 |
-src_prepare() { |
129 |
- # adjusts default configuration files for several binaries |
130 |
- # to /etc/bareos/<config> instead of ./<config> |
131 |
- pushd src >&/dev/null || die |
132 |
- for f in console/console.c dird/dird.c filed/filed.c \ |
133 |
- stored/bcopy.c stored/bextract.c stored/bls.c \ |
134 |
- stored/bscan.c stored/btape.c stored/stored.c; do |
135 |
- sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \ |
136 |
- || die "sed on ${f} failed" |
137 |
- done |
138 |
- popd >&/dev/null || die |
139 |
- |
140 |
- # enables default database driver in catalog |
141 |
- pushd src/defaultconfigs/bareos-dir.d/catalog >&/dev/null || die |
142 |
- sed -i -e 's/#dbdriver/dbdriver/' -e '/XXX_REPLACE/d' MyCatalog.conf.in \ |
143 |
- || die "sed on MyCatalog.conf.in failed" |
144 |
- popd >&/dev/null || die |
145 |
- |
146 |
- # bug 466690 Use CXXFLAGS instead of CFLAGS |
147 |
- sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die |
148 |
- |
149 |
- # do not strip binaries |
150 |
- for d in filed console dird stored; do |
151 |
- sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die |
152 |
- done |
153 |
- |
154 |
- eapply_user |
155 |
-} |
156 |
- |
157 |
-src_configure() { |
158 |
- local myconf='' |
159 |
- |
160 |
- addpredict /var/lib/logrotate.status |
161 |
- |
162 |
- if use clientonly; then |
163 |
- myconf="${myconf} \ |
164 |
- $(use_enable clientonly client-only) \ |
165 |
- $(use_enable !static libtool) \ |
166 |
- $(use_enable static static-cons) \ |
167 |
- $(use_enable static static-fd)" |
168 |
- fi |
169 |
- |
170 |
- myconf="${myconf} \ |
171 |
- $(use_with X x) \ |
172 |
- $(use_enable acl) \ |
173 |
- $(use_enable ipv6) \ |
174 |
- $(use_enable ndmp) \ |
175 |
- $(use_enable readline) \ |
176 |
- $(use_enable !readline conio) \ |
177 |
- $(use_enable scsi-crypto) \ |
178 |
- $(use_enable sql-pooling) \ |
179 |
- $(use_with fastlz) \ |
180 |
- $(use_with mysql) \ |
181 |
- $(use_with postgres postgresql) \ |
182 |
- $(use_with python) \ |
183 |
- $(use_with readline) \ |
184 |
- $(use_with sqlite sqlite3) \ |
185 |
- $(use sqlite || echo "--without-sqlite3") \ |
186 |
- $(use_with ssl openssl) \ |
187 |
- $(use_with tcpd tcp-wrappers) \ |
188 |
- $(use_enable lmdb) \ |
189 |
- $(use_with glusterfs) \ |
190 |
- $(use_with rados) \ |
191 |
- $(use_with rados-striper) \ |
192 |
- $(use_with cephfs) \ |
193 |
- $(use_with jansson) \ |
194 |
- " |
195 |
- |
196 |
- econf \ |
197 |
- --with-pid-dir=/run/bareos \ |
198 |
- --with-subsys-dir=/run/lock/subsys \ |
199 |
- --with-working-dir=/var/lib/bareos \ |
200 |
- --with-logdir=/var/log/bareos \ |
201 |
- --with-scriptdir=/usr/libexec/bareos \ |
202 |
- --with-plugindir=/usr/$(get_libdir)/${PN}/plugin \ |
203 |
- --with-backenddir=/usr/$(get_libdir)/${PN}/backend \ |
204 |
- --with-dir-user=bareos \ |
205 |
- --with-dir-group=bareos \ |
206 |
- --with-sd-user=root \ |
207 |
- --with-sd-group=bareos \ |
208 |
- --with-fd-user=root \ |
209 |
- --with-fd-group=bareos \ |
210 |
- --with-sbin-perm=0755 \ |
211 |
- --with-systemd \ |
212 |
- --with-db-password=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1` \ |
213 |
- --enable-dynamic-cats-backends \ |
214 |
- --enable-dynamic-storage-backends \ |
215 |
- --enable-batch-insert \ |
216 |
- --disable-afs \ |
217 |
- --host=${CHOST} \ |
218 |
- ${myconf} |
219 |
-} |
220 |
- |
221 |
-src_compile() { |
222 |
- # Make build log verbose (bug #447806) |
223 |
- emake NO_ECHO="" |
224 |
-} |
225 |
- |
226 |
-src_install() { |
227 |
- emake DESTDIR="${D}" install |
228 |
- newicon src/images/bareos_logo_shadow.png bareos.png |
229 |
- |
230 |
- # remove some scripts we don't need at all |
231 |
- rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql} |
232 |
- rm -f "${D}"/usr/sbin/bareos |
233 |
- |
234 |
- # remove upstream init scripts |
235 |
- rm -f "${D}"/etc/init.d/bareos-* |
236 |
- |
237 |
- # rename statically linked apps |
238 |
- if use clientonly && use static ; then |
239 |
- pushd "${D}"/usr/sbin || die |
240 |
- mv static-bareos-fd bareos-fd || die |
241 |
- mv static-bconsole bconsole || die |
242 |
- popd || die |
243 |
- fi |
244 |
- |
245 |
- # extra files which 'make install' doesn't cover |
246 |
- if ! use clientonly; then |
247 |
- # the logrotate configuration |
248 |
- # (now unconditional wrt bug #258187) |
249 |
- diropts -m0755 |
250 |
- insinto /etc/logrotate.d |
251 |
- insopts -m0644 |
252 |
- newins "${S}"/scripts/logrotate bareos |
253 |
- |
254 |
- # the logwatch scripts |
255 |
- if use logwatch; then |
256 |
- diropts -m0750 |
257 |
- dodir /etc/log.d/scripts/services |
258 |
- dodir /etc/log.d/scripts/shared |
259 |
- dodir /etc/log.d/conf/logfiles |
260 |
- dodir /etc/log.d/conf/services |
261 |
- pushd "${S}"/scripts/logwatch >&/dev/null || die |
262 |
- emake DESTDIR="${D}" install |
263 |
- popd >&/dev/null || die |
264 |
- fi |
265 |
- fi |
266 |
- |
267 |
- rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1* |
268 |
- if use clientonly || ! use director; then |
269 |
- rm -vf "${D}"/usr/share/man/man8/bareos-dir.8* |
270 |
- rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8* |
271 |
- rm -vf "${D}"/usr/share/man/man1/bsmtp.1* |
272 |
- rm -vf "${D}"/usr/share/man/man8/bwild.8* |
273 |
- rm -vf "${D}"/usr/share/man/man8/bregex.8* |
274 |
- rm -vf "${D}"/usr/share/man/man8/bpluginfo.8* |
275 |
- rm -vf "${D}"/usr/libexec/bareos/create_*_database |
276 |
- rm -vf "${D}"/usr/libexec/bareos/drop_*_database |
277 |
- rm -vf "${D}"/usr/libexec/bareos/make_*_tables |
278 |
- rm -vf "${D}"/usr/libexec/bareos/update_*_tables |
279 |
- rm -vf "${D}"/usr/libexec/bareos/drop_*_tables |
280 |
- rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges |
281 |
- rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup |
282 |
- fi |
283 |
- if use clientonly || ! use storage-daemon; then |
284 |
- rm -vf "${D}"/usr/share/man/man8/bareos-sd.8* |
285 |
- rm -vf "${D}"/usr/share/man/man8/bcopy.8* |
286 |
- rm -vf "${D}"/usr/share/man/man8/bextract.8* |
287 |
- rm -vf "${D}"/usr/share/man/man8/bls.8* |
288 |
- rm -vf "${D}"/usr/share/man/man8/bscan.8* |
289 |
- rm -vf "${D}"/usr/share/man/man8/btape.8* |
290 |
- rm -vf "${D}"/usr/libexec/bareos/disk-changer |
291 |
- rm -vf "${D}"/usr/libexec/bareos/mtx-changer |
292 |
- rm -vf "${D}"/usr/libexec/bareos/dvd-handler |
293 |
- rm -vf "${D}"/etc/bareos/mtx-changer.conf |
294 |
- fi |
295 |
- if ! use scsi-crypto; then |
296 |
- rm -vf "${D}"/usr/share/man/man8/bscrypto.8* |
297 |
- fi |
298 |
- |
299 |
- # documentation |
300 |
- dodoc README.md |
301 |
- use ndmp && dodoc README.NDMP |
302 |
- use scsi-crypto && dodoc README.scsicrypto |
303 |
- |
304 |
- # vim-files |
305 |
- if use vim-syntax; then |
306 |
- insinto /usr/share/vim/vimfiles/syntax |
307 |
- doins scripts/bareos.vim |
308 |
- insinto /usr/share/vim/vimfiles/ftdetect |
309 |
- newins 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="${myscripts} bareos-dir" |
317 |
- fi |
318 |
- if use storage-daemon; then |
319 |
- myscripts="${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-16 "${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 |
- use director && systemd_dounit "${FILESDIR}"/bareos-dir.service |
344 |
- use storage-daemon && systemd_dounit "${FILESDIR}"/bareos-sd.service |
345 |
- systemd_dounit "${FILESDIR}"/bareos-fd.service |
346 |
- |
347 |
- # make sure the working directory exists |
348 |
- diropts -m0750 |
349 |
- keepdir /var/lib/bareos |
350 |
- |
351 |
- # make sure bareos group can execute bareos libexec scripts |
352 |
- fowners -R root:bareos /usr/libexec/bareos |
353 |
-} |
354 |
- |
355 |
-pkg_postinst() { |
356 |
- if use clientonly; then |
357 |
- fowners root:bareos /var/lib/bareos |
358 |
- else |
359 |
- fowners bareos:bareos /var/lib/bareos |
360 |
- fi |
361 |
- |
362 |
- if ! use clientonly && use director; then |
363 |
- einfo |
364 |
- einfo "If this is a new install, you must create the database:" |
365 |
- if use postgres; then |
366 |
- einfo |
367 |
- einfo "For postgresql:" |
368 |
- einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'" |
369 |
- einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'" |
370 |
- einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'" |
371 |
- fi |
372 |
- if use mysql; then |
373 |
- einfo |
374 |
- einfo "For mysql:" |
375 |
- einfo |
376 |
- einfo " Make sure root has direct access to your mysql server. You may want to" |
377 |
- einfo " create a /root/.my.cnf file with" |
378 |
- einfo " [client]" |
379 |
- einfo " user=root" |
380 |
- einfo " password=YourPasswordForAccessingMysqlAsRoot" |
381 |
- einfo " before running:" |
382 |
- einfo " /usr/libexec/bareos/create_bareos_database mysql" |
383 |
- einfo " /usr/libexec/bareos/make_bareos_tables mysql" |
384 |
- einfo " /usr/libexec/bareos/grant_bareos_privileges mysql" |
385 |
- fi |
386 |
- einfo |
387 |
- fi |
388 |
- |
389 |
- if use sqlite; then |
390 |
- einfo |
391 |
- einfo "Be aware that Bareos does not officially support SQLite database." |
392 |
- einfo "Best use it only for a client-only installation. See Bug #445540." |
393 |
- einfo |
394 |
- einfo "It is strongly recommended to use either postgresql or mysql as" |
395 |
- einfo "catalog database backend." |
396 |
- einfo |
397 |
- fi |
398 |
-} |