Permalink
Browse files

Get rid of some old sample config lines that don't count anymore

And some places the cruft was no longer needed
  • Loading branch information...
1 parent 2ec11ea commit 9a8c95235d61a18ec967a96d501525f54c696552 @afresh1 committed Oct 14, 2012
Showing with 3 additions and 34 deletions.
  1. +1 −14 CurrentTorrents.pl
  2. +0 −1 MakeTorrents.pl
  3. +2 −19 OpenBSDTorrents.conf.example
View
@@ -36,7 +36,7 @@
opendir DIR, $DIR
or die "Couldn't opendir $DIR: $!";
foreach ( readdir DIR ) {
- next unless my ($ext) = /\.(torrent|$OBT->{META_EXT})$/;
+ next unless my ($ext) = /\.(torrent)$/;
if (/^([^\/]+)$/) {
$_ = $1;
@@ -241,19 +241,6 @@
}
}
-foreach my $name ( keys %{ $files{ $OBT->{META_EXT} } } ) {
- foreach my $epoch ( keys %{ $files{ $OBT->{META_EXT} }{$name} } ) {
- unless ( exists $files{torrent}{$name}{$epoch} ) {
- my $path = $files{ $OBT->{META_EXT} }{$name}{$epoch}{dir}
- . '/'
- . $files{ $OBT->{META_EXT} }{$name}{$epoch}{file};
-
- print "Unlinking '$path'\n";
- unlink $path or die "couldn't unlink '$path': $!";
- }
- }
-}
-
sub Process_Dir {
my $basedir = shift;
View
@@ -155,7 +155,6 @@ sub btmake {
my $announce = $OBT->{URL_TRACKER};
my $web_seed = $OBT->{URL_WEBSEED} . $name;
- my $piece_len = 2 << ( $OBT->{PIECE_LENGTH} - 1 );
my $torrent_with_path = $OBT->{DIR_NEW_TORRENT} . "/$torrent";
@@ -5,33 +5,16 @@ OBT_DIR_FTP=/home/ftp/pub
OBT_DIR_HOME=/home/OpenBSDTorrents
OBT_DIR_TORRENT=/home/torrentsync/torrents
OBT_DIR_NEW_TORRENT=/home/torrentsync/new_torrents
-OBT_DIR_CUR_TORRENT=/home/torrentsync/cur_torrents
-OBT_DIR_LOG_TORRENT=/home/torrentseeder/log_torrents
OBT_BASENAME=OpenBSD
-OBT_META_EXT=yaml
# These are regexes that tell what files to skip making torrents for
OBT_SKIP_DIRS=\/patches$
OBT_SKIP_FILES='^(?:\.|index\.txt)'
# URL's that we need to know the location of
-OBT_URL_TRACKER=http://OpenBSD.somedomain.net/announce.php
+OBT_URL_TRACKER=http://OpenBSD.somedomain.net:6969/announce
OBT_URL_WEBSEED=http://openbsd.somedomain.net/pub/
-OBT_URL_TORRENTS=http://openbsd.somedomain.net/dumptorrents.php
-OBT_URL_UPLOAD=http://openbsd.somedomain.net/newtorrents.php
-OBT_URL_UPDATE=http://openbsd.somedomain.net/oldtorrents.php
-OBT_URL_SANITY=http://openbsd.somedomain.net/sanity.php
-
-# Username and password to upload the torrents to the tracker
-OBT_UPLOAD_USER=torrentup
-OBT_UPLOAD_PASS=
-
-# Username and password to FTP the finished torrents
-OBT_FTP_USER=torrents@somedomain.net
-OBT_FTP_PASS=''
-OBT_FTP_SERVER=
-
-OBT_PIECE_LENGTH=18
+OBT_URL_TORRENTS=http://openbsd.somedomain.net/torrent/
# minimum limits on which dirs to create torrents from
OBT_MIN_FILES=5

0 comments on commit 9a8c952

Please sign in to comment.