diff --git a/repl-bin/pom.xml b/repl-bin/pom.xml
index 72a946f3d7dfa3a969896b44f69494eed6c4cdf2..0667b71cc7bba49a22a2c12d7f9c590dc30ea78c 100644
--- a/repl-bin/pom.xml
+++ b/repl-bin/pom.xml
@@ -15,7 +15,8 @@
   <url>http://spark-project.org/</url>
 
   <properties>
-    <deb.install.path>/usr/share/spark</deb.install.path>
+    <deb.pkg.name>spark-${classifier}</deb.pkg.name>
+    <deb.install.path>/usr/share/spark-${classifier}</deb.install.path>
     <deb.user>root</deb.user>
   </properties>
 
@@ -183,7 +184,7 @@
                   <goal>jdeb</goal>
                 </goals>
                 <configuration>
-                  <deb>${project.build.directory}/${project.artifactId}-${classifier}_${project.version}-${buildNumber}_all.deb</deb>
+                  <deb>${project.build.directory}/${deb.pkg.name}_${project.version}-${buildNumber}_all.deb</deb>
                   <attach>false</attach>
                   <compression>gzip</compression>
                   <dataSet>
diff --git a/repl-bin/src/deb/control/control b/repl-bin/src/deb/control/control
index afadb3fbfe797f1e3b835539a4a9d29014630499..a6b4471d485f475358462b5f9437b104cce46d09 100644
--- a/repl-bin/src/deb/control/control
+++ b/repl-bin/src/deb/control/control
@@ -1,8 +1,8 @@
-Package: [[artifactId]]
+Package: [[deb.pkg.name]]
 Version: [[version]]-[[buildNumber]]
 Section: misc
 Priority: extra
 Architecture: all
 Maintainer: Matei Zaharia <matei.zaharia@gmail.com>
-Description: spark repl
+Description: [[name]]
 Distribution: development