diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 13:49:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:19 +0000 |
commit | 680acd91061f7ddb667ff0cc0e75a69d105dce64 (patch) | |
tree | cffbae51cc059657ce39760d4cf3599287501fb4 /main/ruby-rack-ssl | |
parent | 02b761b8d9a53f8a48c769c26cf0e5d90b26b900 (diff) | |
download | aports-680acd91061f7ddb667ff0cc0e75a69d105dce64.tar.bz2 aports-680acd91061f7ddb667ff0cc0e75a69d105dce64.tar.xz |
main/ruby-rack-ssl: new aport
Rack middleware to force SSL/TLS
https://github.com/josh/rack-ssl
Diffstat (limited to 'main/ruby-rack-ssl')
-rw-r--r-- | main/ruby-rack-ssl/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-rack-ssl/APKBUILD b/main/ruby-rack-ssl/APKBUILD new file mode 100644 index 0000000000..3cc328c8eb --- /dev/null +++ b/main/ruby-rack-ssl/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=rack-ssl +pkgname=ruby-$_gemname +pkgver=1.3.2 +pkgrel=0 +pkgdesc="Rack middleware to force SSL/TLS" +url="https://github.com/josh/rack-ssl" +arch="noarch" +license="MIT" +depends="ruby ruby-rack" +depends_dev= +makedepends="$depends_dev ruby-gems" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver +build() { + return 0 +} + +package() { + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="45da2233b7580af57fbe9cbecb54e369 rack-ssl-1.3.2.gem" |