summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-04-16 14:53:38 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-16 14:53:38 -0400
commitba8d4f028580cb1c6972b85b50f4fd9887705061 (patch)
tree9805bd11f8df157a8161f340c06399e92c790ba6
parentaf9452bb4ea3e65505fa3be93a52c08e1b7634ab (diff)
downloadabslibre-ba8d4f028580cb1c6972b85b50f4fd9887705061.tar.gz
abslibre-ba8d4f028580cb1c6972b85b50f4fd9887705061.tar.bz2
abslibre-ba8d4f028580cb1c6972b85b50f4fd9887705061.zip
pcr/nginx-passenger: bump _passengerver, format to be like community/nginx
-rw-r--r--pcr/nginx-passenger/PKGBUILD68
1 files changed, 36 insertions, 32 deletions
diff --git a/pcr/nginx-passenger/PKGBUILD b/pcr/nginx-passenger/PKGBUILD
index abaefc18d..09bc0e4f7 100644
--- a/pcr/nginx-passenger/PKGBUILD
+++ b/pcr/nginx-passenger/PKGBUILD
@@ -9,7 +9,7 @@
pkgname=nginx-passenger
_nginxver=1.8.1
-_passengerver=5.0.25
+_passengerver=5.0.27
pkgver=$_nginxver.passenger.$_passengerver
pkgrel=1
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
@@ -38,10 +38,34 @@ source=($url/download/nginx-$_nginxver.tar.gz
passenger-$_passengerver.tar.gz::https://github.com/phusion/passenger/archive/release-$_passengerver.tar.gz
service
logrotate)
-sha512sums=('546eba1749af0034cb8b924d2432be2f0e82a75c545aa929391ef7234103c3f29376235a2ef1363b120e1825cda15aeb085a05f9ce3596c88466e112e82aa882'
- 'd9ed92ab49d3a67b6e489036d9336d244379a1a8132ac835b75b5ccd67aaace294b6f50e7fc7db647b3d7f5b37398258654d2011f17da2f55914860f80fb6bac'
- '9ac172be150903c086e6cad0da27363b60e54629ce6a1330d58db0653f89ba301ae07c82441f17b8a5b85d0ff36ba2b6090e11b2a2194760e0dd7fb84cf27ea5'
- 'ece7bb0c31232b40c80b03eb51b36c62eec2ec8ad5a454c284bbe5dff47af1cfcfe28dc01727c701a4568e89ae3fcfe69a25d737207f21dae362d1e7647d7d99')
+md5sums=('2e91695074dbdfbf1bcec0ada9fda462'
+ '58e204f52260d3c4afd8c81f252cefe7'
+ '5dd4d09914a4403b9df778ec1d66167c'
+ '19a26a61c8afe78defb8b4544f79a9a0')
+
+_common_flags=(
+ --with-ipv6
+ --with-pcre-jit
+ --with-file-aio
+ --with-http_addition_module
+ --with-http_dav_module
+ --with-http_degradation_module
+ --with-http_flv_module
+ --with-http_gunzip_module
+ --with-http_gzip_static_module
+ --with-http_mp4_module
+ --with-http_realip_module
+ --with-http_secure_link_module
+ --with-http_ssl_module
+ --with-http_stub_status_module
+ --with-http_sub_module
+)
+
+_stable_flags=(
+ --with-http_spdy_module
+ --with-imap
+ --with-imap_ssl_module
+)
build() {
cd "$srcdir/passenger-release-$_passengerver"
@@ -63,24 +87,8 @@ build() {
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
- --with-imap \
- --with-imap_ssl_module \
- --with-ipv6 \
- --with-pcre-jit \
- --with-file-aio \
- --with-http_dav_module \
- --with-http_gunzip_module \
- --with-http_gzip_static_module \
- --with-http_realip_module \
- --with-http_spdy_module \
- --with-http_ssl_module \
- --with-http_stub_status_module \
- --with-http_addition_module \
- --with-http_degradation_module \
- --with-http_flv_module \
- --with-http_mp4_module \
- --with-http_secure_link_module \
- --with-http_sub_module \
+ ${_common_flags[@]} \
+ ${_stable_flags[@]} \
--add-module="$_nginx_addon_dir"
make
@@ -90,13 +98,6 @@ package() {
cd "$srcdir/nginx-$_nginxver"
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' \
-e '44s|html|/usr/share/nginx/html|' \
-e '54s|html|/usr/share/nginx/html|' \
@@ -121,6 +122,9 @@ package() {
install -d "$pkgdir"/usr/share/man/man8/
gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz
-}
-# vim:set ts=2 sw=2 et:
+ for i in ftdetect indent syntax; do
+ install -Dm644 contrib/vim/${i}/nginx.vim \
+ "${pkgdir}/usr/share/vim/vimfiles/${i}/nginx.vim"
+ done
+}