blob: 0118e4dae477c4b3a120611449317c11ebb37a13 (
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
32
33
34
35
36
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-block/vblade/vblade-21.ebuild,v 1.1 2013/05/22 04:22:50 radhermit Exp $
EAPI=4
inherit toolchain-funcs
DESCRIPTION="vblade exports a block device using AoE"
HOMEPAGE="http://sf.net/projects/aoetools/"
SRC_URI="mirror://sourceforge/aoetools/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
RDEPEND="sys-apps/util-linux"
src_prepare() {
sed -i -e 's,^CFLAGS.*,CFLAGS += -Wall,' \
-e 's:-o vblade:${LDFLAGS} \0:' \
makefile || die
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dosbin vblade
dosbin "${FILESDIR}"/vbladed
doman vblade.8
dodoc HACKING NEWS README
newconfd "${FILESDIR}"/conf.d-vblade vblade
newinitd "${FILESDIR}"/init.d-vblade.vblade0 vblade.vblade0
}
|