extra/nginx update

This commit is contained in:
Kevin Mihelich 2016-04-26 17:55:42 +00:00
parent 423c79ef47
commit 8535ef5b82

View file

@ -90,13 +90,6 @@ package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -Dm644 contrib/vim/ftdetect/nginx.vim \
"$pkgdir"/usr/share/vim/vimfiles/ftdetect/nginx.vim
install -Dm644 contrib/vim/syntax/nginx.vim \
"$pkgdir"/usr/share/vim/vimfiles/syntax/nginx.vim
install -Dm644 contrib/vim/indent/nginx.vim \
"$pkgdir"/usr/share/vim/vimfiles/indent/nginx.vim
sed -e 's|\<user\s\+\w\+;|user html;|g' \ sed -e 's|\<user\s\+\w\+;|user html;|g' \
-e '44s|html|/usr/share/nginx/html|' \ -e '44s|html|/usr/share/nginx/html|' \
-e '54s|html|/usr/share/nginx/html|' \ -e '54s|html|/usr/share/nginx/html|' \
@ -121,6 +114,11 @@ package() {
install -d "$pkgdir"/usr/share/man/man8/ install -d "$pkgdir"/usr/share/man/man8/
gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz
for i in ftdetect indent syntax; do
install -Dm644 contrib/vim/${i}/nginx.vim \
"${pkgdir}/usr/share/vim/vimfiles/${i}/nginx.vim"
done
} }
# vim:set ts=2 sw=2 et: # vim:set ts=2 sw=2 et: