Commit 0560ed28 authored by Jerzy Kołosowski's avatar Jerzy Kołosowski

Yacy delete

parent 70c7e0b4
AUX yacy.confd 396 SHA256 d750007582e57672dcb4ddac4b0c843d3224debb2283f8d5a11435de05d21d62 SHA512 4f72d88673b63e5dfd1770c778223aad30567c468f754a19ad9a6d43da5588abdb8cea3aeae307822cdd3a9f84a1bf57de550371dfeb93fd2245de85b5c6c0c2 WHIRLPOOL 56e9f82cfcc29f3144509fe9974bebef1a1f1246ba94bb8453d0806a3dfcd0fb3a60ff1cd890e199d83cdcec0428df018266ccd712b730650a8597188b83669d
AUX yacy.rc 1574 SHA256 9ee88a806e18aa1fb1345380cc97af78ca7a50099c2fb33e17b33ae2f854c253 SHA512 10fadf0f951f29712adb1864dbd3dfc445765e15a8ac8122c08731c2c10d50c27245fec88c349179433d1b13b0008c0305fec3f60896ab682f8b81eb90d5321d WHIRLPOOL e7d454d232177d0c65769d92a734bb39b8fd7169cac789b489bafaff32761210e1ffb2700b5286d5c92c1bf06ab83302fb9aeb55d69475ca413011d91375d1f7
DIST yacy_v1.82_20150121_9000.tar.gz 42926366 SHA256 94a3c2e9ac9cb777ac6d600f17b28d89a93e33081d5ddbfef1d1bb33b2918a4a SHA512 cf76d19b76f68fac8fc3aa6478d09d3d071e4e0ecdc01475d43ec651bd38883b5a6b5e6abfc04e966e1cefd5785a709fbd6a20601d0275fa7ee27b00a012c7f9 WHIRLPOOL b48ed9975ed2927d8cf162dcf52fd30de476615ed855200626015bf1f9636a82269add3aed3ff7a98f961c972055aff67f1e1fad4f93fff6d498fa8b46d95238
EBUILD yacy-1.82.20150121.9000.ebuild 1207 SHA256 4bfaee73a992183192c33bc16b593d20b6cfe74436660780e1e103db739d55be SHA512 cd94368d0a0fed06c1e4ac98f74ade28311fc7aff83a856758e957392cad2203c43fb35e629372f95d8861f88d085e82167950c14c5e87c8aefb097116378621 WHIRLPOOL 18498d1b4b24cdae3e9d2f9029ed9f450f4845b98f1d1781f6e98efd3a1acdd9e29dac207f4f642f1754e88639b5e556fa3677bc649c7b3494c3ca4561ea6bb1
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# home-directory
YACY_HOME="/opt/yacy"
# user to run yacy as
YACY_USER="yacy"
# java options (optional)
JAVA_OPTIONS="-Xmx600m -Xms180m"
# niceness (optional)
NICENESS="1"
# wait on stop, should be maxWaitingWordFlush, see DATA/SETTINGS/httpProxy.conf
WAIT_ON_STOP="180"
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
}
cd $YACY_HOME
JAVA="$(java-config --java)"
JAVA_ARGS=""
if [ -e DATA/SETTINGS/httpProxy.conf ] ; then
for i in $(grep javastart DATA/SETTINGS/httpProxy.conf); do
i="${i#javastart_*=}";
JAVA_ARGS=-$i" "$JAVA_ARGS;
done
fi
CLASSPATH=""
test -e lib/ && for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
CLASSPATH="-classpath classes:htroot:$CLASSPATH"
if [ -n "${NICENESS}" ] ; then
NICE="nice -n ${NICENESS}"
fi
#PORT="8090"
start() {
ebegin "Starting YaCy"
${NICE} sudo -u ${YACY_USER} ${JAVA} ${JAVA_OPTIONS} ${JAVA_ARGS} ${CLASSPATH} net.yacy.yacy &> /dev/null &
echo $! > /var/run/yacy.pid
sleep 1
ps ax|grep "^ *$(cat /var/run/yacy.pid)" > /dev/null
eend $?
}
stop() {
ebegin "Shutting down YaCy"
sudo -u ${YACY_USER} ${JAVA} ${JAVA_OPTIONS} ${JAVA_ARGS} ${CLASSPATH} net.yacy.yacy -shutdown &> /dev/null &
einfon "Waiting ."
cnt=0
while ( ps ax|grep "^ *$(cat /var/run/yacy.pid)" > /dev/null )
do
cnt=`expr $cnt + 2`
if [ $cnt -gt ${WAIT_ON_STOP} ] ; then
eend 1 "Failed."
exit
fi
sleep 2
echo -n "."
done
rm /var/run/yacy.pid
echo "done."
eend $?
}
status() {
if service_started "${myservice}" ; then
if ! ps p `cat /var/run/yacy.pid` &> /dev/null ; then
eerror "Service seems to be down"
return 1
fi
else
if [ -e /var/run/yacy.pid ]; then
eerror "Service seems to be running already"
return 1
fi
return 0
fi
}
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils versionator user
MAJOR_PV="$(get_version_component_range 1-2)"
REL_PV="$(get_version_component_range 3)"
SVN_PV="$(get_version_component_range 4)"
DESCRIPTION="p2p based distributed web-search engine - latest stable binary"
HOMEPAGE="http://www.yacy.net/"
SRC_URI="http://yacy.net/release/yacy_v${MAJOR_PV}_${REL_PV}_${SVN_PV}.tar.gz"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DEPEND=">=virtual/jdk-1.5.0"
RESTRICT="mirror"
LICENSE="GPL-2"
IUSE=""
S="${WORKDIR}/yacy"
src_install() {
dodir /opt
mv "${S}" "${D}/opt/${PN}"
chown -R ${PN}:${PN} "${D}/opt/${PN}"
dodir /var/log/yacy
chown yacy:yacy "${D}/var/log/yacy"
sed -i "s:DATA/LOG/:/var/log/yacy/:g" "${D}/opt/yacy/defaults/yacy.logging"
exeinto /etc/init.d
newexe "${FILESDIR}/yacy.rc" yacy
insinto /etc/conf.d
newins "${FILESDIR}/yacy.confd" yacy
}
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 /bin/bash /opt/${PN} ${PN}
}
pkg_postinst() {
einfo "yacy.logging will write logfiles into /var/log/yacy/"
einfo "To setup YaCy, open http://localhost:8090 in your browser."
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment