Skip to content

Commit ffaf6db

Browse files
Added package construct scripts.
0 parents  commit ffaf6db

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

DEBIAN/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: liquibase
2+
Version: 3.5.5
3+
Architecture: all
4+
Essential: no
5+
Priority: optional
6+
Depends: default-jre
7+
Section: database
8+
Maintainer: Andrew Rademacher <[email protected]>
9+
Homepage: http://www.liquibase.org/

build-package.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
LIQUIBASE_VERSION=3.5.5
4+
PG_JDBC_VERSION=42.2.4
5+
6+
mkdir -p build/download
7+
(cd ./build/download && wget https://github.com/liquibase/liquibase/releases/download/liquibase-parent-${LIQUIBASE_VERSION}/liquibase-${LIQUIBASE_VERSION}-bin.tar.gz)
8+
9+
mkdir -p build/pkg/usr/lib/liquibase
10+
tar xvf ./build/download/liquibase-${LIQUIBASE_VERSION}-bin.tar.gz -C ./build/pkg/usr/lib/liquibase
11+
12+
# Additional Drivers
13+
(cd ./build/pkg/usr/lib/liquibase/lib && wget https://jdbc.postgresql.org/download/postgresql-${PG_JDBC_VERSION}.jar)
14+
15+
# Symlinking
16+
mkdir -p build/pkg/usr/bin
17+
(cd ./build/pkg/usr/bin && ln -s /usr/lib/liquibase/liquibase liquibase)
18+
19+
# Packaging
20+
cp -R DEBIAN build/pkg
21+
dpkg -b build/pkg/ build/liquibase_3.5.5.deb

0 commit comments

Comments
 (0)