From 100cfdbcb98435796e3efaf4d0b5c752c8e8a284 Mon Sep 17 00:00:00 2001 From: Dario Casalinuovo Date: Wed, 9 Jan 2013 00:24:06 +0000 Subject: [PATCH] Added bep file and patch for transmission-2.75 created by GCI2012 student Gleb Posobin. --- .../patches/transmission-2.75.patch | 69 +++++++++++++++++++ net-p2p/transmission/transmission-2.75.bep | 35 ++++++++++ 2 files changed, 104 insertions(+) create mode 100644 net-p2p/transmission/patches/transmission-2.75.patch create mode 100644 net-p2p/transmission/transmission-2.75.bep diff --git a/net-p2p/transmission/patches/transmission-2.75.patch b/net-p2p/transmission/patches/transmission-2.75.patch new file mode 100644 index 000000000..074c85751 --- /dev/null +++ b/net-p2p/transmission/patches/transmission-2.75.patch @@ -0,0 +1,69 @@ +diff -Naur ./transmission-2.75/third-party/miniupnp/connecthostport.c ./transmission-2.75-haiku/transmission-2.75/third-party/miniupnp/connecthostport.c +--- ./transmission-2.75/third-party/miniupnp/connecthostport.c 2012-10-24 13:01:10.429654016 +0000 ++++ ./transmission-2.75-haiku/transmission-2.75/third-party/miniupnp/connecthostport.c 2012-12-08 17:06:33.040632320 +0000 +@@ -24,6 +24,7 @@ + #else /* #ifdef _WIN32 */ + #include + #include ++#include + #include + #define closesocket close + #include +diff -Naur ./transmission-2.75/third-party/miniupnp/miniupnpc.c ./transmission-2.75-haiku/transmission-2.75/third-party/miniupnp/miniupnpc.c +--- ./transmission-2.75/third-party/miniupnp/miniupnpc.c 2012-10-24 13:01:10.457703424 +0000 ++++ ./transmission-2.75-haiku/transmission-2.75/third-party/miniupnp/miniupnpc.c 2012-12-08 17:09:12.018087936 +0000 +@@ -17,7 +17,7 @@ + #endif + #endif + +-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun) ++#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(__sun) && !defined(__HAIKU__) + #define HAS_IP_MREQN + #endif + +diff -Naur ./transmission-2.75/third-party/miniupnp/portlistingparse.c ./transmission-2.75-haiku/transmission-2.75/third-party/miniupnp/portlistingparse.c +--- ./transmission-2.75/third-party/miniupnp/portlistingparse.c 2012-10-24 13:01:10.221511680 +0000 ++++ ./transmission-2.75-haiku/transmission-2.75/third-party/miniupnp/portlistingparse.c 2012-12-08 17:09:49.941359104 +0000 +@@ -28,7 +28,7 @@ + + /* Helper function */ + static UNSIGNED_INTEGER +-atoui(const char * p, int l) ++_atoui(const char * p, int l) + { + UNSIGNED_INTEGER r = 0; + while(l > 0 && *p) +@@ -92,7 +92,7 @@ + pm->remoteHost[l] = '\0'; + break; + case NewExternalPort: +- pm->externalPort = (unsigned short)atoui(data, l); ++ pm->externalPort = (unsigned short)_atoui(data, l); + break; + case NewProtocol: + if(l > 3) +@@ -101,21 +101,21 @@ + pm->protocol[l] = '\0'; + break; + case NewInternalPort: +- pm->internalPort = (unsigned short)atoui(data, l); ++ pm->internalPort = (unsigned short)_atoui(data, l); + break; + case NewInternalClient: + memcpy(pm->internalClient, data, l); + pm->internalClient[l] = '\0'; + break; + case NewEnabled: +- pm->enabled = (unsigned char)atoui(data, l); ++ pm->enabled = (unsigned char)_atoui(data, l); + break; + case NewDescription: + memcpy(pm->description, data, l); + pm->description[l] = '\0'; + break; + case NewLeaseTime: +- pm->leaseTime = atoui(data, l); ++ pm->leaseTime = _atoui(data, l); + break; + default: + break; diff --git a/net-p2p/transmission/transmission-2.75.bep b/net-p2p/transmission/transmission-2.75.bep new file mode 100644 index 000000000..7252e2e99 --- /dev/null +++ b/net-p2p/transmission/transmission-2.75.bep @@ -0,0 +1,35 @@ +DESCRIPTION="Transmission" +HOMEPAGE="http://www.transmissionbt.com/" +SRC_URI="http://download.transmissionbt.com/files/transmission-2.75.tar.bz2" +CHECKSUM_MD5="ae3a3e7532560c16324e6c8a6386ad22" +REVISION="1" +STATUS_HAIKU="stable" +MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." + +# pkgconfig is only a build dependency +# note: intlool, XML-Parser, & gettext are now required +DEPEND="dev-util/pkgconfig >= 0.23 + net-misc/curl >= 7.16.3 + dev-libs/libevent >= 2.0.10 + dev-libs/openssl >= 0.9.8" + +BUILD { + cd transmission-2.75 + + ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ + --disable-nls \ + --mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \ + --localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale \ + --datarootdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY` + make +} + +INSTALL { + cd transmission-2.75 + make install +} +LICENSE="Transmission + MIT + GNU GPL v2" +COPYRIGHT="2005-2013. All code is copyrighted by the respective authors." +