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