From owner-svn-ports-all@freebsd.org Sun Apr 24 09:32:53 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F1ABB199F5; Sun, 24 Apr 2016 09:32:53 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5AB9B175B; Sun, 24 Apr 2016 09:32:53 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3O9Wqnq048009; Sun, 24 Apr 2016 09:32:52 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3O9WqpT048004; Sun, 24 Apr 2016 09:32:52 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201604240932.u3O9WqpT048004@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sun, 24 Apr 2016 09:32:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r413931 - in head/www: . py-searx py-searx/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2016 09:32:53 -0000 Author: pi Date: Sun Apr 24 09:32:51 2016 New Revision: 413931 URL: https://svnweb.freebsd.org/changeset/ports/413931 Log: New port: www/py-searx A privacy-respecting, hackable metasearch engine. WWW: https://github.com/asciimoo/searx PR: 208915 Submitted by: Loic BLOT Added: head/www/py-searx/ head/www/py-searx/Makefile (contents, props changed) head/www/py-searx/distinfo (contents, props changed) head/www/py-searx/files/ head/www/py-searx/files/searx.in (contents, props changed) head/www/py-searx/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sun Apr 24 09:29:54 2016 (r413930) +++ head/www/Makefile Sun Apr 24 09:32:51 2016 (r413931) @@ -1770,6 +1770,7 @@ SUBDIR += py-scriptaculous SUBDIR += py-seafdav SUBDIR += py-seafobj + SUBDIR += py-searx SUBDIR += py-selector SUBDIR += py-selenium SUBDIR += py-slimit Added: head/www/py-searx/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-searx/Makefile Sun Apr 24 09:32:51 2016 (r413931) @@ -0,0 +1,35 @@ +# Created by: Loic Blot +# $FreeBSD$ + +PORTNAME= searx +PORTVERSION= 0.8.1 +DISTVERSIONPREFIX= v +CATEGORIES= www python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= lblot@unix-experience.fr +COMMENT= Searx / a privacy-respecting, hackable metasearch engine + +LICENSE= AGPLv3 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil \ + ${PYTHON_PKGNAMEPREFIX}Flask-Babel>0:devel/py-flask-babel \ + ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml \ + ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \ + ${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>0:net/py-ndg_httpsclient \ + ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl \ + ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments \ + ${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug + +USE_RC_SUBR= searx + +USE_GITHUB= yes +GH_ACCOUNT= asciimoo +GH_PROJECT= searx + +USES= python +USE_PYTHON= autoplist distutils concurrent + +.include Added: head/www/py-searx/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-searx/distinfo Sun Apr 24 09:32:51 2016 (r413931) @@ -0,0 +1,2 @@ +SHA256 (asciimoo-searx-v0.8.1_GH0.tar.gz) = 62cc8faa4aca47e7099f0cd85eff26f5cdaff4bf4ac0dc8b3f3cd315914d1a7c +SIZE (asciimoo-searx-v0.8.1_GH0.tar.gz) = 1104093 Added: head/www/py-searx/files/searx.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-searx/files/searx.in Sun Apr 24 09:32:51 2016 (r413931) @@ -0,0 +1,47 @@ +#!/bin/sh +# $FreeBSD$ + +# PROVIDE: searx +# REQUIRE: DAEMON NETWORKING +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable searx: +# searx_enable="YES" +# +# searx_enable (bool): Set to YES to enable searx +# Default: NO +# searx_conf (str): searx configuration file +# Default: ${PREFIX}/etc/searx.conf +# searx_user (str): searx daemon user +# Default: searx +# searx_group (str): searx daemon group +# Default: searx +# searx_flags (str): Extra flags passed to searx + +. /etc/rc.subr + +name="searx" +rcvar=searx_enable + +: ${searx_enable:="NO"} +: ${searx_user:="www"} +: ${searx_group:="www"} +: ${searx_flags:=""} + +# daemon +searx_pidfile="/var/run/${name}.pid" +python="%%PREFIX%%/bin/python2.7" +procname="%%PREFIX%%/lib/python2.7/site-packages/${name}/webapp.py" +command=/usr/sbin/daemon +command_args=" -c -f -P ${searx_pidfile} ${python} ${procname}" +start_precmd="searx_precmd" + +searx_precmd() +{ + install -o ${searx_user} /dev/null ${searx_pidfile} +} + +load_rc_config $name +run_rc_command "$1" + Added: head/www/py-searx/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-searx/pkg-descr Sun Apr 24 09:32:51 2016 (r413931) @@ -0,0 +1,3 @@ +A privacy-respecting, hackable metasearch engine. + +WWW: https://github.com/asciimoo/searx