2006-11-21 22:03:23 +11:00
|
|
|
# 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
|
2008-01-19 09:47:41 +11:00
|
|
|
version=0.56
|
|
|
|
date=20071222_4290
|
2006-12-06 00:57:48 +11:00
|
|
|
release=1
|
2008-01-19 09:47:41 +11:00
|
|
|
source=(http://www.yacy.net/release/yacy_pro_v${version}_$date.tar.gz \
|
2007-04-01 19:56:24 +10:00
|
|
|
yacy-start.sh yacy-stop.sh yacy.rc)
|
2006-11-21 22:03:23 +11:00
|
|
|
|
|
|
|
build() {
|
2006-12-06 00:57:48 +11:00
|
|
|
cd yacy
|
2006-11-21 22:03:23 +11:00
|
|
|
|
2006-12-06 00:57:48 +11:00
|
|
|
# ant wont build without this directory.
|
|
|
|
mkdir -p $SRC/yacy/libx
|
|
|
|
|
|
|
|
# compile
|
2006-11-21 22:03:23 +11:00
|
|
|
ant
|
2006-12-06 00:57:48 +11:00
|
|
|
|
|
|
|
# remove un-needed files
|
2008-01-19 09:47:41 +11:00
|
|
|
find $SRC/yacy -type f \( \
|
|
|
|
-name '*.bat' -o \
|
|
|
|
-name '*.txt' -o \
|
|
|
|
-name '*.css.old' -o \
|
|
|
|
-name '*.readme' -o \
|
|
|
|
-name '*.License' -o \
|
|
|
|
-name '*.java' \) -delete
|
2006-11-21 22:03:23 +11:00
|
|
|
|
2006-12-06 00:57:48 +11:00
|
|
|
rm -r \
|
|
|
|
source \
|
2008-01-19 09:47:41 +11:00
|
|
|
locales \
|
|
|
|
RELEASE
|
2006-12-06 00:57:48 +11:00
|
|
|
|
|
|
|
rm \
|
|
|
|
build.xml \
|
2008-01-19 09:47:41 +11:00
|
|
|
build.properties \
|
|
|
|
lib/tar.license \
|
|
|
|
addon/jsmooth/skeletons/console-wrapper/consolewrapper.exe \
|
|
|
|
addon/jsmooth/skeletons/windowed-wrapper/jwrap.exe
|
2006-11-21 22:03:23 +11:00
|
|
|
|
|
|
|
# install
|
2008-01-19 09:47:41 +11:00
|
|
|
install -d $PKG/usr/lib/yacy
|
|
|
|
cp -R * $PKG/usr/lib/yacy/
|
2006-12-06 00:57:48 +11:00
|
|
|
|
|
|
|
# add some protection by limitng what and who can access the p2p files.
|
2008-01-19 09:47:41 +11:00
|
|
|
chown -R _yacy:daemon $PKG/usr/lib/yacy
|
2006-11-21 22:03:23 +11:00
|
|
|
|
2007-10-08 19:01:11 +10:00
|
|
|
install -D -m 0755 $SRC/yacy-start.sh $PKG/usr/sbin/yacy-start
|
|
|
|
install -D -m 0755 $SRC/yacy-stop.sh $PKG/usr/sbin/yacy-stop
|
|
|
|
install -D -m 0755 $SRC/yacy.rc $PKG/etc/rc.d/yacy
|
2006-11-21 22:03:23 +11:00
|
|
|
}
|
|
|
|
|