Bug 231877

Summary: www/rubygem-passenger with FLAVOR=nginx wrong post install information
Product: Ports & Packages Reporter: Michael Kastner <kastner>
Component: Individual Port(s)Assignee: Sergey A. Osokin <osa>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (osa)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Michael Kastner 2018-10-02 13:13:43 UTC
When building www/rubygem-passenger with

make FLAVOR=nginx install

the concluding information points to the wrong (i.e. apache) module:

Quote begin ----

Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module /usr/local/lib/ruby/gems/2.4/gems/passenger-5.3.5/buildout/apache2/mod_passenger.so
   PassengerRoot /usr/local/lib/ruby/gems/2.4/gems/passenger-5.3.5
   PassengerRuby /usr/local/bin/ruby24

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!

Quote end   ----

It should point to the nginx module, which is located here after passenger installation:

/usr/local/libexec/nginx/ngx_http_passenger_module.so
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-10-07 16:19:17 UTC
A commit references this bug:

Author: osa
Date: Sun Oct  7 16:18:59 UTC 2018
New revision: 481455
URL: https://svnweb.freebsd.org/changeset/ports/481455

Log:
  Add another package message file to fix the issue with it for nginx flavor.

  Bump PORTREVISION.

  PR:	231877

Changes:
  head/www/rubygem-passenger/Makefile
  head/www/rubygem-passenger/files/pkg-message-apache.in
  head/www/rubygem-passenger/files/pkg-message-nginx.in
  head/www/rubygem-passenger/files/pkg-message.in
Comment 2 Sergey A. Osokin freebsd_committer freebsd_triage 2018-10-07 16:20:15 UTC
The issue has been fixed.