diff options
author | Andrey Kolchenko | 2021-03-25 13:07:53 +0300 |
---|---|---|
committer | Andrey Kolchenko | 2021-03-25 13:07:53 +0300 |
commit | 4697f8744bb8ec4db4f16a65ec9fbf27b647ceac (patch) | |
tree | 40b411db515470b082b621b1e5a269b466319965 | |
parent | 0daea497c1057335c986484a22d5dc0d6921c420 (diff) | |
download | aur-4697f8744bb8ec4db4f16a65ec9fbf27b647ceac.tar.gz |
Fix log dirrectory permissions
Convert configuration file to UTF-8
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | ifcplugin.install | 18 |
3 files changed, 18 insertions, 11 deletions
@@ -1,7 +1,7 @@ pkgbase = ifcplugin pkgdesc = Crypto Interface Web Browser Plugin for https://gosuslugi.ru/ pkgver = 3.1.1.0 - pkgrel = 3 + pkgrel = 4 url = https://ds-plugin.gosuslugi.ru/plugin/upload/Index.spr install = ifcplugin.install arch = i686 @@ -2,7 +2,7 @@ pkgname=ifcplugin pkgver=3.1.1.0 -pkgrel=3 +pkgrel=4 pkgdesc="Crypto Interface Web Browser Plugin for https://gosuslugi.ru/" arch=('i686' 'x86_64') url="https://ds-plugin.gosuslugi.ru/plugin/upload/Index.spr" @@ -20,9 +20,10 @@ package() { cp -r "$srcdir/etc/" "$pkgdir/etc" cp -r "$srcdir/usr/" "$pkgdir/usr" cp -r "$srcdir/opt/" "$pkgdir/opt" - mkdir -p $pkgdir/var/log/ifc - mkdir -p $pkgdir/var/log/ifc/engine_logs + + mkdir -p "$pkgdir/var/log/ifc/engine_logs" sed -i "s/ifd-ccid.bundle/ifd-acsccid.bundle/g" "$pkgdir/etc/update_ccid_boundle/update_ccid_boundle.sh" - wget -O "$srcdir/etc/ifc.cfg" https://www.cryptopro.ru/sites/default/files/public/faq/ifcx64.cfg + wget "https://www.cryptopro.ru/sites/default/files/public/faq/ifcx64.cfg" + iconv -f ISO-8859-1 -t UTF-8 ifcx64.cfg -o "$srcdir/etc/ifc.cfg" } diff --git a/ifcplugin.install b/ifcplugin.install index bdadddab4c02..c91abcc2f09b 100644 --- a/ifcplugin.install +++ b/ifcplugin.install @@ -1,15 +1,21 @@ post_install() { - ln -s "/etc/opt/chrome/native-messaging-hosts/ru.rtlabs.ifcplugin.json" "/etc/chromium/native-messaging-hosts" - # Add VIDs and PIDs to CCID Boundle - cd /etc/update_ccid_boundle - bash ./update_ccid_boundle.sh + correct } - post_upgrade() { - ln -s "/etc/opt/chrome/native-messaging-hosts/ru.rtlabs.ifcplugin.json" "/etc/chromium/native-messaging-hosts" + correct +} + +correct() { + TARGET="/etc/chromium/native-messaging-hosts/ru.rtlabs.ifcplugin.json" + rm -f "$TARGET" + ln -s "/etc/opt/chrome/native-messaging-hosts/ru.rtlabs.ifcplugin.json" "$TARGET" + + chmod 777 -R "/var/log/ifc" + # Add VIDs and PIDs to CCID Boundle cd /etc/update_ccid_boundle bash ./update_ccid_boundle.sh } + |