aboutsummaryrefslogtreecommitdiff
path: root/net/linux-edonkey-gui-gtk
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-01-22 15:55:17 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-01-22 15:55:17 +0000
commit305840f7d28081037dac44161058d49e2fd2e6cc (patch)
treeb4d1f0991a225dda9771a9551bfa465665644c78 /net/linux-edonkey-gui-gtk
parent528b275fcaef123051c75504148ea81abc586c93 (diff)
downloadports-305840f7d28081037dac44161058d49e2fd2e6cc.tar.gz
ports-305840f7d28081037dac44161058d49e2fd2e6cc.zip
New port edonkey-gui-gtk version 0.1.0: GTK GUI to eDonkey2000
'core' command line client Reviewed by: pat
Notes
Notes: svn path=/head/; revision=53578
Diffstat (limited to 'net/linux-edonkey-gui-gtk')
-rw-r--r--net/linux-edonkey-gui-gtk/Makefile61
-rw-r--r--net/linux-edonkey-gui-gtk/distinfo1
-rw-r--r--net/linux-edonkey-gui-gtk/files/wrapper.sh34
-rw-r--r--net/linux-edonkey-gui-gtk/pkg-comment1
-rw-r--r--net/linux-edonkey-gui-gtk/pkg-descr15
-rw-r--r--net/linux-edonkey-gui-gtk/pkg-plist7
6 files changed, 119 insertions, 0 deletions
diff --git a/net/linux-edonkey-gui-gtk/Makefile b/net/linux-edonkey-gui-gtk/Makefile
new file mode 100644
index 000000000000..59b85097c7e9
--- /dev/null
+++ b/net/linux-edonkey-gui-gtk/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: eDonkey2000 GTK GUI for 'core' client
+# Date created: Fri Jan 4 22:44:56 BRST 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= edonkey
+PORTVERSION= 0.1.0
+CATEGORIES= net linux
+MASTER_SITES= http://www.edonkey2000.com/files/
+DISTNAME= ed2k_linux_gui_0.1alpha
+PKGNAMESUFFIX= -gui-gtk
+
+MAINTAINER= lioux@FreeBSD.org
+
+RUN_DEPENDS= donkey:${PORTSDIR}/net/edonkey-core \
+ ${LINUXBASE}/usr/lib/libgtk-1.2.so.0:${PORTSDIR}/x11-toolkits/linux-gtk
+
+ONLY_FOR_ARCHS= i386
+USE_LINUX= yes
+WRKSRC= ${WRKDIR}/linux_gui_alpha
+NO_BUILD= yes
+STRIP=
+
+STRIP_CMD= ${LINUXBASE}/usr/bin/strip
+
+DATA_FILES= gui_lookuplist gui_options
+
+.if exists(/usr/bin/brandelf)
+BRANDELF?= /usr/bin/brandelf
+.else
+BRANDELF?= brandelf
+.endif
+
+BINARY_NAME= ed2k_gui
+
+post-patch:
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|;s|%%DATADIR%%|${DATADIR}|; \
+ s|%%DATAFILES%%|${DATA_FILES}|" \
+ ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
+
+pre-install:
+.if exists(${STRIP_CMD})
+ @${STRIP_CMD} ${WRKSRC}/${BINARY_NAME}
+.endif
+ @${BRANDELF} -t Linux ${WRKSRC}/${BINARY_NAME}
+
+do-install:
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/todo.txt ${DOCSDIR}
+.endif
+ ${MKDIR} ${DATADIR}
+.for file in ${DATA_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
+.endfor
+ ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY_NAME} ${PREFIX}/bin/${BINARY_NAME}-real
+ ${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${BINARY_NAME}
+
+.include <bsd.port.mk>
diff --git a/net/linux-edonkey-gui-gtk/distinfo b/net/linux-edonkey-gui-gtk/distinfo
new file mode 100644
index 000000000000..4582cc64926b
--- /dev/null
+++ b/net/linux-edonkey-gui-gtk/distinfo
@@ -0,0 +1 @@
+MD5 (ed2k_linux_gui_0.1alpha.tar.gz) = 24b3b520980fdeb718bb84841c5bb03a
diff --git a/net/linux-edonkey-gui-gtk/files/wrapper.sh b/net/linux-edonkey-gui-gtk/files/wrapper.sh
new file mode 100644
index 000000000000..f6ca8cb91daf
--- /dev/null
+++ b/net/linux-edonkey-gui-gtk/files/wrapper.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+PREFIX="%%PREFIX%%"
+PROGRAM="${0}"
+DIRNAME=${HOME}/.edonkey2000-gui-gtk
+DATADIR="%%DATADIR%%"
+DATAFILES="%%DATAFILES%%"
+
+if [ ${#} -gt 1 ]
+then
+ shift
+fi
+
+if [ ! -d ${DIRNAME} ]
+then
+ mkdir -p ${DIRNAME}
+fi
+
+if [ ! -h ${DIRNAME}/${PROGRAM##*/} ]
+then
+ ln -sf ${PREFIX}/bin/${PROGRAM##*/}-real ${DIRNAME}/${PROGRAM##*/}
+ for file in ${DATAFILES}
+ do
+ ln -sf "${DATADIR}/${file}" "${DIRNAME}/${file}"
+ done
+fi
+
+echo " ${*} " | grep " \-createdironly " ||
+{
+ cd ${DIRNAME} &&
+ echo Running under ${DIRNAME} &&
+ exec ./${PROGRAM##*/} ${*} ||
+ echo PROBLEM. Cannot create directory ${DIRNAME}, make sure you have the proper permissions to create it and try again
+}
diff --git a/net/linux-edonkey-gui-gtk/pkg-comment b/net/linux-edonkey-gui-gtk/pkg-comment
new file mode 100644
index 000000000000..396a88ae6fc7
--- /dev/null
+++ b/net/linux-edonkey-gui-gtk/pkg-comment
@@ -0,0 +1 @@
+GTK GUI to eDonkey2000 'core' command line client
diff --git a/net/linux-edonkey-gui-gtk/pkg-descr b/net/linux-edonkey-gui-gtk/pkg-descr
new file mode 100644
index 000000000000..ca42bcb1189a
--- /dev/null
+++ b/net/linux-edonkey-gui-gtk/pkg-descr
@@ -0,0 +1,15 @@
+[ excerpt from Developer's site]
+
+This is a user interface to tell eDonkey2000 'core' what to do (ie.
+connect to servers, do searches, download stuff). The core comes
+with a very simple text interface (=command line client), where you
+can tell it what to do by typing in commands. Most people do not
+find this very convenient and rather have a window with lists and
+buttons to click. The 'GUI' is a separate program which connect to
+the core via a TCP connection and tells it what to do. Likewise,
+the core sends messages to the GUI when something happens (eg. a
+download has finished), so the GUI can present this to the user.
+
+Check http://www.edonkey2000.com/ and the WWW site below.
+
+WWW: http://users.aber.ac.uk/tpm01/guihome.html
diff --git a/net/linux-edonkey-gui-gtk/pkg-plist b/net/linux-edonkey-gui-gtk/pkg-plist
new file mode 100644
index 000000000000..480d5ed7c81a
--- /dev/null
+++ b/net/linux-edonkey-gui-gtk/pkg-plist
@@ -0,0 +1,7 @@
+bin/ed2k_gui
+bin/ed2k_gui-real
+%%PORTDOCS%%share/doc/edonkey/todo.txt
+share/edonkey/gui_lookuplist
+share/edonkey/gui_options
+@dirrm share/edonkey
+%%PORTDOCS%%@dirrm share/doc/edonkey