diff options
author | heinz <heinz@pkgsrc.org> | 2007-09-16 15:53:12 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-09-16 15:53:12 +0000 |
commit | 273124ca69957d46a97c1051252ca668f3b2ec2b (patch) | |
tree | 1b38836175a49c37eb601a9a9f71aa3d25fe3b1c /net | |
parent | eae54c12dbf09bb7f32fe2c2bbb42cfac8155a18 (diff) | |
download | pkgsrc-273124ca69957d46a97c1051252ca668f3b2ec2b.tar.gz |
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 (limited to 'net')
-rw-r--r-- | net/microdc2/DESCR | 7 | ||||
-rw-r--r-- | net/microdc2/Makefile | 32 | ||||
-rw-r--r-- | net/microdc2/PLIST | 8 | ||||
-rw-r--r-- | net/microdc2/distinfo | 6 | ||||
-rw-r--r-- | net/microdc2/patches/patch-aa | 23 |
5 files changed, 76 insertions, 0 deletions
diff --git a/net/microdc2/DESCR b/net/microdc2/DESCR new file mode 100644 index 00000000000..d0a52978580 --- /dev/null +++ b/net/microdc2/DESCR @@ -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 --git a/net/microdc2/Makefile b/net/microdc2/Makefile new file mode 100644 index 00000000000..982b29420f4 --- /dev/null +++ b/net/microdc2/Makefile @@ -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 +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 --git a/net/microdc2/PLIST b/net/microdc2/PLIST new file mode 100644 index 00000000000..e7d42dff46e --- /dev/null +++ b/net/microdc2/PLIST @@ -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 --git a/net/microdc2/distinfo b/net/microdc2/distinfo new file mode 100644 index 00000000000..1e15890bb86 --- /dev/null +++ b/net/microdc2/distinfo @@ -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 --git a/net/microdc2/patches/patch-aa b/net/microdc2/patches/patch-aa new file mode 100644 index 00000000000..9f4211e94e0 --- /dev/null +++ b/net/microdc2/patches/patch-aa @@ -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; + } + } |