summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzurajm2018-12-05 11:33:32 +0100
committerzurajm2018-12-05 11:33:32 +0100
commite40f66d724c7a82ad2cbec81fbbd91c9241df693 (patch)
tree124a326e13d7fe25b328af67c85e40c48dc1f86f
downloadaur-e40f66d724c7a82ad2cbec81fbbd91c9241df693.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD23
-rw-r--r--digsighost.install35
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e0570411cfc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = digsighost
+ pkgdesc = This application is intended for all users of software solutions, which use Comtrade DigSig component for digital signing of documents.
+ pkgver = 2.0.98.0
+ pkgrel = 1
+ url = http://comtradedigital.com/digital-banking-security/#E-signature-and-PKI
+ install = digsighost.install
+ arch = any
+ license = GPL
+ options = !strip
+ options = !emptydirs
+ source = https://edavki.durs.si/EdavkiPortal/[120]/OpenPortal/Controls/ESignDocControls/digsighost.deb
+ sha512sums = 30d88c579c9c2fe13254ea1422742b14442b9d767862059c82e64c8e7d1489571fe7ed15c450306883a2a7596353577ced1084d7d29fc64f68ef792a602cfb5a
+
+pkgname = digsighost
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..725fe097af7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by debtap
+# Maintainer: Miha Zuraj <miha@zuraj.com>
+pkgname=digsighost
+pkgver=2.0.98.0
+pkgrel=1
+pkgdesc="This application is intended for all users of software solutions, which use Comtrade DigSig component for digital signing of documents."
+arch=('any')
+url="http://comtradedigital.com/digital-banking-security/#E-signature-and-PKI"
+license=('GPL')
+groups=('')
+options=('!strip' '!emptydirs')
+install=${pkgname}.install
+source=("https://edavki.durs.si/EdavkiPortal/[120]/OpenPortal/Controls/ESignDocControls/digsighost.deb")
+sha512sums=('30d88c579c9c2fe13254ea1422742b14442b9d767862059c82e64c8e7d1489571fe7ed15c450306883a2a7596353577ced1084d7d29fc64f68ef792a602cfb5a')
+
+package(){
+
+ # Extract package data
+ tar xf data.tar.xz -C "${pkgdir}"
+
+ install -D -m644 "/usr/share/doc/digsighost/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+}
diff --git a/digsighost.install b/digsighost.install
new file mode 100644
index 00000000000..38d9a6dd1aa
--- /dev/null
+++ b/digsighost.install
@@ -0,0 +1,35 @@
+post_install() {
+
+ manifest=com.comtrade.banking.security.digsighost.json
+ manifest_dir=/opt/comtrade/digsighost/conf
+ chrome_nmh=/etc/opt/chrome/native-messaging-hosts
+ chromium_nmh=/etc/chromium-browser/native-messaging-hosts
+ mozilla_nmh=/usr/lib/mozilla/native-messaging-hosts
+
+ mkdir -p ${chrome_nmh}
+ cp -p ${manifest_dir}/${manifest}.chrome ${chrome_nmh}/${manifest}
+
+ mkdir -p ${chromium_nmh}
+ cp -p ${manifest_dir}/${manifest}.chrome ${chromium_nmh}/${manifest}
+
+ mkdir -p ${mozilla_nmh}
+ cp -p ${manifest_dir}/${manifest}.mozilla ${mozilla_nmh}/${manifest}
+
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+
+ manifest=com.comtrade.banking.security.digsighost.json
+ chrome_nmh=/etc/opt/chrome/native-messaging-hosts
+ chromium_nmh=/etc/chromium-browser/native-messaging-hosts
+ mozilla_nmh=/usr/lib/mozilla/native-messaging-hosts
+
+ rm -f ${chrome_nmh}/${manifest}
+ rm -f ${chromium_nmh}/${manifest}
+ rm -f ${mozilla_nmh}/${manifest}
+
+}