aboutsummaryrefslogtreecommitdiffstats
path: root/net/hs-pcap
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-05-19 20:10:17 +0800
committerpgj <pgj@FreeBSD.org>2010-05-19 20:10:17 +0800
commit247d4637ffffdbfcae2536e37affc917943105e7 (patch)
tree4e5bb9eed589a8533be3df02db84c2b5fb9f26b5 /net/hs-pcap
parentc157a26487f88358efd0bb0f99a04bb304e42216 (diff)
downloadfreebsd-ports-gnome-247d4637ffffdbfcae2536e37affc917943105e7.tar.gz
freebsd-ports-gnome-247d4637ffffdbfcae2536e37affc917943105e7.tar.zst
freebsd-ports-gnome-247d4637ffffdbfcae2536e37affc917943105e7.zip
A system-independent interface for user-level packet capture.
WWW: http://hackage.haskell.org/package/pcap PR: ports/146655 Submitted by: Ju Pengfei <jupengfei@gmail.com>
Diffstat (limited to 'net/hs-pcap')
-rw-r--r--net/hs-pcap/Makefile18
-rw-r--r--net/hs-pcap/distinfo3
-rw-r--r--net/hs-pcap/pkg-descr3
-rw-r--r--net/hs-pcap/pkg-plist18
4 files changed, 42 insertions, 0 deletions
diff --git a/net/hs-pcap/Makefile b/net/hs-pcap/Makefile
new file mode 100644
index 000000000000..6b3af2d83393
--- /dev/null
+++ b/net/hs-pcap/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: hs-pcap
+# Date created: 17 May 2010
+# Whom: Ju Pengfei <jupengfei@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pcap
+PORTVERSION= 0.4.5
+CATEGORIES= net haskell
+
+MAINTAINER= jupengfei@gmail.com
+COMMENT= A system-independent interface for user-level packet capture
+
+CABAL_SETUP= Setup.lhs
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/net/hs-pcap/distinfo b/net/hs-pcap/distinfo
new file mode 100644
index 000000000000..9ad1528ece00
--- /dev/null
+++ b/net/hs-pcap/distinfo
@@ -0,0 +1,3 @@
+MD5 (pcap-0.4.5.tar.gz) = 20ad727de904656106a979ddf32257bc
+SHA256 (pcap-0.4.5.tar.gz) = f3b9a93cbee762b7d1f0384ad9a16f686db3c76260e85bc702da792356b5c569
+SIZE (pcap-0.4.5.tar.gz) = 46293
diff --git a/net/hs-pcap/pkg-descr b/net/hs-pcap/pkg-descr
new file mode 100644
index 000000000000..cfed7e63d855
--- /dev/null
+++ b/net/hs-pcap/pkg-descr
@@ -0,0 +1,3 @@
+A system-independent interface for user-level packet capture.
+
+WWW: http://hackage.haskell.org/package/pcap
diff --git a/net/hs-pcap/pkg-plist b/net/hs-pcap/pkg-plist
new file mode 100644
index 000000000000..3ab92cedac86
--- /dev/null
+++ b/net/hs-pcap/pkg-plist
@@ -0,0 +1,18 @@
+@comment $FreeBSD$
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/pcapconfig.h
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Pcap/Base.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Pcap.hi
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
+%%LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/Pcap
+@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