summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2017-06-10 16:08:06 +0000
committertaca <taca@pkgsrc.org>2017-06-10 16:08:06 +0000
commit5d9b904f41ba5896945c860b380f6343e0530e86 (patch)
treef826e6deee4e3c8f0257cab2f5ed75113cea6291 /sysutils
parent6b50adda9f0c261eee2c7a078ced02a87ebaaee3 (diff)
downloadpkgsrc-5d9b904f41ba5896945c860b380f6343e0530e86.tar.gz
Add ruby-syslog-logger package version 1.6.8.
Logger::Syslog is a Logger replacement that logs to syslog. It is almost drop-in with a few caveats. You can add Logger::Syslog to your Rails production environment to aggregate logs between multiple machines. NOTE! You can only set the Logger::Syslog program name and facility when you initialize Logger::Syslog for the first time. This is a limitation of the way Logger::Syslog uses syslog (and in some ways, a limitation of the way syslog(3) works). Attempts to change Logger::Syslog's program name or facility after the first initialization will be ignored. This particular Logger::Syslog improves the original by correctly mapping Rails log severities to the Syslog counterparts. It also adds the ability to select a syslog facility other than "user."
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/ruby-syslog-logger/DESCR12
-rw-r--r--sysutils/ruby-syslog-logger/Makefile12
-rw-r--r--sysutils/ruby-syslog-logger/PLIST6
-rw-r--r--sysutils/ruby-syslog-logger/distinfo6
4 files changed, 36 insertions, 0 deletions
diff --git a/sysutils/ruby-syslog-logger/DESCR b/sysutils/ruby-syslog-logger/DESCR
new file mode 100644
index 00000000000..7f32d4a0d56
--- /dev/null
+++ b/sysutils/ruby-syslog-logger/DESCR
@@ -0,0 +1,12 @@
+Logger::Syslog is a Logger replacement that logs to syslog. It is almost drop-in
+with a few caveats. You can add Logger::Syslog to your Rails production
+environment to aggregate logs between multiple machines.
+
+NOTE! You can only set the Logger::Syslog program name and facility when you initialize
+Logger::Syslog for the first time. This is a limitation of the way Logger::Syslog
+uses syslog (and in some ways, a limitation of the way syslog(3) works).
+Attempts to change Logger::Syslog's program name or facility after the first initialization
+will be ignored.
+
+This particular Logger::Syslog improves the original by correctly mapping Rails log severities to
+the Syslog counterparts. It also adds the ability to select a syslog facility other than "user."
diff --git a/sysutils/ruby-syslog-logger/Makefile b/sysutils/ruby-syslog-logger/Makefile
new file mode 100644
index 00000000000..af57db239fd
--- /dev/null
+++ b/sysutils/ruby-syslog-logger/Makefile
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2017/06/10 16:08:06 taca Exp $
+
+DISTNAME= syslog-logger-1.6.8
+CATEGORIES= sysutils
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/ngmoco/syslog_logger
+COMMENT= Improved Logger replacement that logs to syslog
+LICENSE= mit
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/ruby-syslog-logger/PLIST b/sysutils/ruby-syslog-logger/PLIST
new file mode 100644
index 00000000000..869cf9c6643
--- /dev/null
+++ b/sysutils/ruby-syslog-logger/PLIST
@@ -0,0 +1,6 @@
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/README.rdoc
+${GEM_LIBDIR}/lib/syslog-formatter.rb
+${GEM_LIBDIR}/lib/syslog-logger.rb
+${GEM_LIBDIR}/test/test_syslog_logger.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/sysutils/ruby-syslog-logger/distinfo b/sysutils/ruby-syslog-logger/distinfo
new file mode 100644
index 00000000000..257bf7bd557
--- /dev/null
+++ b/sysutils/ruby-syslog-logger/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/06/10 16:08:06 taca Exp $
+
+SHA1 (syslog-logger-1.6.8.gem) = 9b5873533bfedaac7a8c1dc1865dd4c43ea13619
+RMD160 (syslog-logger-1.6.8.gem) = a292df72ae85c5d796cbdd25e5f16cf5b6e2b96b
+SHA512 (syslog-logger-1.6.8.gem) = e7bff30d61925fc53e0a4c01d723f5da4bce5dc87b7f62a22f805be4955239c75f1208d334e07f42fbbc15ea2ccc5950b5333cd00b085566942d6e931092dce8
+Size (syslog-logger-1.6.8.gem) = 9216 bytes