ports/82424: [NEW PORT] net/mldonkey-core-stable: A OCAML client core for multiple peer-to-peer networks

Jose M Rodriguez josemi at orion.redesjm.local
Sun Jun 19 18:40:19 UTC 2005


>Number:         82424
>Category:       ports
>Synopsis:       [NEW PORT] net/mldonkey-core-stable: A OCAML client core for multiple peer-to-peer networks
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 19 18:40:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jose M Rodriguez
>Release:        FreeBSD 5.4-RELEASE-p2 i386
>Organization:
RedesJM
>Environment:
System: FreeBSD orion.redesjm.local 5.4-RELEASE-p2 FreeBSD 5.4-RELEASE-p2 #0: Thu Jun  9 17:54:55 CEST
>Description:
mldonkey is a OCAML/GTK client for a number of
peer-to-peer networks.

This port install the stable version of the core with
telnet and web interfaces.

The following protocols are supported:
- eDonkey		(http://www.edonkey2000.com/)
- Overnet		(http://www.edonkey2000.com/)
- Bittorrent		(http://bitconjurer.org/BitTorrent/)
- Gnutella		(http://www.gnutella.org/)
- Gnutella2		(http://www.shareaza.com/)
- Fasttrack		(Kazaa, Grokser, iMesh, Morpheus)
- FileTP		(HTTP/FTP downloads)

WWW: http://mldonkey.dyndns.info/

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- mldonkey-core-stable-2.5.16w.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mldonkey-core-stable
#	mldonkey-core-stable/Makefile
#	mldonkey-core-stable/distinfo
#	mldonkey-core-stable/pkg-descr
#	mldonkey-core-stable/pkg-message
#	mldonkey-core-stable/pkg-plist
#	mldonkey-core-stable/files
#	mldonkey-core-stable/files/kill_mldonkey
#	mldonkey-core-stable/files/patch-Makefile
#	mldonkey-core-stable/files/wrapper.sh
#
echo c - mldonkey-core-stable
mkdir -p mldonkey-core-stable > /dev/null 2>&1
echo x - mldonkey-core-stable/Makefile
sed 's/^X//' >mldonkey-core-stable/Makefile << 'END-of-mldonkey-core-stable/Makefile'
X# New ports collection makefile for:	mldonkey-core-stable
X# Date created:		16 June 2005
X# Whom:			Jose Rodriguez <josemi at freebsd.jazztel.es>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mldonkey
XPORTVERSION=	2.5.16w
XDISTVERSIONSUFFIX=	-3
XCATEGORIES=	net
XMASTER_SITES=	http://mldonkey.dyndns.info/${DISTVERSION}${DISTVERSIONSUFFIX}/
XPKGNAMESUFFIX=	-core-stable
XDISTNAME=	SVN-${DISTVERSION}${DISTVERSIONSUFFIX}
XDIST_SUBDIR=	mldonkey
X
XMAINTAINER=	ports at FreeBSD.org
XCOMMENT=	A OCAML client core for multiple peer-to-peer networks
X
XBUILD_DEPENDS=	ocamlc:${PORTSDIR}/lang/ocaml
X
XNO_LATEST_LINK=	yes
XCONFLICTS=	mldonkey-[0-9]* mldonkey-devel-[0-9]* \
X		mldonkey-core-[0.9]* mldonkey-core-devel-[0.9]*
X
XUSE_BZIP2=	yes
XUSE_ICONV=	yes
XWANT_AUTOCONF_VER=	259
XUSE_REINPLACE=	yes
XGNU_CONFIGURE=	yes
XUSE_GMAKE=	yes
XALL_TARGET=	opt
X
XCONFIGURE_ARGS+=	--enable-pthread --enable-ocamlver=3
X
XWRKSRC=		${WRKDIR}/knocker-${DISTVERSION}${DISTVERSIONSUFFIX}
X
X# have no 'without-' flag
XCONFIGURE_ARGS+=--disable-gui \
X		--disable-gd
X
XDOCFILES=	Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \
X		Install.txt Readme.txt Todo.txt ed2k_links.txt
X
XPORTDOCS=	${DOCFILES}
X
XPKGMESSAGE=	${WRKDIR}/pkg-message
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
X		${WRKDIR}/wrapper.sh
X	@${REINPLACE_CMD} -E \
X		-e 's|%%AUTOCONF%%|${AUTOCONF}|' \
X		${BUILD_WRKSRC}/config/Makefile.in
X
Xpre-configure:
X	cd ${WRKSRC}/config && ${AUTOCONF}
X
Xpost-build:
X	@${SED} -e 's,%%DOCSDIR%%,${DOCSDIR},' \
X	< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/mlnet		${PREFIX}/bin/mlnet-real
X	@${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey	${PREFIX}/bin
X	@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh		${PREFIX}/bin/mlnet
X.ifndef(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in ${DOCFILES}
X	@${INSTALL_DATA} ${WRKSRC}/distrib/${file} ${DOCSDIR}
X.endfor
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mldonkey-core-stable/Makefile
echo x - mldonkey-core-stable/distinfo
sed 's/^X//' >mldonkey-core-stable/distinfo << 'END-of-mldonkey-core-stable/distinfo'
XMD5 (mldonkey/SVN-2.5.16w-3.tar.bz2) = 9b39ea7664c3da73cd7778437e785507
XSIZE (mldonkey/SVN-2.5.16w-3.tar.bz2) = 2597710
END-of-mldonkey-core-stable/distinfo
echo x - mldonkey-core-stable/pkg-descr
sed 's/^X//' >mldonkey-core-stable/pkg-descr << 'END-of-mldonkey-core-stable/pkg-descr'
Xmldonkey is a OCAML/GTK client for a number of
Xpeer-to-peer networks.
X
XThis port install the stable version of the core with
Xtelnet and web interfaces.
X
XThe following protocols are supported:
X- eDonkey		(http://www.edonkey2000.com/)
X- Overnet		(http://www.edonkey2000.com/)
X- Bittorrent		(http://bitconjurer.org/BitTorrent/)
X- Gnutella		(http://www.gnutella.org/)
X- Gnutella2		(http://www.shareaza.com/)
X- Fasttrack		(Kazaa, Grokser, iMesh, Morpheus)
X- FileTP		(HTTP/FTP downloads)
X
XWWW: http://mldonkey.dyndns.info/
END-of-mldonkey-core-stable/pkg-descr
echo x - mldonkey-core-stable/pkg-message
sed 's/^X//' >mldonkey-core-stable/pkg-message << 'END-of-mldonkey-core-stable/pkg-message'
X	ATTENTIONATTENTION:
X
X- If you want to know how to use mldonkey, read "INSTALL" or
X  "FAQ.html" in the port docs (%%DOCSDIR%%)
X
X- You can import the downloads you started with eDonkey
X  (try "import ~/.edonkey2000-core"
X  on the console), but you can NOT go back!
X
X- You have to enable the different protocols on the client
X  console. Go to the (mldonkey-) console, and try the commands
X  'set enable_<protocol> true' (try 'voo' for reference).
X
X+------------------------------------------------------------+
X|- For upgraders: The names of the binaries have changed.    |
X|  Core is called "mlnet".                                   |
X+------------------------------------------------------------+
END-of-mldonkey-core-stable/pkg-message
echo x - mldonkey-core-stable/pkg-plist
sed 's/^X//' >mldonkey-core-stable/pkg-plist << 'END-of-mldonkey-core-stable/pkg-plist'
Xbin/kill_mldonkey
Xbin/mlnet
Xbin/mlnet-real
END-of-mldonkey-core-stable/pkg-plist
echo c - mldonkey-core-stable/files
mkdir -p mldonkey-core-stable/files > /dev/null 2>&1
echo x - mldonkey-core-stable/files/kill_mldonkey
sed 's/^X//' >mldonkey-core-stable/files/kill_mldonkey << 'END-of-mldonkey-core-stable/files/kill_mldonkey'
X#!/bin/sh
X#
X# $FreeBSD$
X
X# Copyright (c) 2003
X# Mario Sergio Fujikawa Ferreira <lioux at FreeBSD.org>
X# Holger Lamm <holger at e-gitt.net>
X# All rights reserved.
X#
X# Redistribution and use in source and binary forms, with or without
X# modification, are permitted provided that the following conditions
X# are met:
X# 1. Redistributions of source code must retain the above copyright
X#    notice, this list of conditions and the following disclaimer.
X# 2. Redistributions in binary form must reproduce the above copyright
X#    notice, this list of conditions and the following disclaimer in the
X#    documentation and/or other materials provided with the distribution.
X#
X# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
X# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
X# SUCH DAMAGE.
X#
X
X#
X# Add Username and password here
X# like this:
X#
X#MLNETUSER="Admin"
X#MLNETPASS=""
X#MLNETHOST="127.0.0.1"
X#MLNETPORT="4080"
X
X# internal configuration
XHTTP_COMMAND="/usr/bin/fetch"
XHTTP_COMMAND_ARGS="-1 -q -s -o /dev/null"
X
Xif [ -n "${MLNETPASS}" ]; then
X	export HTTP_AUTH=basic:*:${MLNETUSER:-Admin}:${MLNETPASS}
Xfi
X
Xexec > /dev/null 2>&1
X
X${HTTP_COMMAND} ${HTTP_COMMAND_ARGS} \
X	"http://${MLNETHOST:-127.0.0.1}:${MLNETPORT:-4080}/submit?q=kill" \
X	2>&1 > /dev/null
X
END-of-mldonkey-core-stable/files/kill_mldonkey
echo x - mldonkey-core-stable/files/patch-Makefile
sed 's/^X//' >mldonkey-core-stable/files/patch-Makefile << 'END-of-mldonkey-core-stable/files/patch-Makefile'
X--- config/Makefile.in.orig	Sun Jun 19 16:26:04 2005
X+++ config/Makefile.in	Sun Jun 19 16:26:56 2005
X@@ -230,7 +230,7 @@
X all: Makefile config/Makefile.config $(TARGET_TYPE)
X 
X config/configure: config/configure.in
X-	cd config; autoconf
X+	cd config; %%AUTOCONF%%
X 
X ifeq ("$(MYCONFIG_ARGS_DEFINED)" , "yes")
X 
X@@ -1544,4 +1544,4 @@
X   src/utils/lib/sha1_c.h src/utils/lib/os_stubs.h
X 
X src/daemon/common/commonHasher_c.o: src/utils/lib/sha1_c.h
X-src/utils/lib/stubs_c.o: src/utils/lib/sha1_c.h
X\ No newline at end of file
X+src/utils/lib/stubs_c.o: src/utils/lib/sha1_c.h
END-of-mldonkey-core-stable/files/patch-Makefile
echo x - mldonkey-core-stable/files/wrapper.sh
sed 's/^X//' >mldonkey-core-stable/files/wrapper.sh << 'END-of-mldonkey-core-stable/files/wrapper.sh'
X#!/bin/sh
X
XPREFIX="%%PREFIX%%/bin"
XPROGRAM="${0}"
XDIRNAME=${HOME}/.mldonkey
X
Xif [ ! -d ${DIRNAME} ]
Xthen
X	mkdir -p ${DIRNAME}
Xfi
X
Xecho " ${*} " | grep " \-createdironly " ||
X{
X	cd ${DIRNAME} &&
X	echo Running under ${DIRNAME} &&
X	exec ${PREFIX}/${PROGRAM##*/}-real "${@}" ||
X	echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
X}
END-of-mldonkey-core-stable/files/wrapper.sh
exit
--- mldonkey-core-stable-2.5.16w.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list