e646b86b0bec74515607ef8275beb0558d1dff83
[ub0rlay.git] / net-p2p / wuala / wuala-1-r2.ebuild
1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 DESCRIPTION="Wuala, your free online hard-disk"
6 HOMEPAGE="http://wua.la/"
7 SRC_URI="http://files.wua.la/WualaLinux/wuala.tar.gz"
8
9 LICENSE="wuala"
10 SLOT="0"
11 KEYWORDS="~amd64 ~x86"
12 IUSE=""
13
14 DEPEND=""
15 RDEPEND=">=virtual/jre-1.5.0"
16
17 src_unpack() {
18         unpack ${A}
19         patch < ${FILESDIR}/${P}.patch
20         patch < ${FILESDIR}/${P}.home.patch
21         patch < ${FILESDIR}/${P}.cmd.patch
22 }
23
24 src_install() {
25         diropts -m2770
26         dodir /opt/${PN}
27         fowners root:users /opt/${PN}
28         
29         dodir /opt/${PN}/Data
30         dodir /opt/${PN}/direct
31         dodir /opt/${PN}/Prog4
32         
33         insinto /opt/${PN}
34         insopts -m660
35         doins loader.jar Wuala.init wuala.png
36
37         insinto /usr/share/apps/${PN}
38         insopts -m644
39         doins wuala.desktop
40         
41         exeinto /opt/${PN}
42         exeopts -m750
43         doexe wuala wualacmd
44         dosym /opt/${PN}/wuala /opt/bin/wuala
45         dosym /opt/${PN}/wualacmd /opt/bin/wualacmd
46         
47         dodoc readme.txt
48 }