Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for copyright metadata in debian packages #561

Closed
2 tasks done
barthisrael opened this issue Oct 18, 2022 · 2 comments
Closed
2 tasks done

Add support for copyright metadata in debian packages #561

barthisrael opened this issue Oct 18, 2022 · 2 comments
Assignees
Labels

Comments

@barthisrael
Copy link

Is your feature request related to a problem? Please describe.

It is a feature request. I would like to be able to add the debian/copyright metadata into the deb package through nFPM. This is how that file usually looks like:

Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
License: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.
X-License-Url: https://www.mywebsite.com/mylicense
Sources: https://www.mywebsite.com/mytool
Copyright: mycopyright
Upstream-Name: mypackage

Describe the solution you'd like

Some way of specifying through the yml file that the copyright metadata should be present in the deb package.

Describe alternatives you've considered

So far we are working around by:

  • generating the packages through nFPM
  • unpacking
  • including the debian/copyright
  • repacking

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@barthisrael barthisrael added the enhancement New feature or request label Oct 18, 2022
@barthisrael
Copy link
Author

I forgot to mention it earlier here, but we worked around this issue by creating the copyright file and then specifying the following in our nFPM configuration file:

- src: build/copyright
  dst: /usr/share/doc/<product_name>/copyright
  packager: deb

@caarlos0
Copy link
Member

I think that's a good enough alternative, might be worth adding it to our docs though

@caarlos0 caarlos0 added docs and removed enhancement New feature or request labels Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants