aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-05-22 05:44:44 +0800
committerpgj <pgj@FreeBSD.org>2010-05-22 05:44:44 +0800
commitd938ba775380a1aa87e6735ab3b698d8e78d1296 (patch)
treed6f1378e8480048bdcada3f4062fd437d828f114
parentda348869141464b52929e24085630d3f236e2847 (diff)
downloadfreebsd-ports-gnome-d938ba775380a1aa87e6735ab3b698d8e78d1296.tar.gz
freebsd-ports-gnome-d938ba775380a1aa87e6735ab3b698d8e78d1296.tar.zst
freebsd-ports-gnome-d938ba775380a1aa87e6735ab3b698d8e78d1296.zip
A very simple package providing a cross-platform means of determining
the hostname. WWW: http://hackage.haskell.org/package/hostname
-rw-r--r--lang/ghc/bsd.hackage.mk1
-rw-r--r--net/Makefile1
-rw-r--r--net/hs-hostname/Makefile16
-rw-r--r--net/hs-hostname/distinfo3
-rw-r--r--net/hs-hostname/pkg-descr4
-rw-r--r--net/hs-hostname/pkg-plist14
6 files changed, 39 insertions, 0 deletions
diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk
index 840f16562c8b..e84b72c43170 100644
--- a/lang/ghc/bsd.hackage.mk
+++ b/lang/ghc/bsd.hackage.mk
@@ -56,6 +56,7 @@ HGL_port= graphics/hs-HGL-ghc
highlighting-kate_port= textproc/hs-highlighting-kate-ghc
hint_port= devel/hs-hint
hoogle_port= devel/hs-hoogle # executable
+hostname_port= net/hs-hostname
hscolour_port= print/hs-hscolour # executable
hslogger_port= devel/hs-hslogger
hs-bibutils_port= textproc/hs-hs-bibutils
diff --git a/net/Makefile b/net/Makefile
index 2fe8ce2c0304..f257303bd1c3 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -223,6 +223,7 @@
SUBDIR += howl
SUBDIR += hping
SUBDIR += hping-devel
+ SUBDIR += hs-hostname
SUBDIR += hs-pcap
SUBDIR += htpdate
SUBDIR += http_ping
diff --git a/net/hs-hostname/Makefile b/net/hs-hostname/Makefile
new file mode 100644
index 000000000000..0f8d919cde10
--- /dev/null
+++ b/net/hs-hostname/Makefile
@@ -0,0 +1,16 @@
+# New ports collection makefile for: hs-hostname
+# Date created: May 21, 2010
+# Whom: Gabor Pali <pgj@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hostname
+PORTVERSION= 1.0
+CATEGORIES= net haskell
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= Cross-platform means of determining the hostname
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/net/hs-hostname/distinfo b/net/hs-hostname/distinfo
new file mode 100644
index 000000000000..0bdc711ed1ae
--- /dev/null
+++ b/net/hs-hostname/distinfo
@@ -0,0 +1,3 @@
+MD5 (hostname-1.0.tar.gz) = 9389c8634239e5d6096ef563e59a703f
+SHA256 (hostname-1.0.tar.gz) = 9b43dab1b6da521f35685b20555da00738c8e136eb972458c786242406a9cf5c
+SIZE (hostname-1.0.tar.gz) = 1982
diff --git a/net/hs-hostname/pkg-descr b/net/hs-hostname/pkg-descr
new file mode 100644
index 000000000000..828c88d112a3
--- /dev/null
+++ b/net/hs-hostname/pkg-descr
@@ -0,0 +1,4 @@
+A very simple package providing a cross-platform means of determining
+the hostname.
+
+WWW: http://hackage.haskell.org/package/hostname
diff --git a/net/hs-hostname/pkg-plist b/net/hs-hostname/pkg-plist
new file mode 100644
index 000000000000..be8e89c330ad
--- /dev/null
+++ b/net/hs-hostname/pkg-plist
@@ -0,0 +1,14 @@
+@comment $FreeBSD$
+%%LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Network/HostName.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
+@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