diff options
author | osa <osa@FreeBSD.org> | 2010-01-10 04:01:56 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2010-01-10 04:01:56 +0800 |
commit | cf7ff5346b01994b4373d023839d6dad7676e781 (patch) | |
tree | 291d9cb7ced7e8db9bcd02bd04c8845b644c902d | |
parent | 78a3fea261dfc9cc8fd2790fa96d5f2cd611cb32 (diff) | |
download | freebsd-ports-gnome-cf7ff5346b01994b4373d023839d6dad7676e781.tar.gz freebsd-ports-gnome-cf7ff5346b01994b4373d023839d6dad7676e781.tar.zst freebsd-ports-gnome-cf7ff5346b01994b4373d023839d6dad7676e781.zip |
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@
-rw-r--r-- | www/rubygem-passenger/Makefile | 69 | ||||
-rw-r--r-- | www/rubygem-passenger/distinfo | 6 | ||||
-rw-r--r-- | www/rubygem-passenger/pkg-descr | 4 |
3 files changed, 62 insertions, 17 deletions
diff --git a/www/rubygem-passenger/Makefile b/www/rubygem-passenger/Makefile index 47c38f4c5a99..54ace18c1d2b 100644 --- a/www/rubygem-passenger/Makefile +++ b/www/rubygem-passenger/Makefile @@ -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 -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 +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 + 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> diff --git a/www/rubygem-passenger/distinfo b/www/rubygem-passenger/distinfo index 427883a285a3..7bde995b1343 100644 --- a/www/rubygem-passenger/distinfo +++ b/www/rubygem-passenger/distinfo @@ -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 diff --git a/www/rubygem-passenger/pkg-descr b/www/rubygem-passenger/pkg-descr index 2df250526181..a8c60cda5c17 100644 --- a/www/rubygem-passenger/pkg-descr +++ b/www/rubygem-passenger/pkg-descr @@ -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/ |