-
Notifications
You must be signed in to change notification settings - Fork 267
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
modify paths for generic packaging #256
Comments
@adrelanos The feature request outlined here is to support Whonix's "generic packaging" scheme. Correct? |
Yes. Found it too complicated and confusing. Preferring debhelper dh-python2 method.
Might be. Can't be of help for stdeb.
Wipe the "Whonix" word. Unrelated to Whonix, which just happens to use "generic packaging" method. It's a suggestion to change the path for the "generic packaging" scheme that would help with packaging for any Debian (and maybe others) based distro.
It's not something to suit Whonix. It's something to suit the "generic packaging" solution.
That is totally unrelated here. It's just a tool to conditionally populate /etc/apt/sources.list.d/whonix.list or not. |
I would like to help getting the "deb/rpm packaging" #129 ticket move forward. Since I don't want to pollute that ticket, I am suggesting a rather huge change here. Let me briefly explain "generic packaging".
Whonix's packages (that mostly contain just scripts, config files and package dependencies) are mostly packaged using "generic packaging". It's about where files are stored, how the makefile works and distribution specific packaging tools.
In short, files in
etc/...
in root source folder will be installed to/etc/...
, files inusr/...
will be installed to/usr/...
and so forth. This should make renaming, moving files around, packaging, etc. very simple. Packaging of most of Whonix's packages (list) looks very similar.The makefile, the make-helper.bsh script are the same for any package and other files (such as licensing stuff) look very similar.
This makes packaging and maintenance real simple.
Does that make sense?
We also have a few python packages.
Using that method - using the canonical, standard
debhelper
dh_python2
way - we are able to produce Debian policy conform.deb
packages, that meanslintian
is reporting zero warnings.Proposal:
You'd need to move files accordingly. Maybe you want several packages? Such as
tuf-shared
,tuf-server
,tuf-client
? In that case, create these three folders in the root of TUF's source folder. (Or alternatively split into three git repositories.) Then inside thetuf-client
folder, addtuf-client/etc/
,tuf-client/usr/
, etc. folders accordingly and move files there. Please have a look at the example repositories above to find out where to best place files.I'd then do my creating a pull request that adds the generic packaging. Can't promise anything, but I think this should be relatively easy. We could also contact debian-mentors, they got a mailing list and irc channel helping with debian packaging questions.
The text was updated successfully, but these errors were encountered: