aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-unicorn
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-25 15:33:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-26 14:21:42 +0000
commitc6a92c3fbdb63405983e4dd6acf5eddcf89159a6 (patch)
tree2015d7067daa6a5e3c5fa16595d165627eeb1c90 /main/ruby-unicorn
parent93efa9f774f3757b177d4b59e39a981210bc908c (diff)
downloadaports-c6a92c3fbdb63405983e4dd6acf5eddcf89159a6.tar.bz2
aports-c6a92c3fbdb63405983e4dd6acf5eddcf89159a6.tar.xz
main/ruby-unicorn: rebuild against ruby 2.2
Diffstat (limited to 'main/ruby-unicorn')
-rw-r--r--main/ruby-unicorn/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/ruby-unicorn/APKBUILD b/main/ruby-unicorn/APKBUILD
index eb1867b685..3ee1f69158 100644
--- a/main/ruby-unicorn/APKBUILD
+++ b/main/ruby-unicorn/APKBUILD
@@ -2,7 +2,7 @@
_gemname=unicorn
pkgname=ruby-unicorn
pkgver=4.8.3
-pkgrel=0
+pkgrel=1
pkgdesc="Unicorn is an HTTP server for Rack applications"
url="http://unicorn.bogomips.org"
arch="all"
@@ -33,6 +33,15 @@ package() {
rm -rf "$pkgdir"/$_gemdir/cache \
"$pkgdir"/$_geminstdir/ext \
"$pkgdir"/$_geminstdir/.require_paths
+
+ cd "$pkgdir"
+ for i in usr/lib/ruby/gems/*/bin/*; do
+ if [ -e "$i" ]; then
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /$i "$pkgdir"/usr/bin/
+ fi
+ done
+
install -Dm644 "$srcdir"/$_gemname.confd \
"$pkgdir"/etc/conf.d/$_gemname
install -D -m755 "$srcdir"/$_gemname.initd \