aboutsummaryrefslogtreecommitdiff
path: root/devel/erlang-lager_syslog
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2015-06-27 12:54:11 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2015-06-27 12:54:11 +0000
commit683f16618521c66911dd06539b9e9435270de4fb (patch)
tree7d61b3e1ed0576b122e72f1a7f9244ea99379aba /devel/erlang-lager_syslog
parent721e168e9d060422da130abce2fc6e8b20781eed (diff)
downloadports-683f16618521c66911dd06539b9e9435270de4fb.tar.gz
ports-683f16618521c66911dd06539b9e9435270de4fb.zip
Notes
Diffstat (limited to 'devel/erlang-lager_syslog')
-rw-r--r--devel/erlang-lager_syslog/Makefile32
-rw-r--r--devel/erlang-lager_syslog/distinfo2
-rw-r--r--devel/erlang-lager_syslog/files/patch-rebar.config11
-rw-r--r--devel/erlang-lager_syslog/pkg-descr4
-rw-r--r--devel/erlang-lager_syslog/pkg-plist5
5 files changed, 54 insertions, 0 deletions
diff --git a/devel/erlang-lager_syslog/Makefile b/devel/erlang-lager_syslog/Makefile
new file mode 100644
index 000000000000..96719d0b2bf4
--- /dev/null
+++ b/devel/erlang-lager_syslog/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME= lager_syslog
+PORTVERSION= 2.1.1
+CATEGORIES= devel
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Syslog backend for Lager
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= erl:${PORTSDIR}/lang/erlang \
+ erlang-lager>=2.1.1:${PORTSDIR}/devel/erlang-lager \
+ erlang-syslog>=1.0.3:${PORTSDIR}/devel/erlang-syslog
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USE_GITHUB= yes
+GH_ACCOUNT= basho
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.org ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
+ ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
+
+.include <bsd.port.mk>
diff --git a/devel/erlang-lager_syslog/distinfo b/devel/erlang-lager_syslog/distinfo
new file mode 100644
index 000000000000..921dd450d414
--- /dev/null
+++ b/devel/erlang-lager_syslog/distinfo
@@ -0,0 +1,2 @@
+SHA256 (basho-lager_syslog-2.1.1_GH0.tar.gz) = 146c8bd3b72db3b975dc2626eba5603ee75da1ddea5a49b2898313b72390bc3f
+SIZE (basho-lager_syslog-2.1.1_GH0.tar.gz) = 100726
diff --git a/devel/erlang-lager_syslog/files/patch-rebar.config b/devel/erlang-lager_syslog/files/patch-rebar.config
new file mode 100644
index 000000000000..0503c093963a
--- /dev/null
+++ b/devel/erlang-lager_syslog/files/patch-rebar.config
@@ -0,0 +1,11 @@
+--- rebar.config.orig 2015-05-24 12:25:33 UTC
++++ rebar.config
+@@ -3,8 +3,6 @@
+ {cover_enabled, true}.
+
+ {deps, [
+- {lager, "2.1.*", {git, "git://github.com/basho/lager", {tag, "2.1.1"}}},
+- {'syslog', "1.0.*", {git, "git://github.com/Vagabond/erlang-syslog", {tag, "1.0.3"}}}
+ ]
+ }.
+
diff --git a/devel/erlang-lager_syslog/pkg-descr b/devel/erlang-lager_syslog/pkg-descr
new file mode 100644
index 000000000000..a56ab173bb11
--- /dev/null
+++ b/devel/erlang-lager_syslog/pkg-descr
@@ -0,0 +1,4 @@
+This is a syslog backend for Lager. It allows you to send messages out of
+lager and into the local syslog daemon.
+
+WWW: https://github.com/basho/lager_syslog
diff --git a/devel/erlang-lager_syslog/pkg-plist b/devel/erlang-lager_syslog/pkg-plist
new file mode 100644
index 000000000000..1548acd6c00a
--- /dev/null
+++ b/devel/erlang-lager_syslog/pkg-plist
@@ -0,0 +1,5 @@
+lib/erlang/lib/lager_syslog-%%VERSION%%/ebin/lager_syslog.app
+lib/erlang/lib/lager_syslog-%%VERSION%%/ebin/lager_syslog_backend.beam
+lib/erlang/lib/lager_syslog-%%VERSION%%/src/lager_syslog.app.src
+lib/erlang/lib/lager_syslog-%%VERSION%%/src/lager_syslog_backend.erl
+%%PORTDOCS%%%%DOCSDIR%%/README.org