blob: 819d0cffac685c40b5f981cc665a0497e463136c (
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
|
post_install() {
rm -fr /usr/share/pixmaps/otlv-pintool.xpm
rm -fr /usr/share/applications/otlv-pintool.desktop
rm -fr /opt/latvia-eid/share/doc/Latvia-eID-Middleware
rm -fr /opt/latvia-eid/share/Latvia-eID-Middleware
rm -fr /opt/latvia-eid/bin/otlv-pintool
rm -fr /opt/latvia-eid/lib/libotlv*
rm -fr /opt/latvia-eid/lib/onepin-otlv*
rm -fr /opt/latvia-eid/lib/otlv*
rm -fr /opt/latvia-eid/lib/pkcs11/onepin-otlv*
rm -fr /opt/latvia-eid/lib/pkcs11/otlv*
ln -sf /opt/latvia-eid/lib/eidlv-pkcs11.so /usr/lib
ln -sf /opt/latvia-eid/lib/eidlv-pkcs11.so /usr/lib/otlv-pkcs11.so
ln -sf /opt/latvia-eid/bin/eidlv-pintool /usr/bin
ln -sf /opt/latvia-eid/bin/opensc-asn1 /usr/bin/eidlv-opensc-asn1
ln -sf /opt/latvia-eid/bin/opensc-explorer /usr/bin/eidlv-opensc-explorer
ln -sf /opt/latvia-eid/bin/opensc-tool /usr/bin/eidlv-opensc-tool
ln -sf /opt/latvia-eid/bin/pkcs11-tool /usr/bin/eidlv-pkcs11-tool
ln -sf /opt/latvia-eid/bin/pkcs15-crypt /usr/bin/eidlv-pkcs15-crypt
ln -sf /opt/latvia-eid/bin/pkcs15-tool /usr/bin/eidlv-pkcs15-tool
mkdir -p /usr/lib/pkcs11
ln -sf ../eidlv-pkcs11.so /usr/lib/pkcs11/.
ln -sf ../eidlv-pkcs11.so /usr/lib/pkcs11/otlv-pkcs11.so
ln -sf /opt/latvia-eid/share/doc/latvia-eid/eidlv-pintool.xpm /usr/share/pixmaps/.
ln -sf /opt/latvia-eid/share/doc/latvia-eid/eidlv-pintool.desktop /usr/share/applications/.
/sbin/ldconfig /opt/latvia-eid/lib
/sbin/ldconfig /usr/lib/pkcs11
/sbin/ldconfig
printf "$(tput setaf 4)NOTE: $(tput sgr0)To start using eID cards in browser either follow Mozilla docs:\n"
printf "$(tput setaf 2) https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pkcs11\n"
printf "$(tput sgr0) or use $(tput setaf 2)modutil $(tput sgr0)tool from $(tput setaf 2)nss $(tput sgr0)package:\n"
printf "$(tput setaf 2) https://linuxkamarada.com/en/2019/09/26/setting-up-smart-card-authentication-on-google-chrome-chromium/\n"
printf "$(tput sgr0) using $(tput setaf 2)/opt/latvia-eid/lib/eidlv-pkcs11.so $(tput sgr0)library in both cases.\n"
}
post_upgrade() {
printf "$(tput setaf 4)NOTE: $(tput sgr0)To start using eID cards in browser either follow Mozilla docs:\n"
printf "$(tput setaf 2) https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/pkcs11\n"
printf "$(tput sgr0) or use $(tput setaf 2)modutil $(tput sgr0)(from $(tput setaf 2)nss $(tput sgr0)package):\n"
printf "$(tput setaf 2) https://linuxkamarada.com/en/2019/09/26/setting-up-smart-card-authentication-on-google-chrome-chromium/\n"
printf "$(tput sgr0) using $(tput setaf 2)/opt/latvia-eid/lib/eidlv-pkcs11.so $(tput sgr0)library in both cases.\n"
}
pre_remove() {
rm -f /usr/lib/eidlv-pkcs11.so
rm -f /usr/lib/pkcs11/eidlv-pkcs11.so
rm -f /usr/lib/otlv-pkcs11.so
rm -f /usr/lib/pkcs11/otlv-pkcs11.so
rm -f /usr/bin/eidlv-pintool
rm -f /usr/bin/eidlv-opensc-explorer
rm -f /usr/bin/eidlv-opensc-tool
rm -f /usr/bin/eidlv-pkcs11-tool
rm -f /usr/bin/eidlv-pkcs15-crypt
rm -f /usr/bin/eidlv-pkcs15-tool
rm -f /usr/share/pixmaps/eidlv-pintool.xpm
rm -f /usr/share/applications/eidlv-pintool.desktop
}
|