diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-04-29 06:35:32 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-04-29 06:35:32 +0000 |
commit | 789127aa25f0df1db02e136fdcd6f25bd6f374ad (patch) | |
tree | 452481e9ce75c5b544445b36f82edaa6247397df /main/nginx | |
parent | eafb47fac7b11314d1a207d95972a324e35ab8c9 (diff) | |
download | aports-789127aa25f0df1db02e136fdcd6f25bd6f374ad.tar.bz2 aports-789127aa25f0df1db02e136fdcd6f25bd6f374ad.tar.xz |
main/nginx: doc and vim subpkg
Diffstat (limited to 'main/nginx')
-rw-r--r-- | main/nginx/APKBUILD | 17 |
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 |