You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-portage/getdelta/getdelta-0.7.9.ebuild

38 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/getdelta/getdelta-0.7.9.ebuild,v 1.4 2012/03/19 07:57:57 mr_bones_ Exp $
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"
src_prepare() {
epatch "${FILESDIR}"/${P}.patch
}
src_install () {
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}
}