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