Skip to content

Commit

Permalink
Added package construct scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRademacher committed Aug 13, 2018
0 parents commit ffaf6db
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
9 changes: 9 additions & 0 deletions DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: liquibase
Version: 3.5.5
Architecture: all
Essential: no
Priority: optional
Depends: default-jre
Section: database
Maintainer: Andrew Rademacher <andrewrademacher@icloud.com>
Homepage: http://www.liquibase.org/
21 changes: 21 additions & 0 deletions build-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

LIQUIBASE_VERSION=3.5.5
PG_JDBC_VERSION=42.2.4

mkdir -p build/download
(cd ./build/download && wget https://github.com/liquibase/liquibase/releases/download/liquibase-parent-${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}-bin.tar.gz)

mkdir -p build/pkg/usr/lib/liquibase
tar xvf ./build/download/liquibase-${LIQUIBASE_VERSION}-bin.tar.gz -C ./build/pkg/usr/lib/liquibase

# Additional Drivers
(cd ./build/pkg/usr/lib/liquibase/lib && wget https://jdbc.postgresql.org/download/postgresql-${PG_JDBC_VERSION}.jar)

# Symlinking
mkdir -p build/pkg/usr/bin
(cd ./build/pkg/usr/bin && ln -s /usr/lib/liquibase/liquibase liquibase)

# Packaging
cp -R DEBIAN build/pkg
dpkg -b build/pkg/ build/liquibase_3.5.5.deb

0 comments on commit ffaf6db

Please sign in to comment.