5352038ddc
Mod_ruby embeds the Ruby interpreter into the Apache web server, allowing Ruby CGI scripts to be executed natively. These scripts will start up much faster than without mod_ruby.
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2005/01/16 23:44:39 couderc Exp $
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
# and has Apache that supports DSO's.
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= "module that embeds Ruby into Apache"
|
|
|
|
DISTNAME= mod_ruby-1.2.3
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://modruby.net/
|
|
|
|
MAINTAINER= Adam Montague <amontague@siriushosting.com>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://modruby.net/archive/
|
|
|
|
BUILD_DEPENDS= ::lang/ruby
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
CONFIGURE_STYLE= simple
|
|
CONFIGURE_SCRIPT= configure.rb
|
|
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
INSTALL_TARGET= install-ruby
|
|
|
|
post-build:
|
|
@sed 's,!!PREFIX!!,${PREFIX},' \
|
|
< ${FILESDIR}/mod_ruby-enable \
|
|
> ${WRKBUILD}/mod_ruby-enable
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKBUILD}/mod_ruby.so ${PREFIX}/lib
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/mod_ruby-enable ${PREFIX}/sbin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_ruby
|
|
${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf ${PREFIX}/share/examples/mod_ruby/
|
|
|
|
.include <bsd.port.mk>
|