Changeset 94 for nutchez-0.1/debian


Ignore:
Timestamp:
Jul 8, 2009, 2:20:41 PM (15 years ago)
Author:
waue
Message:

0.1-2 fix some bug

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=low
     1nutchez (0.1-2) unstable; urgency=low
    22
    33  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
     4  *
    45
    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  
    33README*   etc/nutch
    44bin   opt/nutch
    5 bin/nutchez*  usr/local/bin
    65lib   opt/nutch
    7 webapps   opt/nutch
    86tomcat    opt/nutch
    97plugins   opt/nutch
  • nutchez-0.1/debian/nutchez.postinst

    r69 r94  
    88fi
    99
    10 ln -sf /opt/nutch/bin/nutchez /usr/local/sbin/
    11 ln -sf /opt/nutch/bin/nutchez-func.sh /usr/local/sbin/
     10ln -sf /opt/nutch/bin/nutchez /usr/sbin/
     11ln -sf /opt/nutch/bin/nutchez-func.sh /usr/sbin/
    1212
    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
     13show_message(){
     14  cat /etc/nutch/README
    2415}
    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() {
     16show_old_message() {
    5217  echo "You can use the instruction : \" nutchez\" to easyly use nutch"
    5318  echo "Enjoy"
    5419}
    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_user
    63 #check_root
    64 #start_hadoop
    6520show_message
  • nutchez-0.1/debian/nutchez.postrm

    r80 r94  
    1818done
    1919
    20 rm -f /usr/local/sbin/nutchez*
     20rm -f /usr/sbin/nutchez*
    2121
    2222rm -rf /tmp/search
  • nutchez-0.1/debian/rules

    r66 r94  
    1313  dh_compress
    1414  dh_fixperms
     15  find ./debian/nutchez/ -name ".svn" -type d > svnfolders
     16  rm -rf `cat svnfolders`
    1517  dh_installdeb
    1618  dh_link
Note: See TracChangeset for help on using the changeset viewer.