diff options
author | pav <pav@FreeBSD.org> | 2006-02-15 04:38:29 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-02-15 04:38:29 +0800 |
commit | ae43a6d2d0dbf9ca1ebcb582280ec376ec9e978e (patch) | |
tree | 196ec9e255de54ee04c5cb229ef59351bff1f2e3 | |
parent | 0ec6b804aeafd306dd127e417d8a1e93b9f6a4dc (diff) | |
download | freebsd-ports-gnome-ae43a6d2d0dbf9ca1ebcb582280ec376ec9e978e.tar.gz freebsd-ports-gnome-ae43a6d2d0dbf9ca1ebcb582280ec376ec9e978e.tar.zst freebsd-ports-gnome-ae43a6d2d0dbf9ca1ebcb582280ec376ec9e978e.zip |
- Finish move of this port to net-p2p category.
Pointed out by: kris
Pointy hat to: pav
-rw-r--r-- | net/mldonkey-devel/Makefile | 192 | ||||
-rw-r--r-- | net/mldonkey-devel/distinfo | 3 | ||||
-rw-r--r-- | net/mldonkey-devel/files/kill_mldonkey | 51 | ||||
-rw-r--r-- | net/mldonkey-devel/files/mlnet.sh | 59 | ||||
-rw-r--r-- | net/mldonkey-devel/files/patch-Makefile | 11 | ||||
-rw-r--r-- | net/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c | 23 | ||||
-rw-r--r-- | net/mldonkey-devel/files/wrapper.sh | 18 | ||||
-rw-r--r-- | net/mldonkey-devel/pkg-descr | 19 | ||||
-rw-r--r-- | net/mldonkey-devel/pkg-message | 27 | ||||
-rw-r--r-- | net/mldonkey-devel/pkg-plist | 12 |
10 files changed, 0 insertions, 415 deletions
diff --git a/net/mldonkey-devel/Makefile b/net/mldonkey-devel/Makefile deleted file mode 100644 index 96946b8a0dd5..000000000000 --- a/net/mldonkey-devel/Makefile +++ /dev/null @@ -1,192 +0,0 @@ -# New ports collection makefile for: mldonkey -# Date created: 21 August 2002 -# Whom: Holger Lamm <holger@e-gitt.net> -# -# $FreeBSD$ -# - -PORTNAME= mldonkey -PORTVERSION= 2.7.3 -PORTREVISION= 1 -CATEGORIES+= net -MASTER_SITES= ${MASTER_SITE_SAVANNAH} -MASTER_SITE_SUBDIR= ${PORTNAME} -PKGNAMESUFFIX= -devel - -MAINTAINER?= lioux@FreeBSD.org -COMMENT?= A OCAML client for multiple peer-to-peer networks - -BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml - -NO_LATEST_LINK= yes -CONFLICTS= mldonkey-[0-9]* - -USE_BZIP2= yes -USE_ICONV= yes -USE_RC_SUBR= yes -USE_AUTOTOOLS= autoconf:259:env -USE_REINPLACE= yes -GNU_CONFIGURE= yes -USE_GMAKE= yes -ALL_TARGET= opt - -CONFIGURE_ARGS+=\ - --enable-ocamlver=3 \ - --with-libiconv-prefix=${LOCALBASE} -CONFIGURE_ENV+= \ - NEWCXX="${CXX}" \ - CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ - PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" - -### -## Options activation -### -.if defined(WITHOUT_GUI) -.if defined(WITHOUT_CORE) -.error "Cool, you defined both WITHOUT_GUI and WITHOUT_CORE. I think I'll do nothing." -.endif -# have no 'without-' flag -CONFIGURE_ARGS+=--disable-gui \ - --disable-gd -PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment " -CONFLICTS+= mldonkey-core-[0.9]* mldonkey-core-stable-[0.9]* \ - mldonkey-devel-[0-9]* -PKGNAMESUFFIX= -core-devel -.else -PLIST_SUB+= GUI="" -CONFLICTS+= mldonkey-gui-[0.9]* -.if !defined(WITHOUT_CORE) -CONFLICTS+= mldonkey-devel-[0-9]* -.endif -BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 \ - ${LOCALBASE}/lib/ocaml/jabbr.cma:${PORTSDIR}/net-im/ocaml-jabbr -LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd \ - rsvg-2.2:${PORTSDIR}/graphics/librsvg2 - -CONFIGURE_ARGS+=--enable-gui=newgui2 -# we don't need lablgtk as RUN dependency, but we need gtk+glib -USE_GNOME= gtk12 - -MAKE_ENV+= OCAMLRUNPARAM="l=256M" -.if defined(WITHOUT_CORE) -PKGNAMESUFFIX= -gui-devel -PLIST_SUB+= CORE="@comment " GUICORE="@comment " -.else -PLIST_SUB+= CORE="" GUICORE="" -.endif -.endif - -DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \ - Install.txt Readme.txt Todo.txt ed2k_links.txt -PORTDOCS= ${DOCFILES} -PKGMESSAGE= ${WRKDIR}/pkg-message - -# build additional tools -ALL_TARGET+= \ - mld_hash - -.include <bsd.port.pre.mk> - -# Fix build on 4.x -.if ${OSVERSION} < 500000 -USE_GCC= 3.4 -.endif - -# FreeBSD has reentrant dns code -.if ( ((${OSVERSION} >= 504102) && (${OSVERSION} < 600000)) || (${OSVERSION} >= 600029) ) -PTHREAD_CFLAGS+= -D_REENTRANT -.endif - -### Development version -## Thus, we will use non standard threading library -## We will switch from libpthread to libthr which should produce -## better results in some scenarios. You can read more at pthread(3) -.if defined(WITH_THR_THREAD_MODEL) -PTHREAD_CFLAGS= -D_THREAD_SAFE -PTHREAD_LIBS= -lthr -.endif - -pre-everything:: -.if !defined(WITHOUT_GUI) && !defined(WITHOUT_CORE) - @${ECHO_MSG} "You can disable the GUI by defining WITHOUT_GUI." - @${ECHO_MSG} "You can disable the CORE by defining WITHOUT_CORE." - @${ECHO_MSG} -.endif -.ifndef(WITH_THR_THREAD_MODEL) - @${ECHO_MSG} "Define WITH_THR_THREAD_MODEL to switch from" - @${ECHO_MSG} "pthread to thr threading model which could produce better" - @${ECHO_MSG} "results in some scenarios. Use at your discretion." - -.endif - -post-patch: - @${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \ - ${WRKDIR}/wrapper.sh - @${REINPLACE_CMD} -E \ - -e 's|%%AUTOCONF%%|${AUTOCONF}|' \ - ${BUILD_WRKSRC}/config/Makefile.in -# rc.d - @${SED} -e "s|%%PREFIX%%|${PREFIX}|" \ - ${FILESDIR}/mlnet.sh > ${WRKDIR}/mlnet.sh - -pre-configure: - cd ${WRKSRC}/config && ${AUTOCONF} - -post-configure: - @${REINPLACE_CMD} -E \ - -e 's|^(PTHREAD_CFLAGS[^=]*=).*$$|\1${PTHREAD_CFLAGS}|' \ - -e 's|^(PTHREAD_LIBS[^=]*=).*$$|\1${PTHREAD_LIBS}|' \ - ${BUILD_WRKSRC}/config/Makefile.config - -pre-install: -.if exists(${.CURDIR}/pkg-message) - @${SED} -e 's,%%DOCSDIR%%,${DOCSDIR},' \ - < ${.CURDIR}/pkg-message > ${PKGMESSAGE} -.elif exists(${MASTERDIR}/pkg-message) - @${SED} -e 's,%%DOCSDIR%%,${DOCSDIR},' \ - < ${MASTERDIR}/pkg-message > ${PKGMESSAGE} -.endif - -do-install: -.ifndef(WITHOUT_CORE) - @${INSTALL_PROGRAM} ${WRKSRC}/mld_hash ${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real - @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet - @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${EXAMPLESDIR} -.endif -.ifndef(WITHOUT_GUI) - @${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/mlgui ${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/mlim ${PREFIX}/bin -.endif -.ifndef(WITHOUT_CORE && WITHOUT_GUI) - @${INSTALL_SCRIPT} ${WRKSRC}/distrib/mldonkey_previewer ${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/mlguistarter ${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/mlnet+gui ${PREFIX}/bin -.endif -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ${DOCFILES} - @${INSTALL_DATA} ${WRKSRC}/distrib/${file} ${DOCSDIR} -.endfor -.endif -# rc.d - @${INSTALL_SCRIPT} ${WRKDIR}/mlnet.sh \ - ${PREFIX}/etc/rc.d - -post-install: - @${CAT} ${PKGMESSAGE} - -install-user: extract -.if !defined(LANG) - @${ECHO_MSG} "Please call as: make install-user LANG=<lang>" - @${ECHO_MSG} "with <lang> one of en,de,fr,fr.noaccents,sp !" -.else - @${CP} ${WRKSRC}/distrib/i18n/gui_messages.ini.${LANG}\ - ${HOME}/.mldonkey_gui_messages.ini -.endif - -.include <bsd.port.post.mk> diff --git a/net/mldonkey-devel/distinfo b/net/mldonkey-devel/distinfo deleted file mode 100644 index 65b43abcc953..000000000000 --- a/net/mldonkey-devel/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (mldonkey-2.7.3.tar.bz2) = f6c7c183fda53a9e9c26a09f8cdefda7 -SHA256 (mldonkey-2.7.3.tar.bz2) = 01411b8806629ac5ded65565bf1fc8018f5b6678043ecd9d06b8a341a1183566 -SIZE (mldonkey-2.7.3.tar.bz2) = 2807272 diff --git a/net/mldonkey-devel/files/kill_mldonkey b/net/mldonkey-devel/files/kill_mldonkey deleted file mode 100644 index 17a7de100aad..000000000000 --- a/net/mldonkey-devel/files/kill_mldonkey +++ /dev/null @@ -1,51 +0,0 @@ -# -# Copyright (c) 2003 -# Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# Holger Lamm <holger@e-gitt.net> -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# - -#!/bin/sh - -# -# Add Username and password here -# like this: -# -HTTPUSER="you" -HTTPPASS="yourpassword" - -# Add location and port of mldonkey core -HTTPURL="127.0.0.1:4080" - -# internal configuration -HTTP_COMMAND="/usr/bin/fetch" -HTTP_COMMAND_ARGS="-1 -q -s" - -if [ -n "${HTTPUSER}" -a -n "${HTTPPASS}" ] -then - export HTTP_AUTH=basic:*:${HTTPUSER}:${HTTPPASS} -fi - -${HTTP_COMMAND} ${HTTP_COMMAND_ARGS} "http://${HTTPURL}/submit?q=kill" - diff --git a/net/mldonkey-devel/files/mlnet.sh b/net/mldonkey-devel/files/mlnet.sh deleted file mode 100644 index 82edeb6d8272..000000000000 --- a/net/mldonkey-devel/files/mlnet.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Under a BSDL license. Copyright 2005. Mario S F Ferreira <lioux@FreeBSD.org> - -# PROVIDE: mlnet -# REQUIRE: LOGIN -# KEYWORD: FreeBSD shutdown - -# -# Add the following lines to /etc/rc.conf to enable mlnet: -# -#mlnet_enable="YES" -#mlnet_user="" -#mlnet_logfile="" -# - -. /etc/rc.subr - -name="mlnet" -rcvar=`set_rcvar` -command="%%PREFIX%%/bin/mlnet" -procname="%%PREFIX%%/bin/mlnet-real" - -## hardcoded, cannot override -mlnet_pidfile="${HOME}/.mldonkey/mlnet.pid" - -mlnet_check_vars() -{ - if [ -z "${mlnet_user}" ]; then - mlnet_user=$(whoami) - fi - - if [ "x${mlnet_user}" = "xroot" ]; then - err 1 "You have to set mlnet_user to a non-root user for security reasons" - fi -} - -start_cmd="start_cmd" -start_cmd() -{ - mlnet_check_vars - if [ -n "${mlnet_logfile}" ]; then - mlnet_logcommand="-log_file ${mlnet_logfile}" - fi - - su -l ${mlnet_user} -c "${command} \ - ${mlnet_logcommand} \ - ${mlnet_flags} \ - >/dev/null &" -} - -load_rc_config "${name}" -: ${mlnet_enable="NO"} -: ${mlnet_user=""} -: ${mlnet_logfile=""} - -run_rc_command "$1" diff --git a/net/mldonkey-devel/files/patch-Makefile b/net/mldonkey-devel/files/patch-Makefile deleted file mode 100644 index d8380f0cb5d6..000000000000 --- a/net/mldonkey-devel/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- config/Makefile.in.orig Tue Apr 26 22:48:10 2005 -+++ config/Makefile.in Tue Apr 26 22:48:41 2005 -@@ -285,7 +285,7 @@ - all: Makefile config/Makefile.config $(TARGET_TYPE) - - config/configure: config/configure.in -- cd config; autoconf -+ cd config; %%AUTOCONF%% - - ifeq ("$(MYCONFIG_ARGS_DEFINED)" , "yes") - diff --git a/net/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c b/net/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c deleted file mode 100644 index f819aef2c39e..000000000000 --- a/net/mldonkey-devel/files/patch-src__utils__lib__stubs_c.c +++ /dev/null @@ -1,23 +0,0 @@ ---- src/utils/lib/stubs_c.c.orig Wed Jan 4 12:23:37 2006 -+++ src/utils/lib/stubs_c.c Mon Jan 16 14:14:38 2006 -@@ -28,6 +28,11 @@ - #include <inttypes.h> - #endif - -+/* For proper FreeBSD version identification */ -+#if defined(HAVE_SYS_PARAM_H) -+#include <sys/param.h> -+#endif -+ - #define lseek XXXXXXXXX - #define read XXXXXXXXX - #define ftruncate XXXXXXXXX -@@ -683,7 +688,7 @@ - - #define NETDB_BUFFER_SIZE 10000 - --#ifdef _WIN32 -+#if defined(_WIN32) || ( defined(__FreeBSD_version) && ( ((__FreeBSD_version >= 504102) && (__FreeBSD_version < 600000)) || (__FreeBSD_version >= 600029) ) ) - #define GETHOSTBYADDR_IS_REENTRANT 1 - #define GETHOSTBYNAME_IS_REENTRANT 1 - #endif diff --git a/net/mldonkey-devel/files/wrapper.sh b/net/mldonkey-devel/files/wrapper.sh deleted file mode 100644 index c25fd62bc133..000000000000 --- a/net/mldonkey-devel/files/wrapper.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -PREFIX="%%PREFIX%%/bin" -PROGRAM="${0}" -DIRNAME=${HOME}/.mldonkey - -if [ ! -d ${DIRNAME} ] -then - mkdir -p ${DIRNAME} -fi - -echo " ${*} " | grep " \-createdironly " || -{ - cd ${DIRNAME} && - echo Running under ${DIRNAME} && - exec ${PREFIX}/${PROGRAM##*/}-real "${@}" || - echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again -} diff --git a/net/mldonkey-devel/pkg-descr b/net/mldonkey-devel/pkg-descr deleted file mode 100644 index f40f085e7d79..000000000000 --- a/net/mldonkey-devel/pkg-descr +++ /dev/null @@ -1,19 +0,0 @@ -mldonkey is a OCAML/GTK client for a number of -peer-to-peer networks. - -It is separated into a core with telnet and web interfaces, and -a GTK GUI. - -The following protocols are supported: -- eDonkey (http://www.edonkey2000.com/) -- Overnet (http://www.overnet.com/) -- Bittorrent (http://bitconjurer.org/BitTorrent/) -- Gnutella (http://www.gnutella.org/) -- Gnutella2 (http://www.shareaza.com/) -- Fasttrack -- Soulseek (http://www.slsk.org/) -- Direct-Connect (http://www.neo-modus.com/) -- Opennap (http://opennap.sourceforge.net/) -- Kademlia - -WWW: http://www.nongnu.org/mldonkey/ diff --git a/net/mldonkey-devel/pkg-message b/net/mldonkey-devel/pkg-message deleted file mode 100644 index 9758a622b676..000000000000 --- a/net/mldonkey-devel/pkg-message +++ /dev/null @@ -1,27 +0,0 @@ - ATTENTIONATTENTION: - -- If you want to know how to use mldonkey, read "INSTALL" or - "FAQ.html" in the port docs (%%DOCSDIR%%) - -- It is not a bad idea to install mplayer. You will be able - to preview half-downloaded files (if you have the beginning). - -- You can import the downloads you started with eDonkey - (try "import /home/directory/path/.edonkey2000-core" - on the console), but you can NOT go back! - -- If this is the first time you install mldonkey, - please go to the mldonkey-gui ports dir as a user and enter: - - make install-user - - this will set up your user config. - -- You have to enable the different protocols on the client - console. Go to the (mldonkey-) console, and try the commands - 'set enable_<protocol> true' (try 'voo' for reference). - -+------------------------------------------------------------+ -|- For upgraders: The names of the binaries have changed. | -| Core and GUI are called "mlnet" and "mlgui", respectively.| -+------------------------------------------------------------+ diff --git a/net/mldonkey-devel/pkg-plist b/net/mldonkey-devel/pkg-plist deleted file mode 100644 index 671b4482cf9e..000000000000 --- a/net/mldonkey-devel/pkg-plist +++ /dev/null @@ -1,12 +0,0 @@ -etc/rc.d/mlnet.sh -%%CORE%%bin/mld_hash -%%CORE%%bin/mlnet -%%CORE%%bin/mlnet-real -%%CORE%%%%EXAMPLESDIR%%/kill_mldonkey -%%GUICORE%%bin/mlguistarter -%%GUICORE%%bin/mldonkey_previewer -%%GUICORE%%bin/mlnet+gui -%%GUI%%bin/mlchat -%%GUI%%bin/mlgui -%%GUI%%bin/mlim -%%CORE%%@dirrm %%EXAMPLESDIR%% |