Index: hadoop-0.18.3/debian/control
===================================================================
--- hadoop-0.18.3/debian/control	(revision 51)
+++ hadoop-0.18.3/debian/control	(revision 52)
@@ -35,2 +35,25 @@
   http://hadoop.apache.org/
 
+Package: hadoop-src
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, sun-java6-jdk, ant, gcc, g++, hadoop
+Description: Apache Hadoop Core ( java source code and examples )
+  .
+  Apache Hadoop Core is a software platform that lets one easily write and
+  run applications that process vast amounts of data.
+  .
+  This package include the java source code and examples from original
+  tarball. Install this package only when you need to rebuild the jar binary
+  or want to run the 'Word Count' examples of MapReduce.
+
+Package: hadoop-doc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Apache Hadoop Core Documents
+  .
+  Apache Hadoop Core is a software platform that lets one easily write and
+  run applications that process vast amounts of data.
+  .
+  This package include the HTML and PDF documents from original tarball.
+  Install this package only when you need these documents.
+
Index: hadoop-0.18.3/debian/hadoop-doc.install
===================================================================
--- hadoop-0.18.3/debian/hadoop-doc.install	(revision 52)
+++ hadoop-0.18.3/debian/hadoop-doc.install	(revision 52)
@@ -0,0 +1,1 @@
+docs/*	usr/share/doc/hadoop
Index: hadoop-0.18.3/debian/hadoop-doc.links
===================================================================
--- hadoop-0.18.3/debian/hadoop-doc.links	(revision 52)
+++ hadoop-0.18.3/debian/hadoop-doc.links	(revision 52)
@@ -0,0 +1,1 @@
+usr/share/doc/hadoop  opt/hadoop/docs
Index: hadoop-0.18.3/debian/hadoop-src.install
===================================================================
--- hadoop-0.18.3/debian/hadoop-src.install	(revision 52)
+++ hadoop-0.18.3/debian/hadoop-src.install	(revision 52)
@@ -0,0 +1,2 @@
+src	opt/hadoop
+*.xml	opt/hadoop
Index: hadoop-0.18.3/debian/hadoop.docs
===================================================================
--- hadoop-0.18.3/debian/hadoop.docs	(revision 51)
+++ hadoop-0.18.3/debian/hadoop.docs	(revision 52)
@@ -3,3 +3,2 @@
 NOTICE.txt
 README.txt
-docs/*
Index: hadoop-0.18.3/debian/hadoop.install
===================================================================
--- hadoop-0.18.3/debian/hadoop.install	(revision 51)
+++ hadoop-0.18.3/debian/hadoop.install	(revision 52)
@@ -7,6 +7,4 @@
 libhdfs	      opt/hadoop
 librecordio   opt/hadoop
-src	      opt/hadoop
 webapps	      opt/hadoop
 *.jar	      opt/hadoop
-*.xml	      opt/hadoop
Index: hadoop-0.18.3/debian/hadoop.postrm
===================================================================
--- hadoop-0.18.3/debian/hadoop.postrm	(revision 51)
+++ hadoop-0.18.3/debian/hadoop.postrm	(revision 52)
@@ -15,4 +15,6 @@
     rm -rf /home/hdfsadm
     rm -rf /var/log/hadoop
+    rm -rf /tmp/hadoop-hdfsadm*
+    rm -rf /tmp/hsperfdata_*
   fi
 }
