Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/burp/
Date: Sat, 02 Jul 2016 21:32:30
Message-Id: 1467495122.581dd3cd70bdeda41d7bd8442aaed4007fe24c10.aidecoe@gentoo
1 commit: 581dd3cd70bdeda41d7bd8442aaed4007fe24c10
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 2 21:27:57 2016 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 21:32:02 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=581dd3cd
7
8 app-backup/burp: Unblock librsync-1.0.0 and higher
9
10 Gentoo-Bug: 573150
11
12 Package-Manager: portage-2.3.0
13
14 app-backup/burp/burp-1.4.40-r4.ebuild | 116 ++++++++++++++++++++++++++++++++++
15 1 file changed, 116 insertions(+)
16
17 diff --git a/app-backup/burp/burp-1.4.40-r4.ebuild b/app-backup/burp/burp-1.4.40-r4.ebuild
18 new file mode 100644
19 index 0000000..5dc34f5
20 --- /dev/null
21 +++ b/app-backup/burp/burp-1.4.40-r4.ebuild
22 @@ -0,0 +1,116 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=5
28 +
29 +inherit autotools eutils user
30 +
31 +DESCRIPTION="Network backup and restore client and server for Unix and Windows"
32 +HOMEPAGE="http://burp.grke.org/"
33 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
34 + http://burp.grke.org/downloads/${P}/${P}.tar.bz2"
35 +
36 +LICENSE="AGPL-3"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="acl afs ipv6 libressl nls tcpd xattr"
40 +
41 +DEPEND="
42 + !libressl? ( dev-libs/openssl:0= )
43 + libressl? ( dev-libs/libressl:0= )
44 + dev-libs/uthash
45 + sys-libs/libcap
46 + net-libs/librsync:0=
47 + sys-libs/ncurses:0=
48 + sys-libs/zlib
49 + acl? ( sys-apps/acl )
50 + afs? ( net-fs/openafs )
51 + nls? ( sys-devel/gettext )
52 + tcpd? ( sys-apps/tcp-wrappers )
53 + xattr? ( sys-apps/attr )
54 + "
55 +RDEPEND="${DEPEND}
56 + virtual/logger
57 + "
58 +
59 +DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
60 +PATCHES=(
61 + "${FILESDIR}/${PV}-non-zero-or-build-failure.patch"
62 + "${FILESDIR}/${PV}-bedup-conf-path.patch"
63 + "${FILESDIR}/${PV}-tinfo.patch"
64 + )
65 +
66 +pkg_setup() {
67 + enewgroup "${PN}"
68 + enewuser "${PN}" -1 "" "" "${PN}"
69 +}
70 +
71 +src_prepare() {
72 + epatch "${PATCHES[@]}"
73 + eautoreconf
74 + sed -e '/autoupgrade/d' -i "${S}"/Makefile.in || die
75 + rm "${S}"/docs/autoupgrade.txt || die
76 +}
77 +
78 +src_configure() {
79 + local myeconfargs=(
80 + --sbindir=/usr/sbin
81 + --sysconfdir=/etc/burp
82 + --enable-largefile
83 + $(use_enable acl)
84 + $(use_enable afs)
85 + $(use_enable ipv6)
86 + $(use_enable nls)
87 + $(use_enable xattr)
88 + $(use_with tcpd tcp-wrappers)
89 + )
90 + econf "${myeconfargs[@]}"
91 +}
92 +
93 +src_install() {
94 + default
95 +
96 + fowners root:burp /etc/burp
97 + fperms 0775 /etc/burp
98 + fowners root:burp /etc/burp/burp-server.conf
99 + fperms 0640 /etc/burp/burp-server.conf
100 + fowners root:burp /etc/burp/clientconfdir
101 + fperms 0750 /etc/burp/clientconfdir
102 + fowners root:burp /var/spool/burp
103 + fperms 0770 /var/spool/burp
104 +
105 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
106 + dodoc docs/*
107 +
108 + local scripts_dir=/usr/share/burp/scripts
109 + dodir "${scripts_dir}"
110 + local script
111 + for script in notify_script ssl_extra_checks_script summary_script \
112 + timer_script; do
113 + mv "${D}etc/burp/${script}" "${D}${scripts_dir}/" || die
114 + sed -r \
115 + -e "s|(=\\s*)/etc/burp/${script}\\s*$|\1${scripts_dir}/${script}|" \
116 + -i "${D}etc/burp/burp-server.conf" \
117 + || die
118 + done
119 +
120 + sed -e '/autoupgrade/d' -i "${D}etc/burp/burp.conf" || die
121 + sed -e '/autoupgrade/,+1d' -i "${D}etc/burp/burp-server.conf" || die
122 +
123 + sed -e 's|^# user=graham|user = burp|' \
124 + -e 's|^# group=nogroup|group = burp|' \
125 + -e 's|^pidfile = .*|lockfile = /run/lock/burp/server.lock|' \
126 + -i "${D}etc/burp/burp-server.conf" || die
127 +}
128 +
129 +pkg_postinst() {
130 + if [[ ! -e /etc/burp/CA/index.txt ]]; then
131 + elog "At first run burp server will generate DH parameters and SSL"
132 + elog "certificates. You should adjust configuration before."
133 + elog "Server configuration is located at"
134 + elog ""
135 + elog " /etc/burp/burp-server.conf"
136 + elog ""
137 + fi
138 +}