aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-05-29 04:55:49 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-31 10:36:19 +0700
commitb0ff6382cd60c74652ae1bac1c474d852b76f4cc (patch)
tree08f4816c6e97beab936a1c3f1b058314e7ed3318
parent71d431bc41e76f5ff14953a869b6d48262985e9a (diff)
network/freerapid: Added (Java downloader manager).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/freerapid/README23
-rw-r--r--network/freerapid/doinst.sh13
-rw-r--r--network/freerapid/frd.sh79
-rw-r--r--network/freerapid/freerapid.SlackBuild75
-rw-r--r--network/freerapid/freerapid.desktop9
-rw-r--r--network/freerapid/freerapid.info10
-rw-r--r--network/freerapid/slack-desc19
7 files changed, 228 insertions, 0 deletions
diff --git a/network/freerapid/README b/network/freerapid/README
new file mode 100644
index 0000000000000..0ac58f37b1c04
--- /dev/null
+++ b/network/freerapid/README
@@ -0,0 +1,23 @@
+FreeRapid is an easy to use Java downloader that supports downloading from Rapidshare, Youtube,
+Facebook, Picasa and other file-sharing services, include the new ones like mega.co.nz.
+
+Simply copy and paste your links from a browser to this application.
+FreeRapid Downloader will handle the rest itself. No more clicking or uncomfortable waiting.
+
+Main Features:
+
+* support for concurrent downloading from multiple services;
+* downloading using proxy list;
+* support for streamed videos or pictures;
+* download history;
+* smart clipboard monitoring;
+* automatic checking for file's existence on server;
+* auto shutdown options;
+* automatic plugins updates;
+* simple CAPTCHA recognition;
+* works on MS Windows (all, include Win7 and Win8), Linux and MacOS;
+* easy to use;
+* multilanguage interface English, Bulgarian, Czech, Finnish, Portugal, Slovak, Hungarian, Simplified Chinese and many others. Information for translators;
+* looks great;
+* more than 700 supported sites!; and
+* simply works! more over 2 000 000 users can confirm that.
diff --git a/network/freerapid/doinst.sh b/network/freerapid/doinst.sh
new file mode 100644
index 0000000000000..9424ce43ff572
--- /dev/null
+++ b/network/freerapid/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/network/freerapid/frd.sh b/network/freerapid/frd.sh
new file mode 100644
index 0000000000000..20a8bb1daf3fb
--- /dev/null
+++ b/network/freerapid/frd.sh
@@ -0,0 +1,79 @@
+#!/bin/sh
+# FRD requires Sun Java 6, NO Shity GCJ, NO buggy OpenJDK, but Sun Java 6!
+# some crappy distros needed to add switch -Djava.net.preferIPv4Stack=true
+# Look for java in these directories
+LOOKUP_JRE_DIRS="/usr/lib/jvm/* /opt/java* /opt/jre*"
+#Created by Petris 2009 -> Many thanks!
+# Required version
+REQ_JVER1=1
+REQ_JVER2=6
+REQ_JVER3=0
+REQ_JVER4=5
+
+check_java_version () {
+ JVER1=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "\([0-9]*\)\.[0-9]*\.[0-9]*_[0-9]*".*/\1/'`
+ JVER2=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.\([0-9]*\)\.[0-9]*_[0-9]*".*/\1/'`
+ JVER3=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.\([0-9]*\)_[0-9]*".*/\1/'`
+ JVER4=`echo $JAVA_VERSION_OUTPUT | sed 's/java version "[0-9]*\.[0-9]*\.[0-9]*_\([0-9]*\)".*/\1/'`
+
+ if [ $JVER1 -gt $REQ_JVER1 ]; then
+ return 0
+ elif [ $JVER1 -lt $REQ_JVER1 ]; then
+ return 1
+ fi
+
+ if [ $JVER2 -gt $REQ_JVER2 ]; then
+ return 0
+ elif [ $JVER2 -lt $REQ_JVER2 ]; then
+ return 1
+ fi
+
+ if [ $JVER3 -gt $REQ_JVER3 ]; then
+ return 0
+ elif [ $JVER3 -lt $REQ_JVER3 ]; then
+ return 1
+ fi
+
+ if [ $JVER4 -lt $REQ_JVER4 ]; then
+ return 1
+ fi
+
+ return 0
+}
+
+# Handle symlinks
+PROGRAM="$0"
+while [ -L "$PROGRAM" ]; do
+ PROGRAM=`readlink -f "$PROGRAM"`
+done
+cd "`dirname \"$PROGRAM\"`"
+
+# Check default java
+if [ -x "`which java`" ]; then
+ JAVA_VERSION_OUTPUT=`java -version 2>&1`
+ check_java_version && cd /usr/share/freerapid-0.9.4/ && exec java -Djava.net.preferIPv4Stack=true -Xmx160m -jar frd.jar "$@"
+fi
+
+# Test other possible Java locations
+for JRE_PATH in $LOOKUP_JRE_DIRS; do
+ if [ -x "$JRE_PATH/bin/java" ]; then
+ JAVA_VERSION_OUTPUT=`"$JRE_PATH/bin/java" -version 2>&1`
+ check_java_version && {
+ export JRE_PATH
+ cd /usr/share/freerapid-0.94/ && exec $JRE_PATH/bin/java -Djava.net.preferIPv4Stack=true -Xmx160m -jar frd.jar "$@"
+ }
+ fi
+done
+
+# Failed
+if [ -x "`which xmessage`" ]; then
+ xmessage -nearmouse -file - <<EOF
+Failed to find a suitable java version.
+Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3_$REQ_JVER4 or newer.
+EOF
+else
+ echo Failed to find a suitable java version.
+ echo Required: $REQ_JVER1.$REQ_JVER2.$REQ_JVER3_$REQ_JVER4 or newer.
+fi
+
+exit 1
diff --git a/network/freerapid/freerapid.SlackBuild b/network/freerapid/freerapid.SlackBuild
new file mode 100644
index 0000000000000..6517a88166e4d
--- /dev/null
+++ b/network/freerapid/freerapid.SlackBuild
@@ -0,0 +1,75 @@
+#!/bin/sh
+#
+# Slackware build script for freerapid.
+#
+# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=freerapid
+SRCNAM=FreeRapid
+VERSION=${VERSION:-0.9.4}
+SRCVER=${SRCVER:-0.9u4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+unzip $CWD/${SRCNAM}-${SRCVER}.zip
+mv $SRCNAM-$SRCVER $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+install -d $PKG/usr/bin
+install -D -m755 $CWD/frd.sh $PKG/usr/bin/freerapid
+install -d $PKG/usr/share/{applications,pixmaps}
+install -D -m644 $CWD/freerapid.desktop $PKG/usr/share/applications/freerapid.desktop
+install -D -m644 frd.png $PKG/usr/share/pixmaps/freerapid.png
+
+mkdir -p $PKG/usr/share/$PRGNAM-$VERSION
+cp -a lib lookandfeel search tools frd.icns frd.ico frd.jar instplgs.dat objectdb.conf startup.properties syscmd.properties $PKG/usr/share/$PRGNAM-$VERSION
+
+DOCS="doc/changes.txt doc/readme.* copyright License"
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/freerapid/freerapid.desktop b/network/freerapid/freerapid.desktop
new file mode 100644
index 0000000000000..ac8233d8d6808
--- /dev/null
+++ b/network/freerapid/freerapid.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=FreeRapid
+GenericName=Download Manager
+Comment=Java based download manager
+Exec=/usr/bin/freerapid
+StartupNotify=true
+Icon=freerapid
+Type=Application
+Categories=Network;
diff --git a/network/freerapid/freerapid.info b/network/freerapid/freerapid.info
new file mode 100644
index 0000000000000..8e11b30284a25
--- /dev/null
+++ b/network/freerapid/freerapid.info
@@ -0,0 +1,10 @@
+PRGNAM="freerapid"
+VERSION="0.9.4"
+HOMEPAGE="http://wordrider.net/freerapid/index.html"
+DOWNLOAD="https://www.dropbox.com/s/dmgv444n2bhocfh/FreeRapid-0.9u4.zip"
+MD5SUM="a067ecbd37ac7c83a795c34a3dc6388f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="jdk"
+MAINTAINER="Edinaldo P. Silva"
+EMAIL="edps.mundognu@gmail.com"
diff --git a/network/freerapid/slack-desc b/network/freerapid/slack-desc
new file mode 100644
index 0000000000000..eeacb989f7048
--- /dev/null
+++ b/network/freerapid/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+freerapid: freerapid (Java downloader manager)
+freerapid:
+freerapid: FreeRapid is an easy to use Java downloader that supports downloading
+freerapid: from Rapidshare, Youtube, Facebook, Picasa and other file-sharing
+freerapid: services, include the new ones like mega.co.nz.
+freerapid:
+freerapid: Home page: http://wordrider.net/freerapid/index.html/
+freerapid:
+freerapid:
+freerapid:
+freerapid: