Index: head/www/rubygem-passenger/Makefile =================================================================== --- head/www/rubygem-passenger/Makefile (revision 481454) +++ head/www/rubygem-passenger/Makefile (revision 481455) @@ -1,128 +1,129 @@ # Created by: Jacob Atzen # $FreeBSD$ PORTNAME= passenger PORTVERSION= 5.3.5 +PORTREVISION= 1 CATEGORIES= www rubygems MASTER_SITES= RG PKGNAMEPREFIX= rubygem- MAINTAINER= osa@FreeBSD.org COMMENT= Modules for running Ruby on Rails and Rack applications LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= rake:devel/rubygem-rake CPE_VENDOR= phusion CPE_PRODUCT= passenger FLAVORS= apache nginx FLAVOR?= ${FLAVORS:[1]} apache_PKGNAMESUFFIX= -apache nginx_PKGNAMESUFFIX= -nginx OPTIONS_DEFINE= DEBUG SYMLINK OPTIONS_EXCLUDE=DOCS SYMLINK_DESC= Create passenger symlink .if ${FLAVOR} == apache USES+= apache:2.2+ .endif USE_RUBY= yes RAKE_BIN= ${LOCALBASE}/bin/rake USES+= cpe gem libtool python:env shebangfix ssl SHEBANG_FILES= \ src/cxx_supportlib/vendor-copy/libuv/gyp_uv.py \ dev/vagrant/nginx_start \ dev/vagrant/provision.sh \ dev/ci/run-tests-with-docker \ dev/ci/tests/debian/run \ dev/ci/tests/rpm/run \ dev/ci/scripts/setup-host-natively.sh \ dev/ci/scripts/docker-entrypoint-stage2.sh \ dev/ci/scripts/inituidgid \ dev/ci/scripts/debug-console-wrapper.sh \ dev/ci/scripts/run-tests-natively-stage2.sh \ dev/ci/scripts/docker-entrypoint.sh \ dev/ci/run-tests-natively \ dev/ci/setup-host LIB_DEPENDS+= libuv.so:devel/libuv \ libcurl.so:ftp/curl \ libunwind.so:devel/libunwind \ libapr-1.so:devel/apr1 BUILD_DEPENDS+= rubygem-rack>=0:www/rubygem-rack RUN_DEPENDS:= ${BUILD_DEPENDS} SUB_LIST+= GEM_LIB_DIR=${GEM_LIB_DIR} RUBY=${RUBY} -SUB_FILES= pkg-message +SUB_FILES= pkg-message-${FLAVOR} PLIST_FILES= bin/passenger \ bin/passenger-config \ bin/passenger-install-apache2-module \ bin/passenger-memory-stats \ bin/passenger-status \ bin/passenger-install-nginx-module SYMLINK_PLIST_FILES= ${GEMS_DIR}/${PORTNAME} SYMLINK_SUB_LIST= PASSENGER_INSTALL_DIR="${PREFIX}/${GEMS_DIR}/${PORTNAME}" SYMLINK_SUB_LIST_OFF= PASSENGER_INSTALL_DIR="${PREFIX}/${GEM_LIB_DIR}" pre-patch: .if ${FLAVOR} == nginx @${ECHO_CMD} @${ECHO_CMD} "Do not forget compile www/nginx" @${ECHO_CMD} "with PASSENGER_MODULE support" @${ECHO_CMD} .endif @${REINPLACE_CMD} \ 's!-Wall!!g; \ s!gcc!${CC}!g; \ s!g++!${CXX}!g; \ s!#{PlatformInfo.debugging_cflags}!${CFLAGS}!g; \ s!-O2!!g; \ s! -feliminate-unused-debug-symbols -feliminate-unused-debug-types!!g; \ 170s!true!false!' \ ${WRKSRC}/build/basics.rb @${REINPLACE_CMD} '1s:python:python2:' \ ${WRKSRC}/src/cxx_supportlib/vendor-copy/libuv/gyp_uv.py pre-patch-DEBUG-off: @${REINPLACE_CMD} \ 's!-DPASSENGER_DEBUG!-DNDEBUG!g' \ ${WRKSRC}/build/basics.rb post-build: .if ${FLAVOR} == apache (CC=${CC} CXX=${CXX} ${WRKSRC}/bin/passenger-install-apache2-module --auto) .endif .if ${FLAVOR} == nginx (cd ${WRKSRC} && CC=${CC} CXX=${CXX} ${RAKE_BIN} nginx) .endif ${FIND} ${WRKSRC} -name '*.o' -delete ${FIND} ${WRKSRC} -name '*.bak' -delete post-install: ( cd ${WRKSRC} && \ ${COPYTREE_SHARE} buildout ${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION} ) ${CHMOD} +x ${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME}-${PORTVERSION}/buildout/support-binaries/* ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/buildout/ruby/*/passenger_native_support.so ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/buildout/support-binaries/PassengerAgent ${FIND} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR} -type d -empty -delete .if ${FLAVOR} == apache ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/buildout/apache2/mod_passenger.so ${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} ${INSTALL} -lrs ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/buildout/apache2/mod_passenger.so ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_passenger.so @${ECHO} "${APACHEMODDIR}/mod_passenger.so" >> ${TMPPLIST} .endif post-install-SYMLINK-on: ${LN} -s ${GEM_NAME} ${STAGEDIR}${PREFIX}/${GEMS_DIR}/${PORTNAME} .include Index: head/www/rubygem-passenger/files/pkg-message.in =================================================================== --- head/www/rubygem-passenger/files/pkg-message.in (revision 481454) +++ head/www/rubygem-passenger/files/pkg-message.in (nonexistent) @@ -1,13 +0,0 @@ -##################################################################### - -Please edit your Apache configuration file, and add these lines: - - LoadModule passenger_module %%PASSENGER_INSTALL_DIR%%/buildout/apache2/mod_passenger.so - PassengerRoot %%PASSENGER_INSTALL_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! - -##################################################################### Property changes on: head/www/rubygem-passenger/files/pkg-message.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/rubygem-passenger/files/pkg-message-apache.in =================================================================== --- head/www/rubygem-passenger/files/pkg-message-apache.in (nonexistent) +++ head/www/rubygem-passenger/files/pkg-message-apache.in (revision 481455) @@ -0,0 +1,13 @@ +##################################################################### + +Please edit your Apache configuration file, and add these lines: + + LoadModule passenger_module %%PASSENGER_INSTALL_DIR%%/buildout/apache2/mod_passenger.so + PassengerRoot %%PASSENGER_INSTALL_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! + +##################################################################### Property changes on: head/www/rubygem-passenger/files/pkg-message-apache.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/rubygem-passenger/files/pkg-message-nginx.in =================================================================== --- head/www/rubygem-passenger/files/pkg-message-nginx.in (nonexistent) +++ head/www/rubygem-passenger/files/pkg-message-nginx.in (revision 481455) @@ -0,0 +1,16 @@ +##################################################################### + +Please edit your nginx configuration file, and add these lines: + + server { + root %%PASSENGER_INSTALL_DIR%%; + passenger_enabled on; + passenger_ruby %%RUBY%%; + passenger_sticky_sessions on; + } + +After you restart nginx, you are ready to deploy any number of Ruby on Rails +applications on nginx, without any further Ruby on Rails-specific +configuration! + +##################################################################### Property changes on: head/www/rubygem-passenger/files/pkg-message-nginx.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property