svn commit: r413931 - in head/www: . py-searx py-searx/files
Kurt Jaeger
pi at FreeBSD.org
Sun Apr 24 09:32:53 UTC 2016
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 <loic.blot at unix-experience.fr>
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 <loic.blot at unix-experience.fr>
+# $FreeBSD$
+
+PORTNAME= searx
+PORTVERSION= 0.8.1
+DISTVERSIONPREFIX= v
+CATEGORIES= www python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= lblot at 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 <bsd.port.mk>
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
More information about the svn-ports-head
mailing list