From a0a84034c4592779293821f4807accc67e07779f Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Fri, 19 Jun 2009 21:29:15 +0000 Subject: Remove patch-libtransmission_platform.c, use -g/-w options in the rc script instead. Bump the PORTREVISION on cli, daemon and gtk. Discussed with: Charles Kerr (developer) --- net-p2p/transmission-cli/Makefile | 2 +- .../files/patch-libtransmission_platform.c | 33 ---------------------- net-p2p/transmission-cli/files/transmission.in | 4 ++- 3 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 net-p2p/transmission-cli/files/patch-libtransmission_platform.c (limited to 'net-p2p/transmission-cli') 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}} \ -- cgit v1.2.3