40 lines
941 B
Plaintext
40 lines
941 B
Plaintext
# Description: P2P application for web searching.
|
|
# URL: http://www.yacy.net/yacy/
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
# Packager: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
# Depends on: ant
|
|
|
|
name=yacy
|
|
version=v0.48_20061010_2743
|
|
release=2
|
|
source=(http://www.yacy.net/yacy/release/yacy_$version.tar.gz \
|
|
$name-start.sh $name-stop.sh $name.rc)
|
|
|
|
build() {
|
|
cd $name
|
|
|
|
# ant wont build with this.
|
|
mkdir -p $SRC/yacy/libx
|
|
|
|
ant
|
|
# remove cruft
|
|
find $SRC/yacy -type f \
|
|
-name '*.bat' -or \
|
|
-name '*.txt' | xargs rm -rf {} \;
|
|
|
|
rm -r source
|
|
rm build.xml
|
|
|
|
# install
|
|
install -d $PKG/usr/share/yacy
|
|
|
|
cp -R * $PKG/usr/share/yacy/
|
|
|
|
chown -R _yacy:daemon $PKG/usr/share/yacy
|
|
|
|
install -D -m755 -oroot -groot $SRC/yacy-start.sh $PKG/usr/sbin/yacy-start
|
|
install -D -m755 -oroot -groot $SRC/yacy-stop.sh $PKG/usr/sbin/yacy-stop
|
|
install -D -m755 -oroot -groot $SRC/yacy.rc $PKG/etc/rc.d/yacy
|
|
}
|
|
|