Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
3c27ca53
Commit
3c27ca53
authored
Aug 12, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add Okular GOST support
parent
b7491d26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
okular-csp.sh
play.d/okular-csp.sh
+74
-0
No files found.
play.d/okular-csp.sh
0 → 100755
View file @
3c27ca53
#!/bin/sh
PKGNAME
=
okular-csp
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"Okular GOST (free version) with CryptoPro support from the official site"
REPOURL
=
"http://packages.lab50.net"
# TODO: remove repo too
case
"
$1
"
in
"--remove"
)
epm remove
$(
epmqp
$PKGNAME
-
)
$(
epmqp poppler-csp-
)
exit
;;
esac
.
$(
dirname
$0
)
/common.sh
# see
# https://okulargost.ru/info.html
# http://packages.lab50.net/okular/install
# Strict supported list
case
$(
epm print info
-e
)
in
Debian/11|Ubuntu/20.04
)
;;
# AstraLinuxSE/1.7*)
AstraLinux/smolensk
)
;;
Fedora/35|ROSA/2021|RedOS/7
)
;;
ALTLinux/p10|ALTServer/10
)
;;
*
)
fatal
"Unsupported distro
$(
epm print info
-e
)
. Ask application vendor for a support."
;;
esac
# CryptoPro needed for install
if
!
epmqp
"cprocsp-"
>
/dev/null
;
then
fatal
"Install CryptoPro before (via ecryptomgr package or manually)"
fi
distrib
=
$(
epm print info
--codename
)
case
$(
epm print info
-e
)
in
# TODO:
# AstraLinuxSE/1.7*)
AstraLinux/smolensk
)
distrib
=
alse17
additional_packages
=
"libkf5js5=5.78.0-0ubuntu2+alse17 libkf5jsapi5=5.78.0-0ubuntu2+alse17"
;;
ALTLinux
*
|
ALTServer
*
)
# TODO get key info from gpg file
epm repo addkey
"
$REPOURL
/lab50.gpg"
"D0C721136AFF9319DCF8276EA98DF0BE319FACDA"
"Laboratory 50 (APT Archive Key) <team@lab50.net>"
epm repo add
"rpm [lab50]
$REPOURL
/okular/alt x86_64 p10"
;;
esac
case
$(
epm print info
-g
)
in
apt-dpkg
)
epm repo addkey
"
$REPOURL
/lab50.gpg"
epm repo add
"deb
$REPOURL
/okular
$distrib
main"
;;
dnf-rpm
)
epm repo add
"
$REPOURL
/okular/
$distrib
/okularcsp.repo"
;;
esac
epm update
epm
install
okular-csp
$additional_packages
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment