changeset 247:ee84db816ec9

fix the RC3 ebuild (don't have the final tarball at hand right now)
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 04 Oct 2010 19:45:38 +0200
parents 97d85f6a8c32
children 2dcbfb21d30b
files dev-java/maven-bin/Manifest dev-java/maven-bin/maven-bin-3.0.0_rc3.ebuild
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dev-java/maven-bin/Manifest	Mon Oct 04 18:26:45 2010 +0200
+++ b/dev-java/maven-bin/Manifest	Mon Oct 04 19:45:38 2010 +0200
@@ -7,4 +7,4 @@
 EBUILD maven-bin-3.0.0_beta2.ebuild 1066 RMD160 18a6b1c6f6d3f77b6d45fe103033f76281b5ddb1 SHA1 131f4e088498298376192203ddf9bb1ecfb97f55 SHA256 84d0191aa8d980cb21d7258b2d1dcba80403181f3986f13faa816442c23a5246
 EBUILD maven-bin-3.0.0_rc1.ebuild 1063 RMD160 262d30a633f892a4e9c7abbdd661d04f29027f08 SHA1 15ebf79d1a2e5c2316cc790814fcff3a3ba6ad45 SHA256 f718d7f489070fd1d1cb08b6419f4c2e62444254d0de225a6abb1ed6bbcdfefd
 EBUILD maven-bin-3.0.0_rc2.ebuild 1063 RMD160 9b062a4033ed984ac96ff7eb7a8657a4dbf5c480 SHA1 cfd6ce9cd19c04869f785b5dbfba62636d3cf02b SHA256 f99ef855247651b6d79808a6e424874939dc012f0b625a398542f368853ecc20
-EBUILD maven-bin-3.0.0_rc3.ebuild 1063 RMD160 f6dd81e078a707b8323aad2caaa12e022d10f976 SHA1 1215a788645c427f103d4dc323fc22568a58f5d7 SHA256 83a2d6419b19621fc386f7309e3e67a188df8c3ec3ab6d2bbd0b7acd1b60c3cc
+EBUILD maven-bin-3.0.0_rc3.ebuild 1344 RMD160 71341097a7371c7fcd6ac7034ff3466e49f96e7a SHA1 c79dc8f0abeec89671630165881689c918598cd4 SHA256 781346d4873998b6b3b1c75a8c68f77cf3fe9dbb0a56c3fcef9b16abdeb724da
--- a/dev-java/maven-bin/maven-bin-3.0.0_rc3.ebuild	Mon Oct 04 18:26:45 2010 +0200
+++ b/dev-java/maven-bin/maven-bin-3.0.0_rc3.ebuild	Mon Oct 04 19:45:38 2010 +0200
@@ -30,15 +30,21 @@
 	rm -v "${S}"/bin/*.bat || die
 }
 
-# TODO we should use jars from packages, instead of what is bundled
 src_install() {
 	dodir "${MAVEN_SHARE}"
 	cp -Rp bin boot conf lib "${D}/${MAVEN_SHARE}" || die "failed to copy"
 
 	java-pkg_regjar "${D}/${MAVEN_SHARE}"/lib/*.jar
+	
+	# the Maven distro comes with really weird permissions in the tarball 
+	# which will cause the ebuild to preserve these weird permissions, leaving
+	# users with a broken maven installationy
+	chown root: "${D}/${MAVEN_SHARE}"/lib/*.jar "${D}/${MAVEN_SHARE}"/boot/*.jar
+	chmod 644  "${D}/${MAVEN_SHARE}"/lib/*.jar "${D}/${MAVEN_SHARE}"/boot/*.jar
 
 	dodoc NOTICE.txt README.txt || die
 
 	dodir /usr/bin
 	dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT}
 }
+