title: sbt-native-packager, hook into the debian package lifecycle
body: <p>I try to use sbt-native-packager to build deb package. I want to hook into the debian package lifecycle. I try to achieve this according to instructions on the sbt-native-packager site. In my build.sbt I added sth like:</p>
  
  <pre><code>import DebianConstants._
  maintainerScripts in Debian := maintainerScriptsAppend((maintainerScripts in Debian).value)(
    Preinst -&gt; "echo 'hello, world'",
    Postinst -&gt; s"echo 'installed ${(packageName in Debian).value}'"
  )
  </code></pre>
  
  <p>But I get error <code>cannot resolve symbol DebianConstants</code>. I use sbt 0.13.9, scala 2.11.6 and sbt-native-packager 1.0.6. I searched in packages and I can't find anything like <code>DebianConstants</code>. I also can't find <code>maintainerScripts</code> key for <code>Debian</code>. It seems that sbt-native-packager site is out of date. Is there a way to programmatically hook into the debian package lifecycle?</p>
  
  <p>PS I know there is a way to place scripts into <code>src/debian/DEBIAN</code>. But I want to know if there is a way to do it in <code>build.sbt</code> (just for fun) </p>