From b0ff6382cd60c74652ae1bac1c474d852b76f4cc Mon Sep 17 00:00:00 2001 From: "Edinaldo P. Silva" Date: Fri, 29 May 2015 04:55:49 +0700 Subject: network/freerapid: Added (Java downloader manager). Signed-off-by: Willy Sudiarto Raharjo --- network/freerapid/README | 23 ++++++++++ network/freerapid/doinst.sh | 13 ++++++ network/freerapid/frd.sh | 79 ++++++++++++++++++++++++++++++++++ network/freerapid/freerapid.SlackBuild | 75 ++++++++++++++++++++++++++++++++ network/freerapid/freerapid.desktop | 9 ++++ network/freerapid/freerapid.info | 10 +++++ network/freerapid/slack-desc | 19 ++++++++ 7 files changed, 228 insertions(+) create mode 100644 network/freerapid/README create mode 100644 network/freerapid/doinst.sh create mode 100644 network/freerapid/frd.sh create mode 100644 network/freerapid/freerapid.SlackBuild create mode 100644 network/freerapid/freerapid.desktop create mode 100644 network/freerapid/freerapid.info create mode 100644 network/freerapid/slack-desc (limited to 'network') 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 - < $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: -- cgit v1.2.3