summaryrefslogtreecommitdiff
path: root/development/apache-maven/apache-maven.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/apache-maven/apache-maven.SlackBuild')
-rw-r--r--development/apache-maven/apache-maven.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/development/apache-maven/apache-maven.SlackBuild b/development/apache-maven/apache-maven.SlackBuild
index 84c978a54c..1debd8a347 100644
--- a/development/apache-maven/apache-maven.SlackBuild
+++ b/development/apache-maven/apache-maven.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=apache-maven
VERSION=2.2.1
ARCH=noarch
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -43,6 +43,12 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION-bin.tar.bz2
cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
mkdir -p $PKG/$MAVEN_HOME $PKG/usr/{bin,share/java}
cp -a bin boot conf lib $PKG/$MAVEN_HOME