1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Update Passenger from 2.2.5 to 2.2.8.

OPTIONSfy for choose apache22 or nginx, apache22 is default.

Other changes:

 o) add rails for dependences;
 o) update rack dependence;
 o) respect CC/CXX/CXXFLAGS/PTHREAD_LIBS flags;
 o) update package description.

Approved by:	Jacob Atzen aka jatzen at gmail dot com (maintainer)
Thanks to:	stas@
This commit is contained in:
Sergey A. Osokin 2010-01-09 20:01:56 +00:00
parent 7402b02fbc
commit 247d50104a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247460
3 changed files with 62 additions and 17 deletions

View File

@ -5,25 +5,44 @@
# $FreeBSD$
PORTNAME= passenger
PORTVERSION= 2.2.5
PORTVERSION= 2.2.8
CATEGORIES= www rubygems
MASTER_SITES= RF
MASTER_SITE_SUBDIR= gems
PKGNAMEPREFIX= rubygem-
MAINTAINER= jatzen@gmail.com
COMMENT= Apache module for running Ruby on Rails and Rack applications
COMMENT= Modules 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
OPTIONS= APACHEPORT "Use apache22" on \
NGINXPORT "Use nginx" off
USE_RUBY= yes
USE_RAKE= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
.include <bsd.port.options.mk>
.if defined(WITH_APACHEPORT) && defined(WITH_NGINXPORT)
IGNORE= supports only one web-server: apache22 or nginx. \
Please 'make config' again
.endif
.if !defined(WITHOUT_APACHEPORT)
USE_APACHE= 2.2+
.endif
.if defined(WITH_NGINXPORT)
BUILD_DEPENDS+= nginx>=0.7.64:${PORTSDIR}/www/nginx
.endif
BUILD_DEPENDS+= rubygem-fastthread>=1.0.1:${PORTSDIR}/devel/rubygem-fastthread \
rubygem-rack>=1.0.0:${PORTSDIR}/www/rubygem-rack \
rubygem-rails>=2.3.4:${PORTSDIR}/www/rubygem-rails
SUB_LIST+= GEM_LIB_DIR=${GEM_LIB_DIR} RUBY=${RUBY}
SUB_FILES= pkg-message
USE_APACHE= 2.2+
USE_RUBY= yes
USE_RUBYGEMS= yes
USE_RAKE= yes
RUBYGEM_AUTOPLIST= yes
PLIST_FILES= bin/passenger-config \
bin/passenger-install-apache2-module \
bin/passenger-make-enterprisey \
@ -33,8 +52,34 @@ PLIST_FILES= bin/passenger-config \
bin/passenger-stress-test \
bin/passenger-install-nginx-module
pre-patch:
.if defined(WITH_NGINXPORT)
@${ECHO_CMD}
@${ECHO_CMD} "Do not forget compile www/nginx"
@${ECHO_CMD} "with PASSENGER_MODULE support"
@${ECHO_CMD}
.endif
post-install:
(${PREFIX}/bin/passenger-install-apache2-module --auto )
@${CAT} ${PKGMESSAGE}
${REINPLACE_CMD} 's!g++!${CXX}!; \
s!gcc!${CC}!;' \
${PREFIX}/${GEM_LIB_DIR}/Rakefile
${REINPLACE_CMD} '377s!-g!${CXXFLAGS}!; \
s!-lpthread!${PTHREAD_LIBS}!g' \
${PREFIX}/${GEM_LIB_DIR}/lib/phusion_passenger/platform_info.rb
.if !defined(WITHOUT_APACHEPORT)
(${PREFIX}/bin/passenger-install-apache2-module --auto)
@${CAT} ${PKGMESSAGE}
.endif
.if defined(WITH_NGINXPORT)
${REINPLACE_CMD} '62d;65d' \
${PREFIX}/${GEM_LIB_DIR}/Rakefile
(cd ${PREFIX}/${GEM_LIB_DIR} && ${RAKE_BIN})
.endif
${FIND} ${PREFIX}/${GEM_LIB_DIR} -name '*.o' -delete
${FIND} ${PREFIX}/${GEM_LIB_DIR} -name '*.bak' -delete
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (rubygem/passenger-2.2.5.gem) = 912b76dabc68fd3a3393765255cb0a64
SHA256 (rubygem/passenger-2.2.5.gem) = b16fe4e0d99d349450ddf572b36b388e7708da0817588764c44a93a21dc86834
SIZE (rubygem/passenger-2.2.5.gem) = 1797120
MD5 (rubygem/passenger-2.2.8.gem) = 68034acced5751d61d338eaacb3cbc3d
SHA256 (rubygem/passenger-2.2.8.gem) = 1965b68c9771ee44ddf4b6507f7f5ac16c339308c8141876e8c3ad5da025f35c
SIZE (rubygem/passenger-2.2.8.gem) = 1988096

View File

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