diff --git a/pom.xml b/pom.xml
index 54e228478afa956ae58ff61d03d586c9343bd61b..f4724898fdab19dfb60c6d92a3164ff23fdfecde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -571,6 +571,39 @@
                 		</plugins>
                 	</build>
                 </profile>
+                <profile>
+                <id>textgrid.deb</id>
+                    <build>
+                      <plugins>
+                        <plugin>
+                          <artifactId>jdeb</artifactId>
+                          <groupId>org.vafer</groupId>
+                          <version>1.4</version>
+                          <executions>
+                            <execution>
+                              <phase>package</phase>
+                              <goals>
+                                <goal>jdeb</goal>
+                              </goals>
+                              <configuration>
+                                <snapshotExpand>true</snapshotExpand>
+                                <dataSet>
+                                  <data>
+                                    <type>file</type>
+                                    <src>${project.build.directory}/${project.build.finalName}.war</src>
+                                    <mapper>
+                                      <type>perm</type>
+                                      <prefix>/var/textgrid/webapps</prefix>
+                                    </mapper>
+                                  </data>
+                                </dataSet>
+                              </configuration>
+                            </execution>
+                          </executions>
+                        </plugin>
+                      </plugins>
+                  </build>
+                </profile>
         </profiles>
         <organization>
 		    <name>TextGrid</name>
diff --git a/src/deb/control/control b/src/deb/control/control
new file mode 100644
index 0000000000000000000000000000000000000000..0ba9893fa34f8601f0a7030aa39cf05080f7c25d
--- /dev/null
+++ b/src/deb/control/control
@@ -0,0 +1,7 @@
+Package: [[artifactId]]
+Version: [[version]]
+Section: misc
+Priority: low
+Architecture: all
+Description: [[description]]
+Maintainer: info@textgrid.de
diff --git a/src/deb/control/postinst b/src/deb/control/postinst
new file mode 100644
index 0000000000000000000000000000000000000000..94b3799c1881f819827b767b86191acf1e3f1c60
--- /dev/null
+++ b/src/deb/control/postinst
@@ -0,0 +1,5 @@
+#!/bin/bash
+invoke-rc.d tomcat-aggregator start
+# return success, even if service not installed
+exit 0
+
diff --git a/src/deb/control/preinst b/src/deb/control/preinst
new file mode 100644
index 0000000000000000000000000000000000000000..73003da7e30148840d1efb3841818066e36095a1
--- /dev/null
+++ b/src/deb/control/preinst
@@ -0,0 +1,5 @@
+#!/bin/bash
+invoke-rc.d tomcat-aggregator stop
+# return success, even if service not installed
+exit 0
+