SVN: toys/rsget.pl: Makefile README README.config
sparky
sparky at pld-linux.org
Fri Oct 2 18:52:42 CEST 2009
Author: sparky
Date: Fri Oct 2 18:52:41 2009
New Revision: 10654
Added:
toys/rsget.pl/README.config (contents, props changed)
Modified:
toys/rsget.pl/Makefile
toys/rsget.pl/README
Log:
- update README
- added example config file
Modified: toys/rsget.pl/Makefile
==============================================================================
--- toys/rsget.pl/Makefile (original)
+++ toys/rsget.pl/Makefile Fri Oct 2 18:52:41 2009
@@ -14,11 +14,10 @@
rm -f {RSGet,Get,Link,data}/*~
install -d $(PKGDIR)/{RSGet,Get,Link,data}
install rsget.pl $(PKGDIR)
- cp Makefile README $(PKGDIR)
+ cp Makefile README README.config $(PKGDIR)
cp RSGet/*.pm $(PKGDIR)/RSGet
cp Get/* $(PKGDIR)/Get
cp Link/* $(PKGDIR)/Link
- grep "status:\s*BROKEN" $(PKGDIR)/{Get,Link}/* | sed 's/:.*//' | xargs -r rm -v
cp data/* $(PKGDIR)/data
tar -cjf $(PKGDIR).tar.bz2 $(PKGDIR)
endif
@@ -29,7 +28,8 @@
sed 's#\($$data_path\) =.*;#\1 = "$(DATADIR)";#' < rsget.pl > rsget.pl.datadir
install rsget.pl.datadir $(DESTDIR)$(BINDIR)/rsget.pl
cp RSGet/*.pm $(DESTDIR)$(DATADIR)/RSGet
+ cp data/* $(DESTDIR)$(DATADIR)/data
cp Get/* $(DESTDIR)$(DATADIR)/Get
cp Link/* $(DESTDIR)$(DATADIR)/Link
- cp data/* $(DESTDIR)$(DATADIR)/data
+ grep "status:\s*BROKEN" $(DESTDIR)$(DATADIR)/{Get,Link}/* | sed 's/:.*//' | xargs -r rm -v
Modified: toys/rsget.pl/README
==============================================================================
--- toys/rsget.pl/README (original)
+++ toys/rsget.pl/README Fri Oct 2 18:52:41 2009
@@ -1,6 +1,6 @@
TODO:
-- Write documentation
+- Write more documentation
Features:
@@ -11,12 +11,8 @@
- Continues partially downloaded files (if download service allows it)
- Incorporates small HTTP server allowing to check the status of downloads,
and add new links.
+- Automatically updates itself from SVN.
-Bugs:
-- MicroHTTP freezes whole program if there is an open connection.
-
-
-Command-line options:
- -p <PORT> - starts MicroHTTP server at specified port
- -i <IF1>,<IF2> - list of network interfaces or IP numbers
- <FILENAME> - file to use as link list file (must exist)
+For full list of command-line options check: rsget.pl --help. All those options
+may also be set in config file ( $HOME/.rsget.pl/config ). Check 'README.config'
+file for example config.
Added: toys/rsget.pl/README.config
==============================================================================
--- (empty file)
+++ toys/rsget.pl/README.config Fri Oct 2 18:52:41 2009
@@ -0,0 +1,44 @@
+
+# Example config file
+# $Id$
+
+# backup allows 4 settings:
+# copy,move - backups are always made
+# move - make backup only if starting file from beggining (move old file)
+# copy - make backup only if continuing partially-downloaded file (copy old)
+# none - backups are never made
+backup = move
+
+# for file FILE_NAME.EXT by default backups will be named as:
+# FILE_NAME-{N}.EXT where {N} is 1, 2, 3...
+# name backups as: FILE_NAME.EXT~{N}
+backup_suf = ~
+
+# start http server on port 5666 (won't be started by default or if port is 0),
+# make sure the port is blocked in the firewall, as rsget.pl has no
+# authentification
+http_port = 5666
+
+# if you are blessed with multiple interfaces:
+#interfaces = eth0, tun0, tun1
+# same thing for multiple IP addresses:
+#interfaces = 1.1.1.1, 1.1.1.2, 1.1.1.3
+
+# if your vim stores swap files in different directory and you want list
+# file locking:
+#list_lock = /path/to/swaps/.${file}.swp
+
+# store unfinished files in "partial" directory
+workdir = partial
+
+# move finished downloads to "done"
+outdir = done
+
+# update automatically from SVN (possibly dangerous, but very convenient):
+#use_svn = update
+
+# save erroneous pages (only useful for getter debugging):
+#errorlog = 1
+
+# be verbose (useful for debugging):
+#verbose = 2
More information about the pld-cvs-commit
mailing list