Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: yacy-1.924 #31125

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions srcpkgs/yacy/INSTALL
@@ -0,0 +1,6 @@
# INSTALL
case "$ACTION" in
post)
chown -R _yacy:_yacy /var/lib/yacy
;;
esac
2 changes: 2 additions & 0 deletions srcpkgs/yacy/files/yacy/run
@@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u _yacy:_yacy /var/lib/yacy/startYACY.sh -f
32 changes: 32 additions & 0 deletions srcpkgs/yacy/template
@@ -0,0 +1,32 @@
# Template file for 'yacy'
pkgname=yacy
version=1.924
revision=1
wrksrc=${pkgname}
hostmakedepends="openjdk apache-ant"
depends="openjdk-jre bash"
short_desc="YaCy p2p decentralized search engine"
maintainer="Jason Manley <jason@jasondavid.tv>"
license="GPL-3.0-or-later"
homepage="https://yacy.net"
distfiles="https://download.yacy.net/yacy_v${version}_20210209_10069.tar.gz"
checksum=@3b484c4db858a51dd191aa1ce30f892f49beadd8cb6434b65837d79a76325526

system_accounts="_yacy"
yacy_homedir="/var/lib/yacy"
yacy_shell="/bin/bash"
make_dirs="/var/lib/yacy 0755 _yacy _yacy"

do_build() {
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
ant clean all
}

do_install() {
vmkdir var/lib/
vcopy ${wrksrc} var/lib/
}

post_install() {
vsv yacy
}