tmate-io / tmate-ssh-server

tmate SSH server
https://tmate.io
Other
626 stars 146 forks source link

Add RPM SPEC and supporting files #13

Closed skpy closed 4 years ago

skpy commented 9 years ago

This adds a SPEC directory in which is a tmate-slave.spec file that can be used to build an RPM on RHEL 7 (and derivative) systems. It also provides a number of ancillary files in the RPM directory to support proper daemonization of tmate-slave.

README.md updated accordingly.

To facilitate people attempting to build RPMs, a binary release of tmate-slave would be very helpful. As it is, I had to manually export the source from the git repo, then build a tmate-slave-1.8.tar.gz file for use with the rpmbuild command.

The 1.8 release at nviennot/tmate-slave/releases is, in fact, the upstream tmux source.

nviennot commented 8 years ago

Hi Scott,

For some reason I never saw this pull request. My apologies. This looks quite good.

Since then, I changed a couple of things in tmate-slave: 1) no more log file to specify. The log goes either to stderr, or syslog, so the log rotate might not be useful anymore. 2) ssh-keygen might need a -E md5 for the fingerprint.

Sorry again for the long delay...

Have a good one, Nico.

skpy commented 8 years ago

@nviennot updated. I'm not a systemd expert yet, so the pre- and post- RPM scripts may have some rough edges. This SPEC has been working for our needs, though.

One note is that since this SPEC isn't tied to a current release, I updated the version to be the date at which I had updated this file internally.

skpy commented 8 years ago

Additionally, building this RPM for RHEL7 requires msgpack-devel, available from COPR. Installing this RPM requires msgpack version 1.3.0, also available from COPR.

skpy commented 8 years ago

@nviennot I've updated the SPEC for the latest iteration of the code. Care to take another look?

nviennot commented 8 years ago

I'll have to come back to you on this one, sorry for the late reply

rbuzatu90 commented 6 years ago

Having support for building RPM would be very nice for many! @nviennot Can you briefly take a look at it ? Cheers!

nviennot commented 6 years ago

Can we use a repository just for the RPM stuff instead? I've created it here: https://github.com/tmate-io/tmate-rpm

cryptomilk commented 5 years ago

I would suggest to create a package for fedora and epel. Spec files should be maintained in the Fedora source code repository.

nviennot commented 4 years ago

Hello @skpy,

I'm sorry I never got to merge your work. I'm not sure what's the status of this PR, and if it is still relevant. What's the status?

skpy commented 4 years ago

Hi. I've lost track of this PR. We've since moved to invoking tmate through a container, so we don't really use the RPM build process any more. I'll close this. If someone else wants to pick it up, they can!