1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

- Update to 3.0.0

PR:		ports/152336
Submitted by:	Jacob Atzen <jatzen@gmail.com> (maintainer)
This commit is contained in:
Wen Heping 2010-11-25 12:04:24 +00:00
parent 91100f0fb3
commit 5dfb36e724
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265136
2 changed files with 28 additions and 13 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= passenger
PORTVERSION= 2.2.15
PORTVERSION= 3.0.0
CATEGORIES= www rubygems
MASTER_SITES= RG
PKGNAMEPREFIX= rubygem-
@ -13,8 +13,9 @@ PKGNAMEPREFIX= rubygem-
MAINTAINER= jatzen@gmail.com
COMMENT= Modules for running Ruby on Rails and Rack applications
OPTIONS= APACHE "Use apache22" on \
NGINXPORT "Use nginx" off
OPTIONS= APACHEPORT "Use apache22" on \
NGINXPORT "Use nginx" off \
SYMLINK "Create 'passenger' symlink" off
USE_RUBY= yes
USE_RAKE= yes
@ -23,12 +24,12 @@ RUBYGEM_AUTOPLIST= yes
.include <bsd.port.options.mk>
.if defined(WITH_APACHE) && defined(WITH_NGINXPORT)
.if defined(WITH_APACHEPORT) && defined(WITH_NGINXPORT)
IGNORE= supports only one web-server: apache22 or nginx. \
Please 'make config' again
.endif
.if !defined(WITHOUT_APACHE)
.if !defined(WITHOUT_APACHEPORT)
USE_APACHE= 2.2+
.endif
@ -37,19 +38,30 @@ 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-rack>=1.0.0:${PORTSDIR}/www/rubygem-rack \
rubygem-daemon_controller>=0.2.5:${PORTSDIR}/devel/rubygem-daemon_controller \
rubygem-file-tail>0:${PORTSDIR}/devel/rubygem-file-tail \
curl>=7.20.0:${PORTSDIR}/ftp/curl
SUB_LIST+= GEM_LIB_DIR=${GEM_LIB_DIR} RUBY=${RUBY}
SUB_LIST+= RUBY=${RUBY}
SUB_FILES= pkg-message
PLIST_FILES= bin/passenger-config \
PLIST_FILES= bin/passenger \
bin/passenger-config \
bin/passenger-install-apache2-module \
bin/passenger-make-enterprisey \
bin/passenger-memory-stats \
bin/passenger-spawn-server \
bin/passenger-status \
bin/passenger-stress-test \
bin/passenger-install-nginx-module
.if defined(WITH_SYMLINK)
PLIST_FILES+= ${GEMS_DIR}/${PORTNAME}
SUB_LIST+= PASSENGER_INSTALL_DIR="${PREFIX}/${GEMS_DIR}/${PORTNAME}"
.endif
.if !defined(WITH_SYMLINK)
SUB_LIST+= PASSENGER_INSTALL_DIR="${PREFIX}/${GEM_LIB_DIR}"
.endif
pre-patch:
.if defined(WITH_NGINXPORT)
@ -67,7 +79,7 @@ post-install:
s!-lpthread!${PTHREAD_LIBS}!g' \
${PREFIX}/${GEM_LIB_DIR}/lib/phusion_passenger/platform_info.rb
.if !defined(WITHOUT_APACHE)
.if !defined(WITHOUT_APACHEPORT)
(${PREFIX}/bin/passenger-install-apache2-module --auto)
@${CAT} ${PKGMESSAGE}
.endif
@ -80,5 +92,9 @@ post-install:
${FIND} ${PREFIX}/${GEM_LIB_DIR} -name '*.o' -delete
${FIND} ${PREFIX}/${GEM_LIB_DIR} -name '*.bak' -delete
${RM} ${PREFIX}/${GEM_LIB_DIR}/ext/libev/.libs/libev.la
.if defined(WITH_SYMLINK)
${LN} -s ${PREFIX}/${GEM_LIB_DIR} ${PREFIX}/${GEMS_DIR}/${PORTNAME}
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,2 @@
MD5 (rubygem/passenger-2.2.15.gem) = fd0e1a0ebcf97af7e238c405a6b70235
SHA256 (rubygem/passenger-2.2.15.gem) = 0cb62d667001e383c70a23cf25587948c7c959d852c43343ea30aa54e39ff79f
SIZE (rubygem/passenger-2.2.15.gem) = 2127360
SHA256 (rubygem/passenger-3.0.0.gem) = 21d90efae6936b7f459b7de647dfc2181411d4462475b1de86c43108b3d1a570
SIZE (rubygem/passenger-3.0.0.gem) = 3052032