Changeset 1617


Ignore:
Timestamp:
Mar 31, 2007, 8:00:40 PM (15 years ago)
Author:
joshe
Message:

Add a daemon frontend.

Location:
branches/daemon
Files:
20 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/daemon/AUTHORS

    r1495 r1617  
    1111 + Back-end
    1212 + GTK+ interface
     13 + Daemon interface
    1314
    1415Mitchell Livingston <livings124@gmail.com>
  • branches/daemon/cli/transmissioncli.1

    r920 r1617  
    1919.Sh NAME
    2020.Nm transmissioncli
    21 .Nd a lightweight bittorrent client
     21.Nd a bittorrent client
    2222.Sh SYNOPSIS
    2323.Nm transmissioncli
    2424.Bk -words
    25 .Op Fl h
    26 .Op Fl i Ar torrent-file
    27 .Op Fl s Ar torrent-file
     25.Fl h
     26.Nm
    2827.Op Fl v Ar level
     28.Fl i
     29.Ar torrent-file
     30.Nm
     31.Op Fl v Ar level
     32.Fl s
     33.Ar torrent-file
     34.Nm
     35.Op Fl v Ar level
     36.Op Fl p Ar port
     37.Op Fl d Ar download-rate
     38.Op Fl u Ar upload-rate
     39.Op Fl f Ar script
    2940.Op Fl n
    30 .Op Fl p Ar port
    31 .Op Fl u Ar upload-rate
    32 .Op Fl u Ar download-rate
    33 .Op Fl f Ar script
     41.Ar torrent-file
    3442.Ek
    3543.Sh DESCRIPTION
     
    3745.Nm
    3846program is a lightweight, command-line BitTorrent client with
    39 scripting capabilities.  The options are as follows:
     47scripting capabilities.
    4048.Pp
     49The options are as follows:
    4150.Bl -tag -width Ds
    4251.It Fl h, Fl -help
    4352Prints a short usage summary.
    44 .It Fl i, Fl -info Ar torrent-file
     53.It Fl i, Fl -info
    4554Shows information from the specified torrent file, such as the
    4655cryptographic hash, the tracker, announcement, file size and file
    4756name.
    48 .It Fl s, -scrape Ar torrent-file
     57.It Fl s, -scrape
    4958Prints the number of seeders and leechers for the specified torrent
    5059file, and exits.
     
    59689090.
    6069.It Fl u, -upload Ar upload-rate
    61 Specifies the maximum upload rate in kB/s, which defaults to 20. The
     70Specifies the maximum upload rate in kB/s, which defaults to 20.  The
    6271level -1 may be used for unlimited uploads.
    6372.It Fl d, -download Ar download-rate
     
    7887program was written by
    7988.An -nosplit
    80 .An Eric Petit Aq titer@m0k.org
    81 .An Josh Elsasser Aq josh@elsasser.org
    82 .An Bryan Varner Aq bryan@varnernet.com
     89.An Eric Petit Aq titer@m0k.org ,
     90.An Josh Elsasser Aq josh@elsasser.org ,
    8391and
    84 .An Michael Demars Aq keul@m0k.org .
     92.An Mitchell Livingston Aq livings124@gmail.com .
    8593.Sh SEE ALSO
     94.Xr transmission-daemon 1 ,
     95.Xr transmission-gtk 1 ,
     96.Xr transmission-remote 1
     97.Pp
    8698http://transmission.m0k.org
    8799.Sh CAVEATS
    88100.Nm
    89101currently saves its downloads into the directory from which it was
    90 called.  If this directory is not writeable by the user, the program
     102called.  If this directory is not writable by the user, the program
    91103will terminate unexpectedly.
  • branches/daemon/configure

    r1603 r1617  
    1313OPENSSL=
    1414GTK=
     15LIBEVENT=
    1516PREFIX=/usr/local
    1617CC="${CC-cc}"
     
    3132  --disable-openssl      Disable OpenSSL, use built-in SHA1 implementation
    3233  --disable-gtk          Don't build the GTK+ GUI
     34  --disable-daemon       Don't build the daemon
    3335  --prefix=PATH          Installation path
    3436  --verbose              Display additional information for debugging
     
    213215}
    214216
     217libevent_test()
     218{
     219  verbose libevent_test
     220  cat > testconf.c <<EOF
     221#include <sys/time.h>
     222#include <event.h>
     223int main()
     224{
     225    event_init();
     226    return 0;
     227}
     228EOF
     229
     230  if runcmd $CC $CFLAGS -levent $LDFLAGS -o testconf testconf.c
     231  then
     232    LIBEVENT=yes
     233    LDFLAGS_EVENT="-levent"
     234    rm -f testconf*
     235    return 0
     236  fi
     237
     238  for event_testdir in $PREFIX /usr/local /usr/X11R6 /usr/pkg
     239  do
     240    if runcmd $CC $CFLAGS -I$event_testdir/include $LDFLAGS -levent \
     241        -L$event_testdir/lib -o testconf testconf.c
     242    then
     243      LIBEVENT=yes
     244      CFLAGS_EVENT="-I$event_testdir/include"
     245      LDFLAGS_EVENT="-levent -L$event_testdir/lib"
     246      rm -f testconf*
     247      return 0
     248    fi
     249  done
     250  LIBEVENT=no
     251  rm -f testconf*
     252  return 1
     253}
     254
    215255#
    216256# Parse options
     
    222262    x--disable-openssl|x--without-openssl)
    223263      OPENSSL=no
     264      ;;
     265    x--disable-daemon|x--without-daemon)
     266      LIBEVENT=no
    224267      ;;
    225268    x--disable-gtk|x--without-gtk)
     
    332375
    333376#
     377# libevent settings
     378#
     379echo -n "Daemon:  "
     380if [ "$LIBEVENT" = no ]; then
     381  echo "disabled"
     382else
     383  if libevent_test; then
     384      echo "yes"
     385  else
     386      echo "no (can't find libevent)"
     387  fi
     388fi
     389
     390#
    334391# Math functions
    335392#
     
    349406OPENSSL        = $OPENSSL
    350407GTK            = $GTK
     408DAEMON         = $LIBEVENT
    351409CC             = $CC
    352410CFLAGS         = $CFLAGS
     
    356414CFLAGS_GTK     = $CFLAGS_GTK
    357415LDFLAGS_GTK    = $LDFLAGS_GTK
     416CFLAGS_EVENT   = $CFLAGS_EVENT
     417LDFLAGS_EVENT  = $LDFLAGS_EVENT
    358418EOF
    359419
  • branches/daemon/mk/default.mk

    r1505 r1617  
    77ifeq ($(GTK),yes)
    88TARGETS += .gtk
     9endif
     10ifeq ($(DAEMON),yes)
     11TARGETS += .daemon
    912endif
    1013ifeq ($(SYSTEM),BeOS)
     
    2629        @$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk
    2730
     31.daemon: .lib
     32        @echo "* Building Transmission daemon client"
     33        @$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk
     34
    2835.beos: .lib
    2936        @echo "* Building Transmission BeOS client"
     
    4047        @$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk install
    4148
     49.install.daemon: .daemon
     50        @echo "* Installing Transmission daemon client"
     51        @$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk install
     52
    4253.install.beos:
    4354
     
    5364        @$(MAKE) $(MAKEARGS) -C gtk -f ../mk/gtk.mk clean
    5465endif
     66ifeq ($(DAEMON),yes)
     67        @$(MAKE) $(MAKEARGS) -C daemon -f ../mk/daemon.mk clean
     68endif
    5569ifeq ($(SYSTEM),BeOS)
    5670        @$(MAKE) $(MAKEARGS) -C beos -f ../mk/beos.mk clean
  • branches/daemon/mk/gtk.mk

    r1504 r1617  
    3535        $(DEP_RULE)
    3636
    37 install: transmission-gtk .po desktop.install icon.install
     37install: transmission-gtk man.install desktop.install icon.install .po
    3838        $(INSTALL_BIN_RULE)
    3939        @$(MAKE) $(MAKEARGS) -C po -f ../../mk/po.mk install
     
    4545        $(INSTALL_ICON_RULE)
    4646
     47man.install: transmission-gtk.1
     48        $(INSTALL_MAN_RULE)
     49
    4750morepot: $(SRCS)
    4851        xgettext --output=po/transmission-gtk.pot --from-code=UTF-8 --add-comments --keyword=_ --keyword=N_ $^
Note: See TracChangeset for help on using the changeset viewer.