create bsd12 branch

This commit is contained in:
ziggi
2019-12-26 07:26:06 +00:00
commit 5cfdab6bfe
14432 changed files with 2272620 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# Created by: Herve Quiroz <hq@FreeBSD.org>
# $FreeBSD: head/devel/maven-wrapper/Makefile 346734 2014-03-02 05:22:25Z tabthorpe $
PORTNAME= maven-wrapper
PORTVERSION= 1.2
CATEGORIES= devel java
MASTER_SITES= #
DISTFILES= #
MAINTAINER= ports@FreeBSD.org
COMMENT= Wrapper script for the various installations of Maven
NO_BUILD= yes
SUB_FILES= mvn.sh
SUB_LIST+= CAT=${CAT}
SUB_LIST+= FIND=${FIND}
SUB_LIST+= TAIL=${TAIL}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/maven-wrapper/instances.d
${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${PREFIX}/bin/mvn
.include <bsd.port.mk>
#EOF

View File

@@ -0,0 +1,29 @@
#!/bin/sh
#
# $FreeBSD: head/devel/maven-wrapper/files/mvn.sh.in 340872 2014-01-24 00:14:07Z mat $
set -e
if [ -f "%%PREFIX%%/etc/maven/setenv.sh" ] ; then
. "%%PREFIX%%/etc/maven/setenv.sh"
fi
if [ -z "${M2_HOME}" ] ; then
INSTANCES_DIRECTORY="/usr/local/etc/maven-wrapper/instances.d"
INSTANCE="`%%FIND%% -s "${INSTANCES_DIRECTORY}" -type f -mindepth 1 -maxdepth 1 | %%TAIL%% -n 1`"
if [ -z "${INSTANCE}" ] ; then
echo "could not find a Maven instance! (${INSTANCES_DIRECTORY})" >&2
exit 1
fi
M2_HOME="`%%CAT%% "${INSTANCE}"`"
if [ ! -d "${M2_HOME}" ] ; then
echo "not a directory: ${M2_HOME}" >&2
exit 2
fi
fi
export M2_HOME
exec "${M2_HOME}/bin/mvn" "$@"

View File

@@ -0,0 +1,7 @@
The maven-wrapper provides a convenient way to switch between several Maven
installations.
- By setting the M2_HOME environment variable the user can select the Maven
instance to use.
- A default Maven instance is selected according to the files in
/usr/local/etc/maven/instances.d/

View File

@@ -0,0 +1,2 @@
bin/mvn
@dir etc/maven-wrapper/instances.d