aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/mldonkey
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2002-09-21 00:48:34 +0800
committerlioux <lioux@FreeBSD.org>2002-09-21 00:48:34 +0800
commite5508e3840d8665212c8d509e0db755208935e33 (patch)
treed725a1ed2db89044ec3640290ddba9cdb9e06543 /net-p2p/mldonkey
parent4d94715e224b4f33d0eb23164dbd759c65074de1 (diff)
downloadfreebsd-ports-gnome-e5508e3840d8665212c8d509e0db755208935e33.tar.gz
freebsd-ports-gnome-e5508e3840d8665212c8d509e0db755208935e33.tar.zst
freebsd-ports-gnome-e5508e3840d8665212c8d509e0db755208935e33.zip
New port mldonkey version 1.16: A OCAML/GTK client for the eDonkey
peer-to-peer network Submitted by: Holger Lamm <holger@e-gitt.net>
Diffstat (limited to 'net-p2p/mldonkey')
-rw-r--r--net-p2p/mldonkey/Makefile61
-rw-r--r--net-p2p/mldonkey/distinfo1
-rw-r--r--net-p2p/mldonkey/files/wrapper.sh18
-rw-r--r--net-p2p/mldonkey/pkg-comment1
-rw-r--r--net-p2p/mldonkey/pkg-descr14
-rw-r--r--net-p2p/mldonkey/pkg-message20
-rw-r--r--net-p2p/mldonkey/pkg-plist7
7 files changed, 122 insertions, 0 deletions
diff --git a/net-p2p/mldonkey/Makefile b/net-p2p/mldonkey/Makefile
new file mode 100644
index 000000000000..437294570f0c
--- /dev/null
+++ b/net-p2p/mldonkey/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: mldonkey
+# Date created: 21 August 2002
+# Whom: Holger Lamm <holger@e-gitt.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mldonkey
+PORTVERSION= 1.16
+CATEGORIES= net
+MASTER_SITES= http://savannah.nongnu.org/download/mldonkey/ \
+ http://freesoftware.fsf.org/download/mldonkey/
+DISTNAME= ${PORTNAME}-${PORTVERSION}.static.${ARCH}-FreeBSD
+
+MAINTAINER= holger@e-gitt.net
+
+RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww
+
+ONLY_FOR_ARCHS= i386
+USE_BZIP2= yes
+USE_PERL5= yes
+USE_REINPLACE= yes
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}-distrib
+
+DIRNAME= ${HOME}/.mldonkey
+
+# do not strip, it breaks OCAML binaries
+STRIP=
+
+post-patch:
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
+ ${WRKDIR}/wrapper.sh
+ @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \
+ ${WRKSRC}/kill_mldonkey
+
+pre-install:
+# we can strip the GTK binary
+ @${STRIP_CMD} ${WRKSRC}/mldonkey_gui
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey ${PREFIX}/bin/mldonkey-real
+ @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey_gui ${PREFIX}/bin
+ @${INSTALL_SCRIPT} ${WRKSRC}/kill_mldonkey ${PREFIX}/bin
+ @${INSTALL_SCRIPT} ${WRKSRC}/mldonkey_previewer ${PREFIX}/bin
+ @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mldonkey
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/Readme.txt ${DOCSDIR}
+.endif
+
+post-install:
+ @${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}
+
+.include <bsd.port.pre.mk>
+
+install-user: extract
+ @${TEST} -d ${DIRNAME} || ${MKDIR} ${DIRNAME}
+ @${CP} ${WRKSRC}/servers.ini ${DIRNAME}/
+
+.include <bsd.port.post.mk>
diff --git a/net-p2p/mldonkey/distinfo b/net-p2p/mldonkey/distinfo
new file mode 100644
index 000000000000..a2660a36c994
--- /dev/null
+++ b/net-p2p/mldonkey/distinfo
@@ -0,0 +1 @@
+MD5 (mldonkey-1.16.static.i386-FreeBSD.tar.bz2) = b15aeabf1b0496f225f62baca7b0077c
diff --git a/net-p2p/mldonkey/files/wrapper.sh b/net-p2p/mldonkey/files/wrapper.sh
new file mode 100644
index 000000000000..c25fd62bc133
--- /dev/null
+++ b/net-p2p/mldonkey/files/wrapper.sh
@@ -0,0 +1,18 @@
+#!/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-p2p/mldonkey/pkg-comment b/net-p2p/mldonkey/pkg-comment
new file mode 100644
index 000000000000..985c930c3045
--- /dev/null
+++ b/net-p2p/mldonkey/pkg-comment
@@ -0,0 +1 @@
+A OCAML/GTK client for the eDonkey peer-to-peer network
diff --git a/net-p2p/mldonkey/pkg-descr b/net-p2p/mldonkey/pkg-descr
new file mode 100644
index 000000000000..470212b5f06b
--- /dev/null
+++ b/net-p2p/mldonkey/pkg-descr
@@ -0,0 +1,14 @@
+mldonkey is a OCAML/GTK client for the eDonkey peer-to-peer network
+(see http://www.edonkey2000.com/ and the 'edonkey' ports).
+
+It is separated into a core with telnet and web interfaces, and
+brings a GTK GUI.
+
+Other features over the original client are:
+- better stability
+- faster operation
+- much better control
+- saves its current state, checksums and known peers
+ (instead of starting from scratch every time)
+
+WWW: http://www.freesoftware.fsf.org/mldonkey/
diff --git a/net-p2p/mldonkey/pkg-message b/net-p2p/mldonkey/pkg-message
new file mode 100644
index 000000000000..568af83e56c0
--- /dev/null
+++ b/net-p2p/mldonkey/pkg-message
@@ -0,0 +1,20 @@
+ ATTENTIONATTENTION:
+
+- It is not a bad idea to install mplayer. You will be able
+ to preview half-downloaded files (if you have the beginning).
+
+- Please make sure that you read
+ /usr/local/share/doc/mldonkey/Readme.txt.
+ It contains important information about how to run mldonkey.
+
+- If this is the first time you install mldonkey,
+ please go to the mldonkey ports dir as a user and enter:
+
+ make install-user
+
+ this will set up your user config and install an
+ initial server list.
+
+- You can import the downloads started with eDonkey
+ (try "import /home/directory/path/.edonkey2000-core"
+ on the console), but you can NOT go back!
diff --git a/net-p2p/mldonkey/pkg-plist b/net-p2p/mldonkey/pkg-plist
new file mode 100644
index 000000000000..dbe1cecdc4d7
--- /dev/null
+++ b/net-p2p/mldonkey/pkg-plist
@@ -0,0 +1,7 @@
+bin/kill_mldonkey
+bin/mldonkey
+bin/mldonkey-real
+bin/mldonkey_gui
+bin/mldonkey_previewer
+%%PORTDOCS%%share/doc/mldonkey/Readme.txt
+%%PORTDOCS%%@dirrm share/doc/mldonkey