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

Split specfile output for client and server #116

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cviecco
Copy link
Contributor

@cviecco cviecco commented May 4, 2021

No description provided.

@cviecco cviecco requested review from kyleip and rgooch May 4, 2021 12:22
keymaster.spec Outdated
%description
Simple utilites for checking state of ldap infrastructure
Certificate based identity system. Contains both a daemon
and a clients.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: clients -> client

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

/usr/sbin/userdel keymaster
systemctl daemon-reload


%files
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 91 to 92
%{_bindir}/keymaster-unlocker
/usr/lib/systemd/system/keymaster.service
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be under %files client as well? (since they are keymaster, not keymasterd)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, the service name is called keymaster. And is precisely what why are trying to split. Clientd do not need the systemd parts.

Copy link
Collaborator

@erikespinoza erikespinoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intention is not 100% clear.

If the goal is to deprecate keymaster package and create keymaster-server and keymaster-client packages, then this works. Unsure if this is intended. Approving if that is the case.

The alternative would be to remove "%package server" and all references to server in other sections. This will allow the keymaster server to continue to simply be the keymaster rpm package and create a separate package for keymaster-client.

#%doc
%{_sbindir}/keymasterd
%{_bindir}/keymaster
%{_bindir}/keymaster-unlocker
/usr/lib/systemd/system/keymaster.service
Copy link
Collaborator

@erikespinoza erikespinoza May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we rename the package keymaster-server, shouldn't this service file also be renamed keymaster-server.service?

Sorry, clicked the wrong thing. Should be for line 92.

Copy link
Member

@rgooch rgooch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed elsewhere, please split into these packages:

  • keymaster (CLI tool)
  • keymasterd (Keymaster server)
  • keymaster-eventmond
  • keymaster-admin (keymaster-unlocker, new binary to create CA and config files)

@rgooch
Copy link
Member

rgooch commented Oct 11, 2023

What about the split out of keymaster-eventmond and keymaster-admin packages?

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

Successfully merging this pull request may close these issues.

None yet

4 participants