aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2010-02-23 03:02:37 +0800
committerflz <flz@FreeBSD.org>2010-02-23 03:02:37 +0800
commitbd365248ef9d936083eb1f9343be1dfc93eacda4 (patch)
treedbd7a163b0c98d06c07df450ea50a982b716353c /net-p2p
parentf02d886b02f48fb641c47124213b3a7120482b6a (diff)
downloadfreebsd-ports-gnome-bd365248ef9d936083eb1f9343be1dfc93eacda4.tar.gz
freebsd-ports-gnome-bd365248ef9d936083eb1f9343be1dfc93eacda4.tar.zst
freebsd-ports-gnome-bd365248ef9d936083eb1f9343be1dfc93eacda4.zip
Daemonize ctorrent a bit later so you can use CTCS authentication.
Submitted by: Andrey Zakharchenko Feature safe: yes
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/ctorrent/Makefile2
-rw-r--r--net-p2p/ctorrent/files/patch-ctorrent.cpp17
2 files changed, 18 insertions, 1 deletions
diff --git a/net-p2p/ctorrent/Makefile b/net-p2p/ctorrent/Makefile
index fc36f106a4fc..82c22f23026b 100644
--- a/net-p2p/ctorrent/Makefile
+++ b/net-p2p/ctorrent/Makefile
@@ -7,7 +7,7 @@
PORTNAME= ctorrent
PORTVERSION= 3.3.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-p2p
MASTER_SITES= http://www.rahul.net/dholmes/ctorrent/
DISTNAME= ${PORTNAME}-dnh${PORTVERSION}
diff --git a/net-p2p/ctorrent/files/patch-ctorrent.cpp b/net-p2p/ctorrent/files/patch-ctorrent.cpp
new file mode 100644
index 000000000000..9ff1f1350f8e
--- /dev/null
+++ b/net-p2p/ctorrent/files/patch-ctorrent.cpp
@@ -0,0 +1,17 @@
+--- ctorrent.cpp.orig 2009-11-13 10:20:39.377057366 +0300
++++ ctorrent.cpp 2009-11-13 10:21:01.916290662 +0300
+@@ -98,11 +98,11 @@
+ exit(0);
+ }
+
+- if( arg_daemon ) CONSOLE.Daemonize();
+-
+ if( !arg_flg_exam_only && (!arg_flg_check_only || arg_flg_force_seed_mode) )
+ if( arg_ctcs ) CTCS.Initial();
+
++ if( arg_daemon ) CONSOLE.Daemonize();
++
+ if( BTCONTENT.InitialFromMI(arg_metainfo_file, arg_save_as) < 0){
+ CONSOLE.Warning(1, "error, initial meta info failed.");
+ exit(1);
+