yacy: 0.55_20071004_4145 -> 0.56
* 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
This commit is contained in:
parent
fa4d890871
commit
092c0d3a19
1957
yacy/.footprint
1957
yacy/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
11d59eb69b38c20befa72632a85ed2f0 yacy-start.sh
|
b7e84a2c57a0dca656ea650088abdcd1 yacy-start.sh
|
||||||
aa1042106daa0c8e5e083b7db532a2b7 yacy-stop.sh
|
3d51b10d074af11080dab542b94fbb0c yacy-stop.sh
|
||||||
d77dc8b70b0e1434650079f5ee61e3fc yacy.rc
|
d77dc8b70b0e1434650079f5ee61e3fc yacy.rc
|
||||||
a3bb8bbf090012b9b7ceba98294356fb yacy_v0.55_20071004_4145.tar.gz
|
d4401fb5c1a8eb0bdbf08510cbcc15a0 yacy_pro_v0.56_20071222_4290.tar.gz
|
||||||
|
35
yacy/Pkgfile
35
yacy/Pkgfile
@ -5,9 +5,10 @@
|
|||||||
# Depends on: ant
|
# Depends on: ant
|
||||||
|
|
||||||
name=yacy
|
name=yacy
|
||||||
version=0.55_20071004_4145
|
version=0.56
|
||||||
|
date=20071222_4290
|
||||||
release=1
|
release=1
|
||||||
source=(http://www.yacy.net/release/yacy_v$version.tar.gz \
|
source=(http://www.yacy.net/release/yacy_pro_v${version}_$date.tar.gz \
|
||||||
yacy-start.sh yacy-stop.sh yacy.rc)
|
yacy-start.sh yacy-stop.sh yacy.rc)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
@ -20,30 +21,32 @@ build() {
|
|||||||
ant
|
ant
|
||||||
|
|
||||||
# remove un-needed files
|
# remove un-needed files
|
||||||
find $SRC/yacy -type f \
|
find $SRC/yacy -type f \( \
|
||||||
-name '*.bat' -delete -or \
|
-name '*.bat' -o \
|
||||||
-name '*.txt' -delete -or \
|
-name '*.txt' -o \
|
||||||
-name '*.css.old' -delete -or \
|
-name '*.css.old' -o \
|
||||||
-name '*.readme' -delete
|
-name '*.readme' -o \
|
||||||
|
-name '*.License' -o \
|
||||||
|
-name '*.java' \) -delete
|
||||||
|
|
||||||
rm -r \
|
rm -r \
|
||||||
source \
|
source \
|
||||||
htroot/locale \
|
locales \
|
||||||
locales
|
RELEASE
|
||||||
#classes/de
|
|
||||||
#RELEASE/EXT/{source,classes}/de
|
|
||||||
|
|
||||||
rm \
|
rm \
|
||||||
build.xml \
|
build.xml \
|
||||||
htroot/CacheAdmin_p.java.ThomasBockig \
|
build.properties \
|
||||||
htroot/.nbattrs
|
lib/tar.license \
|
||||||
|
addon/jsmooth/skeletons/console-wrapper/consolewrapper.exe \
|
||||||
|
addon/jsmooth/skeletons/windowed-wrapper/jwrap.exe
|
||||||
|
|
||||||
# install
|
# install
|
||||||
install -d $PKG/usr/share/yacy
|
install -d $PKG/usr/lib/yacy
|
||||||
cp -R * $PKG/usr/share/yacy/
|
cp -R * $PKG/usr/lib/yacy/
|
||||||
|
|
||||||
# add some protection by limitng what and who can access the p2p files.
|
# add some protection by limitng what and who can access the p2p files.
|
||||||
chown -R _yacy:daemon $PKG/usr/share/yacy
|
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-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-stop.sh $PKG/usr/sbin/yacy-stop
|
||||||
|
23
yacy/README
23
yacy/README
@ -2,18 +2,20 @@ REQUIREMENTS:
|
|||||||
|
|
||||||
PRECAUTION:
|
PRECAUTION:
|
||||||
|
|
||||||
Once running goto the main page http://localhost:8080/ and set a password and
|
Once running goto the main page http://localhost:8080/ and
|
||||||
maybe change the port too.
|
set a password and maybe change the port too.
|
||||||
|
|
||||||
PRE-INSTALL:
|
PRE-INSTALL:
|
||||||
|
|
||||||
Yacy expects to have a user and group dedicated to it, a pre-install
|
Yacy expects to have a user and group dedicated to it, a
|
||||||
script has been added to the port which takes care of this.
|
pre-install script has been added to the port which takes
|
||||||
|
care of this.
|
||||||
|
|
||||||
POST-INSTALL:
|
POST-INSTALL:
|
||||||
|
|
||||||
Edit your favourite web browser and point it to proxy localhost 8080 or which
|
Edit your favourite web browser and point it to proxy
|
||||||
ip on your lan and port you have assigned.
|
localhost 8080 or which ip on your lan and port you have
|
||||||
|
assigned.
|
||||||
|
|
||||||
PRE-REMOVE:
|
PRE-REMOVE:
|
||||||
|
|
||||||
@ -21,9 +23,10 @@ POST-REMOVE:
|
|||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
|
|
||||||
Please add "yacy" to the SERVICES array in /etc/rc.conf if you'd like to run
|
Please add "yacy" to the SERVICES array in /etc/rc.conf if
|
||||||
yacy as a service (highly recomended).
|
you'd like to run yacy as a service (highly recomended).
|
||||||
|
|
||||||
Apon startup yacy takes some time to load before the web browser will work,
|
Upon startup yacy takes some time to load before the web
|
||||||
and some time to shutdown too to save its state.
|
browser will load the initial page, and some time to
|
||||||
|
shutdown too to save its state.
|
||||||
|
|
||||||
|
@ -8,13 +8,15 @@ USER_COMMENT="Yacy Daemon"
|
|||||||
USER_HOME=/var/empty
|
USER_HOME=/var/empty
|
||||||
USER_SHELL=/bin/sh
|
USER_SHELL=/bin/sh
|
||||||
|
|
||||||
if [ $GROUP ]
|
if [ ! $(id -u) = 0 ]; then
|
||||||
then
|
echo "ERROR: you need to be root to run this!"
|
||||||
if ! grep -qi $GROUP /etc/group
|
exit 1
|
||||||
then
|
fi
|
||||||
|
|
||||||
|
if [ $GROUP ]; then
|
||||||
|
if ! getent group $GROUP > /dev/null; then
|
||||||
/usr/sbin/groupadd $GROUP
|
/usr/sbin/groupadd $GROUP
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]; then
|
||||||
then
|
|
||||||
echo "Group: $GROUP added."
|
echo "Group: $GROUP added."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -22,13 +24,17 @@ if [ $GROUP ]
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -qi $USER /etc/shadow
|
if ! getent passwd $USER > /dev/null; then
|
||||||
then
|
|
||||||
/usr/sbin/useradd -g $GROUP -c "$USER_COMMENT" -d $USER_HOME -s $USER_SHELL $USER
|
/usr/sbin/useradd -g $GROUP -c "$USER_COMMENT" -d $USER_HOME -s $USER_SHELL $USER
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]; then
|
||||||
then
|
|
||||||
/usr/bin/passwd -l $USER
|
|
||||||
echo "User: $USER added."
|
echo "User: $USER added."
|
||||||
|
/usr/bin/passwd -l $USER
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "Locked $USER account."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "ERROR: unable to lock $USER account."
|
||||||
|
/usr/sbin/userdel $USER
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "User: $USER already exists! Skipping."
|
echo "User: $USER already exists! Skipping."
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd /usr/share/yacy
|
cd /usr/lib/yacy
|
||||||
./startYACY.sh
|
./startYACY.sh
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd /usr/share/yacy
|
cd /usr/lib/yacy
|
||||||
./stopYACY.sh
|
./stopYACY.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user