Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/burp/files/, app-backup/burp/
Date: Mon, 10 Jul 2017 12:20:56
Message-Id: 1499689242.72555ee7026afed5ae84df6c5151cb1d715d482d.marecki@gentoo
1 commit: 72555ee7026afed5ae84df6c5151cb1d715d482d
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 10 12:14:20 2017 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 10 12:20:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72555ee7
7
8 app-backup/burp: bump to 2.1.12
9
10 Includes a fix which allows correct detection of sys-libs/ncurses when
11 USE=tinfo is set.
12
13 Package-Manager: Portage-2.3.6, Repoman-2.3.1
14
15 app-backup/burp/Manifest | 1 +
16 app-backup/burp/burp-2.1.12.ebuild | 114 +++++++++++++++++++++
17 .../files/burp-2.0.54-ncurses_pkg-config.patch | 37 +++++++
18 3 files changed, 152 insertions(+)
19
20 diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
21 index cb4e6c4c492..6c0cd7d10c9 100644
22 --- a/app-backup/burp/Manifest
23 +++ b/app-backup/burp/Manifest
24 @@ -1,3 +1,4 @@
25 DIST burp-1.4.40.tar.bz2 712937 SHA256 4108eb45e14740de990d918a2adbb661d88f90de48d6e2e3a6b54fd12b16fa5e SHA512 b44ba3a63d3b75f6fee55bbfef70ac07fa87e78ddb22a398e31a86670dfa3f2db1c9dbc58de3d0038cdc409bd5ae52c8e901cb26975fd7dbe0f773c4841af10c WHIRLPOOL 636120b3fa2d4a3217567177f3c8abbdeb562d298043fd6bd685842287964d835f2a369e36db0bc32ce908ce8f96e4e2677569e6ca4bac80f8d9958a2364a62d
26 DIST burp-2.0.54.tar.gz 558845 SHA256 26130da9791c57b1e194973ef1ea292dec57468bf4291a4d0eae880d192c1fd1 SHA512 dccc4d3679dd759028cd6b71d09ae4e49a511e5d94b4df2f112ad974abb507bbc8fffaf63ef85c847b0f9363b20a9e817179ab556c5a788acacb7a25e7600fa4 WHIRLPOOL 60e9bec56c08bc7ebc4700824eab34cf8cefdc5871140471eec5e05dbff4f4b83c2f7c6d5554d33dbb918f46e2c60159ba99a5da599938acd40b9d5b7b582978
27 DIST burp-2.1.10.tar.gz 574716 SHA256 857492493fe8ba21c54dc77e36bdedd5009edb7be66e19c533c6c0d437927d99 SHA512 ebb9901c4f5b281f05fe96499067a3e85edb7dab3132a7e00b14f10a5bb2ce51ccb32ce466176ca9b2ffcba70c7bc168b258df2494bbc6e984391f1c3fd8803a WHIRLPOOL ffc01c898033cc112bf2a01bfc2b2871152f13cbeac4a8f8b96f4432476e75ccb170f36e8af7ecee7bce05601e87959803a8b1c96cfb7e717c7648d5399ff5e4
28 +DIST burp-2.1.12.tar.gz 576544 SHA256 78ebd3f9a37daf935f474b1e297f716172e44db45f6641966eca2b0fa3aafce1 SHA512 85715593178bc77640b246ed5d10278a16ff4151274391c88981366d284c5a4315c542912a0d590162418e7556450ebe523b97ff2f5123413d1ce01c5b140a45 WHIRLPOOL bed5f0fb92b42cd8de1425395dc7f774747061d7ef873eb2d59b2e31815c978c91eb9e25fd8ac7c5bdaa167377760f101fea24d16cb0c3c5ba569481b5e111fe
29
30 diff --git a/app-backup/burp/burp-2.1.12.ebuild b/app-backup/burp/burp-2.1.12.ebuild
31 new file mode 100644
32 index 00000000000..e05b1d7a3ff
33 --- /dev/null
34 +++ b/app-backup/burp/burp-2.1.12.ebuild
35 @@ -0,0 +1,114 @@
36 +# Copyright 1999-2017 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +inherit autotools systemd tmpfiles user versionator
42 +
43 +DESCRIPTION="Network backup and restore client and server for Unix and Windows"
44 +HOMEPAGE="http://burp.grke.org/"
45 +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="AGPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +IUSE="acl ipv6 libressl test xattr"
51 +
52 +CDEPEND="dev-libs/uthash
53 + net-libs/librsync
54 + sys-libs/ncurses:0=
55 + sys-libs/zlib
56 + !libressl? ( dev-libs/openssl:0= )
57 + libressl? ( dev-libs/libressl:0= )
58 + acl? ( sys-apps/acl )
59 + xattr? ( sys-apps/attr )"
60 +DEPEND="${CDEPEND}
61 + virtual/pkgconfig
62 + test? ( dev-libs/check )"
63 +RDEPEND="${CDEPEND}
64 + virtual/logger"
65 +
66 +PATCHES=(
67 + "${FILESDIR}"/${PN}-2.0.54-ncurses_pkg-config.patch
68 + "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
69 + "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
70 + "${FILESDIR}"/${PN}-2.0.54-server_user.patch
71 +)
72 +
73 +pkg_setup() {
74 + enewgroup "${PN}"
75 + enewuser "${PN}" -1 "" "" "${PN}"
76 +}
77 +
78 +src_prepare() {
79 + default
80 +
81 + eautoreconf
82 +}
83 +
84 +src_configure() {
85 + local myeconfargs=(
86 + --localstatedir=/var
87 + --sysconfdir=/etc/burp
88 + --enable-largefile
89 + $(use_enable acl)
90 + $(use_enable ipv6)
91 + $(use_enable xattr)
92 + )
93 + # --runstatedir option will only work from autoconf-2.70 onwards
94 + runstatedir='/run/burp' \
95 + econf "${myeconfargs[@]}"
96 +}
97 +
98 +src_install() {
99 + default
100 + fowners -R root:${PN} /var/spool/burp
101 + fperms 0770 /var/spool/burp
102 +
103 + emake DESTDIR="${D}" install-configs
104 + fowners -R root:${PN} /etc/burp
105 + fperms 0775 /etc/burp
106 + fperms 0640 /etc/burp/burp-server.conf
107 + fperms 0750 /etc/burp/clientconfdir
108 +
109 + newinitd "${FILESDIR}"/${PN}2.initd ${PN}
110 + systemd_dounit "${FILESDIR}"/${PN}.service
111 +
112 + newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
113 +}
114 +
115 +pkg_postinst() {
116 + tmpfiles_process ${PN}.conf
117 +
118 + elog "Burp ebuilds now support the autoupgrade mechanism in both"
119 + elog "client and server mode. In both cases it is disabled by"
120 + elog "default. You almost certainly do NOT want to enable it in"
121 + elog "client mode because upgrades obtained this way will not be"
122 + elog "managed by Portage."
123 +
124 + if [[ ! -e /etc/burp/CA/index.txt ]]; then
125 + elog ""
126 + elog "At first run burp server will generate DH parameters and SSL"
127 + elog "certificates. You should adjust configuration before."
128 + elog "Server configuration is located at"
129 + elog ""
130 + elog " /etc/burp/burp-server.conf"
131 + elog ""
132 + fi
133 +
134 + # According to PMS this can be a space-separated list of version
135 + # numbers, even though in practice it is typically just one.
136 + local oldver
137 + for oldver in ${REPLACING_VERSIONS}; do
138 + if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
139 + ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
140 + ewarn "the server config file by default. If you use bedup, please"
141 + ewarn "update your scripts to invoke it as"
142 + ewarn ""
143 + ewarn " bedup -c /etc/burp/burp-server.conf"
144 + ewarn ""
145 + ewarn "Otherwise deduplication will not work!"
146 + break
147 + fi
148 + done
149 +}
150
151 diff --git a/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch b/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch
152 new file mode 100644
153 index 00000000000..07310d66b20
154 --- /dev/null
155 +++ b/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch
156 @@ -0,0 +1,37 @@
157 +--- a/configure.ac
158 ++++ b/configure.ac
159 +@@ -1,3 +1,4 @@
160 ++
161 + dnl Process this file with autoconf to produce a configure script.
162 +
163 + dnl require a recent autoconf
164 +@@ -276,21 +277,22 @@
165 + dnl -----------------------------------------------------------
166 +
167 + have_ncurses=no
168 +-AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h],
169 ++m4_ifdef([PKG_CHECK_MODULES],
170 + [
171 +- AC_CHECK_LIB([ncurses], [curs_set],
172 ++ PKG_CHECK_MODULES([ncurses], [ncurses],
173 + [
174 +- NCURSES_LIBS="-lncurses"
175 +- have_ncurses=yes
176 +- AC_DEFINE([HAVE_NCURSES], [1], [Set to 1 if we have ncurses])
177 +- ]
178 ++ have_ncurses=yes
179 ++ NCURSES_LIBS="$ncurses_LIBS"
180 ++ CFLAGS="$CFLAGS $ncurses_CFLAGS -DHAVE_NCURSES_H=1"
181 ++ AC_DEFINE([HAVE_NCURSES], [1], [Set to 1 if we have ncurses])
182 ++ ],
183 ++ []
184 + )
185 + ]
186 + )
187 +
188 + AC_SUBST([NCURSES_LIBS])
189 +
190 +-
191 + dnl -----------------------------------------------------------
192 + dnl Check whether libcheck ('Check') is available
193 + dnl -----------------------------------------------------------