These are chat archives for sbt/sbt-native-packager

23rd
Aug 2016
Simon Hafner
@reactormonk
Aug 23 2016 06:20
Somehow the packaged deb doesn't include any jars, just the systemd file - I've added the debian plugin and the systemd plugin - do I need any others?
Simon Hafner
@reactormonk
Aug 23 2016 06:27
Yup, pick an archetype.
I'm currently copy/pasting out the default debian control scripts to modify - is there a better way so I can let the plugin generate me the all the functions for create user etc.?
Simon Hafner
@reactormonk
Aug 23 2016 07:13
How would I change the bin/* names and add my own? Got two main classes, which I would like to two separate bin/ files.
Simon Hafner
@reactormonk
Aug 23 2016 07:49
Chaning into the default script via -main should be easier.
*Chaining
Nepomuk Seiler
@muuki88
Aug 23 2016 09:13
Simon Hafner
@reactormonk
Aug 23 2016 09:15
Currently building it on the server, let's see if it works.
Here's my settings, if you see something obvious, feel free to tell me: https://github.com/reactormonk/fleet-buddy/blob/master/build.sbt#L63
Simon Hafner
@reactormonk
Aug 23 2016 10:12
I've got my own postinst script - how can I prevent the default being attached?
or rather, appended.
Nepomuk Seiler
@muuki88
Aug 23 2016 16:19

@reactormonk

There are a few places where things get appended into the maintainer scripts

You may need to override the given tasks and implement this behaviour yourself. This is all pretty messy, mostly due to the very inconsistent
handling of permissions in java and different operating systems.

Simon Hafner
@reactormonk
Aug 23 2016 16:43
@muuki88, do I need the dot? I'm looking for configfile everywhere.
Simon Hafner
@reactormonk
Aug 23 2016 20:30

A simple

      maintainerScripts in Debian := {
        val scripts = (maintainerScripts in Debian).value
        scripts + ("postinst" -> IO.readLines(sourceDirectory.value / "debian" / "DEBIAN" / "postinst"))
      }

did the job.

Nepomuk Seiler
@muuki88
Aug 23 2016 21:42
Sweet :)