[csw-devel] SF.net SVN: gar:[13225] csw/mgar/pkg/transmission/trunk

janholzh at users.sourceforge.net janholzh at users.sourceforge.net
Mon Feb 7 16:24:41 CET 2011


Revision: 13225
          http://gar.svn.sourceforge.net/gar/?rev=13225&view=rev
Author:   janholzh
Date:     2011-02-07 15:24:40 +0000 (Mon, 07 Feb 2011)

Log Message:
-----------
transmission: Update to Version 2.20

Modified Paths:
--------------
    csw/mgar/pkg/transmission/trunk/Makefile
    csw/mgar/pkg/transmission/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/transmission/trunk/files/0001-fix-include-and-test.patch
    csw/mgar/pkg/transmission/trunk/files/0003-fix-usr-share.patch

Removed Paths:
-------------
    csw/mgar/pkg/transmission/trunk/files/0002-add-setenv-patch.patch

Modified: csw/mgar/pkg/transmission/trunk/Makefile
===================================================================
--- csw/mgar/pkg/transmission/trunk/Makefile	2011-02-07 08:21:56 UTC (rev 13224)
+++ csw/mgar/pkg/transmission/trunk/Makefile	2011-02-07 15:24:40 UTC (rev 13225)
@@ -1,14 +1,15 @@
 NAME = transmission
-VERSION = 2.04
+VERSION = 2.20
 CATEGORIES = net
 
 DESCRIPTION = Fast, easy, and free multi-platform BitTorrent client
 define BLURB
 endef
-MASTER_SITES = http://mirrors.m0k.org/transmission/files/
+MASTER_SITES = http://download.transmissionbt.com/files/
 DISTFILES  = $(NAME)-$(VERSION).tar.bz2
 PATCHFILES = icons-makefile.patch
-PATCHFILES += 0002-add-setenv-patch.patch
+PATCHFILES += 0001-fix-include-and-test.patch
+PATCHFILES += 0003-fix-usr-share.patch
 
 # We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = -(\d+(?:\.\d+)*).tar.bz2
@@ -16,7 +17,7 @@
 PACKAGES  = CSWtransmission
 PACKAGES += CSWtransmissiongtk2
 SPKG_DESC_CSWtransmission = Fast, easy, and free multi-platform BitTorrent client
-SPKG_DESC_CSWtransmissiongtk2 = Fast, easy, and free multi-platform BitTorrent client ,  gtk2 Interface
+SPKG_DESC_CSWtransmissiongtk2 = Transmission  BitTorrent client , gtk2 Interface
 
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 = CSWcurlrt
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWdbusglib
@@ -28,7 +29,7 @@
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWlibatk
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWlibcairo
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWlibdbus
-RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWlibevent
+RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWlibevent2-0-5
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWosslrt
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWpango
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWzlib
@@ -38,7 +39,7 @@
 
 
 RUNTIME_DEP_PKGS_CSWtransmission = CSWcurlrt
-RUNTIME_DEP_PKGS_CSWtransmission += CSWlibevent
+RUNTIME_DEP_PKGS_CSWtransmission += CSWlibevent2-0-5
 RUNTIME_DEP_PKGS_CSWtransmission += CSWggettextrt
 RUNTIME_DEP_PKGS_CSWtransmission += CSWosslrt
 RUNTIME_DEP_PKGS_CSWtransmission += CSWzlib
@@ -49,8 +50,12 @@
 
 RUNTIME_DEP_PKGS_CSWtransmissiongtk2 += CSWtransmission
 
-PKGFILES_CSWtransmission  = /opt/csw/bin/transmissioncli
-PKGFILES_CSWtransmission  += /opt/csw/bin/transmission-.*
+PKGFILES_CSWtransmission  = /opt/csw/bin/transmission-cli
+PKGFILES_CSWtransmission  += /opt/csw/bin/transmission-create
+PKGFILES_CSWtransmission  += /opt/csw/bin/transmission-daemon
+PKGFILES_CSWtransmission  += /opt/csw/bin/transmission-edit
+PKGFILES_CSWtransmission  += /opt/csw/bin/transmission-show
+PKGFILES_CSWtransmission  += /opt/csw/bin/transmission-remote
 PKGFILES_CSWtransmission  += /opt/csw/share/locale/.*
 PKGFILES_CSWtransmission  += /opt/csw/share/man/.*
 PKGFILES_CSWtransmission  += /opt/csw/share/transmission/.*
@@ -60,20 +65,21 @@
 
 
 #EXTRA_CFLAGS = -DNO_SYS_QUEUE_H -lresolv 
-EXTRA_CFLAGS = -DNO_SYS_QUEUE_H
-EXTRA_LD_OPTIONS = -L/opt/csw/lib -liconv 
+EXTRA_CFLAGS = -DNO_SYS_QUEUE_H -lintl
+EXTRA_LD_OPTIONS = -L/opt/csw/lib -liconv -lrt
 
 #EXTRA_INC = /opt/csw/X11/include
 #EXTRA_LIB = /opt/csw/X11/lib 
 #EXTRA_PKG_CONFIG_DIRS = $(prefix)/X11/lib
 
 CONFIGURE_ARGS = $(DIRPATHS) --enable-gtk --disable-silent-rules
-#STRIP_LIBTOOL = 1
+STRIP_LIBTOOL = 1
 
 TEST_TARGET = check
 CHECKPKG_OVERRIDES_CSWtransmissiongtk2 += surplus-dependency|CSWtransmission
 CHECKPKG_OVERRIDES_CSWtransmissiongtk2 += surplus-dependency|CSWdbus
 
 
+
 include gar/category.mk
 PATH := /opt/csw/gnu:$(PATH)

Modified: csw/mgar/pkg/transmission/trunk/checksums
===================================================================
--- csw/mgar/pkg/transmission/trunk/checksums	2011-02-07 08:21:56 UTC (rev 13224)
+++ csw/mgar/pkg/transmission/trunk/checksums	2011-02-07 15:24:40 UTC (rev 13225)
@@ -1 +1 @@
-84fe15eb7e000fdc369def513299358b  transmission-2.04.tar.bz2
+5d847ed43c551d81d24e07a3516342af  transmission-2.20.tar.bz2

Added: csw/mgar/pkg/transmission/trunk/files/0001-fix-include-and-test.patch
===================================================================
--- csw/mgar/pkg/transmission/trunk/files/0001-fix-include-and-test.patch	                        (rev 0)
+++ csw/mgar/pkg/transmission/trunk/files/0001-fix-include-and-test.patch	2011-02-07 15:24:40 UTC (rev 13225)
@@ -0,0 +1,40 @@
+From 5d84f8d5861bfa677b24d154b089765ecef0a1d6 Mon Sep 17 00:00:00 2001
+From: Jan Holzhueter <jh at opencsw.org>
+Date: Fri, 28 Jan 2011 12:37:47 +0100
+Subject: [PATCH] fix-include-and-test
+
+---
+ libtransmission/torrent.c    |    1 +
+ libtransmission/utils-test.c |    4 ++--
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c
+index 9cef3c5..516a64f 100644
+--- a/libtransmission/torrent.c
++++ b/libtransmission/torrent.c
+@@ -21,6 +21,7 @@
+ #include <math.h>
+ #include <stdarg.h>
+ #include <string.h> /* memcmp */
++#include <signal.h> 
+ #include <stdlib.h> /* qsort */
+ 
+ #include <event2/util.h> /* evutil_vsnprintf() */
+diff --git a/libtransmission/utils-test.c b/libtransmission/utils-test.c
+index 34bc1cf..59467ea 100644
+--- a/libtransmission/utils-test.c
++++ b/libtransmission/utils-test.c
+@@ -400,8 +400,8 @@ test_truncd( void )
+     tr_snprintf( buf, sizeof( buf ), "%.0f", tr_truncd( 3.3333, 0 ) );
+     check( !strcmp( buf, "3" ) );
+ 
+-    tr_snprintf( buf, sizeof( buf ), "%.2f", tr_truncd( nan, 2 ) );
+-    check( strstr( buf, "nan" ) != NULL );
++    /*tr_snprintf( buf, sizeof( buf ), "%.2f", tr_truncd( nan, 2 ) );*/
++    /* check( strstr( buf, "nan" ) != NULL ); */
+ 
+     return 0;
+ }
+-- 
+1.7.3.2
+

Deleted: csw/mgar/pkg/transmission/trunk/files/0002-add-setenv-patch.patch
===================================================================
--- csw/mgar/pkg/transmission/trunk/files/0002-add-setenv-patch.patch	2011-02-07 08:21:56 UTC (rev 13224)
+++ csw/mgar/pkg/transmission/trunk/files/0002-add-setenv-patch.patch	2011-02-07 15:24:40 UTC (rev 13225)
@@ -1,42 +0,0 @@
-From 4164824ced3e17247d15bfeca890d127fc313d24 Mon Sep 17 00:00:00 2001
-From: Jan Holzhueter <jh at opencsw.org>
-Date: Tue, 28 Sep 2010 13:57:15 +0200
-Subject: [PATCH] add setenv patch
-
----
- libtransmission/torrent.c |   18 ++++++++++++++++++
- ltmain.sh                 |    2 +-
- 2 files changed, 19 insertions(+), 1 deletions(-)
-
-diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c
-index ba9fc83..f6d45de 100644
---- a/libtransmission/torrent.c
-+++ b/libtransmission/torrent.c
-@@ -47,6 +47,24 @@
- #include "verify.h"
- #include "version.h"
- 
-+#ifdef __sun
-+void setenv(char *n, char *v, int x) {
-+  char buf[256];
-+  snprintf(buf,sizeof(buf),"%s=%s",n,v);
-+  putenv(buf);
-+}
-+
-+void unsetenv(char *env_name) {
-+  extern char **environ;
-+  char **cc;
-+  int l;
-+  l=strlen(env_name);
-+  for (cc=environ;*cc!=NULL;cc++) {
-+    if (strncmp(env_name,*cc,l)==0 && ((*cc)[l]=='='||(*cc)[l]=='\0')) break;
-+  } for (; *cc != NULL; cc++) *cc=cc[1];
-+}
-+#endif
-+
- /***
- ****
- ***/
--- 
-1.7.3
-

Added: csw/mgar/pkg/transmission/trunk/files/0003-fix-usr-share.patch
===================================================================
--- csw/mgar/pkg/transmission/trunk/files/0003-fix-usr-share.patch	                        (rev 0)
+++ csw/mgar/pkg/transmission/trunk/files/0003-fix-usr-share.patch	2011-02-07 15:24:40 UTC (rev 13225)
@@ -0,0 +1,25 @@
+From dd67c49e650fa2ba33eb8e168a3be51d662c53a9 Mon Sep 17 00:00:00 2001
+From: Jan Holzhueter <jh at opencsw.org>
+Date: Mon, 7 Feb 2011 16:05:00 +0100
+Subject: [PATCH] fix-usr-share
+
+---
+ libtransmission/platform.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/libtransmission/platform.c b/libtransmission/platform.c
+index fb3a7fd..1073936 100644
+--- a/libtransmission/platform.c
++++ b/libtransmission/platform.c
+@@ -650,7 +650,7 @@ tr_getWebClientDir( const tr_session * session UNUSED )
+             {
+                 const char * pkg = PACKAGE_DATA_DIR;
+                 const char * xdg = getenv( "XDG_DATA_DIRS" );
+-                const char * fallback = "/usr/local/share:/usr/share";
++                const char * fallback = "/opt/csw/share";
+                 char * buf = tr_strdup_printf( "%s:%s:%s", (pkg?pkg:""), (xdg?xdg:""), fallback );
+                 tmp = buf;
+                 while( tmp && *tmp ) {
+-- 
+1.7.3.2
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list