+++ /dev/null
---- rsget.sh.orig 2009-02-12 16:31:07.000000000 +0100
-+++ rsget.sh 2009-10-13 08:23:18.000000000 +0200
-@@ -3,7 +3,7 @@
- # Piotr Jachacy
- # jachacy@gmail.com
- #
--# ostatnia modyfikacja: 14.10.2008
-+# ostatnia modyfikacja: 13.10.2009
- #
- # /* This program is free software. It comes without any warranty, to
- # * the extent permitted by applicable law. You can redistribute it
-@@ -49,6 +49,27 @@
- odliczanie $minuty
-
- pobierz $1
-+ elif [ -n "$(echo "$link" | grep "Currently a lot of users are downloading files.")" ]
-+ then
-+ minuty=$(echo "$link" | grep "Please try again in" | sed -e "s/.*in \([0-9]*\) minutes.*/\1/")
-+
-+ echo "Serwer jest przeciążony. Musisz odczekać około $minuty minut"
-+
-+ minuty=$[$minuty*60+30]
-+
-+ odliczanie $minuty
-+
-+ pobierz $1
-+ elif [ -n "$(echo "$link" | grep "We regret that currently we have no available slots for free users.")" ]
-+ then
-+ minuty=$(echo "$link" | grep "Unfortunately you will have to wait" | sed -e "s/.*wait \([0-9]*\) minutes.*/\1/")
-+ echo "Brak wolnych slotów dla użytkowników darmowych. Musisz odczekać około $minuty minut"
-+
-+ minuty=$[$minuty*60+30]
-+
-+ odliczanie $minuty
-+
-+ pobierz $1
- else
- czas=$(echo "$link" | grep "var c" | sed -e "s/var c=\([0-9]*\);.*/\1/")
-
+# TODO:
+# - /home/users/blues/.rsget-mod/common.sh: line 65: /usr/bin/rsget: Brak dost�pu
+# .rsget-mod/common.sh is downloaded on first run.
#
Summary: A console-based RapidShare files downloader
Summary(pl.UTF-8): Konsolowy skrypt do pobierania plików z RapidShare
Name: rsget
-Version: 20091013
+Version: 0.6
Release: 1
+Epoch: 1
License: WTFPL
Group: Applications
-Source0: http://jachacy.mm5.pl/pub/%{name}.sh
-# Source0-md5: f783eee9d3fba101289d4213ed383217
+Source0: http://rs.nerdblog.pl/stable/latest/%{name}-mod.sh
+# Source0-md5: d768c0e3adeb13db020a201b44a01c93
Source1: http://sam.zoy.org/wtfpl/COPYING
# Source1-md5: 65a4a3db35cb4ac63386bdc70687d1e5
-Patch0: %{name}.patch
-URL: http://jachacy.jogger.pl/2008/07/03/rsget-sh-skrypt-automatyzujacy-pobieranie-z-rapidshare-com/
+URL: http://rs.nerdblog.pl/
Requires: bash
Requires: grep
Requires: sed
%setup -q -c -T
cp %{SOURCE0} .
cp %{SOURCE1} .
-%patch0
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
-install rsget.sh $RPM_BUILD_ROOT%{_bindir}/rsget
+
+install %{name}-mod.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/rsget
%doc COPYING
+%attr(755,root,root) %{_bindir}/%{name}