diff options
author | miwi <miwi@FreeBSD.org> | 2013-02-12 18:30:26 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-02-12 18:30:26 +0800 |
commit | a9f4c55502b381dcbc0bdc4c54faa5e220f658d0 (patch) | |
tree | 4b2003f4a4243d85beccb9b0f849b07409490ebb | |
parent | c7b34dd59053f14a160b8945f60bcee5951ace49 (diff) | |
download | freebsd-ports-gnome-a9f4c55502b381dcbc0bdc4c54faa5e220f658d0.tar.gz freebsd-ports-gnome-a9f4c55502b381dcbc0bdc4c54faa5e220f658d0.tar.zst freebsd-ports-gnome-a9f4c55502b381dcbc0bdc4c54faa5e220f658d0.zip |
Liquibase is an open source (Apache 2.0 Licensed), database-independent
library for tracking, managing and applying database changes. It is built on
a simple premise: All database changes are stored in a human readable yet
trackable form and checked into source control.
WWW: http://www.liquibase.org/
PR: ports/176032
Submitted by: Gea-Suan Lin <gslin@gslin.org>
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/liquibase/Makefile | 24 | ||||
-rw-r--r-- | databases/liquibase/distinfo | 2 | ||||
-rw-r--r-- | databases/liquibase/files/patch-liquibase | 63 | ||||
-rw-r--r-- | databases/liquibase/pkg-descr | 6 | ||||
-rw-r--r-- | databases/liquibase/pkg-plist | 4 |
6 files changed, 100 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 3334d61634a3..ccf4138c2277 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -178,6 +178,7 @@ SUBDIR += linux-oracle-instantclient-basic SUBDIR += linux-oracle-instantclient-sdk SUBDIR += linux-oracle-instantclient-sqlplus + SUBDIR += liquibase SUBDIR += lsdb SUBDIR += luasql-mysql SUBDIR += luasql-postgres diff --git a/databases/liquibase/Makefile b/databases/liquibase/Makefile new file mode 100644 index 000000000000..7ae2f9c51742 --- /dev/null +++ b/databases/liquibase/Makefile @@ -0,0 +1,24 @@ +# Created by: Gea-Suan Lin <gslin@gslin.org> +# $FreeBSD$ + +PORTNAME= liquibase +PORTVERSION= 2.0.5 +CATEGORIES= databases java +MASTER_SITES= http://cloud.github.com/downloads/liquibase/liquibase/ +DISTFILES= ${PORTNAME}-${PORTVERSION}-bin${EXTRACT_SUFX} + +MAINTAINER= gslin@gslin.org +COMMENT= Database Change Management + +LICENSE= AL2 + +NO_BUILD= yes +NO_WRKSUBDIR= yes +USE_JAVA= yes + +do-install: + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/liquibase.jar ${DATADIR}/ + ${INSTALL_SCRIPT} ${WRKSRC}/liquibase ${PREFIX}/bin/ + +.include <bsd.port.mk> diff --git a/databases/liquibase/distinfo b/databases/liquibase/distinfo new file mode 100644 index 000000000000..fb89fafa9a5b --- /dev/null +++ b/databases/liquibase/distinfo @@ -0,0 +1,2 @@ +SHA256 (liquibase-2.0.5-bin.tar.gz) = 8e395ce32f0b35fd7eaeb1b718adc8286ea6002af193b1f0812accf0810b6320 +SIZE (liquibase-2.0.5-bin.tar.gz) = 1859514 diff --git a/databases/liquibase/files/patch-liquibase b/databases/liquibase/files/patch-liquibase new file mode 100644 index 000000000000..d1b538708fc9 --- /dev/null +++ b/databases/liquibase/files/patch-liquibase @@ -0,0 +1,63 @@ +--- liquibase.orig 2013-02-11 22:36:23.000000000 +0800 ++++ liquibase 2013-02-11 22:38:03.000000000 +0800 +@@ -1,51 +1,14 @@ + #! /bin/sh + +-if [ -n "${LIQUIBASE_HOME+x}" ]; then +-echo "Liquibase Home: $LIQUIBASE_HOME" +-else +- echo "Liquibase Home is not set." +- +- ## resolve links - $0 may be a symlink +- PRG="$0" +- while [ -h "$PRG" ] ; do +- ls=`ls -ld "$PRG"` +- link=`expr "$ls" : '.*-> \(.*\)$'` +- if expr "$link" : '/.*' > /dev/null; then +- PRG="$link" +- else +- PRG=`dirname "$PRG"`"/$link" +- fi +- done +- +- +- LIQUIBASE_HOME=`dirname "$PRG"` +- +- # make it fully qualified +- LIQUIBASE_HOME=`cd "$LIQUIBASE_HOME" && pwd` +- echo "Liquibase Home: $LIQUIBASE_HOME" +-fi +- +- +-# build classpath from all jars in lib +-if [ -f /usr/bin/cygpath ]; then +- CP=. +- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do +- i=`cygpath --windows "$i"` +- CP="$CP;$i" +- done +- for i in "$LIQUIBASE_HOME"/lib/*.jar; do +- i=`cygpath --windows "$i"` +- CP="$CP;$i" +- done +-else +- CP=. +- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do +- CP="$CP":"$i" +- done +- for i in "$LIQUIBASE_HOME"/lib/*.jar; do +- CP="$CP":"$i" +- done +-fi ++LIQUIBASE_HOME=`dirname $0`/../share/liquibase ++ ++CP=. ++for i in "$LIQUIBASE_HOME"/liquibase*.jar; do ++ CP="$CP":"$i" ++done ++for i in "$LIQUIBASE_HOME"/lib/*.jar; do ++ CP="$CP":"$i" ++done + + # add any JVM options here + JAVA_OPTS= diff --git a/databases/liquibase/pkg-descr b/databases/liquibase/pkg-descr new file mode 100644 index 000000000000..c97b878c9590 --- /dev/null +++ b/databases/liquibase/pkg-descr @@ -0,0 +1,6 @@ +Liquibase is an open source (Apache 2.0 Licensed), database-independent +library for tracking, managing and applying database changes. It is built on +a simple premise: All database changes are stored in a human readable yet +trackable form and checked into source control. + +WWW: http://www.liquibase.org/ diff --git a/databases/liquibase/pkg-plist b/databases/liquibase/pkg-plist new file mode 100644 index 000000000000..311ffbc61de6 --- /dev/null +++ b/databases/liquibase/pkg-plist @@ -0,0 +1,4 @@ +@comment $FreeBSD$ +%%DATADIR%%/liquibase.jar +bin/liquibase +@dirrmtry %%DATADIR%% |