Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2010 17:36:46 GMT
From:      Jacob Atzen <jatzen@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152336: [PATCH] Update port: www/rubygem-passenger Update to 3.0.0
Message-ID:  <201011171736.oAHHakMU072819@www.freebsd.org>
Resent-Message-ID: <201011171740.oAHHe8qb057546@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152336
>Category:       ports
>Synopsis:       [PATCH] Update port: www/rubygem-passenger Update to 3.0.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 17 17:40:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jacob Atzen
>Release:        RELEASE-8.1
>Organization:
Incremental
>Environment:
>Description:
Update of the www/rubygem-passenger port to 3.0.0.

I'm unsure if there should be a new www/rubygem-passenger-3 port or if the existing www/rubygem-passenger port should just be updated. Please advise.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	rubygem-passenger
#	rubygem-passenger/distinfo
#	rubygem-passenger/files
#	rubygem-passenger/files/pkg-message.in
#	rubygem-passenger/Makefile
#	rubygem-passenger/pkg-descr
#
echo c - rubygem-passenger
mkdir -p rubygem-passenger > /dev/null 2>&1
echo x - rubygem-passenger/distinfo
sed 's/^X//' >rubygem-passenger/distinfo << '361e9ad441026a251ef38c5a01a3b3b3'
XSHA256 (rubygem/passenger-3.0.0.gem) = 21d90efae6936b7f459b7de647dfc2181411d4462475b1de86c43108b3d1a570
XSIZE (rubygem/passenger-3.0.0.gem) = 3052032
361e9ad441026a251ef38c5a01a3b3b3
echo c - rubygem-passenger/files
mkdir -p rubygem-passenger/files > /dev/null 2>&1
echo x - rubygem-passenger/files/pkg-message.in
sed 's/^X//' >rubygem-passenger/files/pkg-message.in << '83d594bc2486bcd3399cfcb18e527068'
X#####################################################################
X
XPlease edit your Apache configuration file, and add these lines:
X
X   LoadModule passenger_module %%PASSENGER_INSTALL_DIR%%/ext/apache2/mod_passenger.so
X   PassengerRoot %%PASSENGER_INSTALL_DIR%%
X   PassengerRuby %%RUBY%%
X
XAfter you restart Apache, you are ready to deploy any number of Ruby on Rails
Xapplications on Apache, without any further Ruby on Rails-specific
Xconfiguration!
X
X#####################################################################
83d594bc2486bcd3399cfcb18e527068
echo x - rubygem-passenger/Makefile
sed 's/^X//' >rubygem-passenger/Makefile << '9e80c23d7596c31a2d391c666fd43939'
X# Ports collection makefile for:	rubygem-passenger
X# Date created:				Dec 18, 2008
X# Whom:					Jacob Atzen <jatzen@gmail.com>
X#
X# $FreeBSD: ports/www/rubygem-passenger/Makefile,v 1.9 2010/01/09 20:01:56 osa Exp $
X
XPORTNAME=	passenger
XPORTVERSION=	3.0.0
XCATEGORIES=	www rubygems
XMASTER_SITES=	RG
XPKGNAMEPREFIX=	rubygem-
X
XMAINTAINER=	jatzen@gmail.com
XCOMMENT=	Modules for running Ruby on Rails and Rack applications
X
XOPTIONS=	APACHEPORT	"Use apache22"			on  \
X		NGINXPORT	"Use nginx"			off \
X		SYMLINK 	"Create 'passenger' symlink"	off
X
XUSE_RUBY=	yes
XUSE_RAKE=	yes
XUSE_RUBYGEMS=	yes
XRUBYGEM_AUTOPLIST=	yes
X
X.include <bsd.port.options.mk>
X
X.if defined(WITH_APACHEPORT) && defined(WITH_NGINXPORT)
XIGNORE=		supports only one web-server: apache22 or nginx. \
X		Please 'make config' again
X.endif
X
X.if !defined(WITHOUT_APACHEPORT)
XUSE_APACHE=	2.2+
X.endif
X
X.if defined(WITH_NGINXPORT)
XBUILD_DEPENDS+=	nginx>=0.7.64:${PORTSDIR}/www/nginx
X.endif
X
XBUILD_DEPENDS+=	rubygem-fastthread>=1.0.1:${PORTSDIR}/devel/rubygem-fastthread \
X		rubygem-rack>=1.0.0:${PORTSDIR}/www/rubygem-rack \
X		rubygem-daemon_controller>=0.2.5:${PORTSDIR}/devel/rubygem-daemon_controller \
X		curl>=7.20.0:${PORTSDIR}/ftp/curl
X
XSUB_LIST+=	RUBY=${RUBY}
XSUB_FILES=	pkg-message
X
XPLIST_FILES=	bin/passenger \
X		bin/passenger-config \
X		bin/passenger-install-apache2-module \
X		bin/passenger-make-enterprisey \
X		bin/passenger-memory-stats \
X		bin/passenger-status \
X		bin/passenger-stress-test \
X		bin/passenger-install-nginx-module
X.if defined(WITH_SYMLINK)
XPLIST_FILES+=	${GEMS_DIR}/${PORTNAME}
XSUB_LIST+=	PASSENGER_INSTALL_DIR="${PREFIX}/${GEMS_DIR}/${PORTNAME}"
X.endif
X
X.if !defined(WITH_SYMLINK)
XSUB_LIST+=	PASSENGER_INSTALL_DIR="${PREFIX}/${GEM_LIB_DIR}"
X.endif
X
Xpre-patch:
X.if defined(WITH_NGINXPORT)
X	@${ECHO_CMD}
X	@${ECHO_CMD} "Do not forget compile www/nginx"
X	@${ECHO_CMD} "with PASSENGER_MODULE support"
X	@${ECHO_CMD}
X.endif
X
Xpost-install:
X	${REINPLACE_CMD} 's!g++!${CXX}!; \
X		s!gcc!${CC}!;' \
X		${PREFIX}/${GEM_LIB_DIR}/Rakefile
X	${REINPLACE_CMD} '377s!-g!${CXXFLAGS}!; \
X		s!-lpthread!${PTHREAD_LIBS}!g' \
X		${PREFIX}/${GEM_LIB_DIR}/lib/phusion_passenger/platform_info.rb
X
X.if !defined(WITHOUT_APACHEPORT)
X	(${PREFIX}/bin/passenger-install-apache2-module --auto)
X	@${CAT} ${PKGMESSAGE}
X.endif
X
X.if defined(WITH_NGINXPORT)
X	${REINPLACE_CMD} '62d;65d' \
X		${PREFIX}/${GEM_LIB_DIR}/Rakefile
X	(cd ${PREFIX}/${GEM_LIB_DIR} && ${RAKE_BIN})
X.endif
X
X	${FIND} ${PREFIX}/${GEM_LIB_DIR} -name '*.o' -delete
X	${FIND} ${PREFIX}/${GEM_LIB_DIR} -name '*.bak' -delete
X	${RM} ${PREFIX}/${GEM_LIB_DIR}/ext/libev/.libs/libev.la
X.if defined(WITH_SYMLINK)
X	${LN} -s ${PREFIX}/${GEM_LIB_DIR} ${PREFIX}/${GEMS_DIR}/${PORTNAME}
X.endif
X
X.include <bsd.port.mk>
9e80c23d7596c31a2d391c666fd43939
echo x - rubygem-passenger/pkg-descr
sed 's/^X//' >rubygem-passenger/pkg-descr << 'f08f83e494c1f9d894021698207091bb'
XPassenger are Apache and nginx modules allowing for simple deployment 
Xof Ruby on Rails and Rack applications.
X
XWWW: http://www.modrails.com/
f08f83e494c1f9d894021698207091bb
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011171736.oAHHakMU072819>