Changeset 94 for nutchez-0.1/debian
- Timestamp:
- Jul 8, 2009, 2:20:41 PM (15 years ago)
- Location:
- nutchez-0.1/debian
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.1/debian/changelog
r66 r94 1 nutchez (0.1- 1) unstable; urgency=low1 nutchez (0.1-2) unstable; urgency=low 2 2 3 3 * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> 4 * 4 5 5 -- Wei-Yu Chen <waue0920@gmail.com> Tue, 12 May 2009 11:15:51 +0800 6 6 -- Wei-Yu Chen <waue0920@gmail.com> Tue, 07 Jul 2009 11:22:46 +0800 -
nutchez-0.1/debian/nutchez.install
r90 r94 3 3 README* etc/nutch 4 4 bin opt/nutch 5 bin/nutchez* usr/local/bin6 5 lib opt/nutch 7 webapps opt/nutch8 6 tomcat opt/nutch 9 7 plugins opt/nutch -
nutchez-0.1/debian/nutchez.postinst
r69 r94 8 8 fi 9 9 10 ln -sf /opt/nutch/bin/nutchez /usr/ local/sbin/11 ln -sf /opt/nutch/bin/nutchez-func.sh /usr/ local/sbin/10 ln -sf /opt/nutch/bin/nutchez /usr/sbin/ 11 ln -sf /opt/nutch/bin/nutchez-func.sh /usr/sbin/ 12 12 13 setup_hdfsadm_user() { 14 if ! getent passwd hdfsadm >/dev/null; then 15 useradd hdfsadm 16 mkdir -p /home/hdfsadm/.ssh 17 mkdir -p /var/log/nutch 18 ssh-keygen -t rsa -q -f /home/hdfsadm/.ssh/id_rsa -N "" 19 cp /home/hdfsadm/.ssh/id_rsa.pub /home/hdfsadm/.ssh/authorized_keys 20 chown hdfsadm:hdfsadm /var/log/nutch 21 chown -R hdfsadm:hdfsadm /opt/nutch 22 chown -R hdfsadm:hdfsadm /home/hdfsadm 23 fi 13 show_message(){ 14 cat /etc/nutch/README 24 15 } 25 26 check_root() { 27 if ! test -e /root/.ssh/id_rsa ; then 28 ssh-keygen -t rsa -q -f /root/.ssh/id_rsa -N "" 29 fi 30 if test -e /root/.ssh/id_rsa.pub ; then 31 if ! test -e /root/.ssh/authorized_keys ; then 32 cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys 33 fi 34 else 35 ssh-keygen -t rsa -q -f /root/.ssh/id_rsa -N "" 36 cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys 37 fi 38 39 } 40 41 start_hadoop() { 42 if getent passwd hdfsadm >/dev/null; then 43 su -c "/opt/nutch/bin/hadoop namenode -format" hdfsadm - 44 su -c "/opt/nutch/bin/start-all.sh" hdfsadm - 45 else 46 /opt/nutch/conf/hadoop-env.sh 47 /opt/nutch/bin/hadoop namenode -format 48 /opt/nutch/bin/start-all.sh 49 fi 50 } 51 show_message() { 16 show_old_message() { 52 17 echo "You can use the instruction : \" nutchez\" to easyly use nutch" 53 18 echo "Enjoy" 54 19 } 55 show_old_message() {56 echo "You can quickly start by following ways [in /opt/nutch/ with root privilege]:"57 echo "(1) Modify the urls/urls.txt file with indicate urls, one site one line."58 echo "(2) Use this instruction \"bin/nutch crawl urls -dir search -depth 4 -topN 50\" to crawl web"59 echo "(3) Type \" tomcat/bin/startup.sh \" and use browser to check the result in http://localhost:8080/"60 echo "Enjoy !"61 }62 #setup_hdfsadm_user63 #check_root64 #start_hadoop65 20 show_message -
nutchez-0.1/debian/nutchez.postrm
r80 r94 18 18 done 19 19 20 rm -f /usr/ local/sbin/nutchez*20 rm -f /usr/sbin/nutchez* 21 21 22 22 rm -rf /tmp/search -
nutchez-0.1/debian/rules
r66 r94 13 13 dh_compress 14 14 dh_fixperms 15 find ./debian/nutchez/ -name ".svn" -type d > svnfolders 16 rm -rf `cat svnfolders` 15 17 dh_installdeb 16 18 dh_link
Note: See TracChangeset
for help on using the changeset viewer.