From f7748df86554ae08495df7defd2b42d23d5754f1 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 22 Oct 2019 20:25:53 +0000
Subject: [PATCH] Add necessary jaxb components deleted from Java 11+

---
 debian/install |    1 +
 debian/rules   |    4 +++-
 README.md      |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 3979205..f84f0c6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-= pz-signer.deb =
+# pz-signer.deb
 
 DEB packaging of PZ Signer from ePUAP.
 
diff --git a/debian/install b/debian/install
index 89b77b9..e6a126b 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,4 @@
 build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar opt/pzsigner/lib
+*.jar opt/pzsigner/lib
 src/* opt/pzsigner/classes
 pzsigner usr/bin
diff --git a/debian/rules b/debian/rules
index 79fb1fd..3095407 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 NAME = pzsigner
 VERSION = 1.0
 PACKAGENAME = pzsigner
-PACKAGEVERSION = $(VERSION)-0
+PACKAGEVERSION = $(VERSION)-1
 URL = "https://pz.gov.pl/PZ%20Signer/linux/x86"
 BASENAME = pzsigner.zip
 
@@ -15,6 +15,8 @@
 override_dh_auto_build:
 	mkdir -p build
 	wget -N --progress=dot:mega "$(URL)/$(BASENAME)"
+	wget -N --progress=dot:mega "http://central.maven.org/maven2/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar"
+	wget -N --progress=dot:mega "http://central.maven.org/maven2/com/sun/xml/bind/jaxb-impl/2.3.3-b01/jaxb-impl-2.3.3-b01.jar"
 	unzip -o "$(BASENAME)" -d build
 	javac -cp 'build/x86_64/*' src/com/pentacomp/signer/KeyStoreManager.java
 	cp -f build/x86_64/pz-signer-1.0-SNAPSHOT.jar build/x86_64/pz-signer-1.0-SNAPSHOT-modified.jar

--
Gitblit v1.9.1