blob: 36e5c4e0d0835aac912416ed0b32dfd8c28e99f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Maxim Polishchuck <mpolishchuck[at]gmail[dot]com>
pkgbase=eusw
pkgname=(
"${pkgbase}"
"${pkgbase}-npapi-plugin"
"${pkgbase}-nmh-manifest"
"${pkgbase}-pcsc-driver"
)
pkgver=1.3.1.63
pkgrel=1
pkgdesc="IIT End User CA-1. Sign (web)"
url="https://iit.com.ua"
arch=('i686' 'x86_64')
if [[ $CARCH = i686 ]]; then
_src_md5sum='591f9d7d213e6c4d10527ca740c795a3'
_srcuri_filename='euswi.tar'
_src_filename="eusw_${pkgver}_i386.tar"
else
_src_md5sum='b0e000b340edacb45d86c26ee52cc4ee'
_srcuri_filename='euswi.64.tar'
_src_filename="eusw_${pkgver}_amd64.tar"
fi
source=(
"${_src_filename}::https://iit.com.ua/download/productfiles/${_srcuri_filename}"
'chrome.ua.com.iit.eusign.nmh.json'
'mozilla.ua.com.iit.eusign.nmh.json'
)
noextract=("${_src_filename}")
md5sums=(
"${_src_md5sum}"
'64ed17e9ee22c1cbd05593131c492f33'
'9d9c48e1078d3c58a3d82b216ff98cbc'
)
package_eusw() {
pkgdesc="IIT End User CA-1. Sign (web). Base program."
depends=('glibc' 'gcc-libs')
backup=(
'opt/iit/eu/sw/osplm.ini'
)
msg2 "Extracting the ${_src_filename}..."
bsdtar -xf "${_src_filename}" -C "$pkgdir/"
# Moving udev rules file under /usr/lib.
mkdir -p ${pkgdir}/usr/lib/udev/rules.d
mv ${pkgdir}/etc/udev/rules.d/60-iit-e-keys.rules ${pkgdir}/usr/lib/udev/rules.d/60-iit-e-keys.rules
rmdir ${pkgdir}/etc/udev/rules.d
rmdir ${pkgdir}/etc/udev
rmdir ${pkgdir}/etc
# Fixing permissions of udev rules file
chmod a-x ${pkgdir}/usr/lib/udev/rules.d/60-iit-e-keys.rules
# Removing install/uninstall scripts
rm ${pkgdir}/opt/iit/eu/sw/install.sh
rm ${pkgdir}/opt/iit/eu/sw/uninstall.sh
}
package_eusw-npapi-plugin() {
pkgdesc="IIT End User CA-1. Sign (web). NPAPI plugin."
depends=("${pkgbase}")
mkdir -p ${pkgdir}/usr/lib/mozilla/plugins
ln -s /opt/iit/eu/sw/npeuscp.so ${pkgdir}/usr/lib/mozilla/plugins/npeuscp.so
}
package_eusw-nmh-manifest() {
pkgdesc="IIT End User CA-1. Sign (web). Native Messaging Host manifest."
depends=("${pkgbase}")
# Installing native messaging host manifest (Chrome)
install -Dm644 ${srcdir}/chrome.ua.com.iit.eusign.nmh.json ${pkgdir}/etc/opt/chrome/native-messaging-hosts/ua.com.iit.eusign.nmh.json
# Installing native messaging host manifest (Chromium)
install -Dm644 ${srcdir}/chrome.ua.com.iit.eusign.nmh.json ${pkgdir}/etc/chromium/native-messaging-hosts/ua.com.iit.eusign.nmh.json
# Installing native messaging host manifest (Mozilla)
install -Dm644 ${srcdir}/mozilla.ua.com.iit.eusign.nmh.json ${pkgdir}/usr/lib/mozilla/native-messaging-hosts/ua.com.iit.eusign.nmh.json
}
package_eusw-pcsc-driver() {
pkgdesc="IIT End User CA-1. Sign (web). PC/SC driver(s)."
depends=("${pkgbase}" 'pcsclite')
mkdir -p ${pkgdir}/usr/lib
ln -s /opt/iit/eu/sw/libav337p11d.so ${pkgdir}/usr/lib/libav337p11d.so
}
|