mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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:
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
|
@ -1301,6 +1301,7 @@
|
|||
SUBDIR += rubygem-merb
|
||||
SUBDIR += rubygem-mongrel
|
||||
SUBDIR += rubygem-mongrel_cluster
|
||||
SUBDIR += rubygem-passenger
|
||||
SUBDIR += rubygem-rack
|
||||
SUBDIR += rubygem-rails
|
||||
SUBDIR += rubygem-rails-app-installer
|
||||
|
|
43
www/rubygem-passenger/Makefile
Normal file
43
www/rubygem-passenger/Makefile
Normal 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>
|
3
www/rubygem-passenger/distinfo
Normal file
3
www/rubygem-passenger/distinfo
Normal 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
|
13
www/rubygem-passenger/files/pkg-message.in
Normal file
13
www/rubygem-passenger/files/pkg-message.in
Normal 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!
|
||||
|
||||
#####################################################################
|
4
www/rubygem-passenger/pkg-descr
Normal file
4
www/rubygem-passenger/pkg-descr
Normal 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/
|
Loading…
Add table
Reference in a new issue