From b80718e6a80c11d2de29338845be96810f78a6f6 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Signorelli Date: Sun, 8 Mar 2015 23:42:14 -0300 Subject: [PATCH 1/5] amazon build dependencies --- data/build_dependencies/amazon.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/build_dependencies/amazon.yml diff --git a/data/build_dependencies/amazon.yml b/data/build_dependencies/amazon.yml new file mode 100644 index 0000000..b5c3d91 --- /dev/null +++ b/data/build_dependencies/amazon.yml @@ -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 From 921fab602143ad6e1ec7e401772265e16de68b01 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Signorelli Date: Sun, 8 Mar 2015 23:44:27 -0300 Subject: [PATCH 2/5] amazon distribution inherits from redhat --- lib/pkgr/distributions/amazon.rb | 6 ++++++ lib/pkgr/distributions/redhat.rb | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 lib/pkgr/distributions/amazon.rb diff --git a/lib/pkgr/distributions/amazon.rb b/lib/pkgr/distributions/amazon.rb new file mode 100644 index 0000000..e1d35be --- /dev/null +++ b/lib/pkgr/distributions/amazon.rb @@ -0,0 +1,6 @@ +module Pkgr + module Distributions + class Amazon < Redhat + end + end +end diff --git a/lib/pkgr/distributions/redhat.rb b/lib/pkgr/distributions/redhat.rb index 1e91be2..a142e36 100644 --- a/lib/pkgr/distributions/redhat.rb +++ b/lib/pkgr/distributions/redhat.rb @@ -7,3 +7,5 @@ def runner end end end + +require 'pkgr/distributions/amazon' From f8389802852c9c69eeb5316823850c3a2fbb784c Mon Sep 17 00:00:00 2001 From: Luiz Fernando Signorelli Date: Sun, 8 Mar 2015 23:51:45 -0300 Subject: [PATCH 3/5] amazon buildpacks --- data/buildpacks/amazon-2014 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 data/buildpacks/amazon-2014 diff --git a/data/buildpacks/amazon-2014 b/data/buildpacks/amazon-2014 new file mode 100644 index 0000000..3cfac20 --- /dev/null +++ b/data/buildpacks/amazon-2014 @@ -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 From c64bece1c1739b9b8db0a3b7d2f2247c357dfe94 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Signorelli Date: Mon, 9 Mar 2015 01:08:09 -0300 Subject: [PATCH 4/5] amazon dependencies --- data/dependencies/amazon.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/dependencies/amazon.yml diff --git a/data/dependencies/amazon.yml b/data/dependencies/amazon.yml new file mode 100644 index 0000000..a1ea99f --- /dev/null +++ b/data/dependencies/amazon.yml @@ -0,0 +1,9 @@ +default: + - openssl + - readline + - libxml2 + - libxslt + - libevent + - postgresql-libs + - mysql-libs + - sqlite From 893e745a1218e7aa0c1a47672497698b1a344708 Mon Sep 17 00:00:00 2001 From: Luiz Fernando Signorelli Date: Mon, 9 Mar 2015 01:23:22 -0300 Subject: [PATCH 5/5] detect amazon-linux on preinstall script --- data/hooks/preinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/hooks/preinstall.sh b/data/hooks/preinstall.sh index 9dc41b7..2941a2f 100644 --- a/data/hooks/preinstall.sh +++ b/data/hooks/preinstall.sh @@ -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