blob: 8230244923222853131609f899d5836e01f09b77 (
plain)
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/getdelta/getdelta-0.7.8.ebuild,v 1.2 2007/10/13 11:39:03 genstef Exp $
DESCRIPTION="dynamic deltup client"
HOMEPAGE="http://linux01.gwdg.de/~nlissne/"
SRC_URI="http://linux01.gwdg.de/~nlissne/${P}.tar.bz2"
SLOT="0"
IUSE=""
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~sparc ~x86"
RDEPEND="app-portage/deltup
dev-util/bdelta"
src_install () {
sed -i -e "s:/bin/sh:/bin/bash:" ${WORKDIR}/getdelta.sh
dobin ${WORKDIR}/getdelta.sh
}
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}
}
|