Skip to content

Commit a2cf7d3

Browse files
committed
Add new package liquibase
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. Provided by mmoll in netbsd/pkgsrc pull request #6, with some changes from myself.
1 parent 0cdf8c9 commit a2cf7d3

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed

databases/liquibase/Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# $NetBSD: Makefile,v 1.1 2017/07/31 14:23:05 maya Exp $
2+
3+
VERSION= 3.5.3
4+
PKGNAME= liquibase-${VERSION}
5+
DISTNAME= ${PKGNAME}-bin
6+
CATEGORIES= databases
7+
MASTER_SITES= ${MASTER_SITE_GITHUB:=liquibase/}
8+
GITHUB_RELEASE= liquibase-parent-${VERSION}
9+
10+
NO_BUILD= yes
11+
AUTO_MKDIRS= yes
12+
WRKSRC= ${WRKDIR}
13+
14+
MAINTAINER= [email protected]
15+
HOMEPAGE= https://github.com/liquibase/liquibase/
16+
COMMENT= Database Change Management
17+
LICENSE= apache-2.0
18+
19+
USE_JAVA= run
20+
USE_JAVA2= 6
21+
22+
SUBST_CLASSES+= javabin
23+
SUBST_STAGE.javabin= pre-configure
24+
SUBST_FILES.javabin= liquibase
25+
SUBST_VARS.javabin= JAVA_BINPREFIX
26+
27+
do-install:
28+
${INSTALL_DATA} ${WRKSRC}/liquibase.jar ${DESTDIR}${PREFIX}/share/liquibase
29+
${INSTALL_DATA} ${WRKSRC}/lib/snakeyaml-1.17.jar ${DESTDIR}${PREFIX}/share/liquibase/lib
30+
${INSTALL_SCRIPT} ${WRKSRC}/liquibase ${DESTDIR}${PREFIX}/bin
31+
32+
.include "../../mk/java-vm.mk"
33+
.include "../../mk/bsd.pkg.mk"

databases/liquibase/PLIST

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@comment $NetBSD: PLIST,v 1.1 2017/07/31 14:23:05 maya Exp $
2+
bin/liquibase
3+
share/liquibase/lib/snakeyaml-1.17.jar
4+
share/liquibase/liquibase.jar

databases/liquibase/distinfo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$NetBSD: distinfo,v 1.1 2017/07/31 14:23:05 maya Exp $
2+
3+
SHA1 (liquibase-3.5.3-bin.tar.gz) = 39b17b80a63de68e1283ebdc96296ead6c671bbb
4+
RMD160 (liquibase-3.5.3-bin.tar.gz) = f59f2e883dd4b3b7c9dad46d674c516f45e69a14
5+
SHA512 (liquibase-3.5.3-bin.tar.gz) = c2da11f7b9f16a2047a0604ae7829dccfe9a486a69ab793a8f562663e5b3bb91a287439d9e91b3c17f0c98928174954b15e18637b5982d3eebd2b2af8948fcdb
6+
Size (liquibase-3.5.3-bin.tar.gz) = 4370165 bytes
7+
SHA1 (patch-liquibase) = 1da7e7e3615b6caa8b1e7de3abd922bd3cfb64db
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
$NetBSD: patch-liquibase,v 1.1 2017/07/31 14:23:06 maya Exp $
2+
3+
set LIQUIBASE_HOME and class path correctly
4+
5+
--- liquibase.orig 2016-10-13 19:29:38.000000000 +0000
6+
+++ liquibase
7+
@@ -1,58 +1,18 @@
8+
-#!/usr/bin/env bash
9+
+#!/bin/sh
10+
11+
-if [ ! -n "${LIQUIBASE_HOME+x}" ]; then
12+
- # echo "LIQUIBASE_HOME is not set."
13+
+LIQUIBASE_HOME=`dirname $0`/../share/liquibase
14+
15+
- ## resolve links - $0 may be a symlink
16+
- PRG="$0"
17+
- while [ -h "$PRG" ] ; do
18+
- ls=`ls -ld "$PRG"`
19+
- link=`expr "$ls" : '.*-> \(.*\)$'`
20+
- if expr "$link" : '/.*' > /dev/null; then
21+
- PRG="$link"
22+
- else
23+
- PRG=`dirname "$PRG"`"/$link"
24+
- fi
25+
- done
26+
-
27+
-
28+
- LIQUIBASE_HOME=`dirname "$PRG"`
29+
-
30+
- # make it fully qualified
31+
- LIQUIBASE_HOME=`cd "$LIQUIBASE_HOME" && pwd`
32+
- # echo "Liquibase Home: $LIQUIBASE_HOME"
33+
-fi
34+
-
35+
-
36+
-# build classpath from all jars in lib
37+
-if [ -f /usr/bin/cygpath ]; then
38+
- CP=.
39+
- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
40+
- i=`cygpath --windows "$i"`
41+
- CP="$CP;$i"
42+
- done
43+
- for i in "$LIQUIBASE_HOME"/lib/*.jar; do
44+
- i=`cygpath --windows "$i"`
45+
- CP="$CP;$i"
46+
- done
47+
-else
48+
- if [[ $(uname) = MINGW* ]]; then
49+
- CP_SEPARATOR=";"
50+
- else
51+
- CP_SEPARATOR=":"
52+
- fi
53+
- CP=.
54+
- for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
55+
- CP="$CP""$CP_SEPARATOR""$i"
56+
- done
57+
- for i in "$LIQUIBASE_HOME"/lib/*.jar; do
58+
- CP="$CP""$CP_SEPARATOR""$i"
59+
- done
60+
-fi
61+
+CP=.
62+
+for i in "$LIQUIBASE_HOME"/liquibase*.jar; do
63+
+ CP="$CP":"$i"
64+
+done
65+
+for i in "$LIQUIBASE_HOME"/lib/*.jar; do
66+
+ CP="$CP":"$i"
67+
+done
68+
69+
# add any JVM options here
70+
JAVA_OPTS="${JAVA_OPTS-}"
71+
72+
-java -cp "$CP" $JAVA_OPTS liquibase.integration.commandline.Main ${1+"$@"}
73+
+@JAVA_BINPREFIX@-java -cp "$CP" $JAVA_OPTS liquibase.integration.commandline.Main ${1+"$@"}
74+
75+

0 commit comments

Comments
 (0)