milis/talimatname/genel/yacy/talimat

36 lines
884 B
Plaintext
Raw Normal View History

2016-04-14 10:00:30 +02:00
# Description: p2p merkezi olmayan arama motoru
# URL: http://yacy.net/
# Packager: milisarge@gmail.com
# Depends on: openjdk apache-ant
name=yacy
version=1.82
_pkgextraver=20150121_9000
release=1
source=("http://www.yacy.net/release/yacy_v${version}_${_pkgextraver}.tar.gz"
2016-04-14 10:32:12 +02:00
yacy.rc)
2016-04-14 10:00:30 +02:00
build() {
2016-04-14 10:32:12 +02:00
. /etc/profile.d/ant.sh
2016-04-14 10:00:30 +02:00
cd "$SRC/$name"
ant all
cd "$SRC/$name"
ant installonlinux -DDESTDIR="$PKG/"
install -d "$PKG"/usr/share/java/yacy
install -t "$PKG"/usr/share/java/yacy/ lib/*.jar
install -Dm644 "${SRC}/yacy.rc" "${PKG}/etc/rc.d/init.d/yacy"
2016-04-14 10:32:12 +02:00
# ayar kısayol
2016-04-14 10:00:30 +02:00
ln -s /var/cache/yacy/DATA/SETTINGS/yacy.conf $PKG/etc/yacy/yacy.conf
2016-04-14 10:32:12 +02:00
# servis dosya
install -d $PKG/usr/bin
install -m 0750 $SRC/$name/startYACY.sh $PKG/usr/bin/yacy-start
install -m 0750 $SRC/$name/stopYACY.sh $PKG/usr/bin/yacy-stop
2016-04-14 10:00:30 +02:00
2016-04-14 10:32:12 +02:00
rm -f "$PKG"/usr/share/yacy/DATA "$PKG"/var/log/yacy
2016-04-14 10:00:30 +02:00
}