ac8da2395b
It's only remaining user is www/ruby-passenger, so hardcode it in that port's Makefile. ok landry
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2010/10/15 20:27:22 jeremy Exp $
|
|
|
|
SHARED_ONLY = Yes
|
|
|
|
COMMENT = Nginx module for deploying Ruby applications
|
|
|
|
DISTNAME = passenger-2.2.5
|
|
PKGNAME = ruby-${DISTNAME}
|
|
REVISION = 4
|
|
CATEGORIES = www
|
|
|
|
HOMEPAGE = http://www.modrails.com/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
MASTER_SITES = http://files.rubyforge.vm.bytemark.co.uk/passenger/
|
|
|
|
MODULES = lang/ruby
|
|
|
|
WANTLIB = c m pthread stdc++
|
|
|
|
LIB_DEPENDS = ${MODRUBY_LIB_DEPENDS}
|
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
RUN_DEPENDS = ::devel/ruby-rake \
|
|
::devel/ruby-fastthread \
|
|
::www/ruby-rack
|
|
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
MAKE_ENV += CC=${CC} CXX=${CXX}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} nginx
|
|
@perl -pi -e "s#PASSENGER_ROOT =.*#PASSENGER_ROOT = '${PREFIX}/lib/phusion_passenger'#g" \
|
|
${WRKSRC}/bin/passenger-config
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${RAKE} fakeroot
|
|
@find ${WRKBUILD}/pkg/fakeroot -name '*.orig' | xargs -r rm -f
|
|
|
|
do-install:
|
|
cd ${WRKBUILD}/pkg/fakeroot/usr/local && \
|
|
tar -cf - * | tar -C ${PREFIX} -xf -
|
|
rm -f ${PREFIX}/bin/passenger-install-apache2-module
|
|
rm -f ${PREFIX}/bin/passenger-make-enterprisey
|
|
rm -f ${PREFIX}/bin/passenger-install-nginx-module
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/phusion_passenger/ext
|
|
cd ${WRKBUILD}/ext && tar -cf - common nginx | \
|
|
tar -C ${PREFIX}/lib/phusion_passenger/ext -xf -
|
|
find ${PREFIX}/lib/phusion_passenger/ext -name '*.orig' | \
|
|
xargs -r rm -f
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/nginx
|
|
${INSTALL_DATA} ${FILESDIR}/*.sample ${PREFIX}/share/nginx
|
|
|
|
.include <bsd.port.mk>
|