ports/185816: Please add 3th party module to www/nginx
Takashi Kato
townwear at gmail.com
Thu Jan 16 06:50:00 UTC 2014
>Number: 185816
>Category: ports
>Synopsis: Please add 3th party module to www/nginx
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 16 06:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Takashi Kato
>Release: 9.2-RELEASE amd64
>Organization:
>Environment:
FreeBSD 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Sun Jan 12 20:11:23 UTC 2014 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Please add 3th party module: https://github.com/cubicdaiya/ngx_small_light/to nginx (and nginx-devel)
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN nginx.orig/Makefile nginx/Makefile
--- nginx.orig/Makefile 2014-01-16 10:49:34.000000000 +0900
+++ nginx/Makefile 2014-01-16 15:40:31.000000000 +0900
@@ -95,6 +95,7 @@
SET_MISC \
SFLOW \
SLOWFS_CACHE \
+ SMALL_LIGHT \
SRCACHE \
SUPERVISORD \
SYSLOG_SUPPORT \
@@ -184,6 +185,7 @@
RTMP_DESC= 3rd party rtmp module
SET_MISC_DESC= 3rd party set_misc module
SFLOW_DESC= 3rd party sflow module
+SMALL_LIGHT_DESC= 3rd party image transformation module
SLOWFS_CACHE_DESC= 3rd party slowfs_cache module
SRCACHE_DESC= 3rd party srcache module
SUPERVISORD_DESC= 3rd party supervisord module
@@ -781,6 +783,14 @@
CONFIGURE_ARGS+=--with-http_spdy_module
.endif
+.if ${PORT_OPTIONS:MSMALL_LIGHT}
+LIB_DEPENDS+= libMagickWand.so:${PORTSDIR}/graphics/ImageMagick
+NGINX_SMALL_LIGHT_VERSION= 0.5.0
+MASTER_SITES+= https://github.com/cubicdaiya/ngx_small_light/archive/v${NGINX_SMALL_LIGHT_VERSION}/:small_light
+DISTFILES+= ngx_small_light-${NGINX_SMALL_LIGHT_VERSION}.tar.gz:small_light
+CONFIGURE_ARGS+=--add-module=${WRKDIR}/ngx_small_light-${NGINX_SMALL_LIGHT_VERSION}
+.endif
+
.if ${PORT_OPTIONS:MWWW}
PLIST_SUB+= WWWDATA=""
.else
@@ -966,6 +976,10 @@
CC="${CC}" ./${CONFIGURE_SCRIPT} --enable-standalone-module && \
${MAKE} )
.endif
+.if ${PORT_OPTIONS:MSMALL_LIGHT}
+ ( cd ${WRKDIR}/ngx_small_light-${NGINX_SMALL_LIGHT_VERSION} && \
+ ./setup )
+.endif
do-build:
@cd ${WRKSRC} && ${MAKE}
diff -ruN nginx.orig/distinfo nginx/distinfo
--- nginx.orig/distinfo 2014-01-16 10:49:34.000000000 +0900
+++ nginx/distinfo 2014-01-16 14:07:59.000000000 +0900
@@ -112,3 +112,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 (ngx_small_light-0.5.0.tar.gz) = dcfbdb489c1627d87bc6bff961af33f55a2929c79c52a6021859483a48cc8fa9
+SIZE (ngx_small_light-0.5.0.tar.gz) = 47989
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list