jdeb
jdeb copied to clipboard
Generate copyright files
To play nice with the Debian policy we should generate a copyright file in the binary package. This file is located at:
/usr/share/doc/<packagename>/copyright
The syntax of the copyright file is specified here: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
More info: http://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile
For the record, I created a PR on our repository to create the proper copyright file, based on some properties, the setup can be find here: https://github.com/xwiki/xwiki-platform/pull/839
Basically we have a copyright
resource file we process with the maven-remote-resource-plugin (well it's not exactly this one in our setup, but it would work the same with maven-remote-resource-plugin) to put the right info: license type defined by the pom, years, etc.
We configure jdeb to put this copyright file at the right place given the package name.
And finally as we also need to put this copyright file along with the control file, we copy the entire deb/control
directory, put the copyright in it and use this directory as controlDir
for jdeb.