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/
Date: Wed, 31 May 2017 13:46:12
Message-Id: 1496238357.8e81880eb7b82360246e216ff2f94063cd3de544.marecki@gentoo
1 commit: 8e81880eb7b82360246e216ff2f94063cd3de544
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 31 13:44:12 2017 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed May 31 13:45:57 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e81880e
7
8 app-backup/burp: bump to 2.1.8
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 app-backup/burp/Manifest | 1 +
13 app-backup/burp/burp-2.1.8.ebuild | 110 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 111 insertions(+)
15
16 diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
17 index 0e3e690104e..f250985d29a 100644
18 --- a/app-backup/burp/Manifest
19 +++ b/app-backup/burp/Manifest
20 @@ -1,2 +1,3 @@
21 DIST burp-1.4.40.tar.bz2 712937 SHA256 4108eb45e14740de990d918a2adbb661d88f90de48d6e2e3a6b54fd12b16fa5e SHA512 b44ba3a63d3b75f6fee55bbfef70ac07fa87e78ddb22a398e31a86670dfa3f2db1c9dbc58de3d0038cdc409bd5ae52c8e901cb26975fd7dbe0f773c4841af10c WHIRLPOOL 636120b3fa2d4a3217567177f3c8abbdeb562d298043fd6bd685842287964d835f2a369e36db0bc32ce908ce8f96e4e2677569e6ca4bac80f8d9958a2364a62d
22 DIST burp-2.0.54.tar.gz 558845 SHA256 26130da9791c57b1e194973ef1ea292dec57468bf4291a4d0eae880d192c1fd1 SHA512 dccc4d3679dd759028cd6b71d09ae4e49a511e5d94b4df2f112ad974abb507bbc8fffaf63ef85c847b0f9363b20a9e817179ab556c5a788acacb7a25e7600fa4 WHIRLPOOL 60e9bec56c08bc7ebc4700824eab34cf8cefdc5871140471eec5e05dbff4f4b83c2f7c6d5554d33dbb918f46e2c60159ba99a5da599938acd40b9d5b7b582978
23 +DIST burp-2.1.8.tar.gz 568051 SHA256 d711a40838d5d5ace844cd68f7667c2dbf3995c81217837d4863941f172a9569 SHA512 44073b9e4ba78e50766bf7c1e6c28ac3b3f589e450d58be07f11c7a479f53ee4fa48c4b191cd693ce674253a8fc1b1b440a64644c31deb85b9f8eaabdf4073df WHIRLPOOL 365babbdbe62e35551605fab301f9c39206b5b9f941e6fbdc1e4198e06cea6458380fbb82b0377a9c316f24c25166a526f8bb549c1210f590054a615e80bc283
24
25 diff --git a/app-backup/burp/burp-2.1.8.ebuild b/app-backup/burp/burp-2.1.8.ebuild
26 new file mode 100644
27 index 00000000000..694caae538a
28 --- /dev/null
29 +++ b/app-backup/burp/burp-2.1.8.ebuild
30 @@ -0,0 +1,110 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit autotools systemd tmpfiles user versionator
37 +
38 +DESCRIPTION="Network backup and restore client and server for Unix and Windows"
39 +HOMEPAGE="http://burp.grke.org/"
40 +SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="AGPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="acl ipv6 libressl test xattr"
46 +
47 +CDEPEND="dev-libs/uthash
48 + net-libs/librsync
49 + sys-libs/ncurses:0=
50 + sys-libs/zlib
51 + !libressl? ( dev-libs/openssl:0= )
52 + libressl? ( dev-libs/libressl:0= )
53 + acl? ( sys-apps/acl )
54 + xattr? ( sys-apps/attr )"
55 +DEPEND="${CDEPEND}
56 + test? ( dev-libs/check )"
57 +RDEPEND="${CDEPEND}
58 + virtual/logger"
59 +
60 +PATCHES=(
61 + "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
62 + "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
63 + "${FILESDIR}"/${PN}-2.0.54-server_user.patch
64 +)
65 +
66 +pkg_setup() {
67 + enewgroup "${PN}"
68 + enewuser "${PN}" -1 "" "" "${PN}"
69 +}
70 +
71 +src_prepare() {
72 + default
73 +
74 + eautoreconf
75 +}
76 +
77 +src_configure() {
78 + local myeconfargs=(
79 + --localstatedir=/var
80 + --sysconfdir=/etc/burp
81 + --enable-largefile
82 + $(use_enable acl)
83 + $(use_enable ipv6)
84 + $(use_enable xattr)
85 + )
86 + # --runstatedir option will only work from autoconf-2.70 onwards
87 + runstatedir='/run/burp' \
88 + econf "${myeconfargs[@]}"
89 +}
90 +
91 +src_install() {
92 + default
93 + fowners -R root:${PN} /var/spool/burp
94 + fperms 0770 /var/spool/burp
95 +
96 + emake DESTDIR="${D}" install-configs
97 + fowners -R root:${PN} /etc/burp
98 + fperms 0775 /etc/burp
99 + fperms 0640 /etc/burp/burp-server.conf
100 + fperms 0750 /etc/burp/clientconfdir
101 +
102 + newinitd "${FILESDIR}"/${PN}2.initd ${PN}
103 + systemd_dounit "${FILESDIR}"/${PN}.service
104 +
105 + newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
106 +}
107 +
108 +pkg_postinst() {
109 + elog "Burp ebuilds now support the autoupgrade mechanism in both"
110 + elog "client and server mode. In both cases it is disabled by"
111 + elog "default. You almost certainly do NOT want to enable it in"
112 + elog "client mode because upgrades obtained this way will not be"
113 + elog "managed by Portage."
114 +
115 + if [[ ! -e /etc/burp/CA/index.txt ]]; then
116 + elog ""
117 + elog "At first run burp server will generate DH parameters and SSL"
118 + elog "certificates. You should adjust configuration before."
119 + elog "Server configuration is located at"
120 + elog ""
121 + elog " /etc/burp/burp-server.conf"
122 + elog ""
123 + fi
124 +
125 + # According to PMS this can be a space-separated list of version
126 + # numbers, even though in practice it is typically just one.
127 + local oldver
128 + for oldver in ${REPLACING_VERSIONS}; do
129 + if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
130 + ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
131 + ewarn "the server config file by default. If you use bedup, please"
132 + ewarn "update your scripts to invoke it as"
133 + ewarn ""
134 + ewarn " bedup -c /etc/burp/burp-server.conf"
135 + ewarn ""
136 + ewarn "Otherwise deduplication will not work!"
137 + break
138 + fi
139 + done
140 +}