From patchwork Sun Feb 19 00:29:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 47116 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C1C5916454; Sun, 19 Feb 2023 00:30:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D1F0216454 for ; Sun, 19 Feb 2023 00:30:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTXae-0001Xp-Hk; Sat, 18 Feb 2023 19:30:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTXad-0001XZ-Pd for guix-patches@gnu.org; Sat, 18 Feb 2023 19:30:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTXad-0000AX-7p for guix-patches@gnu.org; Sat, 18 Feb 2023 19:30:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTXac-0007nS-Tm for guix-patches@gnu.org; Sat, 18 Feb 2023 19:30:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59355] [PATCH v1] gnu: Add dataparksearch. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Feb 2023 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59355 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 59355@debbugs.gnu.org X-Debbugs-Original-Cc: 59355@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 59355-submit@debbugs.gnu.org id=B59355.167676659729920 (code B ref 59355); Sun, 19 Feb 2023 00:30:02 +0000 Received: (at 59355) by debbugs.gnu.org; 19 Feb 2023 00:29:57 +0000 Received: from localhost ([127.0.0.1]:45223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTXaW-0007mW-Tg for submit@debbugs.gnu.org; Sat, 18 Feb 2023 19:29:57 -0500 Received: from knopi.disroot.org ([178.21.23.139]:35380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTXaU-0007mL-NE for 59355@debbugs.gnu.org; Sat, 18 Feb 2023 19:29:56 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DBB5E44562; Sun, 19 Feb 2023 01:29:52 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MlvJGr1ZSW_d; Sun, 19 Feb 2023 01:29:51 +0100 (CET) Message-ID: <62129599-010b-9ca4-e254-167b2980699e@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1676766591; bh=V+k+DIMNbDL3Yaly7WDGn51fE4UKoM9agHWxfiz8K2Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=NtiT4WS8SESFxiWaXY+t6oALeziHcPL1j1ZKdFMjKheK/8YjuXQYjTzxu764Uvmz/ C+EOPMIP9nAHO/usd0TPeoCZ/EuZHe1n0P3AdbYjzvVFPlBUc1gHpyNqz8J6RIrOrW 1GpeKqQhGOg30wpqWUxKD1AlP30sjCmjvG6DMuYZ0Zx7UacEAsZKyNaqvqyNLaaALZ xLKPKAFApEgAHIQRmu1Sgayirmb/PHbHZthsm2Zrku1IWRgkzYgBK2FcDo7vzMGJ3W +q/GsQJMQ5/u0f4clR3tsE0eu25buKA8A0sqW9c0PeC7rcBpJCYDkKW9JXDx5XazmS iP9BFLv565zkg== Date: Sun, 19 Feb 2023 08:29:44 +0800 MIME-Version: 1.0 References: <9ff6c39e-933b-d16e-3e3f-ad62c4a09f54@disroot.org> <87y1ovbvfd.fsf@nckx> Content-Language: en-US In-Reply-To: <87y1ovbvfd.fsf@nckx> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 10067c9599d06ea2518b0adb561eaf2f825ae1a5 Mon Sep 17 00:00:00 2001 Message-Id: <10067c9599d06ea2518b0adb561eaf2f825ae1a5.1676766217.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Fri, 18 Nov 2022 08:55:02 +0800 Subject: [PATCH 1/6] gnu: Add dataparksearch. * gnu/packages/search.scm (dataparksearch): New variable. --- gnu/packages/search.scm | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) + (define-public fsearch (package (name "fsearch") base-commit: 08edbd2535ae622d319a51e6f877d23d75dc24f3 prerequisite-patch-id: 66a677452cec5da7e4db37327b344d02556968f6 prerequisite-patch-id: e13c3b4b4ed06ce521ff679ec64e3cd816183388 prerequisite-patch-id: 1eb4d567a14802495169b3e400e02de0b4941729 diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index fe69fd3775..262f63821d 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -40,6 +40,7 @@ (define-module (gnu packages search) #:use-module (guix build-system python) #:use-module (guix build-system meson) #:use-module (gnu packages) + #:use-module (gnu packages adns) #:use-module (gnu packages aspell) #:use-module (gnu packages autotools) #:use-module (gnu packages base) @@ -51,6 +52,7 @@ (define-module (gnu packages search) #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnunet) #:use-module (gnu packages groff) #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) @@ -67,6 +69,7 @@ (define-module (gnu packages search) #:use-module (gnu packages qt) #:use-module (gnu packages sphinx) #:use-module (gnu packages time) + #:use-module (gnu packages tls) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) @@ -328,6 +331,58 @@ (define-public bool for parsing HTML files.") (license license:gpl3+))) +(define-public dataparksearch + (let ((commit "8efa28f31ce1273c0556fd5c7e06abe955197a69") + (revision "0")) + (package + (name "dataparksearch") + (version (string-append "4.54" revision "." (string-take commit 7) )) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Maxime2/dataparksearch") + (commit commit))) + (sha256 + (base32 "01z7s3ws5px2p9brzrq9j41jbdh1cvj8n8y3ghx45gfv1n319ipg")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each delete-file '("config.sub" + "config.guess" + "configure" + "Makefile.in" + "missing" + "depcomp" + "ltmain.sh" + "compile")))) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags + #~(list "--disable-syslog" + "--with-extra-charsets=all" + (string-append "--with-aspell=" + #$(this-package-input "aspell")) + (string-append "--with-pgsql=" + #$(this-package-input "postgresql"))) + #:make-flags + #~(list "DPS_TEST_DBADDR=postgresql://localhost/tmp/postgresql/"))) + (native-inputs + (list pkg-config automake autoconf libtool openjade)) + (inputs + (list mbedtls-apache zlib postgresql aspell c-ares libextractor)) + (synopsis "Feature rich search engine") + (description + "Dataparksearch is a full featured web search engine. +It has support for http, https, ftp (passive mode), nntp and news URL schemes, and +other URL schemes with external parsers. +It can tweak URLs with session IDs and other weird formats, +including some JavaScript link decoding. +Options to query with all words, all words near to each others, any words, or Boolean queries. +A subset of VQL (Verity Query Language) is supported.") + (home-page "https://www.dataparksearch.org/") + (license license:gpl2+))))