aboutsummaryrefslogtreecommitdiffstats
path: root/www/rubygem-passenger
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2018-10-08 00:18:58 +0800
committerosa <osa@FreeBSD.org>2018-10-08 00:18:58 +0800
commitf6a38e1ee0e2912608518ef0f373e92f61249e87 (patch)
tree695dd31bea870ff200902a72da9b4a2d1bd071a0 /www/rubygem-passenger
parentca9e72939f0c858f3286595a573920e51a637024 (diff)
downloadfreebsd-ports-gnome-f6a38e1ee0e2912608518ef0f373e92f61249e87.tar.gz
freebsd-ports-gnome-f6a38e1ee0e2912608518ef0f373e92f61249e87.tar.zst
freebsd-ports-gnome-f6a38e1ee0e2912608518ef0f373e92f61249e87.zip
Add another package message file to fix the issue with it for nginx flavor.
Bump PORTREVISION. PR: 231877
Diffstat (limited to 'www/rubygem-passenger')
-rw-r--r--www/rubygem-passenger/Makefile3
-rw-r--r--www/rubygem-passenger/files/pkg-message-apache.in (renamed from www/rubygem-passenger/files/pkg-message.in)0
-rw-r--r--www/rubygem-passenger/files/pkg-message-nginx.in16
3 files changed, 18 insertions, 1 deletions
diff --git a/www/rubygem-passenger/Makefile b/www/rubygem-passenger/Makefile
index d987ee610183..b97fa874f25d 100644
--- a/www/rubygem-passenger/Makefile
+++ b/www/rubygem-passenger/Makefile
@@ -3,6 +3,7 @@
PORTNAME= passenger
PORTVERSION= 5.3.5
+PORTREVISION= 1
CATEGORIES= www rubygems
MASTER_SITES= RG
PKGNAMEPREFIX= rubygem-
@@ -60,7 +61,7 @@ BUILD_DEPENDS+= rubygem-rack>=0:www/rubygem-rack
RUN_DEPENDS:= ${BUILD_DEPENDS}
SUB_LIST+= GEM_LIB_DIR=${GEM_LIB_DIR} RUBY=${RUBY}
-SUB_FILES= pkg-message
+SUB_FILES= pkg-message-${FLAVOR}
PLIST_FILES= bin/passenger \
bin/passenger-config \
diff --git a/www/rubygem-passenger/files/pkg-message.in b/www/rubygem-passenger/files/pkg-message-apache.in
index 38ad68aaaf11..38ad68aaaf11 100644
--- a/www/rubygem-passenger/files/pkg-message.in
+++ b/www/rubygem-passenger/files/pkg-message-apache.in
diff --git a/www/rubygem-passenger/files/pkg-message-nginx.in b/www/rubygem-passenger/files/pkg-message-nginx.in
new file mode 100644
index 000000000000..e79125579daf
--- /dev/null
+++ b/www/rubygem-passenger/files/pkg-message-nginx.in
@@ -0,0 +1,16 @@
+#####################################################################
+
+Please edit your nginx configuration file, and add these lines:
+
+ server {
+ root %%PASSENGER_INSTALL_DIR%%;
+ passenger_enabled on;
+ passenger_ruby %%RUBY%%;
+ passenger_sticky_sessions on;
+ }
+
+After you restart nginx, you are ready to deploy any number of Ruby on Rails
+applications on nginx, without any further Ruby on Rails-specific
+configuration!
+
+#####################################################################