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@unix-experience.fr>
This commit is contained in:
Kurt Jaeger 2016-04-24 09:32:51 +00:00
parent c68cd6d1be
commit 3c5ec6428e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413931
5 changed files with 88 additions and 0 deletions

View File

@ -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

35
www/py-searx/Makefile Normal file
View File

@ -0,0 +1,35 @@
# Created by: Loic Blot <loic.blot@unix-experience.fr>
# $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 <bsd.port.mk>

2
www/py-searx/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (asciimoo-searx-v0.8.1_GH0.tar.gz) = 62cc8faa4aca47e7099f0cd85eff26f5cdaff4bf4ac0dc8b3f3cd315914d1a7c
SIZE (asciimoo-searx-v0.8.1_GH0.tar.gz) = 1104093

View File

@ -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"

3
www/py-searx/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
A privacy-respecting, hackable metasearch engine.
WWW: https://github.com/asciimoo/searx