1 |
commit: 0a57b84a09f8f1842b4c6cef6238969a5aaffc9e |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 2 09:45:10 2022 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 2 09:47:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a57b84a |
7 |
|
8 |
app-backup/bareos: revbump for dep and test update |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832501 |
11 |
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> |
12 |
|
13 |
...areos-21.0.0.ebuild => bareos-21.0.0-r1.ebuild} | 40 ++++++++++++++++++++-- |
14 |
1 file changed, 37 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/app-backup/bareos/bareos-21.0.0.ebuild b/app-backup/bareos/bareos-21.0.0-r1.ebuild |
17 |
similarity index 92% |
18 |
rename from app-backup/bareos/bareos-21.0.0.ebuild |
19 |
rename to app-backup/bareos/bareos-21.0.0-r1.ebuild |
20 |
index ef360cdc5a34..787a7074b9fc 100644 |
21 |
--- a/app-backup/bareos/bareos-21.0.0.ebuild |
22 |
+++ b/app-backup/bareos/bareos-21.0.0-r1.ebuild |
23 |
@@ -12,14 +12,20 @@ inherit python-any-r1 systemd cmake tmpfiles |
24 |
DESCRIPTION="Featureful client/server network backup suite" |
25 |
HOMEPAGE="https://www.bareos.org/" |
26 |
SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz" |
27 |
-RESTRICT="mirror" |
28 |
+ |
29 |
+# some tests still fail propably due to missing bits in src_test -> TODO |
30 |
+RESTRICT="mirror test" |
31 |
+#RESTRICT=" |
32 |
+# mirror |
33 |
+# !test? ( test ) |
34 |
+#" |
35 |
|
36 |
LICENSE="AGPL-3" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
IUSE="X acl ceph clientonly +director glusterfs ipv6 lmdb |
40 |
logwatch ndmp readline scsi-crypto |
41 |
- static +storage-daemon systemd tcpd vim-syntax vmware xattr" |
42 |
+ static +storage-daemon systemd tcpd test vim-syntax vmware xattr" |
43 |
|
44 |
# get cmake variables from core/cmake/BareosSetVariableDefaults.cmake |
45 |
DEPEND=" |
46 |
@@ -68,7 +74,15 @@ RDEPEND="${DEPEND} |
47 |
) |
48 |
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
49 |
" |
50 |
-BDEPEND="${PYTHON_DEPS}" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ ${PYTHON_DEPS} |
54 |
+ test? ( |
55 |
+ dev-cpp/gtest |
56 |
+ dev-db/postgresql:*[server,threads] |
57 |
+ dev-db/mariadb:*[server] |
58 |
+ ) |
59 |
+" |
60 |
|
61 |
REQUIRED_USE=" |
62 |
static? ( clientonly ) |
63 |
@@ -106,6 +120,26 @@ pkg_pretend() { |
64 |
fi |
65 |
} |
66 |
|
67 |
+src_test() { |
68 |
+ # initialze catalog test database |
69 |
+ initdb -D "${T}"/pgsql || die |
70 |
+ pg_ctl -w -D "${T}"/pgsql start \ |
71 |
+ -o "-h '' -k '${T}'" || die |
72 |
+ createuser -h "${T}" bareos || die |
73 |
+ createdb -h "${T}" --owner bareos bareos || die |
74 |
+ export PGHOST="${T}" |
75 |
+ |
76 |
+ # initiale mariadb database for backup tests |
77 |
+ # $USER must be set and != root |
78 |
+ export USER=portage |
79 |
+ |
80 |
+ default |
81 |
+ cmake_src_test |
82 |
+ |
83 |
+ pg_ctl -w -D "${T}"/pgsql stop || die |
84 |
+ rm -rvf "${T}"/pgsql |
85 |
+} |
86 |
+ |
87 |
src_prepare() { |
88 |
# fix gentoo platform support |
89 |
eapply -p1 "${FILESDIR}/${PN}-21-cmake-gentoo.patch" |