pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/microdc2 Initial import of microdc2 0.15.6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c94a0a391920
branches:  trunk
changeset: 533359:c94a0a391920
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sun Sep 16 15:53:12 2007 +0000

description:
Initial import of microdc2 0.15.6.

Packaged and maintained by Dennis den Brok, with small changes by me.
This should fix PR pkg/36887 by Dennis.

microdc2 is the successor of microdc, a command-line based Direct Connect
client written in C and designed to compile and run on modern POSIX
compatible systems.
Direct Connect is a file sharing network made up by hubs, to which
clients can connect. Once connected to a hub, the user can search for
files on the hub or the network, or browse files of other users connected
to the hub.

diffstat:

 net/microdc2/DESCR            |   7 +++++++
 net/microdc2/Makefile         |  32 ++++++++++++++++++++++++++++++++
 net/microdc2/PLIST            |   8 ++++++++
 net/microdc2/distinfo         |   6 ++++++
 net/microdc2/patches/patch-aa |  23 +++++++++++++++++++++++
 5 files changed, 76 insertions(+), 0 deletions(-)

diffs (96 lines):

diff -r 1337b21a68b2 -r c94a0a391920 net/microdc2/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/microdc2/DESCR        Sun Sep 16 15:53:12 2007 +0000
@@ -0,0 +1,7 @@
+microdc2 is the successor of microdc, a command-line based Direct Connect
+client written in C and designed to compile and run on modern POSIX
+compatible systems.
+Direct Connect is a file sharing network made up by hubs, to which
+clients can connect. Once connected to a hub, the user can search for
+files on the hub or the network, or browse files of other users connected
+to the hub.
diff -r 1337b21a68b2 -r c94a0a391920 net/microdc2/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/microdc2/Makefile     Sun Sep 16 15:53:12 2007 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/09/16 15:53:12 heinz Exp $
+#
+
+DISTNAME=      microdc2-0.15.6
+CATEGORIES=    net
+MASTER_SITES=  http://corsair626.no-ip.org/microdc/
+
+MAINTAINER=    d.den.brok%uni-bonn.de@localhost
+HOMEPAGE=      http://corsair626.no-ip.org/microdc/
+COMMENT=       Console-based DirectConnect client
+
+PKG_DESTDIR_SUPPORT=           user-destdir
+
+BUILDLINK_API_DEPENDS.readline+=readline>=4
+BUILDLINK_API_DEPENDS.libxml2+=        libxml2>=2.6.16
+
+GNU_CONFIGURE=         yes
+
+USE_GNU_READLINE=      yes
+USE_PKGLOCALEDIR=      yes
+USE_TOOLS+=            ln msgfmt msgmerge
+
+post-install:
+       cd ${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}/man1 && \
+               ln microdc.1 microdc2.1
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 1337b21a68b2 -r c94a0a391920 net/microdc2/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/microdc2/PLIST        Sun Sep 16 15:53:12 2007 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/09/16 15:53:12 heinz Exp $
+bin/microdc2
+bin/tthsum
+man/man1/microdc.1
+man/man1/microdc.pl.1
+man/man1/microdc2.1
+share/locale/pl/LC_MESSAGES/microdc2.mo
+share/locale/sv/LC_MESSAGES/microdc2.mo
diff -r 1337b21a68b2 -r c94a0a391920 net/microdc2/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/microdc2/distinfo     Sun Sep 16 15:53:12 2007 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/09/16 15:53:12 heinz Exp $
+
+SHA1 (microdc2-0.15.6.tar.gz) = d39fedfb817203b70854aaff3a9e7fb2f2f317d2
+RMD160 (microdc2-0.15.6.tar.gz) = c7e05994c9012f4774c1de6eaea7ee3225c63336
+Size (microdc2-0.15.6.tar.gz) = 639392 bytes
+SHA1 (patch-aa) = 8801a9442911a6cdd3d154724db4ecc65965dd39
diff -r 1337b21a68b2 -r c94a0a391920 net/microdc2/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/microdc2/patches/patch-aa     Sun Sep 16 15:53:12 2007 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/09/16 15:53:12 heinz Exp $
+
+  Provide hints for getaddrinfo(), otherwise there is not enough data
+  to determine the correct address information.
+  Works on NetBSD and Linux.
+  AF_UNSPEC could not be used because IPv6 address information confuses the
+  application.
+
+--- src/hub.c.orig     2006-12-24 19:41:44.000000000 +0100
++++ src/hub.c
+@@ -316,10 +316,11 @@ hub_new(const char *hostname, uint16_t p
+         hub_connect(&addr); /* Ignore errors */
+     } else {
+         char portstr[6];
++        struct addrinfo hints = { 0, AF_INET, SOCK_STREAM, 0, };
+ 
+         sprintf(portstr, "%" PRIu16, port);
+         screen_putf(_("Looking up IP address for %s\n"), quotearg(hostname));
+-        hub_lookup = add_lookup_request(hostname, portstr, NULL, hub_address_looked_up, xstrdup(hostname));
++        hub_lookup = add_lookup_request(hostname, portstr, &hints, hub_address_looked_up, xstrdup(hostname));
+         hub_state = DC_HUB_LOOKUP;
+     }
+ }



Home | Main Index | Thread Index | Old Index