Changeset 100
- Timestamp:
- Jul 10, 2009, 2:53:11 PM (15 years ago)
- Location:
- nutchez-0.1
- Files:
-
- 28 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/README
r94 r100 17 17 * Where are the program and configuration files 18 18 19 1. Nutch home is installed on /opt/nutch 20 2. Nutch conf dir is set on ~/.nutchez/conf 21 3. Tomcat home is installed on ~/.nutchez/tomcat 22 4. The final crawl results is located on ~/.nutchez/search 23 5. The nutchez log will be recorded on ~/.nutchez/log 24 6. The full path of this README is /etc/nutch/README 19 1. Project home is installed on /opt/nutchez 20 2. Nutch home is installed on /opt/nutchez/nutch 21 3. Nutch conf dir is set on ~/.nutchez/conf 22 4. Tomcat home is installed on ~/.nutchez/tomcat 23 5. The final crawl results is located on ~/.nutchez/search 24 6. The nutchez log will be recorded on ~/.nutchez/log 25 7. The full path of this README is /etc/nutch/README -
nutchez-0.1/bin/nutch
r75 r100 12 12 # NUTCH_OPTS Extra Java runtime options. 13 13 # 14 15 NUTCH_HOME=/opt/nutchez/nutch 16 NUTCH_CONF_DIR=~/.nutchez/conf 17 NUTCH_LOG_DIR=~/.nutchez/log 18 14 19 cygwin=false 15 20 case "`uname`" in … … 77 82 78 83 # some directories 79 THIS_DIR=`dirname "$THIS"` 80 NUTCH_HOME=`cd "$THIS_DIR/.." ; pwd` 84 85 81 86 82 87 # some Java parameters -
nutchez-0.1/bin/nutchez
r94 r100 11 11 12 12 export JAVA_HOME=/usr/lib/jvm/java-6-sun 13 export NUTCH_HOME=/opt/nutch 13 export NUTCH_HOME=/opt/nutchez/nutch 14 14 export NUTCH_CONF_DIR=~/.nutchez/conf 15 15 export NUTCH_LOG_DIR=~/.nutchez/log 16 16 17 . /opt/nutch /bin/nutchez-func.sh17 . /opt/nutchez/nutch/bin/nutchez-func.sh 18 18 19 19 init_nutchez … … 146 146 #else 147 147 1) 148 clean_tempfile 148 149 exit 149 150 ;; … … 157 158 ;; 158 159 255) 160 clean_tempfile 159 161 echo_dialog_v "ESC pressed !!" 160 162 ;; -
nutchez-0.1/bin/nutchez-func.sh
r99 r100 49 49 promote_tempfile () { 50 50 echo_dialog_v "7. chang tmp as txt" 51 rm ~/.nutchez/sav/n.*.txt51 rm -f ~/.nutchez/sav/n.*.txt 52 52 mv /tmp/n.urls.tmp ~/.nutchez/sav/n.urls.txt 53 53 mv /tmp/n.robot.tmp ~/.nutchez/sav/n.robot.txt 54 54 mv /tmp/n.crawler.tmp ~/.nutchez/sav/n.crawler.txt 55 55 mv /tmp/n.tomcat.tmp ~/.nutchez/sav/n.tomcat.txt 56 rm -f /tmp/n.*.tmp 56 57 } 57 58 58 59 clean_tempfile () { 59 60 echo_dialog_v "7. delete tmp" 60 rm /tmp/n.*.tmp61 rm -f /tmp/n.*.tmp 61 62 } 62 63 … … 93 94 if ! [ -e ~/.nutchez/tomcat ] ;then 94 95 # isntall tomcat to home 95 cp -rf /opt/nutch /tomcat ~/.nutchez/96 cp -rf /opt/nutchez/tomcat ~/.nutchez/ 96 97 chown -R $LOGNAME:$LOGNAME ~/.nutchez/tomcat/ 97 98 # make search dir … … 185 186 --yesno "$MSG" 26 51 186 187 RET=$? 187 echo_dialog_v "final return = $RET" 188 echo_dialog_v "final return = $RET" 188 189 return $RET 189 190 } … … 202 203 setup_nutchez 203 204 install_tomcat 204 echo_dialog_v "/opt/nutch /bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH"205 echo_dialog_v "/opt/nutchez/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH" 205 206 echo_dialog_v "nutch conf dir = $NUTCH_CONF_DIR" 206 /opt/nutch /bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH -topN 5000 -threads 1000207 /opt/nutchez/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH -topN 5000 -threads 1000 207 208 } 208 209 209 210 start_tomcat () { 210 211 echo_dialog_v "8. start_tomcat " 211 echo_dialog_v "/opt/nutch /tomcat/bin/startup.sh"212 echo_dialog_v "/opt/nutchez/nutch/tomcat/bin/startup.sh" 212 213 if [ -e /tmp/search ];then 213 214 rm -rf /tmp/search -
nutchez-0.1/conf/nutch-site.xml
r80 r100 23 23 <property> 24 24 <name>plugin.folders</name> 25 <value>/opt/nutch /plugins</value>25 <value>/opt/nutchez/nutch/plugins</value> 26 26 <description>Directories where nutch plugins are located. </description> 27 27 </property> -
nutchez-0.1/debian/changelog
r94 r100 1 nutchez (0.1- 2) unstable; urgency=low1 nutchez (0.1-3) unstable; urgency=low 2 2 3 * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> 3 * Initial release (Closes: #4) <nnnn is the bug number of your ITP> 4 * 4 5 * 5 6 6 -- Wei-Yu Chen <waue0920@gmail.com> Tue, 07 Jul 2009 11:22:46+08007 -- Wei-Yu Chen <waue0920@gmail.com> Fri, 10 Jul 2009 14:34:53 +0800 -
nutchez-0.1/debian/nutchez.install
r94 r100 2 2 sav etc/nutch 3 3 README* etc/nutch 4 bin opt/nutch 5 lib opt/nutch 6 tomcat opt/nutch 7 plugins opt/nutch 8 *.jar opt/nutch 9 *.job opt/nutch 10 *.xml opt/nutch 11 default.properties opt/nutch 4 bin opt/nutchez/nutch 5 lib opt/nutchez/nutch 6 tomcat opt/nutchez 7 plugins opt/nutchez/nutch 8 *.jar opt/nutchez/nutch 9 *.job opt/nutchez/nutch 10 *.xml opt/nutchez/nutch 11 default.properties opt/nutchez/nutch -
nutchez-0.1/debian/nutchez.links
r66 r100 1 etc/nutch opt/nutch /conf1 etc/nutch opt/nutchez/nutch/conf -
nutchez-0.1/debian/nutchez.postinst
r94 r100 8 8 fi 9 9 10 ln -sf /opt/nutch /bin/nutchez /usr/sbin/11 ln -sf /opt/nutch/bin/nutchez-func.sh /usr/sbin/ 10 ln -sf /opt/nutchez/nutch/bin/nutchez /usr/bin/ 11 chmod 777 /opt/nutchez 12 12 13 13 show_message(){ -
nutchez-0.1/debian/nutchez.postrm
r94 r100 11 11 #fi 12 12 13 for i in `sudo find /home/ -name ".nutchez"`; do14 if [ -d $i ];then15 echo "delete this dir : $i"16 rm -r $i17 fi18 done13 #for i in `sudo find /home/ -name ".nutchez"`; do 14 # if [ -d $i ];then 15 # echo "delete this dir : $i" 16 # rm -r $i 17 # fi 18 #done 19 19 20 rm -f /usr/ sbin/nutchez*20 rm -f /usr/bin/nutchez 21 21 22 22 rm -rf /tmp/search
Note: See TracChangeset
for help on using the changeset viewer.