diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2009-06-19 21:29:15 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2009-06-19 21:29:15 +0000 |
commit | a0a84034c4592779293821f4807accc67e07779f (patch) | |
tree | 53f4554162ac4dd031aa1f4933764e28c6698920 /net-p2p/transmission-cli | |
parent | 7a10f7062aa73ea075fb2f1521fd281c6ba08eed (diff) | |
download | ports-a0a84034c4592779293821f4807accc67e07779f.tar.gz ports-a0a84034c4592779293821f4807accc67e07779f.zip |
Notes
Diffstat (limited to 'net-p2p/transmission-cli')
-rw-r--r-- | net-p2p/transmission-cli/Makefile | 2 | ||||
-rw-r--r-- | net-p2p/transmission-cli/files/patch-libtransmission_platform.c | 33 | ||||
-rw-r--r-- | net-p2p/transmission-cli/files/transmission.in | 4 |
3 files changed, 4 insertions, 35 deletions
diff --git a/net-p2p/transmission-cli/Makefile b/net-p2p/transmission-cli/Makefile index f7564dd4fd33..567bf9a9144a 100644 --- a/net-p2p/transmission-cli/Makefile +++ b/net-p2p/transmission-cli/Makefile @@ -7,7 +7,7 @@ PORTNAME= transmission PORTVERSION= 1.72 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= net-p2p MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/ PKGNAMESUFFIX?= -cli diff --git a/net-p2p/transmission-cli/files/patch-libtransmission_platform.c b/net-p2p/transmission-cli/files/patch-libtransmission_platform.c deleted file mode 100644 index 1129f3add107..000000000000 --- a/net-p2p/transmission-cli/files/patch-libtransmission_platform.c +++ /dev/null @@ -1,33 +0,0 @@ ---- libtransmission/platform.c.orig 2009-06-19 10:53:49.000000000 -0500 -+++ libtransmission/platform.c 2009-06-19 10:55:52.000000000 -0500 -@@ -232,22 +232,17 @@ - - if( !home ) - { -- home = tr_strdup( getenv( "HOME" ) ); -- -- if( !home ) -- { - #ifdef WIN32 -- char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */ -- *appdata = '\0'; -- SHGetFolderPath( NULL, CSIDL_PERSONAL, NULL, 0, appdata ); -- home = tr_strdup( appdata ); -+ char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */ -+ *appdata = '\0'; -+ SHGetFolderPath( NULL, CSIDL_PERSONAL, NULL, 0, appdata ); -+ home = tr_strdup( appdata ); - #else -- struct passwd * pw = getpwuid( getuid( ) ); -- if( pw ) -- home = tr_strdup( pw->pw_dir ); -- endpwent( ); -+ struct passwd * pw = getpwuid( getuid( ) ); -+ if( pw ) -+ home = tr_strdup( pw->pw_dir ); -+ endpwent( ); - #endif -- } - - if( !home ) - home = tr_strdup( "" ); diff --git a/net-p2p/transmission-cli/files/transmission.in b/net-p2p/transmission-cli/files/transmission.in index ce6aaaca6a49..3f64e5e3f729 100644 --- a/net-p2p/transmission-cli/files/transmission.in +++ b/net-p2p/transmission-cli/files/transmission.in @@ -13,7 +13,7 @@ # a path. # transmission_conf_dir: Directory where transmission configuration # data is stored. -# Default: %%PREFIX%%/etc/transmission/home/.config +# Default: %%PREFIX%%/etc/transmission/home # transmission_download_dir: Directory to store downloaded data. # Default: %%PREFIX%%/etc/transmission/home/Downloads # transmission_user: The user account transmission daemon runs as what @@ -33,6 +33,8 @@ load_rc_config ${name} : ${transmission_enable:="NO"} : ${transmission_user:="transmission"} +: ${transmission_conf_dir:="%%PREFIX%%/etc/transmission/home"} +: ${transmission_download_dir:="%%PREFIX%%/etc/transmission/home/Downloads"} transmission_flags=" \ ${transmission_watch_dir:+-c ${transmission_watch_dir}} \ |