Passenger is an Apache module allowing for simple deployment of Ruby on Rails

and Rack applications.

WWW: http://www.modrails.com/

PR:		ports/129731
Submitted by:	Jacob Atzen <jatzen at gmail.com>
This commit is contained in:
Martin Wilke 2008-12-25 19:49:34 +00:00
parent 8ed1419f5a
commit f16dbddf77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=224762
5 changed files with 64 additions and 0 deletions

View file

@ -1301,6 +1301,7 @@
SUBDIR += rubygem-merb SUBDIR += rubygem-merb
SUBDIR += rubygem-mongrel SUBDIR += rubygem-mongrel
SUBDIR += rubygem-mongrel_cluster SUBDIR += rubygem-mongrel_cluster
SUBDIR += rubygem-passenger
SUBDIR += rubygem-rack SUBDIR += rubygem-rack
SUBDIR += rubygem-rails SUBDIR += rubygem-rails
SUBDIR += rubygem-rails-app-installer SUBDIR += rubygem-rails-app-installer

View file

@ -0,0 +1,43 @@
# Ports collection makefile for: rubygem-passenger
# Date created: Dec 18, 2008
# Whom: Jacob Atzen <jatzen@gmail.com>
#
# $FreeBSD$
PORTNAME= passenger
PORTVERSION= 2.0.6
CATEGORIES= www rubygems
MASTER_SITES= RF
MASTER_SITE_SUBDIR= gems
MAINTAINER= jatzen@gmail.com
COMMENT= Apache module for running Ruby on Rails and Rack applications
BUILD_DEPENDS= rubygem-fastthread>=1.0.1:${PORTSDIR}/devel/rubygem-fastthread \
rubygem-rack>=0.1.0:${PORTSDIR}/www/rubygem-rack
SUB_FILES= pkg-message
USE_APACHE= 2.2+
USE_RUBY= yes
USE_RUBYGEMS= yes
USE_RAKE= yes
post-install:
(cd ${PREFIX}/${GEM_LIB_DIR} && rake clean apache2 )
@${CAT} ${PKGMESSAGE}
@${ECHO} bin/passenger-config > ${TMPPLIST}
@${ECHO} bin/passenger-install-apache2-module >> ${TMPPLIST}
@${ECHO} bin/passenger-make-enterprisey >> ${TMPPLIST}
@${ECHO} bin/passenger-memory-stats >> ${TMPPLIST}
@${ECHO} bin/passenger-spawn-server >> ${TMPPLIST}
@${ECHO} bin/passenger-status >> ${TMPPLIST}
@${ECHO} bin/passenger-stress-test >> ${TMPPLIST}
@${ECHO} ${GEM_CACHE} >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST}
@${ECHO} ${GEM_SPEC} >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST}
@${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (rubygem/passenger-2.0.6.gem) = 2ab7dbc9aff6235fcdb88b6db80b0c68
SHA256 (rubygem/passenger-2.0.6.gem) = 69f3ced278d54cc114a072f14a411754daa8bf5f34a36389515b5eb3c4eeb431
SIZE (rubygem/passenger-2.0.6.gem) = 1446400

View file

@ -0,0 +1,13 @@
#####################################################################
Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module %%PREFIX%%/%%GEM_LIB_DIR%%/ext/apache2/mod_passenger.so
PassengerRoot %%PREFIX%%/%%GEM_LIB_DIR%%
PassengerRuby %%RUBY%%
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!
#####################################################################

View file

@ -0,0 +1,4 @@
Passenger is an Apache module allowing for simple deployment of Ruby on Rails
and Rack applications.
WWW: http://www.modrails.com/