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 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 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 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 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'