Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jan 2014 14:24:24 -0700 (MST)
From:      Brad Davis <brd@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/186052: [patch] www/mod_jk: Stagify
Message-ID:  <20140123212424.D40C68FFA9@valentine.liquidneon.com>
Resent-Message-ID: <201401232130.s0NLU0ME025674@freefall.freebsd.org>

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

>Number:         186052
>Category:       ports
>Synopsis:       [patch] www/mod_jk: Stagify
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 23 21:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Brad Davis
>Release:        FreeBSD 9.1-RELEASE-p7 i386
>Organization:
>Environment:
	
>Description:
	Adds stage support
>How-To-Repeat:
	
>Fix:

	

--- stagify-mod_jk.patch begins here ---
Index: www/mod_jk/Makefile
===================================================================
--- www/mod_jk/Makefile	(revision 340861)
+++ www/mod_jk/Makefile	(working copy)
@@ -17,7 +17,6 @@
 USE_APACHE?=	22+
 APACHE_VER=	2.0
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 WRKSRC=		${WRKDIR}/tomcat-connectors-${PORTVERSION}-src/native
@@ -29,12 +28,15 @@
 SUB_FILES+=	mod_jk.conf.sample pkg-message
 
 do-install:
-	${APXS} -i -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
+	${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
+	${APXS} -i -n jk -S LIBEXECDIR=${STAGEDIR}${PREFIX}/${APACHEMODDIR} ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
 	- ${APXS} -e -A -n jk ${WRKSRC}/apache-${APACHE_VER}/mod_jk.so
-	${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${LOCALBASE}/${APACHEETCDIR}
-	${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${LOCALBASE}/${APACHEETCDIR}
+	${MKDIR} ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
+	${INSTALL_DATA} ${WRKDIR}/mod_jk.conf.sample ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
+	${INSTALL_DATA} ${FILESDIR}/workers.properties.sample ${STAGEDIR}${LOCALBASE}/${APACHEETCDIR}
 
 post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_jk.so
 	${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
--- stagify-mod_jk.patch ends here ---


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



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