Date: Fri, 24 Jun 2016 19:06:50 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r417444 - in head/net: . iipsrv iipsrv/files Message-ID: <201606241906.u5OJ6oCO037102@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Fri Jun 24 19:06:49 2016 New Revision: 417444 URL: https://svnweb.freebsd.org/changeset/ports/417444 Log: IIPImage is an advanced high-performance feature-rich image server system for web-based streamed viewing and zooming of ultra high-resolution images with low processor and memory requirements. The system can handle gigapixel size images as well as advanced image features such as 8/16/32 bits per channel, CIELAB colorimetric images and scientific imagery such as multispectral images and digital elevation maps. WWW: http://iipimage.sourceforge.net/ PR: 210437 Submitted by: me@skylord.ru Added: head/net/iipsrv/ head/net/iipsrv/Makefile (contents, props changed) head/net/iipsrv/distinfo (contents, props changed) head/net/iipsrv/files/ head/net/iipsrv/files/iipsrv.in (contents, props changed) head/net/iipsrv/pkg-descr (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Fri Jun 24 18:51:21 2016 (r417443) +++ head/net/Makefile Fri Jun 24 19:06:49 2016 (r417444) @@ -246,6 +246,7 @@ SUBDIR += ifstat SUBDIR += ifstated SUBDIR += igmpproxy + SUBDIR += iipsrv SUBDIR += ilbc SUBDIR += imapproxy SUBDIR += intel-ixl-kmod Added: head/net/iipsrv/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/iipsrv/Makefile Fri Jun 24 19:06:49 2016 (r417444) @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= iipsrv +PORTVERSION= 1.0 +DISTVERSIONPREFIX= ${PORTNAME}- +CATEGORIES= net + +MAINTAINER= me@skylord.ru +COMMENT= IIP (Internet Imaging Protocol) FastCGI server + +LICENSE= GPLv3 + +LIB_DEPENDS= libtiff.so:graphics/tiff + +USE_GITHUB= yes +GH_ACCOUNT= ruven + +USES= autoreconf jpeg libtool + +GNU_CONFIGURE= yes + +USE_RC_SUBR= ${PORTNAME} + +PLIST_FILES= bin/iipsrv.fcgi \ + man/man8/iipsrv.8.gz + +post-patch: + @${REINPLACE_CMD} -e 's|noinst_PROGRAMS|bin_PROGRAMS|g' \ + ${WRKSRC}/src/Makefile.am + @${REINPLACE_CMD} -e 's|include_HEADERS|noinst_HEADERS|g' \ + ${WRKSRC}/fcgi/Makefile.am + @${REINPLACE_CMD} -e 's|include_HEADERS|noinst_HEADERS|g' \ + ${WRKSRC}/fcgi/include/Makefile.am + +pre-configure: + @(cd ${WRKSRC} && ./autogen.sh) + +.include <bsd.port.mk> Added: head/net/iipsrv/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/iipsrv/distinfo Fri Jun 24 19:06:49 2016 (r417444) @@ -0,0 +1,2 @@ +SHA256 (ruven-iipsrv-iipsrv-1.0_GH0.tar.gz) = 9156e80a855b36c5c0eb0707a3ea0ba95ec3a52d118d548af51eb2ef9e5e2f85 +SIZE (ruven-iipsrv-iipsrv-1.0_GH0.tar.gz) = 553962 Added: head/net/iipsrv/files/iipsrv.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/iipsrv/files/iipsrv.in Fri Jun 24 19:06:49 2016 (r417444) @@ -0,0 +1,99 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: iipsrv +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable iipsrv: +# iipsrv_(instance_)?enable (bool): Set to "NO" by default. +# Set it to "YES" to enable iipsrv. +# iipsrv_(instance_)?flags (str): Custom additional arguments to be passed +# to iipsrv. Default to "--bind 127.0.0.1:9111". +# iipsrv_(instance_)?pidfile (str): Custum PID file path and name. +# Default to "/var/run/iipsrv.${instance}.pid". +# iipsrv_(instance_)?user (str): User to run iipsrv as +# Default to "nobody". +# iipsrv_(instance_)?config (str): Config file with environment +# variables (default empty). +# iipsrv_instances (str): Set to "" by default. +# If defined, list of instances to enable + +. /etc/rc.subr + +name="iipsrv" +rcvar=iipsrv_enable + +load_rc_config $name + +: ${iipsrv_enable="NO"} +: ${iipsrv_flags="--bind 127.0.0.1:9111"} +: ${iipsrv_pidfile="/var/run/iipsrv.pid"} +: ${iipsrv_user="nobody"} + +command="/usr/sbin/daemon" +procname="%%PREFIX%%/bin/iipsrv.fcgi" +start_precmd="${name}_prestart" + +if [ -n "$2" ]; then + instance="$2" + load_rc_config ${name}_${instance} + case "$iipsrv_instances" in + "$2 "*|*" $2 "*|*" $2"|"$2") + eval iipsrv_flags="\${iipsrv_${instance}_flags:-\"${iipsrv_flags}\"}" + eval iipsrv_config="\${iipsrv_${instance}_config:-\"${iipsrv_config}\"}" + eval iipsrv_user="\${iipsrv_${instance}_user:-\"${iipsrv_user}\"}" + eval iipsrv_pidfile="\${iipsrv_${instance}_pidfile:-\"/var/run/iipsrv.${instance}.pid\"}" + ;; + *) + err 1 "$2 not found in iipsrv_instances" ;; + esac +else + if [ -n "${iipsrv_instances}" -a -n "$1" ]; then + for instance in ${iipsrv_instances}; do + eval _enable="\${iipsrv_${instance}_enable}" + case "${_enable:-${iipsrv_enable}}" in + [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) + continue + ;; + [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) + ;; + *) + if [ -z "$_enable" ]; then + _var=iipsrv_enable + else + _var=iipsrv_${instance}_enable + fi + warn "Bad value" \ + "'${_enable:-${iipsrv_enable}}'" \ + "for ${_var}. " \ + "Instance ${instance} skipped." + continue + ;; + esac + echo "===> iipsrv instance: ${instance}" + if %%PREFIX%%/etc/rc.d/iipsrv $1 ${instance}; then + success="${instance} ${success}" + else + failed="${instance} (${retcode}) ${failed}" + fi + done + exit 0 + fi +fi + + +pidfile=$iipsrv_pidfile +daemon_user=$iipsrv_user +iipsrv_flags="-p ${iipsrv_pidfile} -u ${daemon_user} ${procname} ${iipsrv_flags}" +iipsrv_user="" + +iipsrv_prestart() +{ + if [ -n "${iipsrv_config}" -a -r ${iipsrv_config} ]; then + command="/usr/bin/env `grep -v '\s*#' ${iipsrv_config} | tr '\n' ' '` ${command}" + fi +} + +run_rc_command "$1" Added: head/net/iipsrv/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/iipsrv/pkg-descr Fri Jun 24 19:06:49 2016 (r417444) @@ -0,0 +1,9 @@ +IIPImage is an advanced high-performance feature-rich image +server system for web-based streamed viewing and zooming of +ultra high-resolution images with low processor and memory +requirements. The system can handle gigapixel size images as +well as advanced image features such as 8/16/32 bits per +channel, CIELAB colorimetric images and scientific imagery +such as multispectral images and digital elevation maps. + +WWW: http://iipimage.sourceforge.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606241906.u5OJ6oCO037102>