pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases/liquibase
Module Name: pkgsrc
Committed By: maya
Date: Mon Jul 31 14:23:06 UTC 2017
Added Files:
pkgsrc/databases/liquibase: Makefile PLIST distinfo
pkgsrc/databases/liquibase/patches: patch-liquibase
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/liquibase/Makefile \
pkgsrc/databases/liquibase/PLIST pkgsrc/databases/liquibase/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/liquibase/patches/patch-liquibase
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/databases/liquibase/Makefile
diff -u /dev/null pkgsrc/databases/liquibase/Makefile:1.1
--- /dev/null Mon Jul 31 14:23:06 2017
+++ pkgsrc/databases/liquibase/Makefile Mon Jul 31 14:23:05 2017
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2017/07/31 14:23:05 maya Exp $
+
+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= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/liquibase/liquibase/
+COMMENT= Database Change Management
+LICENSE= apache-2.0
+
+USE_JAVA= run
+USE_JAVA2= 6
+
+SUBST_CLASSES+= javabin
+SUBST_STAGE.javabin= pre-configure
+SUBST_FILES.javabin= liquibase
+SUBST_VARS.javabin= JAVA_BINPREFIX
+
+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"
Index: pkgsrc/databases/liquibase/PLIST
diff -u /dev/null pkgsrc/databases/liquibase/PLIST:1.1
--- /dev/null Mon Jul 31 14:23:06 2017
+++ pkgsrc/databases/liquibase/PLIST Mon Jul 31 14:23:05 2017
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/31 14:23:05 maya Exp $
+bin/liquibase
+share/liquibase/lib/snakeyaml-1.17.jar
+share/liquibase/liquibase.jar
Index: pkgsrc/databases/liquibase/distinfo
diff -u /dev/null pkgsrc/databases/liquibase/distinfo:1.1
--- /dev/null Mon Jul 31 14:23:06 2017
+++ pkgsrc/databases/liquibase/distinfo Mon Jul 31 14:23:05 2017
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/07/31 14:23:05 maya Exp $
+
+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) = 1da7e7e3615b6caa8b1e7de3abd922bd3cfb64db
Index: pkgsrc/databases/liquibase/patches/patch-liquibase
diff -u /dev/null pkgsrc/databases/liquibase/patches/patch-liquibase:1.1
--- /dev/null Mon Jul 31 14:23:06 2017
+++ pkgsrc/databases/liquibase/patches/patch-liquibase Mon Jul 31 14:23:06 2017
@@ -0,0 +1,75 @@
+$NetBSD: patch-liquibase,v 1.1 2017/07/31 14:23:06 maya Exp $
+
+set LIQUIBASE_HOME and class path correctly
+
+--- liquibase.orig 2016-10-13 19:29:38.000000000 +0000
++++ liquibase
+@@ -1,58 +1,18 @@
+-#!/usr/bin/env bash
++#!/bin/sh
+
+-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-}"
+
+-java -cp "$CP" $JAVA_OPTS liquibase.integration.commandline.Main ${1+"$@"}
++@JAVA_BINPREFIX@-java -cp "$CP" $JAVA_OPTS liquibase.integration.commandline.Main ${1+"$@"}
+
+
Home |
Main Index |
Thread Index |
Old Index