diff options
Diffstat (limited to 'main/ruby-unicorn')
-rw-r--r-- | main/ruby-unicorn/APKBUILD | 11 |
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 \ |