commit 1d4278a5193b1f0b3db0b27914b952c7f00ae83a
parent 32a5bb71e7d1013a8db992444e136c491a0d541d
Author: Florian Dold <florian@dold.me>
Date: Fri, 6 Oct 2023 02:30:58 +0200
debian: simplify package building
Diffstat:
3 files changed, 7 insertions(+), 22 deletions(-)
diff --git a/contrib/libeufin-bank.conf b/contrib/libeufin-bank.conf
@@ -36,7 +36,7 @@ PORT = 8080
[libeufin-bankdb-postgres]
# Where are the SQL files to setup our tables?
-SQL_DIR = $DATADIR/sql/libeufin-bank/
+SQL_DIR = $DATADIR/sql/
# DB connection string
CONFIG = postgresql:///libeufinbank
diff --git a/debian/README b/debian/README
@@ -1,19 +1,9 @@
-This is NOT a 'clean' Debian package.
+This is NOT a 'clean' Debian package, as it is not using the proper Javahelper
+tooling (https://wiki.debian.org/Java/Packaging#Gradle). It also requires an
+external run of the configure command.
-The DH build process with gradle passes "--offline" to Gradle and thus
-does not work with the libeufin build system.
+To build the package, you must run:
-Invoking the libeufin build system directly without the DH-magic
-results in some failures to create a lock file in /root/ by Gradle.
-
-Java builds are a mess.
-
-
-So to still generate a 'nice' Debian package, you
-must run:
-
-$ ./gradlew dist
+$ ./bootstrap
+$ ./configure --prefix=/usr
$ dpkg-buildpackage -rfakeroot -b -uc -us
-
-Basically, we take the 'binary' zip file generated by the first
-command as the "source" for dpkg. Yuckkee!
diff --git a/debian/rules b/debian/rules
@@ -23,11 +23,6 @@ override_dh_auto_test:
true
override_dh_auto_configure:
true
-override_dh_auto_install:
- unzip bank/build/distributions/libeufin-bank-$(FULLVER).zip
- dh_install libeufin-bank-$(FULLVER)/bin/* $(LIBEUFIN_HOME)/bin
- dh_install libeufin-bank-$(FULLVER)/lib/* $(LIBEUFIN_HOME)/lib
- dh_link $(LIBEUFIN_HOME)/bin/libeufin-bank /usr/bin/libeufin-bank
# Override this step because it's very slow and likely
# unnecessary for us.