1 |
mschiff 14/05/04 22:37:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bareos-13.2.3.ebuild |
5 |
Log: |
6 |
Bump version. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x296C6CCA35A64134) |
9 |
|
10 |
Revision Changes Path |
11 |
1.9 app-backup/bareos/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/bareos/ChangeLog?rev=1.9&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/bareos/ChangeLog?rev=1.9&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/bareos/ChangeLog?r1=1.8&r2=1.9 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-backup/bareos/ChangeLog,v |
20 |
retrieving revision 1.8 |
21 |
retrieving revision 1.9 |
22 |
diff -u -r1.8 -r1.9 |
23 |
--- ChangeLog 4 May 2014 17:03:59 -0000 1.8 |
24 |
+++ ChangeLog 4 May 2014 22:37:54 -0000 1.9 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-backup/bareos |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-backup/bareos/ChangeLog,v 1.8 2014/05/04 17:03:59 mschiff Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-backup/bareos/ChangeLog,v 1.9 2014/05/04 22:37:54 mschiff Exp $ |
30 |
+ |
31 |
+*bareos-13.2.3 (04 May 2014) |
32 |
+ |
33 |
+ 04 May 2014; Marc Schiffbauer <mschiff@g.o> +bareos-13.2.3.ebuild: |
34 |
+ Bump version. |
35 |
|
36 |
04 May 2014; Marc Schiffbauer <mschiff@g.o> files/bareos-dir.initd, |
37 |
files/bareos-fd.initd, files/bareos-sd.initd: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-backup/bareos/bareos-13.2.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/bareos/bareos-13.2.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/bareos/bareos-13.2.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: bareos-13.2.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-backup/bareos/bareos-13.2.3.ebuild,v 1.1 2014/05/04 22:37:54 mschiff Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
|
54 |
PYTHON_COMPAT=( python2_{6,7} ) |
55 |
PYTHON_REQ_USE="threads" |
56 |
|
57 |
inherit eutils multilib python-single-r1 qt4-r2 user |
58 |
|
59 |
DESCRIPTION="Featureful client/server network backup suite" |
60 |
HOMEPAGE="http://www.bareos.org/" |
61 |
SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz" |
62 |
RESTRICT="mirror" |
63 |
|
64 |
LICENSE="AGPL-3" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="acl clientonly +director ipv6 logwatch mysql ndmp postgres python qt4 |
68 |
readline scsi-crypto sql-pooling +sqlite3 ssl static +storage-daemon tcpd |
69 |
vim-syntax X" |
70 |
|
71 |
DEPEND=" |
72 |
!app-backup/bacula |
73 |
dev-libs/gmp |
74 |
!clientonly? ( |
75 |
postgres? ( dev-db/postgresql-base[threads] ) |
76 |
mysql? ( virtual/mysql ) |
77 |
sqlite3? ( dev-db/sqlite:3 ) |
78 |
director? ( virtual/mta ) |
79 |
) |
80 |
qt4? ( |
81 |
dev-qt/qtsvg:4 |
82 |
x11-libs/qwt:5 |
83 |
) |
84 |
logwatch? ( sys-apps/logwatch ) |
85 |
tcpd? ( sys-apps/tcp-wrappers ) |
86 |
readline? ( sys-libs/readline ) |
87 |
static? ( |
88 |
acl? ( virtual/acl[static-libs] ) |
89 |
sys-libs/zlib[static-libs] |
90 |
dev-libs/lzo[static-libs] |
91 |
sys-libs/ncurses[static-libs] |
92 |
ssl? ( dev-libs/openssl[static-libs] ) |
93 |
) |
94 |
!static? ( |
95 |
acl? ( virtual/acl ) |
96 |
sys-libs/zlib |
97 |
dev-libs/lzo |
98 |
sys-libs/ncurses |
99 |
ssl? ( dev-libs/openssl ) |
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 sqlite3 && export mydbtypes+=" sqlite3" |
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 mysql) \ |
206 |
$(use_with postgres postgresql) \ |
207 |
$(use_with python) \ |
208 |
$(use_with readline) \ |
209 |
$(use_with sqlite3) \ |
210 |
$(use sqlite3 || echo "--without-sqlite3") \ |
211 |
$(use_with ssl openssl) \ |
212 |
$(use_with tcpd tcp-wrappers) \ |
213 |
" |
214 |
|
215 |
econf \ |
216 |
--libdir=/usr/$(get_libdir) \ |
217 |
--docdir=/usr/share/doc/${PF} \ |
218 |
--htmldir=/usr/share/doc/${PF}/html \ |
219 |
--with-pid-dir=/run/bareos \ |
220 |
--sysconfdir=/etc/bareos \ |
221 |
--with-subsys-dir=/run/lock/subsys \ |
222 |
--with-working-dir=/var/lib/bareos \ |
223 |
--with-logdir=/var/log/bareos \ |
224 |
--with-scriptdir=/usr/libexec/bareos \ |
225 |
--with-plugindir=/usr/$(get_libdir)/${PN}/plugin \ |
226 |
--with-dir-user=bareos \ |
227 |
--with-dir-group=bareos \ |
228 |
--with-sd-user=root \ |
229 |
--with-sd-group=bareos \ |
230 |
--with-fd-user=root \ |
231 |
--with-fd-group=bareos \ |
232 |
--with-sbin-perm=0755 \ |
233 |
--enable-smartalloc \ |
234 |
--enable-dynamic-cats-backends \ |
235 |
--enable-batch-insert \ |
236 |
--disable-afs \ |
237 |
--host=${CHOST} \ |
238 |
${myconf} |
239 |
# correct configuration for QT based bat |
240 |
if use qt4 ; then |
241 |
pushd src/qt-console |
242 |
eqmake4 |
243 |
popd |
244 |
pushd src/qt-tray-monitor |
245 |
eqmake4 |
246 |
popd |
247 |
fi |
248 |
} |
249 |
|
250 |
src_compile() { |
251 |
# workaround for build failing with high -j values |
252 |
# if ndmp is enabled |
253 |
use ndmp && MAKEOPTS="$MAKEOPTS -j1" |
254 |
|
255 |
# Make build log verbose (bug #447806) |
256 |
emake NO_ECHO="" |
257 |
} |
258 |
|
259 |
src_install() { |
260 |
emake DESTDIR="${D}" install |
261 |
doicon scripts/bareos.png |
262 |
|
263 |
# install bat icon and desktop file when enabled |
264 |
# (for some reason ./configure doesn't pick this up) |
265 |
if use qt4 && ! use static ; then |
266 |
doicon src/images/bat.png |
267 |
domenu scripts/bat.desktop |
268 |
fi |
269 |
|
270 |
# remove some scripts we don't need at all |
271 |
rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql} |
272 |
rm -f "${D}"/usr/sbin/bareos |
273 |
|
274 |
# remove upstream init scripts |
275 |
rm -f "${D}"/etc/init.d/bareos-* |
276 |
|
277 |
# rename statically linked apps |
278 |
if use clientonly && use static ; then |
279 |
pushd "${D}"/usr/sbin || die |
280 |
mv static-bareos-fd bareos-fd || die |
281 |
mv static-bconsole bconsole || die |
282 |
popd || die |
283 |
fi |
284 |
|
285 |
# extra files which 'make install' doesn't cover |
286 |
if ! use clientonly; then |
287 |
# the logrotate configuration |
288 |
# (now unconditional wrt bug #258187) |
289 |
diropts -m0755 |
290 |
insinto /etc/logrotate.d |
291 |
insopts -m0644 |
292 |
newins "${S}"/scripts/logrotate bareos |
293 |
|
294 |
# the logwatch scripts |
295 |
if use logwatch; then |
296 |
diropts -m0750 |
297 |
dodir /etc/log.d/scripts/services |
298 |
dodir /etc/log.d/scripts/shared |
299 |
dodir /etc/log.d/conf/logfiles |
300 |
dodir /etc/log.d/conf/services |
301 |
pushd "${S}"/scripts/logwatch >&/dev/null || die |
302 |
emake DESTDIR="${D}" install |
303 |
popd >&/dev/null || die |
304 |
fi |
305 |
fi |
306 |
|
307 |
rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1* |
308 |
if ! use qt4; then |
309 |
rm -vf "${D}"/usr/share/man/man1/bat.1* |
310 |
fi |
311 |
if use clientonly || ! use director; then |
312 |
rm -vf "${D}"/usr/share/man/man8/bareos-dir.8* |
313 |
rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8* |
314 |
rm -vf "${D}"/usr/share/man/man1/bsmtp.1* |
315 |
rm -vf "${D}"/usr/share/man/man8/bwild.8* |
316 |
rm -vf "${D}"/usr/share/man/man8/bregex.8* |
317 |
rm -vf "${D}"/usr/share/man/man8/bpluginfo.8* |
318 |
rm -vf "${D}"/usr/libexec/bareos/create_*_database |
319 |
rm -vf "${D}"/usr/libexec/bareos/drop_*_database |
320 |
rm -vf "${D}"/usr/libexec/bareos/make_*_tables |
321 |
rm -vf "${D}"/usr/libexec/bareos/update_*_tables |
322 |
rm -vf "${D}"/usr/libexec/bareos/drop_*_tables |
323 |
rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges |
324 |
rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup |
325 |
fi |
326 |
if use clientonly || ! use storage-daemon; then |
327 |
rm -vf "${D}"/usr/share/man/man8/bareos-sd.8* |
328 |
rm -vf "${D}"/usr/share/man/man8/bcopy.8* |
329 |
rm -vf "${D}"/usr/share/man/man8/bextract.8* |
330 |
rm -vf "${D}"/usr/share/man/man8/bls.8* |
331 |
rm -vf "${D}"/usr/share/man/man8/bscan.8* |
332 |
rm -vf "${D}"/usr/share/man/man8/btape.8* |
333 |
rm -vf "${D}"/usr/libexec/bareos/disk-changer |
334 |
rm -vf "${D}"/usr/libexec/bareos/mtx-changer |
335 |
rm -vf "${D}"/usr/libexec/bareos/dvd-handler |
336 |
rm -vf "${D}"/etc/bareos/mtx-changer.conf |
337 |
fi |
338 |
if ! use scsi-crypto; then |
339 |
rm -vf "${D}"/usr/share/man/man8/bscrypto.8* |
340 |
fi |
341 |
if ! use qt4; then |
342 |
rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1* |
343 |
fi |
344 |
|
345 |
# documentation |
346 |
dodoc README.md |
347 |
use ndmp && dodoc README.NDMP |
348 |
use scsi-crypto && dodoc README.scsicrypto |
349 |
|
350 |
# vim-files |
351 |
if use vim-syntax; then |
352 |
insinto /usr/share/vim/vimfiles/syntax |
353 |
doins scripts/bareos.vim |
354 |
insinto /usr/share/vim/vimfiles/ftdetect |
355 |
newins scripts/filetype.vim bareos_ft.vim |
356 |
fi |
357 |
|
358 |
# setup init scripts |
359 |
myscripts="bareos-fd" |
360 |
if ! use clientonly; then |
361 |
if use director; then |
362 |
myscripts="${myscripts} bareos-dir" |
363 |
fi |
364 |
if use storage-daemon; then |
365 |
myscripts="${myscripts} bareos-sd" |
366 |
fi |
367 |
fi |
368 |
for script in ${myscripts}; do |
369 |
# copy over init script and config to a temporary location |
370 |
# so we can modify them as needed |
371 |
cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd" |
372 |
cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd" |
373 |
|
374 |
# now set the database dependency for the director init script |
375 |
case "${script}" in |
376 |
bareos-dir) |
377 |
sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die |
378 |
;; |
379 |
*) |
380 |
;; |
381 |
esac |
382 |
|
383 |
# install init script and config |
384 |
newinitd "${T}/${script}".initd "${script}" |
385 |
newconfd "${T}/${script}".confd "${script}" |
386 |
done |
387 |
|
388 |
# make sure the working directory exists |
389 |
diropts -m0750 |
390 |
keepdir /var/lib/bareos |
391 |
|
392 |
# make sure bareos group can execute bareos libexec scripts |
393 |
fowners -R root:bareos /usr/libexec/bareos |
394 |
} |
395 |
|
396 |
pkg_postinst() { |
397 |
if use clientonly; then |
398 |
fowners root:bareos /var/lib/bareos |
399 |
else |
400 |
fowners bareos:bareos /var/lib/bareos |
401 |
fi |
402 |
|
403 |
if ! use clientonly && use director; then |
404 |
einfo |
405 |
einfo "If this is a new install, you must create the databases with:" |
406 |
if use postgres; then |
407 |
einfo |
408 |
einfo "For postgresql:" |
409 |
einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'" |
410 |
einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'" |
411 |
einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'" |
412 |
fi |
413 |
if use mysql; then |
414 |
einfo |
415 |
einfo "For mysql:" |
416 |
einfo |
417 |
einfo " Make sure root has direct access to your mysql server. You may want to" |
418 |
einfo " create a /root/.my.cnf file with" |
419 |
einfo " [client]" |
420 |
einfo " user=root" |
421 |
einfo " password=YourPasswordForAccessingMysqlAsRoot" |
422 |
einfo " before running:" |
423 |
einfo " /usr/libexec/bareos/create_bareos_database mysql" |
424 |
einfo " /usr/libexec/bareos/make_bareos_tables mysql" |
425 |
einfo " /usr/libexec/bareos/grant_bareos_privileges mysql" |
426 |
fi |
427 |
einfo |
428 |
fi |
429 |
|
430 |
if use sqlite3; then |
431 |
einfo |
432 |
einfo "Be aware that Bareos does not officially support SQLite database." |
433 |
einfo "Best use it only for a client-only installation. See Bug #445540." |
434 |
einfo |
435 |
einfo "It is strongly recommended to use either postgresql or mysql as" |
436 |
einfo "catalog database backend." |
437 |
einfo |
438 |
fi |
439 |
|
440 |
einfo "Please note that 'bconsole' will always be installed. To compile 'bat'" |
441 |
einfo "you have to enable 'USE=qt4'." |
442 |
einfo |
443 |
} |