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

Feature request: rpm support #54

Open
KlavsKlavsen opened this issue Apr 12, 2017 · 3 comments
Open

Feature request: rpm support #54

KlavsKlavsen opened this issue Apr 12, 2017 · 3 comments

Comments

@KlavsKlavsen
Copy link

It would be cool if freight add - also handled rpm repo's - and gpg signing of rpms.
It would need to "know to fail" - if one tried to add an rpm to a debian repo..

Either you could simply add a setting to a conf file (which is per repo) - simply had VARCACHE and VARLIB setting for rpm.. or if freight was made to prefix with type.. so you could set a config setting:
HANDLEYUM=true|false
HANDLEAPT=true|false
and prefixed repo with $VARCACHE/YUM/$usual path - as it already does with VARLIB dir.

What do you think of the idea? (then one could add other rpm-based systems, which does not support yum repo format as well).

I might hack a little on it if I get time.. if we agree on how it should be implemented (in helicopter view :)

@mattock
Copy link
Member

mattock commented Apr 28, 2017

How about using FPM for producing the RPMs? We have used that to generate the official Debian packages, see the build target in the Makefile.

@domcleal
Copy link

@mattock this is more about building Yum repositories containing RPMs, rather than building Freight as an RPM. (I publish RPMs for Freight itself via Fedora's EPEL project.) To build repos, you'd use the Python createrepo tool.

i agree that FPM ought to be able to support Yum and other types of repo, and it the command line does appear to have been designed with that in mind. I'm sure there's a fork containing Yum support somewhere, but I've been unable to find it now (it means digging through the GitHub 'network' I think).

@KlavsKlavsen
Copy link
Author

Currently I just extended my freight-add script - so it (when its an rpm) - simply copies the rpm into $reponame/yum/... and runs rpmsign --addsign and create repo on the repo. freight should probably just do the same - and then sign the yum repo as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants