I have : mappings in Universal ++= Seq( file("my-application/src/universal/etc/logrotate.d/my-application") -> "/etc/logrotate.d/my-application" )
But this puts it into /usr/share/my-application/etc/logroteate.d/my-application
I have : mappings in Universal ++= Seq( file("my-application/src/universal/etc/logrotate.d/my-application") -> "/etc/logrotate.d/my-application" )
But this puts it into /usr/share/my-application/etc/logroteate.d/my-application
Putting mappings in Universal will put them inside the installation directory. You have to use the linuxPackageMappings.
Start by reading the docs on this. Then take a look at some of the tests, which also act as examples.
Unfortunatly the packaging API is not refactored yet thus a bit spread out. The LinuxPlugin trait contains some parts of the mappings methods, too.
linuxPackageMappings += packageMapping(files: (File, String)*)