Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tests pass after rename

  • Loading branch information...
commit 63d7b60344b0c458156b5a05af34a6efa25baf02 1 parent 229b1aa
BuzzTroll authored
View
2  lantorrent/bin/client.sh
@@ -9,4 +9,4 @@ else
export PYTHONPATH=$pypath:${PYTHONPATH}
fi
-exec python ./pyvirga/client.py "${@}"
+exec python ./pylantorrent/client.py "${@}"
View
4 lantorrent/bin/virga-request → lantorrent/bin/lt-request
@@ -9,6 +9,6 @@ else
export PYTHONPATH=$pypath:${PYTHONPATH}
fi
# so that we pick up the ini file
-export VIRGA_HOME=$pypath
+export LANTORRENT_HOME=$pypath
-exec python ./pyvirga/request.py "${@}"
+exec python ./pylantorrent/request.py "${@}"
View
4 lantorrent/bin/virga.sh → lantorrent/bin/lt.sh
@@ -9,5 +9,5 @@ else
export PYTHONPATH=$pypath:${PYTHONPATH}
fi
-export VIRGA_HOME=$pypath
-exec python ./pyvirga/virga.py "${@}"
+export LANTORRENT_HOME=$pypath
+exec python ./pylantorrent/server.py "${@}"
View
4 lantorrent/etc/virga.ini
@@ -2,7 +2,7 @@
password=nimbus
[log]
-file=@VIRGA_HOME@/log/virga.log
+file=@LANTORRENT_HOME@/log/lantorrent.log
level=debug
[db]
-file=@VIRGA_HOME@/etc/req.db
+file=@LANTORRENT_HOME@/etc/req.db
View
4 lantorrent/etc/virga.xinetd
@@ -4,12 +4,12 @@
# to the originating source the time in seconds since midnight on January first
# 1900.
# This is the tcp version.
-service virga
+service lantorrent
{
disable = no
socket_type = stream
protocol = tcp
user = bresnaha
wait = no
- server = @VIRGA_HOME@/bin/virga.sh
+ server = @LANTORRENT_HOME@/bin/lt.sh
}
View
14 lantorrent/install.sh
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-dir=`dirname $0`
-cd $dir/..
-pypath=`pwd`
-if [ "X${PYTHONPATH}" == "X" ]; then
- export PYTHONPATH=$pypath
-else
- export PYTHONPATH=$pypath:${PYTHONPATH}
-fi
-# so that we pick up the ini file
-export VIRGA_HOME=$pypath
-
-exec python ./pyvirga/request.py "${@}"
View
8 lantorrent/pylantorrent/__init__.py
@@ -44,8 +44,8 @@ class VConfig(object):
def __init__(self):
self.set_defaults()
- if 'VIRGA_HOME' not in os.environ:
- emsg = "the env VIRGA_HOME must be set"
+ if 'LANTORRENT_HOME' not in os.environ:
+ emsg = "the env LAN_TORRENT_HOME must be set"
self.lt_home = os.path.expanduser("lantorrent")
log(logging.WARNING, emsg)
else:
@@ -76,7 +76,7 @@ def load_settings(self, ini_file):
s = SafeConfigParser()
s.readfp(open(ini_file, "r"))
self.pw = s.get("security", "password")
- self.logfile = s.get("log", "file").replace("@VIRGA@", self.lt_home)
+ self.logfile = s.get("log", "file").replace("@LANTORRENT@", self.lt_home)
self.host = s.get("host", "host")
self.port = s.getint("port", "port")
try:
@@ -85,7 +85,7 @@ def load_settings(self, ini_file):
except Exception, ex:
pass
try:
- self.dbfile = s.get("db", "file").replace("@VIRGA@", self.lt_home)
+ self.dbfile = s.get("db", "file").replace("@LANTORRENT@", self.lt_home)
except:
pass
View
2  lantorrent/pylantorrent/client.py
@@ -83,7 +83,7 @@ def main(argv=sys.argv[1:]):
cnt = cnt + 1
# for the sake of code resuse this will just be piped into an
- # virga daemon processor. /dev/null is used to supress a local write
+ # lt daemon processor. /dev/null is used to supress a local write
final = pylantorrent.create_endpoint_entry("localhost", "/dev/null")
final['destinations'] = dests
View
2  lantorrent/pylantorrent/ltConnection.py
@@ -4,7 +4,7 @@
import socket
import logging
import traceback
-from pylantorrent.vException import LTException
+from pylantorrent.ltException import LTException
import pylantorrent
import threading
View
2  lantorrent/pylantorrent/ltException.py
@@ -24,7 +24,7 @@ def __init__(self, code, msg, host=None, port=None, filename=None, rid=None):
self.port = port
self.filename = filename
self.rid = rid
- self.msg = VirgaException.errorsCode[code] % (msg)
+ self.msg = LTException.errorsCode[code] % (msg)
def __str__(self):
return "%s %d %s:%s%s %s\r\n" % (self.rid, self.code, str(self.host), str(self.port), self.filename, self.msg)
View
16 lantorrent/tests/xinetd.d/lantorrent
@@ -0,0 +1,16 @@
+# default: off
+# description: An RFC 868 time server. This protocol provides a
+# site-independent, machine readable date and time. The Time service sends back
+# to the originating source the time in seconds since midnight on January first
+# 1900.
+# This is the tcp version.
+service lantorrent
+{
+ disable = no
+ socket_type = stream
+ protocol = tcp
+ user = bresnaha
+ wait = no
+ port = 9765
+ server = /home/bresnaha/Dev/Nimbus/nimbus/lantorrent/bin/lt.sh
+}
Please sign in to comment.
Something went wrong with that request. Please try again.