[PATCH] www/mod_webapp: upbreak port

Yen-Ming Lee leeym at freebsd.org
Wed May 25 06:31:18 GMT 2005


>Submitter-Id:	current-users
>Originator:	Yen-Ming Lee
>Organization:	FreeBSD Taiwan
>Confidential:	no 
>Synopsis:	[PATCH] www/mod_webapp: upbreak port
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 5.4-STABLE i386
>Environment:
System: FreeBSD utopia.leeym.com 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon May 16 15:20:54 CST 2005
>Description:
- fix build and unbreak this port
- utilize DOCSDIR

Added file(s):
- files/patch-lib-pr_warp_network.c

Port maintainer (apache at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- mod_webapp-4.1.24_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/mod_webapp/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile	20 Aug 2004 15:13:13 -0000	1.9
+++ Makefile	25 May 2005 06:28:23 -0000
@@ -19,6 +19,7 @@
 
 BUILD_DEPENDS=	${NONEXISTANT}:${PORTSDIR}/devel/apr:configure
 
+USE_REINPLACE=	yes
 USE_APACHE=	yes
 WANT_AUTOCONF_VER=253
 WANT_LIBTOOL_VER=13
@@ -35,16 +36,19 @@
 # Apache locations.
 APACHECTL?=	${LOCALBASE}/sbin/apachectl
 APR_LIB?=	${LOCALBASE}/lib/
-APR_INCLUDE?=	${LOCALBASE}/include/apr-0/
-APACHE_MODULES?= libexec/apache/
-APR_SRC?=	${WRKDIRPREFIX}${PORTSDIR}/devel/apr/work/apr-?\.?\.?/
+APR_INCLUDE?=	${LOCALBASE}/include/apr-${APR_MAJORVER}/
+APACHE_MODULES?=libexec/apache
+APR_VER!=	cd ${PORTSDIR}/devel/apr && ${MAKE} -V PORTVERSION
+APR_WRKSRC!=	cd ${PORTSDIR}/devel/apr && ${MAKE} -V WRKSRC
+APR_MAJORVER=	${APR_VER:C/\..*//g}
+APR_SRC=	${APR_WRKSRC}/apr-${APR_VER}
 AUTOCONF?=	${LOCALBASE}/bin/autoconf
 
 # If the user's changed the modules directory, pack things correctly.
 PLIST_SUB=	APACHE_MODULES=${APACHE_MODULES}
 
 # Build options.
-APACHE_VERSION= 1.3.6
+APACHE_VERSION=	1.3.6
 WRKSRC=		${WRKDIR}/${DISTNAME}/webapp
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-apxs=${APXS} \
@@ -53,6 +57,10 @@
 		--with-apr=${APR_SRC} \
 		--without-ant
 
+post-patch:
+	${REINPLACE_CMD} -e 's/apr-config/apr-${APR_MAJORVER}-config/g' \
+		${WRKSRC}/support/wa_apr.m4
+
 pre-configure:
 	cd ${WRKSRC} && ${AUTOCONF}
 
@@ -67,8 +75,8 @@
 post-install:
 	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${PREFIX}/share/doc/mod_webapp
-	${INSTALL_MAN} ${WRKSRC}/INSTALL.txt ${PREFIX}/share/doc/mod_webapp
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/INSTALL.txt ${DOCSDIR}
 .endif
 
 .include <bsd.port.post.mk>
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/www/mod_webapp/pkg-plist,v
retrieving revision 1.1
diff -u -u -r1.1 pkg-plist
--- pkg-plist	12 Jun 2003 14:06:20 -0000	1.1
+++ pkg-plist	25 May 2005 06:28:23 -0000
@@ -1,3 +1,3 @@
 %%APACHE_MODULES%%/mod_webapp.so
-%%PORTDOCS%%share/doc/mod_webapp/INSTALL.txt
-%%PORTDOCS%%@dirrm share/doc/mod_webapp
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
Index: files/patch-lib-pr_warp_network.c
===================================================================
RCS file: files/patch-lib-pr_warp_network.c
diff -N files/patch-lib-pr_warp_network.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-lib-pr_warp_network.c	25 May 2005 06:28:23 -0000
@@ -0,0 +1,11 @@
+--- lib/pr_warp_network.c.orig	Wed May 25 10:37:48 2005
++++ lib/pr_warp_network.c	Wed May 25 10:38:03 2005
+@@ -142,7 +142,7 @@
+     apr_status_t ret=APR_SUCCESS;
+     apr_socket_t *sock=NULL;
+ 
+-    ret=apr_socket_create(&sock,AF_INET,SOCK_STREAM,wa_pool);
++    ret=apr_socket_create(&sock,AF_INET,SOCK_STREAM,0,wa_pool);
+     if (ret!=APR_SUCCESS) {
+         sock=NULL;
+         wa_log(WA_MARK,"Cannot create socket for conn. \"%s\"",conn->name);
--- mod_webapp-4.1.24_1.patch ends here ---



More information about the freebsd-apache mailing list