From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5EDEA1382DE for ; Sat, 2 Jul 2016 21:32:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC2C4E0AC9; Sat, 2 Jul 2016 21:32:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4681BE0AC3 for ; Sat, 2 Jul 2016 21:32:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 27ADB340DCC for ; Sat, 2 Jul 2016 21:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A723E16C4 for ; Sat, 2 Jul 2016 21:32:23 +0000 (UTC) From: "Amadeusz Piotr Żołnowski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Amadeusz Piotr Żołnowski" Message-ID: <1467495122.581dd3cd70bdeda41d7bd8442aaed4007fe24c10.aidecoe@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/burp/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-backup/burp/burp-1.4.40-r4.ebuild X-VCS-Directories: app-backup/burp/ X-VCS-Committer: aidecoe X-VCS-Committer-Name: Amadeusz Piotr Żołnowski X-VCS-Revision: 581dd3cd70bdeda41d7bd8442aaed4007fe24c10 X-VCS-Branch: master Date: Sat, 2 Jul 2016 21:32:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 85762691-2d0a-453d-9db8-263545cde596 X-Archives-Hash: b4ee94657d7d809938fea5d4022e03a2 commit: 581dd3cd70bdeda41d7bd8442aaed4007fe24c10 Author: Amadeusz Żołnowski gentoo org> AuthorDate: Sat Jul 2 21:27:57 2016 +0000 Commit: Amadeusz Piotr Żołnowski gentoo org> CommitDate: Sat Jul 2 21:32:02 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=581dd3cd app-backup/burp: Unblock librsync-1.0.0 and higher Gentoo-Bug: 573150 Package-Manager: portage-2.3.0 app-backup/burp/burp-1.4.40-r4.ebuild | 116 ++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/app-backup/burp/burp-1.4.40-r4.ebuild b/app-backup/burp/burp-1.4.40-r4.ebuild new file mode 100644 index 0000000..5dc34f5 --- /dev/null +++ b/app-backup/burp/burp-1.4.40-r4.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils user + +DESCRIPTION="Network backup and restore client and server for Unix and Windows" +HOMEPAGE="http://burp.grke.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + http://burp.grke.org/downloads/${P}/${P}.tar.bz2" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="acl afs ipv6 libressl nls tcpd xattr" + +DEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + dev-libs/uthash + sys-libs/libcap + net-libs/librsync:0= + sys-libs/ncurses:0= + sys-libs/zlib + acl? ( sys-apps/acl ) + afs? ( net-fs/openafs ) + nls? ( sys-devel/gettext ) + tcpd? ( sys-apps/tcp-wrappers ) + xattr? ( sys-apps/attr ) + " +RDEPEND="${DEPEND} + virtual/logger + " + +DOCS=( CONTRIBUTORS DONATIONS UPGRADING ) +PATCHES=( + "${FILESDIR}/${PV}-non-zero-or-build-failure.patch" + "${FILESDIR}/${PV}-bedup-conf-path.patch" + "${FILESDIR}/${PV}-tinfo.patch" + ) + +pkg_setup() { + enewgroup "${PN}" + enewuser "${PN}" -1 "" "" "${PN}" +} + +src_prepare() { + epatch "${PATCHES[@]}" + eautoreconf + sed -e '/autoupgrade/d' -i "${S}"/Makefile.in || die + rm "${S}"/docs/autoupgrade.txt || die +} + +src_configure() { + local myeconfargs=( + --sbindir=/usr/sbin + --sysconfdir=/etc/burp + --enable-largefile + $(use_enable acl) + $(use_enable afs) + $(use_enable ipv6) + $(use_enable nls) + $(use_enable xattr) + $(use_with tcpd tcp-wrappers) + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + + fowners root:burp /etc/burp + fperms 0775 /etc/burp + fowners root:burp /etc/burp/burp-server.conf + fperms 0640 /etc/burp/burp-server.conf + fowners root:burp /etc/burp/clientconfdir + fperms 0750 /etc/burp/clientconfdir + fowners root:burp /var/spool/burp + fperms 0770 /var/spool/burp + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + dodoc docs/* + + local scripts_dir=/usr/share/burp/scripts + dodir "${scripts_dir}" + local script + for script in notify_script ssl_extra_checks_script summary_script \ + timer_script; do + mv "${D}etc/burp/${script}" "${D}${scripts_dir}/" || die + sed -r \ + -e "s|(=\\s*)/etc/burp/${script}\\s*$|\1${scripts_dir}/${script}|" \ + -i "${D}etc/burp/burp-server.conf" \ + || die + done + + sed -e '/autoupgrade/d' -i "${D}etc/burp/burp.conf" || die + sed -e '/autoupgrade/,+1d' -i "${D}etc/burp/burp-server.conf" || die + + sed -e 's|^# user=graham|user = burp|' \ + -e 's|^# group=nogroup|group = burp|' \ + -e 's|^pidfile = .*|lockfile = /run/lock/burp/server.lock|' \ + -i "${D}etc/burp/burp-server.conf" || die +} + +pkg_postinst() { + if [[ ! -e /etc/burp/CA/index.txt ]]; then + elog "At first run burp server will generate DH parameters and SSL" + elog "certificates. You should adjust configuration before." + elog "Server configuration is located at" + elog "" + elog " /etc/burp/burp-server.conf" + elog "" + fi +}