Date: Sun, 7 Jul 2002 01:40:30 -0700 (PDT) From: Sean Chittenden <sean@chittenden.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: knu@FreeBSD.org Subject: ports/40283: Fix for mod_ruby installation w/ non-port apache Message-ID: <20020707084030.1689DD1374@rand.tgd.net>
next in thread | raw e-mail | index | archive | help
>Number: 40283 >Category: ports >Synopsis: Fix for mod_ruby installation w/ non-port apache >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 07 01:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sean Chittenden >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD rand.tgd.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Jun 27 12:55:56 PDT 2002 sean@rand.tgd.net:/usr/obj/usr/src/sys/DELLAPTOP i386 >Description: As per discussion on #ruby-lang, mod_ruby (and likely many other mod_*) assume that everyone uses ${LOCALBASE} for installation of apache (esp via the ports). Unfortunately, that's not always the case. To sidestep this bullet, use of apxs is required. >How-To-Repeat: Install a custom version of apache into a different directory (ex: /www) and attempt to install mod_ruby. >Fix: Apply the attached patch to www/mod_ruby/Makefile and set APXS to whatever is required before making/installing. Ex: setenv APXS /www/bin/apxs portinstall mod_ruby # or: cd /usr/ports/www/mod_ruby && make APXS=/www/bin/apxs install Index: www/mod_ruby//Makefile =================================================================== RCS file: /home/ncvs/ports/www/mod_ruby/Makefile,v retrieving revision 1.29 diff -u -r1.29 Makefile --- www/mod_ruby//Makefile 2002/06/11 12:51:15 1.29 +++ www/mod_ruby//Makefile 2002/07/07 08:31:52 @@ -22,7 +22,7 @@ USE_RUBY_RD= yes .endif -APXS= ${LOCALBASE}/sbin/apxs +APXS?= ${LOCALBASE}/sbin/apxs CONFIGURE_ARGS= --with-apxs="${APXS}" \ --enable-eruby=yes \ @@ -42,7 +42,7 @@ .endif post-install: - ${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf ${PREFIX}/etc/apache/httpd.conf.${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/examples/httpd.conf `${APXS} -q SYSCONFDIR`/httpd.conf.${PORTNAME} .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja .for f in ${DOCS_EN} >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020707084030.1689DD1374>