View | Details | Raw Unified | Return to bug 226055 | Differences between
and this patch

Collapse All | Expand All

(-)www/py-searx/Makefile (-20 / +25 lines)
Lines 2-37 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	searx
4
PORTNAME=	searx
5
PORTVERSION=	0.12.0
5
DISTVERSION=	0.14.0
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	www python
6
CATEGORIES=	www python
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
9
10
MAINTAINER=	loic.blot@unix-experience.fr
10
MAINTAINER=	loic.blot@unix-experience.fr
11
COMMENT=	Searx / a privacy-respecting, hackable metasearch engine
11
COMMENT=	Privacy-respecting, hackable metasearch engine
12
12
13
LICENSE=	AGPLv3
13
LICENSE=	AGPLv3
14
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=2.5.0:devel/py-dateutil@${FLAVOR} \
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}Flask-Babel>=0.11.1:devel/py-flask-babel@${FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}lxml>=3.6.0:devel/py-lxml@${FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}Flask-Babel>0:devel/py-flask-babel@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.4.1:net/py-ndg_httpsclient@${FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}openssl>=0.15.1:security/py-openssl@${FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>0:net/py-ndg_httpsclient@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}pygments>=2.1.3:textproc/py-pygments@${FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}Flask>=0.11.1:www/py-flask@${FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}requests>=2.10:www/py-requests@${FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}splinter>0:www/py-splinter@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}certifi>=2016.2.28:security/py-certifi@${FLAVOR}
25
		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${PY_FLAVOR}
26
27
28
USES=		python
29
USE_PYTHON=	distutils autoplist noflavors
30
NO_ARCH=	yes
27
USE_RC_SUBR=	searx
31
USE_RC_SUBR=	searx
28
32
29
USE_GITHUB=	yes
33
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
30
GH_ACCOUNT=	asciimoo
31
GH_PROJECT=	searx
32
34
33
USES=		python
35
post-patch: # expect dependencies to be backwards-compatible, otherwise it is difficult to have a port
34
NO_ARCH=	yes
36
	@${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements.txt
35
USE_PYTHON=	autoplist distutils concurrent
36
37
38
post-install: # workaround for https://github.com/asciimoo/searx/issues/1208
39
	@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/tests
40
	@${REINPLACE_CMD} -e 's|.*/tests/.*||' ${_PYTHONPKGLIST}
41
37
.include <bsd.port.mk>
42
.include <bsd.port.mk>
(-)www/py-searx/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1496607289
1
TIMESTAMP = 1519173150
2
SHA256 (asciimoo-searx-v0.12.0_GH0.tar.gz) = afb2f8acd82b31dd9305a06b26dfb61985b5ccbfd1d94f711764b2fa7b4b57f4
2
SHA256 (searx-0.14.0.tar.gz) = 0efa8e6359e933dc63f6922e201bdd7b21c30f7ed43edb308a2312e57b45dc83
3
SIZE (asciimoo-searx-v0.12.0_GH0.tar.gz) = 1315894
3
SIZE (searx-0.14.0.tar.gz) = 1591201
(-)www/py-searx/files/searx.in (-2 / +2 lines)
Lines 31-38 Link Here
31
31
32
# daemon
32
# daemon
33
searx_pidfile="/var/run/${name}.pid"
33
searx_pidfile="/var/run/${name}.pid"
34
python="%%PREFIX%%/bin/python2.7"
34
python="%%PYTHON_CMD%%"
35
procname="%%PREFIX%%/lib/python2.7/site-packages/${name}/webapp.py"
35
procname="%%PYTHON_SITELIBDIR%%/${name}/webapp.py"
36
command=/usr/sbin/daemon
36
command=/usr/sbin/daemon
37
command_args=" -c -f -P ${searx_pidfile} ${python} ${procname}"
37
command_args=" -c -f -P ${searx_pidfile} ${python} ${procname}"
38
start_precmd="searx_precmd"
38
start_precmd="searx_precmd"
(-)www/py-searx/pkg-descr (-1 / +17 lines)
Lines 1-3 Link Here
1
A privacy-respecting, hackable metasearch engine.
1
Searx is a free internet metasearch engine which aggregates results
2
from more than 70 search services. Users are neither tracked nor profiled.
3
Additionally, searx can be used over Tor for online anonymity.
2
4
5
Get started with searx by using one of the public instances. If you don't
6
trust anyone, you can set up your own service.
7
8
Features:
9
* Self hosted
10
* No user tracking
11
* No user profiling
12
* About 70 supported search engines
13
* Easy integration with any search engine
14
* Cookies are not used by default
15
* Secure, encrypted connections (HTTPS/SSL)
16
* Hosted by organisations, such as La Quadrature du Net, which promote
17
  digital rights
18
3
WWW: https://github.com/asciimoo/searx
19
WWW: https://github.com/asciimoo/searx

Return to bug 226055