From nobody Fri Aug 23 03:51:10 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WqmML74Cpz5VBsb; Fri, 23 Aug 2024 03:51:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WqmML662fz3xGZ; Fri, 23 Aug 2024 03:51:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724385070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zqyTUNgh0hDtNvfVLRas9kc5d5DIrboADbuVc81HdqI=; b=A7kb6ywPJf7an/rUPqbpieI735gmZS4byma/Zz958kLgU07am6f4lSdqrtlDbl8FI7x1wd xMoACt9Yh2aRq2OzDedbrseExls4dJx4EvTOz2grINl+QaUdiZwKM2ZD1dZdrFghRCoYt7 a9Q+DfZTGUaQqhSdTEZVR5Yq1WM1e7311r0KbjBLwQ6aNuDLoHFTpZdGIaXYuFpoac1ybh u1qIdl3cxbMuXHccHJwYfgwibfEob7OO8QlDJvLdVq74BGagctP7z4B4KqSmttAUnr8fMg XumpnHBHl+ZZk/135GAl2tMA6WsNCOja6g6FE8srXezGrN1OPPkuYBhU4KHvqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724385070; a=rsa-sha256; cv=none; b=Wy072HYIsq+rlPPmSGAXTpw0uJ8xuAUy0vnIHLmtNACYYhJmxGff/eQ6hE2pE7dN0QLBAo 9gV189jrasM52y2VYYwui2YSwOD3BTG2obZwSevFs6CCdG6RN90qF1vsscCcIp7yQikch1 RnLUfwv5VQxPWx//bZs7774R0kMsCGcoJoPNzpos17yCoH2c2VOfGBCyTmNxIx/kxlAZf0 hdkO7MK/1QNWfCjbIx7gXl3/JKc64zmd2NMSpcEEob6aJn+gN1wvwon8nbk4ccODCyir88 RRCxMZ0WOQVl5WQllYG/3j8sknmSVkL9z84GU3wutf1OWkH5EEBm2i4eeLQMHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724385070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zqyTUNgh0hDtNvfVLRas9kc5d5DIrboADbuVc81HdqI=; b=gU8FksqE/ORUL0XBeJ3cRKErft2JrpTKjfT0w9juejO4mjfQU+/nMrIh5790RjpIxR0dHo 8PH2VkUm5VT/xnP8Z1ZNOZTvdiFh7MinwhyFDTDqz7r2b4PfBgJesmw36Ug9tnktxAQjSj /Xgd+DmRV/n2zzD7azasUkQlRgKEFzDF8w7WUmsSJZBgK3N2ywrqCEPSc5MKb9Og5sM5LB s/6x4pzMEUBqZq26pl9ZpaPbyI2EninagL/HIsZQQZgu6ckOVggD7OjHpDbzdUfMHod/K6 l8W1vk9RHZETHx+LxU7q0jM60WZIh7QUUXP+DQv9dWHUfp1fVZYqg879nCWdrQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WqmML5Gkyzw5q; Fri, 23 Aug 2024 03:51:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47N3pAj5074602; Fri, 23 Aug 2024 03:51:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47N3pApU074585; Fri, 23 Aug 2024 03:51:10 GMT (envelope-from git) Date: Fri, 23 Aug 2024 03:51:10 GMT Message-Id: <202408230351.47N3pApU074585@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Gabriel M. Dutra" Subject: git: f9ecfbda7dce - main - www/py-searxng-devel: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dutra X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f9ecfbda7dceb7ffa5b3aae43035118401ff6826 Auto-Submitted: auto-generated The branch main has been updated by dutra: URL: https://cgit.FreeBSD.org/ports/commit/?id=f9ecfbda7dceb7ffa5b3aae43035118401ff6826 commit f9ecfbda7dceb7ffa5b3aae43035118401ff6826 Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2024-08-23 03:47:32 +0000 Commit: Gabriel M. Dutra CommitDate: 2024-08-23 03:49:57 +0000 www/py-searxng-devel: Add new port SearXNG is a free internet metasearch engine PR: 278972 --- www/Makefile | 1 + www/py-searxng-devel/Makefile | 57 +++++++++++++++++++++++++++++++++++ www/py-searxng-devel/distinfo | 3 ++ www/py-searxng-devel/files/searxng.in | 46 ++++++++++++++++++++++++++++ www/py-searxng-devel/pkg-descr | 4 +++ www/py-searxng-devel/pkg-message | 8 +++++ www/py-searxng-devel/pkg-plist | 1 + 7 files changed, 120 insertions(+) diff --git a/www/Makefile b/www/Makefile index 06b9c69c555d..94798e02dd65 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1813,6 +1813,7 @@ SUBDIR += py-scrapy SUBDIR += py-seafdav SUBDIR += py-seafobj + SUBDIR += py-searxng-devel SUBDIR += py-secure-cookie SUBDIR += py-selector SUBDIR += py-selenium diff --git a/www/py-searxng-devel/Makefile b/www/py-searxng-devel/Makefile new file mode 100644 index 000000000000..e7108a1eac90 --- /dev/null +++ b/www/py-searxng-devel/Makefile @@ -0,0 +1,57 @@ +PORTNAME= searxng +DISTVERSION= 20240819 +CATEGORIES= www python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= -devel + +MAINTAINER= DtxdF@disroot.org +COMMENT= Free internet metasearch engine +WWW= https://docs.searxng.org/ + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}fasttext-predict>=0:textproc/py-fasttext-predict@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flask-babel>=0:devel/py-flask-babel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flask>=0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx-socks>=0:www/py-httpx-socks@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}langdetect>=0:textproc/py-langdetect@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}markdown-it-py>=0:textproc/py-markdown-it-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}python-dateutil>=0:devel/py-python-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytomlpp>=0:textproc/py-pytomlpp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}redis>=0:databases/py-redis@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setproctitle>=0:devel/py-setproctitle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}uvloop>=0:devel/py-uvloop@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +GH_TAGNAME= c0369ee48812451d40f331de80d388841a8bcf77 +USE_PYTHON= autoplist distutils +USE_RC_SUBR= searxng + +CONFLICTS= searx + +NO_ARCH= yes + +SUB_FILES= searxng +SUB_LIST= PYTHON_CMD=${PYTHON_CMD} + +post-patch: # expect dependencies to be backwards-compatible, otherwise it is difficult to have a port + @${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements.txt + +post-install: +# move settings to etc/ /usr/local/lib/python3.x/site-packages/searx/settings.yml + @${MV} ${STAGEDIR}${PYTHON_SITELIBDIR}/searx/settings.yml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.yml.sample + @${LN} -s ${PREFIX}/etc/${PORTNAME}.yml ${STAGEDIR}${PYTHON_SITELIBDIR}/searx/settings.yml + +.include diff --git a/www/py-searxng-devel/distinfo b/www/py-searxng-devel/distinfo new file mode 100644 index 000000000000..ddf74effe77f --- /dev/null +++ b/www/py-searxng-devel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724070743 +SHA256 (searxng-searxng-20240819-c0369ee48812451d40f331de80d388841a8bcf77_GH0.tar.gz) = bad2074397364c9dfe4a8e1e6e4670bd01c2d3208005ba0b4a0348531dbdbc01 +SIZE (searxng-searxng-20240819-c0369ee48812451d40f331de80d388841a8bcf77_GH0.tar.gz) = 4701096 diff --git a/www/py-searxng-devel/files/searxng.in b/www/py-searxng-devel/files/searxng.in new file mode 100644 index 000000000000..43e7fa3bc86d --- /dev/null +++ b/www/py-searxng-devel/files/searxng.in @@ -0,0 +1,46 @@ +#!/bin/sh + +# PROVIDE: searxng +# REQUIRE: DAEMON NETWORKING +# BEFORE: LOGIN +# KEYWORD: shutdown +# +# Configuration settings for searxng in /etc/rc.conf +# +# searxng_enable (bool): Enable searxng. (Default=NO) +# searxng_user (str): User to run searxng as. (Default=www) +# searxng_group (str): Group to run searxng as. (Default=www) +# searxng_env (str): Environment variables. +# (Default=SEARXNG_SETTINGS_PATH="%%PREFIX%%/etc/searxng.yml") +# searxng_log (str): Log file used to store the searxng's output. +# (Default=/var/log/searxng.log) + +. /etc/rc.subr + +name="searxng" +rcvar=searxng_enable + +: ${searxng_enable:="NO"} +: ${searxng_user:="www"} +: ${searxng_group:="www"} +: ${searxng_env:="SEARXNG_SETTINGS_PATH=\"%%PREFIX%%/etc/searxng.yml\""} +: ${searxng_log:="/var/log/searxng.log"} + +# daemon +pidfile="/var/run/${name}.pid" +command=/usr/sbin/daemon +procname="daemon" +command_args=" -c -o ${searxng_log} -P ${pidfile} %%PYTHON_CMD%% %%PREFIX%%/bin/searxng-run" +start_precmd="searxng_precmd" + +searxng_precmd() +{ + install -o ${searxng_user} /dev/null ${pidfile} + + if [ ! -f "${searxng_log}" ]; then + install -o ${searxng_user} -m 640 /dev/null "${searxng_log}" + fi +} + +load_rc_config $name +run_rc_command "$1" diff --git a/www/py-searxng-devel/pkg-descr b/www/py-searxng-devel/pkg-descr new file mode 100644 index 000000000000..c3d0e1530969 --- /dev/null +++ b/www/py-searxng-devel/pkg-descr @@ -0,0 +1,4 @@ +SearXNG is a free internet metasearch engine which aggregates results +from more than 70 search services. Users are neither tracked nor +profiled. Additionally, SearXNG can be used over Tor for online +anonymity. diff --git a/www/py-searxng-devel/pkg-message b/www/py-searxng-devel/pkg-message new file mode 100644 index 000000000000..6d8a3815fec0 --- /dev/null +++ b/www/py-searxng-devel/pkg-message @@ -0,0 +1,8 @@ +[ +{ type: install + message: <