From a9f4c55502b381dcbc0bdc4c54faa5e220f658d0 Mon Sep 17 00:00:00 2001 From: miwi Date: Tue, 12 Feb 2013 10:30:26 +0000 Subject: 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 --- databases/Makefile | 1 + databases/liquibase/Makefile | 24 ++++++++++++ databases/liquibase/distinfo | 2 + databases/liquibase/files/patch-liquibase | 63 +++++++++++++++++++++++++++++++ databases/liquibase/pkg-descr | 6 +++ databases/liquibase/pkg-plist | 4 ++ 6 files changed, 100 insertions(+) create mode 100644 databases/liquibase/Makefile create mode 100644 databases/liquibase/distinfo create mode 100644 databases/liquibase/files/patch-liquibase create mode 100644 databases/liquibase/pkg-descr create mode 100644 databases/liquibase/pkg-plist (limited to 'databases') 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 +# $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 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%% -- cgit