aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/nginx/APKBUILD')
-rw-r--r--main/nginx/APKBUILD17
1 files changed, 16 insertions, 1 deletions
diff --git a/main/nginx/APKBUILD b/main/nginx/APKBUILD
index cbd55033a8..63c5733b25 100644
--- a/main/nginx/APKBUILD
+++ b/main/nginx/APKBUILD
@@ -5,13 +5,14 @@
pkgname=nginx
pkgver=1.6.0
_nginxrtmpver=1.1.0
-pkgrel=0
+pkgrel=1
pkgdesc="lightweight HTTP and reverse proxy server"
url="http://www.nginx.org"
arch="all"
license="Custom"
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="pcre-dev openssl-dev zlib-dev"
+subpackages="$pkgname-doc $pkgname-vim:vim"
source="http://nginx.org/download/$pkgname-$pkgver.tar.gz
nginx-rtmp-module-$_nginxrtmpver.tar.gz::https://github.com/arut/nginx-rtmp-module/archive/v$_nginxrtmpver.tar.gz
musl-crypt-fix.patch
@@ -67,6 +68,20 @@ package() {
install -m644 -D "$srcdir"/$pkgname.logrotate "$pkgdir"/etc/logrotate.d/$pkgname
install -m644 -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -m644 -D man/$pkgname.8 "$pkgdir"/usr/share/man/man8/$pkgname.8
+}
+
+vim() {
+ local t
+
+ depends=""
+ pkgdesc="Vim syntax for Nginx"
+ arch="noarch"
+
+ for t in ftdetect syntax indent; do
+ install -Dm644 "$_builddir"/contrib/vim/$t/$pkgname.vim \
+ "$subpkgdir"/usr/share/vim/vimfiles/$t/$pkgname.vim
+ done
}
md5sums="8efa354f1c3c2ccf434a50d3fbe82340 nginx-1.6.0.tar.gz