basho / node_package

RPM/Debian/FreeBSD/SmartOS/Solaris/OSX packaging templates for Erlang Nodes
Apache License 2.0
89 stars 63 forks source link

Added support for Amazon Linux #220

Open Bob-The-Marauder opened 5 years ago

Bob-The-Marauder commented 5 years ago

Although Amazon Linux is based off RedHat/CentOS and uses the same rpm build structure, for some reason they changed /etc/redhat-release to /etc/system-release. As this is not a recognised structure, the Riak build fails, claiming it does not know what to do with "Linux". This pull request is designed to get around that and allow Amazon Linux to build as if it were RedHat/CentOS.

This issue affects all versions of node_package. Would it be at all possible to git cherry-pick this in to multiple versions and tags, please? Especially tags 4.0.2 (KV 2.2.6 and KV 2.9.0) and 3.0.0 (CS 2.1.2 and Stanchion 2.1.2).