From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-portage/getdelta/getdelta-0.7.9-r2.ebuild | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 app-portage/getdelta/getdelta-0.7.9-r2.ebuild (limited to 'app-portage/getdelta/getdelta-0.7.9-r2.ebuild') diff --git a/app-portage/getdelta/getdelta-0.7.9-r2.ebuild b/app-portage/getdelta/getdelta-0.7.9-r2.ebuild new file mode 100644 index 000000000000..df2523078442 --- /dev/null +++ b/app-portage/getdelta/getdelta-0.7.9-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="dynamic deltup client" +HOMEPAGE="http://linux01.gwdg.de/~nlissne/" +SRC_URI="http://linux01.gwdg.de/~nlissne/${PN}-0.7.8.tar.bz2" +SLOT="0" +IUSE="" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" + +RDEPEND="app-portage/deltup + dev-util/bdelta" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch +} + +src_install () { + # portage has moved make.globals, so we just hotfix it + sed -i -e "s:/etc/make.globals:/usr/share/portage/config/make.globals:g" "${WORKDIR}"/getdelta.sh || die "Couldn't fix make.globals path" + + # make.conf has now two locations. This should fix it ( #461726 ) + sed -i -e "s:source /etc/make.conf:source /etc/make.conf || source /etc/portage/make.conf:" "${WORKDIR}"/getdelta.sh || die "Couldn't fix make.conf path" + + sed -i -e "s:/bin/sh:/bin/bash:" "${WORKDIR}"/getdelta.sh || die + dobin "${WORKDIR}"/getdelta.sh || die +} + +pkg_postinst() { + elog "You need to put" + elog "FETCHCOMMAND=\"/usr/bin/getdelta.sh \\\${URI}\"" + elog "into your /etc/make.conf to make use of getdelta" + + # make sure permissions are ok + touch "${ROOT}"/var/log/getdelta.log + mkdir -p "${ROOT}"/etc/deltup + chown -R portage:portage "${ROOT}"/{var/log/getdelta.log,etc/deltup} + chmod -R ug+rwX "${ROOT}"/{var/log/getdelta.log,etc/deltup} +} -- cgit v1.2.3