aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-06-07 11:51:31 +0800
committerpgj <pgj@FreeBSD.org>2010-06-07 11:51:31 +0800
commit3c111a176ba4b577071d6a28e9ec5e97325552ea (patch)
tree6df802d581f8b3a9e2ed02ce437d0dbbca1ebee5 /net
parent00edb701be4b226d920731806eb1771bb3cafbc3 (diff)
downloadfreebsd-ports-graphics-3c111a176ba4b577071d6a28e9ec5e97325552ea.tar.gz
freebsd-ports-graphics-3c111a176ba4b577071d6a28e9ec5e97325552ea.tar.zst
freebsd-ports-graphics-3c111a176ba4b577071d6a28e9ec5e97325552ea.zip
Fast, memory-efficient, low-level socket functions that use
'Data.ByteString's instead of 'String's. WWW: http://github.com/tibbe/network-bytestring
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/hs-network-bytestring/Makefile18
-rw-r--r--net/hs-network-bytestring/distinfo3
-rw-r--r--net/hs-network-bytestring/pkg-descr4
-rw-r--r--net/hs-network-bytestring/pkg-plist20
5 files changed, 46 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index dfae5543755..cd401eb6173 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -224,6 +224,7 @@
SUBDIR += hping
SUBDIR += hping-devel
SUBDIR += hs-hostname
+ SUBDIR += hs-network-bytestring
SUBDIR += hs-pcap
SUBDIR += htpdate
SUBDIR += http_ping
diff --git a/net/hs-network-bytestring/Makefile b/net/hs-network-bytestring/Makefile
new file mode 100644
index 00000000000..4cb9a919767
--- /dev/null
+++ b/net/hs-network-bytestring/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: hs-network-bytestring
+# Date created: June 5, 2010
+# Whom: Gabor Pali <pgj@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= network-bytestring
+PORTVERSION= 0.1.3
+CATEGORIES= net haskell
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= Fast, memory-efficient, low-level networking
+
+CABAL_SETUP= Setup.hs
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/net/hs-network-bytestring/distinfo b/net/hs-network-bytestring/distinfo
new file mode 100644
index 00000000000..d3aa509ed39
--- /dev/null
+++ b/net/hs-network-bytestring/distinfo
@@ -0,0 +1,3 @@
+MD5 (network-bytestring-0.1.3.tar.gz) = c02cdc374f60700e87119c4a2863394a
+SHA256 (network-bytestring-0.1.3.tar.gz) = d2b5e9ccfef15ca8ea2d00fede066f73d1cc9e532ca69c9f7a440b8948e2b746
+SIZE (network-bytestring-0.1.3.tar.gz) = 9855
diff --git a/net/hs-network-bytestring/pkg-descr b/net/hs-network-bytestring/pkg-descr
new file mode 100644
index 00000000000..ef7d3a9ef5d
--- /dev/null
+++ b/net/hs-network-bytestring/pkg-descr
@@ -0,0 +1,4 @@
+Fast, memory-efficient, low-level socket functions that use
+'Data.ByteString's instead of 'String's.
+
+WWW: http://github.com/tibbe/network-bytestring
diff --git a/net/hs-network-bytestring/pkg-plist b/net/hs-network-bytestring/pkg-plist
new file mode 100644
index 00000000000..5a7783f1624
--- /dev/null
+++ b/net/hs-network-bytestring/pkg-plist
@@ -0,0 +1,20 @@
+@comment $FreeBSD$
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket/ByteString.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket/ByteString/Internal.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket/ByteString/IOVec.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket/ByteString/Lazy.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket/ByteString/MsgHdr.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket/ByteString
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Socket
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%LIBDIR_REL%%
+@exec /bin/sh %D/%%LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%-%%PORTVERSION%%
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old