diff options
author | lioux <lioux@FreeBSD.org> | 2002-01-22 15:55:17 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-01-22 15:55:17 +0000 |
commit | 169566501930ed9586a919ef045002ae95b2fc3a (patch) | |
tree | 11523a476f687db8ed28d6d6e566ab986ee19f81 /net-p2p/edonkey-gui-gtk | |
parent | 3ec1099d59dcfaaf913d788bde78761ed7b7b0df (diff) | |
download | FreeBSD-ports-169566501930ed9586a919ef045002ae95b2fc3a.zip FreeBSD-ports-169566501930ed9586a919ef045002ae95b2fc3a.tar.gz |
New port edonkey-gui-gtk version 0.1.0: GTK GUI to eDonkey2000
'core' command line client
Reviewed by: pat
Diffstat (limited to 'net-p2p/edonkey-gui-gtk')
-rw-r--r-- | net-p2p/edonkey-gui-gtk/Makefile | 61 | ||||
-rw-r--r-- | net-p2p/edonkey-gui-gtk/distinfo | 1 | ||||
-rw-r--r-- | net-p2p/edonkey-gui-gtk/files/wrapper.sh | 34 | ||||
-rw-r--r-- | net-p2p/edonkey-gui-gtk/pkg-comment | 1 | ||||
-rw-r--r-- | net-p2p/edonkey-gui-gtk/pkg-descr | 15 | ||||
-rw-r--r-- | net-p2p/edonkey-gui-gtk/pkg-plist | 7 |
6 files changed, 119 insertions, 0 deletions
diff --git a/net-p2p/edonkey-gui-gtk/Makefile b/net-p2p/edonkey-gui-gtk/Makefile new file mode 100644 index 0000000..59b8509 --- /dev/null +++ b/net-p2p/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-p2p/edonkey-gui-gtk/distinfo b/net-p2p/edonkey-gui-gtk/distinfo new file mode 100644 index 0000000..4582cc6 --- /dev/null +++ b/net-p2p/edonkey-gui-gtk/distinfo @@ -0,0 +1 @@ +MD5 (ed2k_linux_gui_0.1alpha.tar.gz) = 24b3b520980fdeb718bb84841c5bb03a diff --git a/net-p2p/edonkey-gui-gtk/files/wrapper.sh b/net-p2p/edonkey-gui-gtk/files/wrapper.sh new file mode 100644 index 0000000..f6ca8cb --- /dev/null +++ b/net-p2p/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-p2p/edonkey-gui-gtk/pkg-comment b/net-p2p/edonkey-gui-gtk/pkg-comment new file mode 100644 index 0000000..396a88a --- /dev/null +++ b/net-p2p/edonkey-gui-gtk/pkg-comment @@ -0,0 +1 @@ +GTK GUI to eDonkey2000 'core' command line client diff --git a/net-p2p/edonkey-gui-gtk/pkg-descr b/net-p2p/edonkey-gui-gtk/pkg-descr new file mode 100644 index 0000000..ca42bcb --- /dev/null +++ b/net-p2p/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-p2p/edonkey-gui-gtk/pkg-plist b/net-p2p/edonkey-gui-gtk/pkg-plist new file mode 100644 index 0000000..480d5ed --- /dev/null +++ b/net-p2p/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 |