ports/178799: [Patch] Add 3rd party StatsD Module to Nginx port
Dan Rowe
draco2003 at gmail.com
Tue May 21 01:30:00 UTC 2013
>Number: 178799
>Category: ports
>Synopsis: [Patch] Add 3rd party StatsD Module to Nginx port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue May 21 01:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Dan Rowe
>Release: 9.1-RELEASE
>Organization:
>Environment:
FreeBSD ssd.dracosplace.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
All of the current Nginx Modules we use are already included in the Nginx port, except for the StatsD module from Zebrafishlabs : https://github.com/zebrafishlabs/nginx-statsd
It would be great to get this added so that people no longer have to compile it themselves.
>How-To-Repeat:
>Fix:
Apply patch and select the statsd module option before compiling
Patch attached with submission follows:
diff -u nginx_orig/Makefile nginx/Makefile
--- nginx_orig/Makefile 2013-05-20 17:53:19.000000000 -0700
+++ nginx/Makefile 2013-05-20 18:12:49.000000000 -0700
@@ -92,6 +92,7 @@
SET_MISC \
SFLOW \
SLOWFS_CACHE \
+ STATSD \
SRCACHE \
SUPERVISORD \
SYSLOG_SUPPORT \
@@ -180,6 +181,7 @@
SET_MISC_DESC= 3rd party set_misc module
SFLOW_DESC= 3rd party sflow module
SLOWFS_CACHE_DESC= 3rd party slowfs_cache module
+STATSD_DESC= 3rd party statsd module
SRCACHE_DESC= 3rd party srcache module
SUPERVISORD_DESC= 3rd party supervisord module
SYSLOG_SUPPORT_DESC= 3rd party syslog support
@@ -725,6 +727,14 @@
CONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_slowfs_cache-${NGINX_SLOWFS_CACHE_VERSION}
.endif
+.if ${PORT_OPTIONS:MSTATSD}
+GIT_STATSD_VERSION= f47c634
+FETCH_ARGS= -pRr
+MASTER_SITES+= https://github.com/zebrafishlabs/nginx-statsd/tarball/master/:statsd
+DISTFILES+= zebrafishlabs-nginx-statsd-${GIT_STATSD_VERSION}.tar.gz:statsd
+CONFIGURE_ARGS+=--add-module=${WRKDIR}/zebrafishlabs-nginx-statsd-${GIT_STATSD_VERSION}
+.endif
+
.if ${PORT_OPTIONS:MSRCACHE}
NGINX_SRCACHE_VERSION= 0.20
GIT_SRCACHE_VERSION= 0-gfb4b659
diff -u nginx_orig/distinfo nginx/distinfo
--- nginx_orig/distinfo 2013-05-20 17:53:19.000000000 -0700
+++ nginx/distinfo 2013-05-20 18:13:49.000000000 -0700
@@ -108,3 +108,5 @@
SIZE (calio-form-input-nginx-module-v0.07-0-g78de845.tar.gz) = 10580
SHA256 (calio-iconv-nginx-module-v0.10-0-gb37efb5.tar.gz) = e90a406a14d5f419bd500e19082da81390e8ba6040926857926f1a899a53379d
SIZE (calio-iconv-nginx-module-v0.10-0-gb37efb5.tar.gz) = 12510
+SHA256 (zebrafishlabs-nginx-statsd-f47c634.tar.gz) = 28c2234b923440c5d7ee0d4c93ae3a77962582cee5ceae98b4f078c83d60e8fb
+SIZE (zebrafishlabs-nginx-statsd-f47c634.tar.gz) = 6797
Common subdirectories: nginx_orig/files and nginx/files
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list