From sean@rand.tgd.net  Sun Jul  7 01:40:33 2002
Return-Path: <sean@rand.tgd.net>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0FB2637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Jul 2002 01:40:33 -0700 (PDT)
Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6315243E54
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  7 Jul 2002 01:40:32 -0700 (PDT)
	(envelope-from sean@rand.tgd.net)
Received: (qmail 8377 invoked from network); 7 Jul 2002 08:40:31 -0000
Received: from unknown (HELO rand.tgd.net) ([64.81.67.117]) (envelope-sender <sean@rand.tgd.net>)
          by mail16.speakeasy.net (qmail-ldap-1.03) with SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 7 Jul 2002 08:40:31 -0000
Received: by rand.tgd.net (Postfix, from userid 1001)
	id 1689DD1374; Sun,  7 Jul 2002 01:40:30 -0700 (PDT)
Message-Id: <20020707084030.1689DD1374@rand.tgd.net>
Date: Sun,  7 Jul 2002 01:40:30 -0700 (PDT)
From: Sean Chittenden <sean@chittenden.org>
Reply-To: Sean Chittenden <sean@chittenden.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: knu@freebsd.org
Subject: Fix for mod_ruby installation w/ non-port apache
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40283
>Category:       ports
>Synopsis:       Fix for mod_ruby installation w/ non-port apache
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 07 01:50:01 PDT 2002
>Closed-Date:    Fri Jul 12 14:00:59 JST 2002
>Last-Modified:  Fri Jul 12 14:00:59 JST 2002
>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:
Responsible-Changed-From-To: freebsd-ports->knu 
Responsible-Changed-By: pat 
Responsible-Changed-When: Thu Jul 11 19:24:41 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40283 
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Fri Jul 12 14:00:48 JST 2002 
State-Changed-Why:  
Patch applied, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40283 
>Unformatted:
