forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emerge-delta-webrsync-3.7.1.ebuild
44 lines (37 loc) · 1.1 KB
/
emerge-delta-webrsync-3.7.1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
DESCRIPTION="emerge-webrsync using patches to minimize bandwidth"
HOMEPAGE="https://www.gentoo.org/proj/en/portage/index.xml"
SRC_URI="https://raw.githubusercontent.com/gentoo/portage/4ab31da4f09c7d0cb323b16b5b4b607d652ffc48/misc/emerge-delta-webrsync -> ${P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
IUSE=""
DEPEND=""
RDEPEND="
app-shells/bash
>=sys-apps/portage-2.1.10
>=dev-util/diffball-0.6.5"
S=${WORKDIR}
src_unpack() {
cp "${DISTDIR}/${P}" "${WORKDIR}/" || die
}
src_install() {
newbin ${P} ${PN}
keepdir /var/delta-webrsync
fperms 0770 /var/delta-webrsync
}
pkg_preinst() {
# Failure here is non-fatal, since the "portage" group
# doesn't necessarily exist on prefix systems.
chgrp portage "${ED}"/var/delta-webrsync 2>/dev/null
}
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]] && \
! has_version app-arch/tarsync ; then
elog "For maximum emerge-delta-webrsync" \
"performance, install app-arch/tarsync."
fi
}