-
Notifications
You must be signed in to change notification settings - Fork 18
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 Debian package meta-info and GitHub package builder action #35
base: main
Are you sure you want to change the base?
Conversation
As a starting point, I ran the following command and then minimized the configuration for stand-alone builds: dh-make-golang github.com/psanford/tpm-fido I created the debian/changelog file by running the following: debchange --create I used the following command to update the changelog version: git log --date=format:%Y%m%d --pretty="0.0~git%cd.%h-1"
I just ran "debchange -i" and added a note. In the future, you can just keep running "debchange -i" to increment the revision on this same entry. When you would line to change it to an actual release, you just run "debchange -r".
Hi @psanford! I'm more than happy to change the references to my name/email to your name/email, but I just wanted to check if you were okay with putting your name/email in the text files, before doing so. Let me know what you think! |
|
||
* Initial release. | ||
|
||
-- Craig Hesling <craig@hesling.com> Sun, 05 May 2024 20:23:37 -0700 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a name/email that I can happily change to your name/email.
Section: golang | ||
Priority: optional | ||
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org> | ||
Uploaders: Craig Hesling <craig@hesling.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is another name/email that I can happily change to your name/email.
Safe installer and small GUI extension to the great tpm-fido tool https://github.com/psanford/tpm-fido
Thanks for the pr! My philosophy is that packaging specific changes belong in the respective distribution repositories. I would encourage you to open this pr directly with Debian. |
This introduces a complete Debian package meta description and a GitHub action to build it.
The built package automatically sets up the groups and services needed to automatically run tpm-fido.
Specifically, the Debian meta information does the following:
Before adding the uhid-permission boot job, I did attempt to get udev to change the permission of /dev/uhid.
However, I couldn't figure out how to get udev to trigger, since it doesn't seem to receive any events about /dev/uhid, until
after a service requests a new virtual hid. See the debian/tpm-fido.udev.disabled file for more detail.
The GitHub action is pretty basic. It checks out the source, opens a Debian docker container, installs the build dependencies (package), runs the dpkg-buildpackage command, and then uploads the output package+build-info as an action artifact.
So, you can just download these artifacts and install away.
I tried to add as many comments and references as possible to help with understanding and maintenance.