Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new package: databases/liquibase #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions databases/liquibase/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
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.
28 changes: 28 additions & 0 deletions databases/liquibase/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# $NetBSD$

VERSION= 3.5.3
PKGNAME= liquibase-${VERSION}
DISTNAME= ${PKGNAME}-bin
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=liquibase/}
GITHUB_RELEASE= liquibase-parent-${VERSION}

NO_BUILD= yes
AUTO_MKDIRS= yes
WRKSRC= ${WRKDIR}

MAINTAINER= [email protected]
HOMEPAGE= https://github.com/liquibase/liquibase/
COMMENT= Database Change Management
LICENSE= apache-2.0

USE_JAVA= run
USE_JAVA2= 6

do-install:
${INSTALL_DATA} ${WRKSRC}/liquibase.jar ${DESTDIR}${PREFIX}/share/liquibase
${INSTALL_DATA} ${WRKSRC}/lib/snakeyaml-1.17.jar ${DESTDIR}${PREFIX}/share/liquibase/lib
${INSTALL_SCRIPT} ${WRKSRC}/liquibase ${DESTDIR}${PREFIX}/bin

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
4 changes: 4 additions & 0 deletions databases/liquibase/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@comment $NetBSD$
bin/liquibase
share/liquibase/lib/snakeyaml-1.17.jar
share/liquibase/liquibase.jar
7 changes: 7 additions & 0 deletions databases/liquibase/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$NetBSD$

SHA1 (liquibase-3.5.3-bin.tar.gz) = 39b17b80a63de68e1283ebdc96296ead6c671bbb
RMD160 (liquibase-3.5.3-bin.tar.gz) = f59f2e883dd4b3b7c9dad46d674c516f45e69a14
SHA512 (liquibase-3.5.3-bin.tar.gz) = c2da11f7b9f16a2047a0604ae7829dccfe9a486a69ab793a8f562663e5b3bb91a287439d9e91b3c17f0c98928174954b15e18637b5982d3eebd2b2af8948fcdb
Size (liquibase-3.5.3-bin.tar.gz) = 4370165 bytes
SHA1 (patch-liquibase) = 0a91cef73696ccc53514841f4c9ccc5da2a14e12
69 changes: 69 additions & 0 deletions databases/liquibase/patches/patch-liquibase
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
$NetBSD$

set LIQUIBASE_HOME and class path correctly

--- liquibase.orig 2017-07-16 22:19:23.000000000 +0000
+++ liquibase
@@ -1,54 +1,14 @@
#!/usr/bin/env bash

-if [ ! -n "${LIQUIBASE_HOME+x}" ]; then
- # echo "LIQUIBASE_HOME is not set."
+LIQUIBASE_HOME=`dirname $0`/../share/liquibase

- ## 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
- if [[ $(uname) = MINGW* ]]; then
- CP_SEPARATOR=";"
- else
- CP_SEPARATOR=":"
- fi
- CP=.
- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
- CP="$CP""$CP_SEPARATOR""$i"
- done
- for i in "$LIQUIBASE_HOME"/lib/*.jar; do
- CP="$CP""$CP_SEPARATOR""$i"
- done
-fi
+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="${JAVA_OPTS-}"