sudo_pair icon indicating copy to clipboard operation
sudo_pair copied to clipboard

Feature: packaged distributions.

Open robertdebock opened this issue 7 years ago • 11 comments

Hi,

Would it be an idea to package sudo-pair into shipable formats such as:

  • binary in a tar.gz
  • rpm
  • deb
  • apk

I'm able to assist in a RPM at least.

In order to have this feature, I think these items are required:

  • A CI/CD pipeline to build packages if you release a new version of sudo-pair. Maybe travis-ci.
  • (RPM) A spec file describing the build process and the installation.
  • (deb) A control-file like the spec file.
  • An artifact store.

I understand it's quite a request, so if I can help you anywhere, please involve me.

Regards, Robert de Bock.

robertdebock avatar May 19 '18 19:05 robertdebock

I'm open to the plugin itself being packaged for distributions, but some care needs to be done when doing this. To enable it for real, you really need to configure it for your own environment: sudoer and pairer prompts, and /etc/sudo.conf. And those aren't things I think are easy to guess at or do automatically. Still, apt-get install libsudo_pair is tempting, even if there's some extra legwork remaining to actually turn it on.

stouset avatar May 20 '18 21:05 stouset

Agreed, I guess you want to make it easy to install the plugin itself, to prevent people from needing to built it themselves. You could include some sample configurations in /usr/share/doc or so.

robertdebock avatar May 21 '18 06:05 robertdebock

I don't have time for that at the moment, but I'll leave this issue open since it's something I'd like to do. PRs welcome. :)

stouset avatar May 21 '18 18:05 stouset

I'm working on the RPM build. Should start to work today or tomorrow. When it's working, I'll make a pull request.

robertdebock avatar May 23 '18 19:05 robertdebock

For what it's worth, I just filed an Intent To Package bug in Debian.

nicoonoclaste avatar May 29 '18 11:05 nicoonoclaste

Thanks!

stouset avatar May 29 '18 17:05 stouset

@nbraud Did you ever get a chance to package this for Debian?

stouset avatar Mar 13 '19 23:03 stouset

Is this thing sudo_pair or sudo-pair? Please pick one or the other and stick with it, it's very confusing.

RiotNrrrd avatar Jul 01 '20 04:07 RiotNrrrd

As far as I'm aware, every mention of the project is sudo_pair. If there's somewhere it's not, please let me know.

stouset avatar Jul 01 '20 20:07 stouset

As far as I'm aware, every mention of the project is sudo_pair. If there's somewhere it's not, please let me know.

It's in contrib/sudo-pair.spec.

[mockbuild@vm-rh7 SOURCES]$ tar -tzpf sudo_pair-v0.11.1.tar.gz | grep sudo-pair sudo_pair-sudo_pair-v0.11.1/contrib/sudo-pair.spec

[mockbuild@vm-rh7 SOURCES]$ tar -xzpf sudo_pair-v0.11.1.tar.gz

[mockbuild@vm-rh7 SOURCES]$ find sudo_pair-sudo_pair-v0.11.1 -type f -print0 | xargs -0 egrep -l sudo-pair sudo_pair-sudo_pair-v0.11.1/contrib/sudo-pair.spec

[mockbuild@vm-rh7 SOURCES]$ grep sudo-pair sudo_pair-sudo_pair-v0.11.1/contrib/sudo-pair.spec Name: sudo-pair

RiotNrrrd avatar Jul 01 '20 20:07 RiotNrrrd

As far as I'm aware, every mention of the project is sudo_pair. If there's somewhere it's not, please let me know.

It's in contrib/sudo-pair.spec.

[mockbuild@vm-rh7 SOURCES]$ tar -tzpf sudo_pair-v0.11.1.tar.gz | grep sudo-pair sudo_pair-sudo_pair-v0.11.1/contrib/sudo-pair.spec

[mockbuild@vm-rh7 SOURCES]$ tar -xzpf sudo_pair-v0.11.1.tar.gz

[mockbuild@vm-rh7 SOURCES]$ find sudo_pair-sudo_pair-v0.11.1 -type f -print0 | xargs -0 egrep -l sudo-pair sudo_pair-sudo_pair-v0.11.1/contrib/sudo-pair.spec

[mockbuild@vm-rh7 SOURCES]$ grep sudo-pair sudo_pair-sudo_pair-v0.11.1/contrib/sudo-pair.spec Name: sudo-pair

That's something I can fix, I'll make a PR for it.

robertdebock avatar Jul 02 '20 06:07 robertdebock