Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Build .deb package for Ubuntu 16.04 #109

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

Conversation

KusabiSensei
Copy link
Contributor

There was a quick discussion in #104 about possibility of creating a .deb package that would work with Ubuntu 16.04.

The current RPM build with spec file is the correct way to build the RPM package, but Debian's toolkit for building .debs is a bit more obtuse. So I've leveraged jordansissel/fpm to build .deb package for the tree.

Currently it packages the current state of the tree, but it would be easy to wrap with a script that uses released versions, like the RPM spec file does.

This includes the build scripts and documentation on how to
build a .deb for the project.

It also includes a quick blurb on how to build an RPM from a released version
using the spec file available. At some point, we may want to look at the
possibility of a spec file that builds from the current tree (If that's possible)

EDIT: I modified the build command, so that the cron file isn't a config
file. This is important because if someone were to use `apt-get remove` or
`apt erase`, this file would get left, and thus cron would continue to
execute it.
I had put bash as a dependency, but this only makes sense if
openssh-server (on Ubuntu 16.04) is included as a dependency.
@michaelwittig
Copy link
Contributor

I put this to our backlog and see if I can integrate it into the existing build pipeline. Thanks for your work!

@KusabiSensei
Copy link
Contributor Author

I've noticed that the documentation in my last commit doesn't include the dependency on awscli (So apt pulls in awscli if it's not already installed), so I'll add a commit that includes that extra -d flag to mark that dependency.

Otherwise you will have a bad time, and none of your users will sync.
@codfather
Copy link

Hi, I was also looking for a .deb version so I built a 1.7.0 version - which worked fine on an Ubuntu 16.04 AMI. The developers notes needs to be updated a little, as it was not clear where to place the new new files on initial inspection - ie the pkg directory. Also makes sense to mention the commands needed to run as root user to build the .deb. With Ubuntu AMI also needs to be clear that the awscli deb needs to be installed. Apart from that it works as described.

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

Successfully merging this pull request may close these issues.

None yet

3 participants