diff options
author | Tim Biermann <tbier@posteo.de> | 2019-12-29 11:43:57 +0100 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2019-12-29 11:43:57 +0100 |
commit | 449ecf8621f5e219dd474c7f5bcb37761595c8bf (patch) | |
tree | 5a6c0950c51799cd18929776c809fae1624a3640 /maven | |
parent | f4aa867e93146816c51521329f7c119a80603120 (diff) | |
download | contrib-449ecf8621f5e219dd474c7f5bcb37761595c8bf.tar.gz contrib-449ecf8621f5e219dd474c7f5bcb37761595c8bf.tar.xz |
maven: initial commit, version 3.6.3
Diffstat (limited to 'maven')
-rw-r--r-- | maven/.footprint | 74 | ||||
-rw-r--r-- | maven/.signature | 5 | ||||
-rw-r--r-- | maven/Pkgfile | 57 |
3 files changed, 136 insertions, 0 deletions
diff --git a/maven/.footprint b/maven/.footprint new file mode 100644 index 000000000..ca390da15 --- /dev/null +++ b/maven/.footprint @@ -0,0 +1,74 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rw-r--r-- root/root usr/bin/m2.conf +-rwxr-xr-x root/root usr/bin/mvn +-rw-r--r-- root/root usr/bin/mvn.cmd +-rwxr-xr-x root/root usr/bin/mvnDebug +-rw-r--r-- root/root usr/bin/mvnDebug.cmd +-rwxr-xr-x root/root usr/bin/mvnyjp +drwxr-xr-x root/root usr/boot/ +-rw-r--r-- root/root usr/boot/plexus-classworlds-2.6.0.jar +drwxr-xr-x root/root usr/conf/ +drwxr-xr-x root/root usr/conf/logging/ +-rw-r--r-- root/root usr/conf/logging/simplelogger.properties +-rw-r--r-- root/root usr/conf/settings.xml +-rw-r--r-- root/root usr/conf/toolchains.xml +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/cdi-api-1.0.jar +-rw-r--r-- root/root usr/lib/commons-cli-1.4.jar +-rw-r--r-- root/root usr/lib/commons-io-2.5.jar +-rw-r--r-- root/root usr/lib/commons-lang3-3.8.1.jar +drwxr-xr-x root/root usr/lib/ext/ +-rw-r--r-- root/root usr/lib/guava-25.1-android.jar +-rw-r--r-- root/root usr/lib/guice-4.2.1-no_aop.jar +-rw-r--r-- root/root usr/lib/jansi-1.17.1.jar +drwxr-xr-x root/root usr/lib/jansi-native/ +drwxr-xr-x root/root usr/lib/jansi-native/freebsd32/ +-rwxr-xr-x root/root usr/lib/jansi-native/freebsd32/libjansi.so +drwxr-xr-x root/root usr/lib/jansi-native/freebsd64/ +-rwxr-xr-x root/root usr/lib/jansi-native/freebsd64/libjansi.so +drwxr-xr-x root/root usr/lib/jansi-native/linux32/ +-rwxr-xr-x root/root usr/lib/jansi-native/linux32/libjansi.so +drwxr-xr-x root/root usr/lib/jansi-native/linux64/ +-rwxr-xr-x root/root usr/lib/jansi-native/linux64/libjansi.so +drwxr-xr-x root/root usr/lib/jansi-native/osx/ +-rwxr-xr-x root/root usr/lib/jansi-native/osx/libjansi.jnilib +drwxr-xr-x root/root usr/lib/jansi-native/windows32/ +-rwxr-xr-x root/root usr/lib/jansi-native/windows32/jansi.dll +drwxr-xr-x root/root usr/lib/jansi-native/windows64/ +-rwxr-xr-x root/root usr/lib/jansi-native/windows64/jansi.dll +-rw-r--r-- root/root usr/lib/javax.inject-1.jar +-rw-r--r-- root/root usr/lib/jcl-over-slf4j-1.7.29.jar +-rw-r--r-- root/root usr/lib/jsoup-1.12.1.jar +-rw-r--r-- root/root usr/lib/jsr250-api-1.0.jar +-rw-r--r-- root/root usr/lib/maven-artifact-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-builder-support-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-compat-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-core-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-embedder-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-model-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-model-builder-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-plugin-api-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-repository-metadata-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-resolver-api-1.4.1.jar +-rw-r--r-- root/root usr/lib/maven-resolver-connector-basic-1.4.1.jar +-rw-r--r-- root/root usr/lib/maven-resolver-impl-1.4.1.jar +-rw-r--r-- root/root usr/lib/maven-resolver-provider-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-resolver-spi-1.4.1.jar +-rw-r--r-- root/root usr/lib/maven-resolver-transport-wagon-1.4.1.jar +-rw-r--r-- root/root usr/lib/maven-resolver-util-1.4.1.jar +-rw-r--r-- root/root usr/lib/maven-settings-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-settings-builder-3.6.3.jar +-rw-r--r-- root/root usr/lib/maven-shared-utils-3.2.1.jar +-rw-r--r-- root/root usr/lib/maven-slf4j-provider-3.6.3.jar +-rw-r--r-- root/root usr/lib/org.eclipse.sisu.inject-0.3.4.jar +-rw-r--r-- root/root usr/lib/org.eclipse.sisu.plexus-0.3.4.jar +-rw-r--r-- root/root usr/lib/plexus-cipher-1.7.jar +-rw-r--r-- root/root usr/lib/plexus-component-annotations-2.1.0.jar +-rw-r--r-- root/root usr/lib/plexus-interpolation-1.25.jar +-rw-r--r-- root/root usr/lib/plexus-sec-dispatcher-1.4.jar +-rw-r--r-- root/root usr/lib/plexus-utils-3.2.1.jar +-rw-r--r-- root/root usr/lib/slf4j-api-1.7.29.jar +-rw-r--r-- root/root usr/lib/wagon-file-3.3.4.jar +-rw-r--r-- root/root usr/lib/wagon-http-3.3.4-shaded.jar +-rw-r--r-- root/root usr/lib/wagon-provider-api-3.3.4.jar diff --git a/maven/.signature b/maven/.signature new file mode 100644 index 000000000..4f54123db --- /dev/null +++ b/maven/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF32TQDfEflVfuocx7ii7+dXMYiqyLtKdoOEiiFjtrok5T5fr2etsephN+Ym5DqZxHuBIvYvcON7PW9Z3SdUz4PAw= +SHA256 (Pkgfile) = 547fb83312c32e11a7928e43e9357986fbd602932850b0b1381a98306dc7aac1 +SHA256 (.footprint) = 76493f4ca4f889f245ed1bd556d39bf5f92759de06bdf4d75cbe0694fe0240b7 +SHA256 (apache-maven-3.6.3-src.tar.gz) = 7c1c990ba64dd4f88688120cc2ec93bf33dd500d2a62ae5cd57bd4b7f6335c07 diff --git a/maven/Pkgfile b/maven/Pkgfile new file mode 100644 index 000000000..932e3ab9f --- /dev/null +++ b/maven/Pkgfile @@ -0,0 +1,57 @@ +# Description: Java project management and project comprehension tool +# URL: https://maven.apache.org/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: openjdk8 + +name=maven +version=3.6.3 +release=1 +source=(https://www-eu.apache.org/dist/maven/maven-3/$version/source/apache-$name-$version-src.tar.gz) +bin_source=(https://archive.apache.org/dist/maven/maven-3/$version/binaries/apache-$name-$version-bin.tar.gz) +_bootstrapsum=26ad91d751b3a9a53087aefa743f4e16a17741d3915b219cf74112bf87a438c5 + +bootstrap_mvn() { + # check if the binary is already available + if [ ! -f "$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz" ]; + then + wget $bin_source \ + --output-document="$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz" + fi + + # check checksum of the binary package + if [ $_bootstrapsum != $(sha256sum \ + "$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz" | cut -d' ' \ + -f1) ]; + then + echo "Error Bootstrap file $PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz failed sha256sum" + exit $E_GENERAL + fi + + mkdir binary + cd binary + bsdtar -xf "$PKGMK_SOURCE_DIR/apache-$name-$version-bin.tar.gz" + + # append binary to our PATH + export PATH="$SRC/binary/apache-$name-$version/bin:${PATH}" + cd $SRC +} + +build() { + # if we don't have maven on our system already, bootstrap it + if [ ! -e "/usr/bin/mvn" ]; then + bootstrap_mvn + fi + + cd apache-$name-$version + export PATH="/usr/lib/java/openjdk8/bin:${PATH}" + mvn -DdistributionTargetDir=$PKG/usr \ + -Dproject.build.sourceEncoding=UTF-8 -e \ + -Dmaven.repo.local=$PKGMK_SOURCE_DIR/maven-repo \ + -DskipTests -Dmaven.test.skip=true \ + install + find $PKG \( \ + -iname "*readme*" -o \ + -iname "*notice*" -o \ + -iname "*license*" -o \ + -iname "*licence*" \) -exec rm -fr '{}' \+ +} |