From d7bd408b5bc22b618d3db579222669619f4c0cb3 Mon Sep 17 00:00:00 2001 From: Jason Elswick Date: Wed, 10 Dec 2025 17:25:33 -0600 Subject: [PATCH] New package: yacy-1.941 --- srcpkgs/yacy/INSTALL | 6 ++++++ srcpkgs/yacy/files/yacy/run | 3 +++ srcpkgs/yacy/template | 29 +++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 srcpkgs/yacy/INSTALL create mode 100644 srcpkgs/yacy/files/yacy/run create mode 100644 srcpkgs/yacy/template diff --git a/srcpkgs/yacy/INSTALL b/srcpkgs/yacy/INSTALL new file mode 100644 index 00000000000000..3e2065e8168cbf --- /dev/null +++ b/srcpkgs/yacy/INSTALL @@ -0,0 +1,6 @@ +# INSTALL +case "$ACTION" in +post) + chown -R _yacy:_yacy /var/lib/yacy + ;; +esac diff --git a/srcpkgs/yacy/files/yacy/run b/srcpkgs/yacy/files/yacy/run new file mode 100644 index 00000000000000..9e86cdda959767 --- /dev/null +++ b/srcpkgs/yacy/files/yacy/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec chpst -u _yacy:_yacy /var/lib/yacy/startYACY.sh -f diff --git a/srcpkgs/yacy/template b/srcpkgs/yacy/template new file mode 100644 index 00000000000000..044653750cd0a9 --- /dev/null +++ b/srcpkgs/yacy/template @@ -0,0 +1,29 @@ +# Template file for 'yacy' +pkgname=yacy +version=1.941 +revision=1 +hostmakedepends="apache-ant openjdk21 git" +depends="openjdk21" +short_desc="Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance" +maintainer="Jason Elswick " +license="GPL-2.0-or-later" +homepage="https://yacy.net" +distfiles="https://github.com/yacy/yacy_search_server/archive/refs/tags/Release_${version}.tar.gz" +checksum=90e0bdef16893cdc5f0e812add1b977ee5fee34fa18ac56d4f6deba6fe521050 +system_accounts="_yacy" +_yacy_homedir="/var/lib/yacy" +make_dirs="/var/lib/yacy 0755 _yacy _yacy" + +do_build() { + export JAVA_HOME="/usr/lib/jvm/openjdk21" + ant all +} + +do_install() { + vmkdir var/lib/yacy + vcopy ${wrksrc}/* var/lib/yacy +} + +post_install() { + vsv yacy +}