summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoragc <agc>2009-01-19 05:40:39 +0000
committeragc <agc>2009-01-19 05:40:39 +0000
commit50f82c5bd412df1daec0ac254bd5c2fdb1306141 (patch)
treef7d3e4f49090c641b919728b4a565cf7ce480534 /net
parent4a85ce3748e4ebe176b05bbc9294352b3723eb8f (diff)
downloadpkgsrc-50f82c5bd412df1daec0ac254bd5c2fdb1306141.tar.gz
Initial import of unworkable-0.51 into the Packages Collection.
Unworkable is a BSD-licensed BitTorrent implementation written by Niall O'Higgins <niallo@p2presearch.com>. Goals of this project include efficiency, simplicity and high code quality. Unworkable is single threaded and asynchronous, written in portable ANSI C using libevent and mmap() for performance.
Diffstat (limited to 'net')
-rw-r--r--net/unworkable/DESCR6
-rw-r--r--net/unworkable/Makefile30
-rw-r--r--net/unworkable/PLIST4
-rw-r--r--net/unworkable/distinfo6
-rw-r--r--net/unworkable/patches/patch-aa28
5 files changed, 74 insertions, 0 deletions
diff --git a/net/unworkable/DESCR b/net/unworkable/DESCR
new file mode 100644
index 00000000000..e60ab54d6ca
--- /dev/null
+++ b/net/unworkable/DESCR
@@ -0,0 +1,6 @@
+Unworkable is a BSD-licensed BitTorrent implementation written by
+Niall O'Higgins <niallo@p2presearch.com>. Goals of this project
+include efficiency, simplicity and high code quality.
+
+Unworkable is single threaded and asynchronous, written in portable
+ANSI C using libevent and mmap() for performance.
diff --git a/net/unworkable/Makefile b/net/unworkable/Makefile
new file mode 100644
index 00000000000..2c2ac835446
--- /dev/null
+++ b/net/unworkable/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/19 05:40:39 agc Exp $
+
+DISTNAME= unworkable-0.51
+CATEGORIES= net
+MASTER_SITES= http://p2presearch.com/unworkable/dist/
+
+MAINTAINER= agc@NetBSD.org
+HOMEPAGE= http://p2presearch.com/unworkable/
+COMMENT= BSD-licensed command-line torrent client
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/unworkable
+MAKE_FILE= BSDmakefile
+
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1
+
+post-configure:
+ cp ${WRKSRC}/openbsd-compat/sha1.c ${WRKSRC}
+ cp ${WRKSRC}/openbsd-compat/strtonum.c ${WRKSRC}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/unworkable ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/unworkable.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_MAN} ${WRKSRC}/unworkable.cat1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/unworkable.0
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/unworkable/PLIST b/net/unworkable/PLIST
new file mode 100644
index 00000000000..4e183f33ce3
--- /dev/null
+++ b/net/unworkable/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/19 05:40:39 agc Exp $
+bin/unworkable
+${PKGMANDIR}/man1/unworkable.1
+${PKGMANDIR}/cat1/unworkable.0
diff --git a/net/unworkable/distinfo b/net/unworkable/distinfo
new file mode 100644
index 00000000000..7c31669ff09
--- /dev/null
+++ b/net/unworkable/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/19 05:40:39 agc Exp $
+
+SHA1 (unworkable-0.51.tar.gz) = 0a179f7d84aa95df3fe30bd49806776826f8e4c6
+RMD160 (unworkable-0.51.tar.gz) = 72174941df30ab63101f334f0a657e1357f7309b
+Size (unworkable-0.51.tar.gz) = 71020 bytes
+SHA1 (patch-aa) = c792177339cf79341c24cf9a12032ee98d564eaa
diff --git a/net/unworkable/patches/patch-aa b/net/unworkable/patches/patch-aa
new file mode 100644
index 00000000000..64aff4fa369
--- /dev/null
+++ b/net/unworkable/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/19 05:40:39 agc Exp $
+
+Just add the sources we need to to get it to compile on most hosts
+
+--- BSDmakefile 2008-09-08 10:46:30.000000000 -0700
++++ BSDmakefile 2009-01-18 21:16:38.000000000 -0800
+@@ -21,6 +21,7 @@
+ CFLAGS+= -Wmissing-declarations
+ CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual
+ CFLAGS+= -Wsign-compare -g -ggdb
++CFLAGS+= -Iopenbsd-compat
+
+ #
+ # Uncomment if you like to use Boehm's garbage collector (/usr/ports/devel/boehm-gc).
+@@ -32,10 +33,12 @@
+
+ PROG= unworkable
+
+-SRCS= announce.c bencode.c buf.c ctl_server.c main.c network.c parse.y progressmeter.c scheduler.c torrent.c trace.c util.c xmalloc.c
++SRCS= announce.c bencode.c buf.c ctl_server.c main.c network.c parse.y progressmeter.c scheduler.c torrent.c trace.c util.c xmalloc.c sha1.c strtonum.c
+ OBJS= ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
+ MAN= unworkable.1
+
++.PATH: ${.CURDIR}:${.CURDIR}/openbsd-compat
++
+ all: ${PROG} unworkable.cat1
+
+ ${PROG}: ${OBJS}