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

Amazon linux support #57

Merged
merged 5 commits into from
Apr 1, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions data/build_dependencies/amazon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
default:
- curl
- gcc
- gcc-c++
- kernel-devel
- openssl-devel
- readline-devel
- libxml2-devel
- libxslt-devel
- libevent-devel
- postgresql-devel
- mysql-devel
- sqlite-devel
3 changes: 3 additions & 0 deletions data/buildpacks/amazon-2014
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/pkgr/heroku-buildpack-ruby.git#universal,BUILDPACK_NODE_VERSION="0.6.8",CURL_CONNECT_TIMEOUT=60,CURL_TIMEOUT=300
https://github.com/heroku/heroku-buildpack-nodejs.git#v58
https://github.com/kr/heroku-buildpack-go.git
9 changes: 9 additions & 0 deletions data/dependencies/amazon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
default:
- openssl
- readline
- libxml2
- libxslt
- libevent
- postgresql-libs
- mysql-libs
- sqlite
2 changes: 1 addition & 1 deletion data/hooks/preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export APP_GROUP="<%= group %>"
export APP_HOME="<%= home %>"

if ! getent passwd "${APP_USER}" > /dev/null; then
if [ -f /etc/redhat-release ] || [ -f /etc/SuSE-release ]; then
if [ -f /etc/redhat-release ] || [ -f /etc/system-release ] || [ -f /etc/SuSE-release ]; then
if ! getent group "${APP_GROUP}" > /dev/null ; then
groupadd --system "${APP_GROUP}"
fi
Expand Down
6 changes: 6 additions & 0 deletions lib/pkgr/distributions/amazon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Pkgr
module Distributions
class Amazon < Redhat
end
end
end
2 changes: 2 additions & 0 deletions lib/pkgr/distributions/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ def runner
end
end
end

require 'pkgr/distributions/amazon'