source: trunk/daemon/daemon.c @ 12377

Last change on this file since 12377 was 12377, checked in by jordan, 12 years ago

(trunk daemon) #2338 "Add uTP support" -- added er13's patch from comment:115 to add uTP enable/disable commands to transmission-remote. Thanks er13!

  • Property svn:keywords set to Date Rev Author Id
File size: 20.1 KB
Line 
1/*
2 * This file Copyright (C) Mnemosyne LLC
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2
6 * as published by the Free Software Foundation.
7 *
8 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
9 *
10 * $Id: daemon.c 12377 2011-04-20 23:17:10Z jordan $
11 */
12
13#include <errno.h>
14#include <stdio.h> /* printf */
15#include <stdlib.h> /* exit, atoi */
16#include <string.h> /* strerror() */
17
18#include <fcntl.h> /* open */
19#include <signal.h>
20#ifdef HAVE_SYSLOG
21#include <syslog.h>
22#endif
23#include <unistd.h> /* daemon */
24
25#include <event2/buffer.h>
26
27#include <libtransmission/transmission.h>
28#include <libtransmission/bencode.h>
29#include <libtransmission/tr-getopt.h>
30#include <libtransmission/utils.h>
31#include <libtransmission/version.h>
32
33#include "watch.h"
34
35#define MY_NAME "transmission-daemon"
36
37#define PREF_KEY_DIR_WATCH          "watch-dir"
38#define PREF_KEY_DIR_WATCH_ENABLED  "watch-dir-enabled"
39#define PREF_KEY_PIDFILE            "pidfile"
40
41#define MEM_K 1024
42#define MEM_K_STR "KiB"
43#define MEM_M_STR "MiB"
44#define MEM_G_STR "GiB"
45#define MEM_T_STR "TiB"
46
47#define DISK_K 1024
48#define DISK_B_STR   "B"
49#define DISK_K_STR "KiB"
50#define DISK_M_STR "MiB"
51#define DISK_G_STR "GiB"
52#define DISK_T_STR "TiB"
53
54#define SPEED_K 1024
55#define SPEED_B_STR   "B/s"
56#define SPEED_K_STR "KiB/s"
57#define SPEED_M_STR "MiB/s"
58#define SPEED_G_STR "GiB/s"
59#define SPEED_T_STR "TiB/s"
60
61static bool paused = false;
62static bool closing = false;
63static tr_session * mySession = NULL;
64
65/***
66****  Config File
67***/
68
69static const char *
70getUsage( void )
71{
72    return "Transmission " LONG_VERSION_STRING
73           "  http://www.transmissionbt.com/\n"
74           "A fast and easy BitTorrent client\n"
75           "\n"
76           MY_NAME " is a headless Transmission session\n"
77           "that can be controlled via transmission-remote\n"
78           "or the web interface.\n"
79           "\n"
80           "Usage: " MY_NAME " [options]";
81}
82
83static const struct tr_option options[] =
84{
85
86    { 'a', "allowed", "Allowed IP addresses. (Default: " TR_DEFAULT_RPC_WHITELIST ")", "a", 1, "<list>" },
87    { 'b', "blocklist", "Enable peer blocklists", "b", 0, NULL },
88    { 'B', "no-blocklist", "Disable peer blocklists", "B", 0, NULL },
89    { 'c', "watch-dir", "Where to watch for new .torrent files", "c", 1, "<directory>" },
90    { 'C', "no-watch-dir", "Disable the watch-dir", "C", 0, NULL },
91    { 941, "incomplete-dir", "Where to store new torrents until they're complete", NULL, 1, "<directory>" },
92    { 942, "no-incomplete-dir", "Don't store incomplete torrents in a different location", NULL, 0, NULL },
93    { 'd', "dump-settings", "Dump the settings and exit", "d", 0, NULL },
94    { 'e', "logfile", "Dump the log messages to this filename", "e", 1, "<filename>" },
95    { 'f', "foreground", "Run in the foreground instead of daemonizing", "f", 0, NULL },
96    { 'g', "config-dir", "Where to look for configuration files", "g", 1, "<path>" },
97    { 'p', "port", "RPC port (Default: " TR_DEFAULT_RPC_PORT_STR ")", "p", 1, "<port>" },
98    { 't', "auth", "Require authentication", "t", 0, NULL },
99    { 'T', "no-auth", "Don't require authentication", "T", 0, NULL },
100    { 'u', "username", "Set username for authentication", "u", 1, "<username>" },
101    { 'v', "password", "Set password for authentication", "v", 1, "<password>" },
102    { 'V', "version", "Show version number and exit", "V", 0, NULL },
103    { 810, "log-error", "Show error messages", NULL, 0, NULL },
104    { 811, "log-info", "Show error and info messages", NULL, 0, NULL },
105    { 812, "log-debug", "Show error, info, and debug messages", NULL, 0, NULL },
106    { 'w', "download-dir", "Where to save downloaded data", "w", 1, "<path>" },
107    { 800, "paused", "Pause all torrents on startup", NULL, 0, NULL },
108    { 'o', "dht", "Enable distributed hash tables (DHT)", "o", 0, NULL },
109    { 'O', "no-dht", "Disable distributed hash tables (DHT)", "O", 0, NULL },
110    { 'y', "lpd", "Enable local peer discovery (LPD)", "y", 0, NULL },
111    { 'Y', "no-lpd", "Disable local peer discovery (LPD)", "Y", 0, NULL },
112    { 830, "utp", "Enable uTP for peer connections", NULL, 0, NULL },
113    { 831, "no-utp", "Disable uTP for peer connections", NULL, 0, NULL },
114    { 'P', "peerport", "Port for incoming peers (Default: " TR_DEFAULT_PEER_PORT_STR ")", "P", 1, "<port>" },
115    { 'm', "portmap", "Enable portmapping via NAT-PMP or UPnP", "m", 0, NULL },
116    { 'M', "no-portmap", "Disable portmapping", "M", 0, NULL },
117    { 'L', "peerlimit-global", "Maximum overall number of peers (Default: " TR_DEFAULT_PEER_LIMIT_GLOBAL_STR ")", "L", 1, "<limit>" },
118    { 'l', "peerlimit-torrent", "Maximum number of peers per torrent (Default: " TR_DEFAULT_PEER_LIMIT_TORRENT_STR ")", "l", 1, "<limit>" },
119    { 910, "encryption-required",  "Encrypt all peer connections", "er", 0, NULL },
120    { 911, "encryption-preferred", "Prefer encrypted peer connections", "ep", 0, NULL },
121    { 912, "encryption-tolerated", "Prefer unencrypted peer connections", "et", 0, NULL },
122    { 'i', "bind-address-ipv4", "Where to listen for peer connections", "i", 1, "<ipv4 addr>" },
123    { 'I', "bind-address-ipv6", "Where to listen for peer connections", "I", 1, "<ipv6 addr>" },
124    { 'r', "rpc-bind-address", "Where to listen for RPC connections", "r", 1, "<ipv4 addr>" },
125    { 953, "global-seedratio", "All torrents, unless overridden by a per-torrent setting, should seed until a specific ratio", "gsr", 1, "ratio" },
126    { 954, "no-global-seedratio", "All torrents, unless overridden by a per-torrent setting, should seed regardless of ratio", "GSR", 0, NULL },
127    { 'x', "pid-file", "Enable PID file", "x", 1, "<pid-file>" },
128    { 0, NULL, NULL, NULL, 0, NULL }
129};
130
131static void
132showUsage( void )
133{
134    tr_getopt_usage( MY_NAME, getUsage( ), options );
135    exit( 0 );
136}
137
138static void
139gotsig( int sig )
140{
141    switch( sig )
142    {
143        case SIGHUP:
144        {
145            tr_benc settings;
146            const char * configDir = tr_sessionGetConfigDir( mySession );
147            tr_inf( "Reloading settings from \"%s\"", configDir );
148            tr_bencInitDict( &settings, 0 );
149            tr_bencDictAddBool( &settings, TR_PREFS_KEY_RPC_ENABLED, true );
150            tr_sessionLoadSettings( &settings, configDir, MY_NAME );
151            tr_sessionSet( mySession, &settings );
152            tr_bencFree( &settings );
153            tr_sessionReloadBlocklists( mySession );
154            break;
155        }
156
157        default:
158            closing = true;
159            break;
160    }
161}
162
163#if defined(WIN32)
164 #define USE_NO_DAEMON
165#elif !defined(HAVE_DAEMON) || defined(__UCLIBC__)
166 #define USE_TR_DAEMON
167#else
168 #define USE_OS_DAEMON
169#endif
170
171static int
172tr_daemon( int nochdir, int noclose )
173{
174#if defined(USE_OS_DAEMON)
175
176    return daemon( nochdir, noclose );
177
178#elif defined(USE_TR_DAEMON)
179
180    /* this is loosely based off of glibc's daemon() implementation
181     * http://sourceware.org/git/?p=glibc.git;a=blob_plain;f=misc/daemon.c */
182
183    switch( fork( ) ) {
184        case -1: return -1;
185        case 0: break;
186        default: _exit(0);
187    }
188
189    if( setsid( ) == -1 )
190        return -1;
191
192    if( !nochdir )
193        chdir( "/" );
194
195    if( !noclose ) {
196        int fd = open( "/dev/null", O_RDWR, 0 );
197        dup2( fd, STDIN_FILENO );
198        dup2( fd, STDOUT_FILENO );
199        dup2( fd, STDERR_FILENO );
200        close( fd );
201    }
202
203    return 0;
204
205#else /* USE_NO_DAEMON */
206    return 0;
207#endif
208}
209
210static const char*
211getConfigDir( int argc, const char ** argv )
212{
213    int c;
214    const char * configDir = NULL;
215    const char * optarg;
216    const int ind = tr_optind;
217
218    while(( c = tr_getopt( getUsage( ), argc, argv, options, &optarg ))) {
219        if( c == 'g' ) {
220            configDir = optarg;
221            break;
222        }
223    }
224
225    tr_optind = ind;
226
227    if( configDir == NULL )
228        configDir = tr_getDefaultConfigDir( MY_NAME );
229
230    return configDir;
231}
232
233static void
234onFileAdded( tr_session * session, const char * dir, const char * file )
235{
236    char * filename = tr_buildPath( dir, file, NULL );
237    tr_ctor * ctor = tr_ctorNew( session );
238    int err = tr_ctorSetMetainfoFromFile( ctor, filename );
239
240    if( !err )
241    {
242        tr_torrentNew( ctor, &err );
243
244        if( err == TR_PARSE_ERR )
245            tr_err( "Error parsing .torrent file \"%s\"", file );
246        else
247        {
248            bool trash = false;
249            int test = tr_ctorGetDeleteSource( ctor, &trash );
250
251            tr_inf( "Parsing .torrent file successful \"%s\"", file );
252
253            if( !test && trash )
254            {
255                tr_inf( "Deleting input .torrent file \"%s\"", file );
256                if( remove( filename ) )
257                    tr_err( "Error deleting .torrent file: %s", tr_strerror( errno ) );
258            }
259            else
260            {
261                char * new_filename = tr_strdup_printf( "%s.added", filename );
262                rename( filename, new_filename );
263                tr_free( new_filename );
264            }
265        }
266    }
267
268    tr_ctorFree( ctor );
269    tr_free( filename );
270}
271
272static void
273printMessage( FILE * logfile, int level, const char * name, const char * message, const char * file, int line )
274{
275    if( logfile != NULL )
276    {
277        char timestr[64];
278        tr_getLogTimeStr( timestr, sizeof( timestr ) );
279        if( name )
280            fprintf( logfile, "[%s] %s %s (%s:%d)\n", timestr, name, message, file, line );
281        else
282            fprintf( logfile, "[%s] %s (%s:%d)\n", timestr, message, file, line );
283    }
284#ifdef HAVE_SYSLOG
285    else /* daemon... write to syslog */
286    {
287        int priority;
288
289        /* figure out the syslog priority */
290        switch( level ) {
291            case TR_MSG_ERR: priority = LOG_ERR; break;
292            case TR_MSG_DBG: priority = LOG_DEBUG; break;
293            default: priority = LOG_INFO; break;
294        }
295
296        if( name )
297            syslog( priority, "%s %s (%s:%d)", name, message, file, line );
298        else
299            syslog( priority, "%s (%s:%d)", message, file, line );
300    }
301#endif
302}
303
304static void
305pumpLogMessages( FILE * logfile )
306{
307    const tr_msg_list * l;
308    tr_msg_list * list = tr_getQueuedMessages( );
309
310    for( l=list; l!=NULL; l=l->next )
311        printMessage( logfile, l->level, l->name, l->message, l->file, l->line );
312
313    if( logfile != NULL )
314        fflush( logfile );
315
316    tr_freeMessageList( list );
317}
318
319static tr_rpc_callback_status
320on_rpc_callback( tr_session            * session UNUSED,
321                 tr_rpc_callback_type    type,
322                 struct tr_torrent     * tor UNUSED,
323                 void                  * user_data UNUSED )
324{
325    if( type == TR_RPC_SESSION_CLOSE )
326        closing = true;
327    return TR_RPC_OK;
328}
329
330int
331main( int argc, char ** argv )
332{
333    int c;
334    const char * optarg;
335    tr_benc settings;
336    bool boolVal;
337    bool loaded;
338    bool foreground = false;
339    bool dumpSettings = false;
340    const char * configDir = NULL;
341    const char * pid_filename;
342    dtr_watchdir * watchdir = NULL;
343    FILE * logfile = NULL;
344    bool pidfile_created = false;
345
346    signal( SIGINT, gotsig );
347    signal( SIGTERM, gotsig );
348#ifndef WIN32
349    signal( SIGHUP, gotsig );
350#endif
351
352    /* load settings from defaults + config file */
353    tr_bencInitDict( &settings, 0 );
354    tr_bencDictAddBool( &settings, TR_PREFS_KEY_RPC_ENABLED, true );
355    configDir = getConfigDir( argc, (const char**)argv );
356    loaded = tr_sessionLoadSettings( &settings, configDir, MY_NAME );
357
358    /* overwrite settings from the comamndline */
359    tr_optind = 1;
360    while(( c = tr_getopt( getUsage(), argc, (const char**)argv, options, &optarg ))) {
361        switch( c ) {
362            case 'a': tr_bencDictAddStr( &settings, TR_PREFS_KEY_RPC_WHITELIST, optarg );
363                      tr_bencDictAddBool( &settings, TR_PREFS_KEY_RPC_WHITELIST_ENABLED, true );
364                      break;
365            case 'b': tr_bencDictAddBool( &settings, TR_PREFS_KEY_BLOCKLIST_ENABLED, true );
366                      break;
367            case 'B': tr_bencDictAddBool( &settings, TR_PREFS_KEY_BLOCKLIST_ENABLED, false );
368                      break;
369            case 'c': tr_bencDictAddStr( &settings, PREF_KEY_DIR_WATCH, optarg );
370                      tr_bencDictAddBool( &settings, PREF_KEY_DIR_WATCH_ENABLED, true );
371                      break;
372            case 'C': tr_bencDictAddBool( &settings, PREF_KEY_DIR_WATCH_ENABLED, false );
373                      break;
374            case 941: tr_bencDictAddStr( &settings, TR_PREFS_KEY_INCOMPLETE_DIR, optarg );
375                      tr_bencDictAddBool( &settings, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED, true );
376                      break;
377            case 942: tr_bencDictAddBool( &settings, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED, false );
378                      break;
379            case 'd': dumpSettings = true;
380                      break;
381            case 'e': logfile = fopen( optarg, "a+" );
382                      if( logfile == NULL )
383                          fprintf( stderr, "Couldn't open \"%s\": %s\n", optarg, tr_strerror( errno ) );
384                      break;
385            case 'f': foreground = true;
386                      break;
387            case 'g': /* handled above */
388                      break;
389            case 'V': /* version */
390                      fprintf(stderr, "%s %s\n", MY_NAME, LONG_VERSION_STRING);
391                      exit( 0 );
392            case 'o': tr_bencDictAddBool( &settings, TR_PREFS_KEY_DHT_ENABLED, true );
393                      break;
394            case 'O': tr_bencDictAddBool( &settings, TR_PREFS_KEY_DHT_ENABLED, false );
395                      break;
396            case 'p': tr_bencDictAddInt( &settings, TR_PREFS_KEY_RPC_PORT, atoi( optarg ) );
397                      break;
398            case 't': tr_bencDictAddBool( &settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, true );
399                      break;
400            case 'T': tr_bencDictAddBool( &settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, false );
401                      break;
402            case 'u': tr_bencDictAddStr( &settings, TR_PREFS_KEY_RPC_USERNAME, optarg );
403                      break;
404            case 'v': tr_bencDictAddStr( &settings, TR_PREFS_KEY_RPC_PASSWORD, optarg );
405                      break;
406            case 'w': tr_bencDictAddStr( &settings, TR_PREFS_KEY_DOWNLOAD_DIR, optarg );
407                      break;
408            case 'P': tr_bencDictAddInt( &settings, TR_PREFS_KEY_PEER_PORT, atoi( optarg ) );
409                      break;
410            case 'm': tr_bencDictAddBool( &settings, TR_PREFS_KEY_PORT_FORWARDING, true );
411                      break;
412            case 'M': tr_bencDictAddBool( &settings, TR_PREFS_KEY_PORT_FORWARDING, false );
413                      break;
414            case 'L': tr_bencDictAddInt( &settings, TR_PREFS_KEY_PEER_LIMIT_GLOBAL, atoi( optarg ) );
415                      break;
416            case 'l': tr_bencDictAddInt( &settings, TR_PREFS_KEY_PEER_LIMIT_TORRENT, atoi( optarg ) );
417                      break;
418            case 800: paused = true;
419                      break;
420            case 910: tr_bencDictAddInt( &settings, TR_PREFS_KEY_ENCRYPTION, TR_ENCRYPTION_REQUIRED );
421                      break;
422            case 911: tr_bencDictAddInt( &settings, TR_PREFS_KEY_ENCRYPTION, TR_ENCRYPTION_PREFERRED );
423                      break;
424            case 912: tr_bencDictAddInt( &settings, TR_PREFS_KEY_ENCRYPTION, TR_CLEAR_PREFERRED );
425                      break;
426            case 'i': tr_bencDictAddStr( &settings, TR_PREFS_KEY_BIND_ADDRESS_IPV4, optarg );
427                      break;
428            case 'I': tr_bencDictAddStr( &settings, TR_PREFS_KEY_BIND_ADDRESS_IPV6, optarg );
429                      break;
430            case 'r': tr_bencDictAddStr( &settings, TR_PREFS_KEY_RPC_BIND_ADDRESS, optarg );
431                      break;
432            case 953: tr_bencDictAddReal( &settings, TR_PREFS_KEY_RATIO, atof(optarg) );
433                      tr_bencDictAddBool( &settings, TR_PREFS_KEY_RATIO_ENABLED, true );
434                      break;
435            case 954: tr_bencDictAddBool( &settings, TR_PREFS_KEY_RATIO_ENABLED, false );
436                      break;
437            case 'x': tr_bencDictAddStr( &settings, PREF_KEY_PIDFILE, optarg );
438                      break;
439            case 'y': tr_bencDictAddBool( &settings, TR_PREFS_KEY_LPD_ENABLED, true );
440                      break;
441            case 'Y': tr_bencDictAddBool( &settings, TR_PREFS_KEY_LPD_ENABLED, false );
442                      break;
443            case 810: tr_bencDictAddInt( &settings,  TR_PREFS_KEY_MSGLEVEL, TR_MSG_ERR );
444                      break;
445            case 811: tr_bencDictAddInt( &settings,  TR_PREFS_KEY_MSGLEVEL, TR_MSG_INF );
446                      break;
447            case 812: tr_bencDictAddInt( &settings,  TR_PREFS_KEY_MSGLEVEL, TR_MSG_DBG );
448                      break;
449            case 830: tr_bencDictAddBool( &settings, TR_PREFS_KEY_UTP_ENABLED, true );
450                      break;
451            case 831: tr_bencDictAddBool( &settings, TR_PREFS_KEY_UTP_ENABLED, false );
452                      break;
453            default:  showUsage( );
454                      break;
455        }
456    }
457
458    if( foreground && !logfile )
459        logfile = stderr;
460
461    if( !loaded )
462    {
463        printMessage( logfile, TR_MSG_ERR, MY_NAME, "Error loading config file -- exiting.", __FILE__, __LINE__ );
464        return -1;
465    }
466
467    if( dumpSettings )
468    {
469        char * str = tr_bencToStr( &settings, TR_FMT_JSON, NULL );
470        fprintf( stderr, "%s", str );
471        tr_free( str );
472        return 0;
473    }
474
475    if( !foreground && tr_daemon( true, false ) < 0 )
476    {
477        char buf[256];
478        tr_snprintf( buf, sizeof( buf ), "Failed to daemonize: %s", tr_strerror( errno ) );
479        printMessage( logfile, TR_MSG_ERR, MY_NAME, buf, __FILE__, __LINE__ );
480        exit( 1 );
481    }
482
483    /* start the session */
484    tr_formatter_mem_init( MEM_K, MEM_K_STR, MEM_M_STR, MEM_G_STR, MEM_T_STR );
485    tr_formatter_size_init( DISK_K, DISK_K_STR, DISK_M_STR, DISK_G_STR, DISK_T_STR );
486    tr_formatter_speed_init( SPEED_K, SPEED_K_STR, SPEED_M_STR, SPEED_G_STR, SPEED_T_STR );
487    mySession = tr_sessionInit( "daemon", configDir, true, &settings );
488    tr_sessionSetRPCCallback( mySession, on_rpc_callback, NULL );
489    tr_ninf( NULL, "Using settings from \"%s\"", configDir );
490    tr_sessionSaveSettings( mySession, configDir, &settings );
491
492    pid_filename = NULL;
493    tr_bencDictFindStr( &settings, PREF_KEY_PIDFILE, &pid_filename );
494    if( pid_filename && *pid_filename )
495    {
496        FILE * fp = fopen( pid_filename, "w+" );
497        if( fp != NULL )
498        {
499            fprintf( fp, "%d", (int)getpid() );
500            fclose( fp );
501            tr_inf( "Saved pidfile \"%s\"", pid_filename );
502            pidfile_created = true;
503        }
504        else
505            tr_err( "Unable to save pidfile \"%s\": %s", pid_filename, strerror( errno ) );
506    }
507
508    if( tr_bencDictFindBool( &settings, TR_PREFS_KEY_RPC_AUTH_REQUIRED, &boolVal ) && boolVal )
509        tr_ninf( MY_NAME, "requiring authentication" );
510
511    /* maybe add a watchdir */
512    {
513        const char * dir;
514
515        if( tr_bencDictFindBool( &settings, PREF_KEY_DIR_WATCH_ENABLED, &boolVal )
516            && boolVal
517            && tr_bencDictFindStr( &settings, PREF_KEY_DIR_WATCH, &dir )
518            && dir
519            && *dir )
520        {
521            tr_inf( "Watching \"%s\" for new .torrent files", dir );
522            watchdir = dtr_watchdir_new( mySession, dir, onFileAdded );
523        }
524    }
525
526    /* load the torrents */
527    {
528        tr_torrent ** torrents;
529        tr_ctor * ctor = tr_ctorNew( mySession );
530        if( paused )
531            tr_ctorSetPaused( ctor, TR_FORCE, true );
532        torrents = tr_sessionLoadTorrents( mySession, ctor, NULL );
533        tr_free( torrents );
534        tr_ctorFree( ctor );
535    }
536
537#ifdef HAVE_SYSLOG
538    if( !foreground )
539        openlog( MY_NAME, LOG_CONS|LOG_PID, LOG_DAEMON );
540#endif
541
542    while( !closing ) {
543        tr_wait_msec( 1000 ); /* sleep one second */
544        dtr_watchdir_update( watchdir );
545        pumpLogMessages( logfile );
546    }
547
548    printf( "Closing transmission session..." );
549    tr_sessionSaveSettings( mySession, configDir, &settings );
550    dtr_watchdir_free( watchdir );
551    tr_sessionClose( mySession );
552    pumpLogMessages( logfile );
553    printf( " done.\n" );
554
555    /* shutdown */
556#if HAVE_SYSLOG
557    if( !foreground )
558    {
559        syslog( LOG_INFO, "%s", "Closing session" );
560        closelog( );
561    }
562#endif
563
564    /* cleanup */
565    if( pidfile_created )
566        remove( pid_filename );
567    tr_bencFree( &settings );
568    return 0;
569}
Note: See TracBrowser for help on using the repository browser.