ports/68769: [PATCH] devel/maven: update to 1.0.r4 and MASTER_SITE_APACHE

Herve Quiroz herve.quiroz at esil.univ-mrs.fr
Sun Jul 18 18:30:25 UTC 2004

The following reply was made to PR ports/68769; it has been noted by GNATS.

From: Herve Quiroz <herve.quiroz at esil.univ-mrs.fr>
To: Rui Lopes <rui at ruilopes.com>
Cc: Volker Stolz <stolz at i2.informatik.rwth-aachen.de>,
	freebsd-gnats-submit at freebsd.org
Subject: Re: ports/68769: [PATCH] devel/maven: update to 1.0.r4 and MASTER_SITE_APACHE
Date: Sun, 18 Jul 2004 20:28:15 +0200

 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 On Sat, Jul 17, 2004 at 10:36:37PM +0100, Rui Lopes wrote:
 > See the attached patch, it contains all "fixes" from the discussion
 > and updates Maven to 1.0 final.  If you are agree with it, lets have
 > this commited.
 I agree with it, excepted for some small problem I noticed. The
 following statement will not perform what you intend it to do:
 .for file in ${WRKSRC}/${dir}/*.jar
 The star (*) is a shell wildcard and make will not expand it. Actually
 here's the output I get:
 /bin/mkdir -p /usr/local/share/java/maven/lib
 install  -o root -g wheel -m 444
 /usr/ports/devel/maven/work/maven-1.0//lib/*.jar /usr/local/share/java/maven/lib
 /bin/mkdir -p /usr/local/share/java/maven/lib/endorsed
 install  -o root -g wheel -m 444
 /usr/ports/devel/maven/work/maven-1.0//lib/endorsed/*.jar /usr/local/share/java/maven/lib/endorsed
 /bin/mkdir -p /usr/local/share/java/maven/plugins
 install  -o root -g wheel -m 444
 /usr/ports/devel/maven/work/maven-1.0//plugins/*.jar /usr/local/share/java/maven/plugins
 IMHO you may remove the nested loop by using the wildcard directly (just
 as it performs with your patch). I attached a patch (to be applied
 against Makefile from 1.0.r2).
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="maven.diff"
 --- Makefile.orig	Wed Jul  7 15:35:39 2004
 +++ Makefile	Sun Jul 18 20:20:43 2004
 @@ -6,11 +6,10 @@
  PORTNAME=	maven
  CATEGORIES=	devel java
 -MASTER_SITES=	http://nagoya.apache.org/mirror/%SUBDIR%/binaries/
  MAINTAINER=	rui at ruilopes.com
  COMMENT=	Java project management and project comprehension tool
 @@ -19,24 +18,26 @@
  USE_JAVA=	yes
 -DIR=		share/java/maven
  PKGMESSAGE=	${WRKDIR}/pkg-message
 -	@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
 -		-e 's,%%DIR%%,${DIR},g' pkg-message > ${PKGMESSAGE}
 +	@${SED} -e 's,%%DATADIR%%,${DATADIR},g' pkg-message > ${PKGMESSAGE}
 +BINFILES=	install_repo.sh maven
 +DIRECTORIES=	lib lib/endorsed plugins
 -	@cd ${WRKSRC} && ${FIND} . \! -name '*.bat' \! -name repository \
 -		| ${CPIO} -pduv -R ${LIBOWN}:${LIBGRP} ${PREFIX}/${DIR}
 -	${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/${DIR}/bin
 -	${CHMOD} -R ${BINMODE} ${PREFIX}/${DIR}/bin
 -	${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${DIR}/bin/*.conf
 -	${CHMOD} ${SHAREMODE} ${PREFIX}/${DIR}/bin/*.conf
 -	${FIND} ${PREFIX}/${DIR} -type d | ${XARGS} ${CHMOD} +rx
 -	${LN} -fs ${PREFIX}/${DIR}/bin/maven ${PREFIX}/bin
 +	${MKDIR} ${DATADIR}/bin
 +.for file in ${BINFILES}
 +	${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${DATADIR}/bin
 +	${LN} -fs ${DATADIR}/bin/maven ${PREFIX}/bin
 +	${INSTALL_DATA} ${WRKSRC}/bin/forehead.conf ${DATADIR}/bin
 +.for dir in ${DIRECTORIES}
 +	${MKDIR} ${DATADIR}/${dir}
 +	${INSTALL_DATA} ${WRKSRC}/${dir}/*.jar ${DATADIR}/${dir}
  .if !defined(BATCH)
 @@ -45,6 +46,6 @@
  # This target is only meant to be used by the port maintainer.
 -	(/usr/ports/Tools/scripts/plist -d -m /etc/mtree/BSD.local.dist ${PREFIX}|sed -E 's,^share/nls/.+$$,,g;s,${DIR},%%DIR%%,g'|tr -s '\n') > temp-pkg-plist
 +	(${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX}|${SED} -E 's,.*share/nls/.+$$,,g;s,${DATADIR:S,^${PREFIX}/,,},%%DATADIR%%,g'|${TR} -s '\n') > temp-pkg-plist
  .include <bsd.port.mk>

More information about the freebsd-ports-bugs mailing list