bump wuala to loader2.jar
authorFelix Bechstein <f@ub0r.de>
Fri, 27 Mar 2009 07:13:37 +0000 (27 08:13 +0100)
committerFelix Bechstein <f@ub0r.de>
Fri, 27 Mar 2009 07:13:37 +0000 (27 08:13 +0100)
net-p2p/wuala/Manifest
net-p2p/wuala/files/wuala [new file with mode: 0755]
net-p2p/wuala/files/wualacmd [new file with mode: 0755]
net-p2p/wuala/wuala-2.ebuild [new file with mode: 0644]

index 32b3a74..fd47d7e 100644 (file)
@@ -1,10 +1,13 @@
+AUX wuala 901 RMD160 66640b09dd361a5ccaa1a4dfb72941701bed0f7e SHA1 b38479782f8b0fbe2e51a429521471be33813cb9 SHA256 d35cf69605d03bcf33410ffa66f97ff23eba9a1e11074cc6981a9a9550ddb79b
 AUX wuala-1.cmd.patch 197 RMD160 72cf5bd20ae2d6d95bede1f83761b49a11ca73e4 SHA1 57ffd82a1b5f93125870404a80e02ea1e32b65c4 SHA256 18a5b2489a14aa3d7f35624e38be7834ca0596b1b4b746d9e641ffd30c47cb32
 AUX wuala-1.home.patch 892 RMD160 74a9040c9e98c8080d00fb4f7dea5e9c51e61abd SHA1 5997dbea05f5f934ccd327eba106c68a08d16c3a SHA256 a3ebc2c2fef3e27407a71654f5508f496cbaa29f07dac6c8e9d06a6e600cdc22
 AUX wuala-1.patch 214 RMD160 7ef541f4c8d1c7f97aabe5282f2d308d1a9ff43f SHA1 f8743aa9c94ba224e8061e6b1dbee92af40ed4d7 SHA256 497499989b86fa1be632a5f06b0ab9b037197574bdad941716801851579501d0
+AUX wualacmd 28 RMD160 7c1db13e1130de29a0b2e6af496c9f3126b2ca3e SHA1 bbbb441e90e334763ea5c3d26e0172c9953d5828 SHA256 443316c3bc7abd2157ad4ffb391622665374a11ba7535826febf08b05ed13b3a
 DIST wuala.tar 1308211 RMD160 d8ef38038f01b7f88de30c2c7acd8c688512c14e SHA1 e8bb6e50422521deef7aa39b4de1739670bda619 SHA256 e62b14f9e7071cd9cf910f6c1fe9b73c622de61bac70ebb57522cb9243efda01
-DIST wuala.tar.gz 106153 RMD160 100711250e9bc46cc27a4e46cd3578c9d7a9a838 SHA1 c47437841d48263f543d556cf66bc8cb2884753d SHA256 951deccfa3694d43880d574402305f5056870430bdbe28eb6338783ec1bb32c3
+DIST wuala.tar.gz 128420 RMD160 e28f813b394c39576b594ac2ffd61cea884d11bf SHA1 18494842a6803b8594d2d383a3c7411628c8cab7 SHA256 b88d021d3af6824c9685805f5c2f83dd908465ae332c0862cc495aa9056321fe
 EBUILD wuala-0-r1.ebuild 944 RMD160 9792a990296dd07f4a3b1f18f8077c51860a92c4 SHA1 5654c152a53d240a683b13cbbcc10eb17ca7075c SHA256 a4b77e2b0f51678c11030578c0dcb39950cad9c6b17ddfc80f3e878a514d9b8e
 EBUILD wuala-1-r1.ebuild 912 RMD160 94345dde507881267baf009b3e1dd84d11eec0c5 SHA1 52e39497c3cead817c15ed0c6dca0121d15c971c SHA256 cb0ab63f6a16bdcdb8fc9bdd58bbca45bd6560e8acd967ef89cbb076667bfaf1
 EBUILD wuala-1-r2.ebuild 948 RMD160 5dd204d348477c2daf2f36c219392a1ac3f70337 SHA1 44a289f67e46b7120288bdc61209cbbe13604073 SHA256 7d5027217a08bd9028f5c8391de2e680bd9645b874439b69c06e065c00e30257
 EBUILD wuala-1-r3.ebuild 959 RMD160 8f9eb837dfa3c2b39ccbb6f5309ab354b5d18042 SHA1 8727ba14003cc4e5c25729f9ec5ee32a5aed7a4d SHA256 2c3bf5906e6b5f72108b8bdc96bd00307e959e926120f51bb402d5e9b66d8688
 EBUILD wuala-1.ebuild 875 RMD160 5b3c4cbdd316e7c17ed26b228a94a158f207cf62 SHA1 5685713fc8848d5dfb1c0076cc75df6dc768bc49 SHA256 11b77db415c7e1ab690330b9ce8b17b95b595df071edd0ae4cf08bc9ba98ab11
+EBUILD wuala-2.ebuild 605 RMD160 e17f41190c308382f37580dc1840fd48bf478f61 SHA1 c926351099b46450e7065a1d372effd635f1ae7c SHA256 97660fdc7fd42c8822d98f0b70ee3b040339d2ecb241e0c1833b24f7c36fc966
diff --git a/net-p2p/wuala/files/wuala b/net-p2p/wuala/files/wuala
new file mode 100755 (executable)
index 0000000..ba07c2e
--- /dev/null
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+## source $HOME/.wualarc (set variables *there*)
+
+if [ -d "$XDG_CONFIG_HOME" ]; then
+   WUALACONFIG=`echo $XDG_CONFIG_HOME/wualarc`
+else
+   if [ -d "$HOME/.config" ]; then
+      WUALACONFIG=`echo $HOME/.config/wualarc`
+   else
+      mkdir -p $HOME/.config && WUALACONFIG=`echo $HOME/.config/wualarc` || echo "Could not create config dir: $HOME/.config" 
+   fi
+fi
+
+echo "Using config file $WUALACONFIG"
+
+test -r $WUALACONFIG && source $WUALACONFIG
+
+if [ -z "$WUALADIR" ]; then
+  WUALADIR=`echo $HOME/wuala/`
+  echo "WUALADIR=$WUALADIR" >> $WUALACONFIG
+fi
+
+if [ -z "$JAVA" ]; then
+  JAVA=`which java`
+  echo "JAVA=$JAVA" >> $WUALACONFIG
+fi
+
+if [ -d "$WUALADIR" ]; then
+  cd $WUALADIR
+else
+  echo "Directory not found: $WUALADIR"
+  echo "please set correct WUALADIR in $HOME/.config/wualarc or reinstall wuala"
+  exit 1
+fi
+
+# start wuala
+$JAVA -Xmx256m -jar /opt/wuala/loader2.jar $*
diff --git a/net-p2p/wuala/files/wualacmd b/net-p2p/wuala/files/wualacmd
new file mode 100755 (executable)
index 0000000..c9c6abb
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+wuala -nogui "$@"
diff --git a/net-p2p/wuala/wuala-2.ebuild b/net-p2p/wuala/wuala-2.ebuild
new file mode 100644 (file)
index 0000000..667588a
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="Wuala, your free online hard-disk"
+HOMEPAGE="http://wuala.com/"
+SRC_URI="http://www.wuala.com/files/wuala.tar.gz"
+
+LICENSE="wuala"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.5.0"
+
+src_install() {
+       cd ${PN}
+       dodir /opt/${PN}
+       
+       insinto /opt/${PN}
+       doins loader2.jar
+
+       exeinto /opt/${PN}
+       doexe ${FILESDIR}/wuala ${FILESDIR}/wualacmd
+       dosym /opt/${PN}/wuala /opt/bin/wuala
+       dosym /opt/${PN}/wualacmd /opt/bin/wualacmd
+       
+       dodoc readme.txt
+}