092c0d3a19
* cleaned up the version and now using the pro version since the old version dosn't appear on the site anymore * moved from /usr/share/yacy to /usr/lib/yacy, as a result if you have a existing install please move /usr/share/yacy/DATA to /usr/lib/yacy/DATA * removed alot of junk files and source code * cleaned up pre-install and README
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
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=0.56
|
|
date=20071222_4290
|
|
release=1
|
|
source=(http://www.yacy.net/release/yacy_pro_v${version}_$date.tar.gz \
|
|
yacy-start.sh yacy-stop.sh yacy.rc)
|
|
|
|
build() {
|
|
cd yacy
|
|
|
|
# ant wont build without this directory.
|
|
mkdir -p $SRC/yacy/libx
|
|
|
|
# compile
|
|
ant
|
|
|
|
# remove un-needed files
|
|
find $SRC/yacy -type f \( \
|
|
-name '*.bat' -o \
|
|
-name '*.txt' -o \
|
|
-name '*.css.old' -o \
|
|
-name '*.readme' -o \
|
|
-name '*.License' -o \
|
|
-name '*.java' \) -delete
|
|
|
|
rm -r \
|
|
source \
|
|
locales \
|
|
RELEASE
|
|
|
|
rm \
|
|
build.xml \
|
|
build.properties \
|
|
lib/tar.license \
|
|
addon/jsmooth/skeletons/console-wrapper/consolewrapper.exe \
|
|
addon/jsmooth/skeletons/windowed-wrapper/jwrap.exe
|
|
|
|
# install
|
|
install -d $PKG/usr/lib/yacy
|
|
cp -R * $PKG/usr/lib/yacy/
|
|
|
|
# add some protection by limitng what and who can access the p2p files.
|
|
chown -R _yacy:daemon $PKG/usr/lib/yacy
|
|
|
|
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
|
|
}
|
|
|