aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-02-21 01:39:49 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-02-21 01:39:49 +0000
commit51a889d9a1693aea695da0476d5fc7f52c71f7c2 (patch)
treea972ae3424798f28d2b186c191f1eccad8f3dc2c /misc
parent0be5d9a64527514ea5b4ed0f729e370916b46def (diff)
downloadports-51a889d9a1693aea695da0476d5fc7f52c71f7c2.tar.gz
ports-51a889d9a1693aea695da0476d5fc7f52c71f7c2.zip
Notes
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/edonkey-tool-slist/Makefile40
-rw-r--r--misc/edonkey-tool-slist/distinfo1
-rw-r--r--misc/edonkey-tool-slist/pkg-comment1
-rw-r--r--misc/edonkey-tool-slist/pkg-descr9
-rw-r--r--misc/edonkey-tool-slist/pkg-plist3
6 files changed, 55 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 2826b9ed86b2..362718b70d19 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -61,6 +61,7 @@
SUBDIR += dotfile
SUBDIR += edonkey-tool-hash
SUBDIR += edonkey-tool-list
+ SUBDIR += edonkey-tool-slist
SUBDIR += emma
SUBDIR += estic
SUBDIR += ewipe
diff --git a/misc/edonkey-tool-slist/Makefile b/misc/edonkey-tool-slist/Makefile
new file mode 100644
index 000000000000..1e24678e21c5
--- /dev/null
+++ b/misc/edonkey-tool-slist/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: edonkey server list tool
+# Date created: Wed Feb 20 18:03:49 BRT 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= edonkey
+PORTVERSION= 0.2
+CATEGORIES= misc
+MASTER_SITES= http://users.aber.ac.uk/tpm01/ed2k_tools/
+PKGNAMESUFFIX= -tool-slist
+DISTNAME= ed2k_slist-${PORTVERSION}
+
+MAINTAINER= lioux@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/ed2k_slist
+
+post-patch:
+ @${PERL} -pi -e 's|\r\n|\n|' ${WRKSRC}/*.[ch]
+ @${PERL} -pi -e 's|(#include <unistd.h>)|\1\n#include\
+ <sys/time.h>|' ${WRKSRC}/linux_net.c
+
+# I could have written a Makefile but I would rather
+# not waste inodes
+do-build:
+ @cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} \
+ ed2k_slist.c -o ${PORTNAME}${PKGNAMESUFFIX}
+
+do-install:
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+ @${INSTALL_DATA} ${WRKSRC}/COPYING \
+ ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+
+.endif
+ @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}${PKGNAMESUFFIX} \
+ ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/misc/edonkey-tool-slist/distinfo b/misc/edonkey-tool-slist/distinfo
new file mode 100644
index 000000000000..132c58b90bc5
--- /dev/null
+++ b/misc/edonkey-tool-slist/distinfo
@@ -0,0 +1 @@
+MD5 (ed2k_slist-0.2.tar.gz) = add551eebc1d8a64e82f77ddbcf91545
diff --git a/misc/edonkey-tool-slist/pkg-comment b/misc/edonkey-tool-slist/pkg-comment
new file mode 100644
index 000000000000..59a83aaa6410
--- /dev/null
+++ b/misc/edonkey-tool-slist/pkg-comment
@@ -0,0 +1 @@
+Checks which servers are either dead or alive in server.met
diff --git a/misc/edonkey-tool-slist/pkg-descr b/misc/edonkey-tool-slist/pkg-descr
new file mode 100644
index 000000000000..cd22b70a6311
--- /dev/null
+++ b/misc/edonkey-tool-slist/pkg-descr
@@ -0,0 +1,9 @@
+This tool takes your server.met file and checks which servers are
+dead and which are alive. It then creates a new server.met file
+which contains only working servers. It makes sense to use this
+tool every time before you start the eDonkey 2000 client.
+
+On request this tool also creates a web page with ed2k:// links to
+all working servers.
+
+WWW: http://users.aber.ac.uk/tpm01/ed2k_tools/
diff --git a/misc/edonkey-tool-slist/pkg-plist b/misc/edonkey-tool-slist/pkg-plist
new file mode 100644
index 000000000000..bada7d073657
--- /dev/null
+++ b/misc/edonkey-tool-slist/pkg-plist
@@ -0,0 +1,3 @@
+bin/edonkey-tool-slist
+%%PORTDOCS%%share/doc/edonkey-tool-slist/COPYING
+%%PORTDOCS%%@dirrm share/doc/edonkey-tool-slist