diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-06-03 09:17:20 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-06-03 09:17:20 +0000 |
commit | cf091c62f9c0628be3306ad43acbd44fb67bb5b0 (patch) | |
tree | 281523ac0bc197dced262accc204739ae3758b2e /net/xmule | |
parent | 55697207b8c6d7c157d65f34736e54749a963029 (diff) | |
download | pkgsrc-cf091c62f9c0628be3306ad43acbd44fb67bb5b0.tar.gz |
Initial import of xmule, version 1.4.0:
xMule is an easy to use multi-platform client for the ED2K Peer-to-Peer
Network. It was originally based on eMule, the popular windows-only client
for the same network. It uses the wxWindows class library.
Some of its features include Movie Preview, GTK2 Compatibility, Multi-Selection
in all lists, Tray-icon, Statistics, Source Exchange, File Commenting any many
more.
Based on the package provided in pkgsrc-wip by Marc Recht and one provided by
Pablo Méndez in private mail. Obsoletes lmule.
Diffstat (limited to 'net/xmule')
-rw-r--r-- | net/xmule/DESCR | 7 | ||||
-rw-r--r-- | net/xmule/Makefile | 43 | ||||
-rw-r--r-- | net/xmule/PLIST | 14 | ||||
-rw-r--r-- | net/xmule/distinfo | 12 | ||||
-rw-r--r-- | net/xmule/patches/patch-aa | 23 | ||||
-rw-r--r-- | net/xmule/patches/patch-ab | 20 | ||||
-rw-r--r-- | net/xmule/patches/patch-ac | 27 | ||||
-rw-r--r-- | net/xmule/patches/patch-ad | 81 | ||||
-rw-r--r-- | net/xmule/patches/patch-ae | 43 | ||||
-rw-r--r-- | net/xmule/patches/patch-af | 20 | ||||
-rw-r--r-- | net/xmule/patches/patch-ag | 31 | ||||
-rw-r--r-- | net/xmule/patches/patch-ah | 14 |
12 files changed, 335 insertions, 0 deletions
diff --git a/net/xmule/DESCR b/net/xmule/DESCR new file mode 100644 index 00000000000..b37a575ec5f --- /dev/null +++ b/net/xmule/DESCR @@ -0,0 +1,7 @@ +xMule is an easy to use multi-platform client for the ED2K Peer-to-Peer +Network. It was originally based on eMule, the popular windows-only client +for the same network. It uses the wxWindows class library. + +Some of its features include Movie Preview, GTK2 Compatibility, Multi-Selection +in all lists, Tray-icon, Statistics, Source Exchange, File Commenting any many +more. diff --git a/net/xmule/Makefile b/net/xmule/Makefile new file mode 100644 index 00000000000..f0826386e6d --- /dev/null +++ b/net/xmule/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/06/03 09:17:20 jmmv Exp $ +# + +DISTNAME= xmule-1.4.0 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmule/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= jmmv@netbsd.org +HOMEPAGE= http://www.xmule.org/ +COMMENT= eDonkey2000 client based on eMule + +BUILD_USES_MSGFMT= YES +DEPENDS= gnome2-dirs>=1.2:../../misc/gnome2-dirs +DEPENDS+= wget>=1.8.2:../../net/wget + +GNU_CONFIGURE= YES +USE_BUILDLINK2= YES +USE_GMAKE= YES +USE_PKGLOCALEDIR= YES +USE_X11= YES + +CONFIGURE_ARGS+= --disable-gtk2 +CONFIGURE_ARGS+= --enable-timedata +CONFIGURE_ARGS+= --enable-gui +CONFIGURE_ARGS+= --enable-protocol +CONFIGURE_ARGS+= --enable-http +CONFIGURE_ARGS+= --enable-ftp +CONFIGURE_ARGS+= --enable-resources +CONFIGURE_ARGS+= --enable-prologio +CONFIGURE_ARGS+= --disable-debug +CONFIGURE_ARGS+= --enable-final +CONFIGURE_ARGS+= --enable-timer +CONFIGURE_ARGS+= --with-gtk +CONFIGURE_ARGS+= --disable-profile +CONFIGURE_ARGS+= --without-included-gettext + +.include "../../converters/libiconv/buildlink2.mk" +.include "../../devel/gettext-lib/buildlink2.mk" +.include "../../textproc/expat/buildlink2.mk" +.include "../../x11/wxGTK/buildlink2.mk" +.include "../../mk/pthread.buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/xmule/PLIST b/net/xmule/PLIST new file mode 100644 index 00000000000..68fe27cb04b --- /dev/null +++ b/net/xmule/PLIST @@ -0,0 +1,14 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/03 09:17:20 jmmv Exp $ +bin/xmule +share/applications/xmule.desktop +${PKGLOCALEDIR}/locale/de/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/ee/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/es/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/es_MX/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/it/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/ko/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/xmule.mo +${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/xmule.mo +share/pixmaps/xmule.xpm +@comment in gnome2-dirs: @dirrm share/applications diff --git a/net/xmule/distinfo b/net/xmule/distinfo new file mode 100644 index 00000000000..3f08af3950f --- /dev/null +++ b/net/xmule/distinfo @@ -0,0 +1,12 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/06/03 09:17:20 jmmv Exp $ + +SHA1 (xmule-1.4.0.tar.bz2) = 2983b0437af6ed5ce4acc934e4bdc6a221271bd0 +Size (xmule-1.4.0.tar.bz2) = 1403388 bytes +SHA1 (patch-aa) = 750edb86b7c1deef6ee3dfabec2168b1cfea6b0f +SHA1 (patch-ab) = 6d7d08396f873acb67fc9596a310124f4698da5b +SHA1 (patch-ac) = 170dd665068f8f45cc06bf3afc226eb8c4128c69 +SHA1 (patch-ad) = e359a882b9065c6e9199f58c392702d0b2f8b1d6 +SHA1 (patch-ae) = a388f39c176cbfa577fa567c527dee0939f4f984 +SHA1 (patch-af) = 3cc3631e7259e759df8d685a473586da82025837 +SHA1 (patch-ag) = 3a14fc689adc2a9f46958bc6d881b8d14163dbc8 +SHA1 (patch-ah) = 81c53bbe3cb585351892f19c64d410a251285fdc diff --git a/net/xmule/patches/patch-aa b/net/xmule/patches/patch-aa new file mode 100644 index 00000000000..867f89018a0 --- /dev/null +++ b/net/xmule/patches/patch-aa @@ -0,0 +1,23 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/06/03 09:17:21 jmmv Exp $ + +--- configure.orig 2003-05-31 13:13:06.000000000 +0000 ++++ configure 2003-05-31 13:25:06.000000000 +0000 +@@ -5714,7 +5714,7 @@ + + + for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ +-stdlib.h string.h unistd.h sys/param.h ++stdlib.h string.h unistd.h sys/param.h sys/utsname.h sys/resource.h + do + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` + if eval "test \"\${$as_ac_Header+set}\" = set"; then +@@ -5878,7 +5878,8 @@ + + for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ + geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ +-strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next ++strcasecmp strdup strtoul uname getrlimit setrlimit tsearch __argz_count \ ++__argz_stringify __argz_next + do + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` + echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/net/xmule/patches/patch-ab b/net/xmule/patches/patch-ab new file mode 100644 index 00000000000..27573c47807 --- /dev/null +++ b/net/xmule/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/06/03 09:17:20 jmmv Exp $ + +--- config.h.in.orig 2003-05-31 13:41:29.000000000 +0000 ++++ config.h.in 2003-05-31 13:44:15.000000000 +0000 +@@ -295,3 +295,15 @@ + + /* Define to `unsigned' if <sys/types.h> does not define. */ + #undef size_t ++ ++/* Define to 1 if you have the <sys/utsname.h> header file. */ ++#undef HAVE_SYS_UTSNAME_H ++ ++/* Define to 1 if you have the <sys/resource.h> header file. */ ++#undef HAVE_SYS_RESOURCE_H ++ ++/* Define to 1 if you have the `getrlimit' function. */ ++#undef HAVE_GETRLIMIT ++ ++/* Define to 1 if you have the `setrlimit' function. */ ++#undef HAVE_SETRLIMIT diff --git a/net/xmule/patches/patch-ac b/net/xmule/patches/patch-ac new file mode 100644 index 00000000000..ab98d156104 --- /dev/null +++ b/net/xmule/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/06/03 09:17:20 jmmv Exp $ + +--- src/SysTray.cpp.orig 2003-05-31 13:26:20.000000000 +0000 ++++ src/SysTray.cpp 2003-05-31 13:28:42.000000000 +0000 +@@ -37,6 +37,8 @@ + #include <config.h> + #define _(String) gettext(String) + ++const char * GetAppTitle(); ++ + CSysTray::CSysTray(wxWindow* _parent,int _desktopMode) + { + gdk_rgb_init(); +@@ -71,11 +73,11 @@ + + if(use_legacy) { + status_docklet=gtk_window_new(GTK_WINDOW_TOPLEVEL); +- gtk_window_set_title(GTK_WINDOW(status_docklet),_("xMule for Linux")); ++ gtk_window_set_title(GTK_WINDOW(status_docklet),GetAppTitle()); + gtk_window_set_wmclass(GTK_WINDOW(status_docklet),"xmule_StatusDocklet","xmule"); + gtk_widget_set_usize(status_docklet,22,22); + } else { +- status_docklet=GTK_WIDGET(egg_tray_icon_new(_("xMule for Linux"))); ++ status_docklet=GTK_WIDGET(egg_tray_icon_new(GetAppTitle())); + if(status_docklet==NULL) { + printf("**** WARNING: Can't create status docklet. Systray will not be created.\n"); + desktopMode=4; diff --git a/net/xmule/patches/patch-ad b/net/xmule/patches/patch-ad new file mode 100644 index 00000000000..37e18e384f0 --- /dev/null +++ b/net/xmule/patches/patch-ad @@ -0,0 +1,81 @@ +$NetBSD: patch-ad,v 1.1.1.1 2003/06/03 09:17:21 jmmv Exp $ + +--- src/xmule.cpp.orig 2003-06-01 19:33:55.000000000 +0000 ++++ src/xmule.cpp 2003-06-01 19:34:19.000000000 +0000 +@@ -103,8 +103,13 @@ + delete clientlist; + #endif + +- hashing_mut.Unlock(); +- pendingMutex.Unlock(); ++ if (hashing_mut.TryLock() == wxMUTEX_NO_ERROR) { ++ hashing_mut.Unlock(); ++ } ++ ++ if (pendingMutex.TryLock() == wxMUTEX_NO_ERROR) { ++ pendingMutex.Unlock(); ++ } + + printf("xMule shutdown completed.\n"); + } +@@ -207,6 +212,28 @@ + + extern void InitXmlResource(); + ++#ifdef HAVE_SYS_RESOURCE_H ++#include <sys/resource.h> ++#endif ++ ++static void UnlimitResource(int resType) ++{ ++#if defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT) ++ struct rlimit rl; ++ getrlimit(resType, &rl); ++ rl.rlim_cur = rl.rlim_max; ++ setrlimit(resType, &rl); ++#endif ++} ++ ++static void SetResourceLimits() ++{ ++ UnlimitResource(RLIMIT_DATA); ++ UnlimitResource(RLIMIT_FSIZE); ++ UnlimitResource(RLIMIT_NOFILE); ++ UnlimitResource(RLIMIT_RSS); ++} ++ + bool CxmuleApp::OnInit() + { + // catch fatal exceptions +@@ -214,6 +241,8 @@ + + //putenv("LANG=en_US"); + ++ SetResourceLimits(); ++ + // for resources + wxFileSystem::AddHandler(new wxZipFSHandler); + wxXmlResource::Get()->InitAllHandlers(); +@@ -641,11 +670,13 @@ + + } //End Added By Bouc7 + +- ++#if defined(linux) + #include <execinfo.h> ++#endif + + void CxmuleApp::OnFatalException() + { ++#if defined(linux) + // (stkn) create backtrace + void * bt_array[100]; // 100 should be enough ?!? + char ** bt_strings; +@@ -666,6 +697,7 @@ + fprintf(stderr, "[%d] %s\n", i, bt_strings[i]); + + free(bt_strings); ++#endif + } + + #define wxGTK_WINDOW 1 diff --git a/net/xmule/patches/patch-ae b/net/xmule/patches/patch-ae new file mode 100644 index 00000000000..e0a332c2247 --- /dev/null +++ b/net/xmule/patches/patch-ae @@ -0,0 +1,43 @@ +$NetBSD: patch-ae,v 1.1.1.1 2003/06/03 09:17:21 jmmv Exp $ + +--- src/xmuleDlg.cpp.orig 2003-05-31 13:32:39.000000000 +0000 ++++ src/xmuleDlg.cpp 2003-05-31 13:40:38.000000000 +0000 +@@ -20,6 +20,7 @@ + // + + //#include "stdafx.h" ++#include "config.h" + #include "xmule.h" + #include "xmuleDlg.h" + #include "sockets.h" +@@ -131,6 +132,9 @@ + + // CxmuleDlg Dialog + #include <signal.h> ++#ifdef HAVE_SYS_UTSNAME_H ++#include <sys/utsname.h> ++#endif + + #if wxMINOR_VERSION > 4 + #define CLOSEBOX wxCLOSE_BOX +@@ -138,8 +142,19 @@ + #define CLOSEBOX 0 + #endif + ++const char * GetAppTitle() ++{ ++#if defined(HAVE_UNAME) && defined(HAVE_SYS_UTSNAME_H) ++ struct utsname un; ++ uname(&un); ++ return CString("xMule for ") + un.sysname; ++#else ++ return CString("xMule for *NIX"); ++#endif ++} ++ + CxmuleDlg::CxmuleDlg(wxWindow* pParent, wxString title) +- : wxFrame(pParent,CxmuleDlg::IDD,title,wxDefaultPosition,wxSize(800,520), ++ : wxFrame(pParent,CxmuleDlg::IDD,GetAppTitle(),wxDefaultPosition,wxSize(800,520), + wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxDIALOG_NO_PARENT|wxTHICK_FRAME|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|CLOSEBOX) + { + m_app_state=APP_STATE_STARTING; diff --git a/net/xmule/patches/patch-af b/net/xmule/patches/patch-af new file mode 100644 index 00000000000..80821a5cc20 --- /dev/null +++ b/net/xmule/patches/patch-af @@ -0,0 +1,20 @@ +$NetBSD: patch-af,v 1.1.1.1 2003/06/03 09:17:20 jmmv Exp $ + +--- src/gsocket.c.orig 2003-05-31 21:53:44.000000000 +0200 ++++ src/gsocket.c 2003-05-31 21:54:24.000000000 +0200 +@@ -363,6 +363,7 @@ + GSocketError GSocket_SetServer(GSocket *sck) + { + int arg = 1; ++ int intYes = 1; + + assert(sck != NULL); + +@@ -400,7 +401,6 @@ + /* Added by Un-Thesis 2003-05-15 */ + /* Allows socket reuse */ + /* Code contributed by McCabe and arkanes */ +-int intYes = 1; + if(setsockopt(sck->m_fd, SOL_SOCKET, SO_REUSEADDR, &intYes, sizeof(int))) { + return GSOCK_IOERR; + } diff --git a/net/xmule/patches/patch-ag b/net/xmule/patches/patch-ag new file mode 100644 index 00000000000..89f96fa159f --- /dev/null +++ b/net/xmule/patches/patch-ag @@ -0,0 +1,31 @@ +$NetBSD: patch-ag,v 1.1.1.1 2003/06/03 09:17:21 jmmv Exp $ + +--- src/UDPSocket.cpp.orig 2003-05-26 05:30:05.000000000 +0200 ++++ src/UDPSocket.cpp 2003-06-01 11:36:08.000000000 +0200 +@@ -25,7 +25,7 @@ + static pthread_attr_t attr;//=PTHREAD_CREATE_DETACHED; + + #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) +- static wxMutex *s_mutexProtectingGetHostByName; ++ static wxMutex s_mutexProtectingGetHostByName; + + static int + convert (struct hostent *host, struct hostent *result, +@@ -131,7 +131,7 @@ + { + struct hostent *host; + +- s_mutexProtectingGetHostByName->Lock(); ++ s_mutexProtectingGetHostByName.Lock(); + + host = gethostbyname (name); + if (!host || +@@ -140,7 +140,7 @@ + result = NULL; + } + +- s_mutexProtectingGetHostByName->Unlock(); ++ s_mutexProtectingGetHostByName.Unlock(); + return result; + } + diff --git a/net/xmule/patches/patch-ah b/net/xmule/patches/patch-ah new file mode 100644 index 00000000000..08a43280daf --- /dev/null +++ b/net/xmule/patches/patch-ah @@ -0,0 +1,14 @@ +$NetBSD: patch-ah,v 1.1.1.1 2003/06/03 09:17:21 jmmv Exp $ + +--- src/KnownFileList.cpp.orig 2003-05-25 16:00:07.000000000 +0200 ++++ src/KnownFileList.cpp 2003-06-01 01:55:06.000000000 +0200 +@@ -34,7 +34,9 @@ + } + + CKnownFileList::~CKnownFileList() { ++ if (list_mut.TryLock() == wxMUTEX_NO_ERROR) { + list_mut.Unlock(); ++ } + Clear(); + } + |