|
|
@ -1,5 +1,4 @@
|
|
|
|
# Maintainer: Dmitry Razumov <asmeron@ublinux.ru>
|
|
|
|
# Maintainer: Dmitry Razumov <asmeron@ublinux.ru>
|
|
|
|
# Contributor: Platon Pronko < platon7pronko at gmail dot com >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# README
|
|
|
|
# README
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -11,7 +10,7 @@
|
|
|
|
# AUR не выполняет оба этих пункта. Поэтому перед выполнением makepkg
|
|
|
|
# AUR не выполняет оба этих пункта. Поэтому перед выполнением makepkg
|
|
|
|
# необходимо скачивать СКЗИ самостоятельно с сайта производителя. Ссылка:
|
|
|
|
# необходимо скачивать СКЗИ самостоятельно с сайта производителя. Ссылка:
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# https://cryptopro.ru/sites/default/files/private/csp/50/12500/linux-amd64.tgz
|
|
|
|
# https://cryptopro.ru/sites/default/files/private/csp/50/13000/linux-amd64.tgz
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Данный PKGBUILD старается следовать последней не-сертифицированной версии CSP (не RC).
|
|
|
|
# Данный PKGBUILD старается следовать последней не-сертифицированной версии CSP (не RC).
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -21,16 +20,14 @@
|
|
|
|
# accessing it requires logging in. Please download the archive manually
|
|
|
|
# accessing it requires logging in. Please download the archive manually
|
|
|
|
# and place alongside the PKGBUILD before building. Link:
|
|
|
|
# and place alongside the PKGBUILD before building. Link:
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# https://cryptopro.ru/sites/default/files/private/csp/50/12500/linux-amd64.tgz
|
|
|
|
# https://cryptopro.ru/sites/default/files/private/csp/50/13000/linux-amd64.tgz
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This PKGBUILD tracks the latest not-certified version of CSP (not RC).
|
|
|
|
# This PKGBUILD tracks the latest not-certified version of CSP (not RC).
|
|
|
|
|
|
|
|
|
|
|
|
pkgname="cryptopro-csp-k1"
|
|
|
|
pkgname="cryptopro-csp-k1"
|
|
|
|
pkgver=5.0.12500
|
|
|
|
pkgver=stable
|
|
|
|
pkgrel=3
|
|
|
|
_pkgver=5.0.13000
|
|
|
|
_pkgver_patch="6"
|
|
|
|
pkgrel=1
|
|
|
|
_cades_version="2.0.14589"
|
|
|
|
|
|
|
|
_pkgver="$pkgver-$_pkgver_patch"
|
|
|
|
|
|
|
|
pkgdesc='CryptoPro CSP 5.0'
|
|
|
|
pkgdesc='CryptoPro CSP 5.0'
|
|
|
|
arch=('x86_64')
|
|
|
|
arch=('x86_64')
|
|
|
|
url='https://cryptopro.ru/products/cryptopro-csp'
|
|
|
|
url='https://cryptopro.ru/products/cryptopro-csp'
|
|
|
@ -49,40 +46,42 @@ depends=(
|
|
|
|
'ccid'
|
|
|
|
'ccid'
|
|
|
|
'acsccid'
|
|
|
|
'acsccid'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
makedepends=('libarchive')
|
|
|
|
'libarchive'
|
|
|
|
source=('linux-amd64.tgz') # download from https://cryptopro.ru/sites/default/files/private/csp/50/13000/linux-amd64.tgz
|
|
|
|
)
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
source=(
|
|
|
|
|
|
|
|
'linux-amd64.tgz' # download from https://cryptopro.ru/sites/default/files/private/csp/50/12500/linux-amd64.tgz
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
sha256sums=('19af8fb817ff62b550225c780253a38f0a9330754e3265c1ab34ff0594129161')
|
|
|
|
|
|
|
|
install=cryptopro-csp-k1.install
|
|
|
|
|
|
|
|
options=(!strip)
|
|
|
|
options=(!strip)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
|
|
|
|
cd "${srcdir}/linux-amd64"
|
|
|
|
|
|
|
|
[[ -f linux-amd64.ini ]] && grep "version=" linux-amd64.ini | cut -d '=' -f2 \
|
|
|
|
|
|
|
|
|| find . -name "lsb-cprocsp-base-*.*.rpm" | sed -E "s/.*\/lsb-cprocsp-base-([^-]*)-([^-.]*)\.[a-z0-9_-]*\.rpm/\1/g"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/linux-amd64"
|
|
|
|
cd "${srcdir}/linux-amd64"
|
|
|
|
bsdtar -xf "lsb-cprocsp-base-${_pkgver}.noarch.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-base-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "lsb-cprocsp-rdr-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-base-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "lsb-cprocsp-kc1-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-rdr-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "lsb-cprocsp-capilite-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-kc1-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "lsb-cprocsp-ca-certs-${_pkgver}.noarch.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-capilite-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "lsb-cprocsp-pkcs11-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-ca-certs-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-rdr-gui-gtk-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-pkcs11-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-rdr-pcsc-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-rdr-gui-gtk-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-rdr-jacarta-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-rdr-pcsc-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-rdr-rutoken-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-rdr-jacarta-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-cptools-gtk-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-rdr-rutoken-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-rdr-cloud-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-cptools-gtk-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "lsb-cprocsp-devel-${_pkgver}.noarch.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-rdr-cloud-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-curl-64-${_pkgver}.x86_64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "lsb-cprocsp-devel-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
|
|
|
|
find . -name "cprocsp-curl-64-*.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
|
|
|
|
|
|
|
|
# browser plugin
|
|
|
|
# browser plugin
|
|
|
|
bsdtar -xf "cprocsp-pki-cades-64-${_cades_version}-1.amd64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-pki-cades-64-*-1.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
bsdtar -xf "cprocsp-pki-plugin-64-${_cades_version}-1.amd64.rpm" -C "$pkgdir"
|
|
|
|
find . -name "cprocsp-pki-plugin-64-*-1.*.rpm" -exec bsdtar -xf {} -C "${pkgdir}" \;
|
|
|
|
|
|
|
|
|
|
|
|
rm -r "$pkgdir/etc/init.d/"
|
|
|
|
cp -af "${pkgdir}"/usr/lib64/* "${pkgdir}"/usr/lib
|
|
|
|
rm -r "$pkgdir/usr/lib64/"
|
|
|
|
rm -rdf "${pkgdir}"/usr/lib64
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir/etc/ld.so.conf.d/"
|
|
|
|
mkdir -p "${pkgdir}/etc/ld.so.conf.d/"
|
|
|
|
echo "/opt/cprocsp/lib/amd64" > "$pkgdir/etc/ld.so.conf.d/cryptopro-csp-k1.conf"
|
|
|
|
echo "/opt/cprocsp/lib/amd64" > "${pkgdir}/etc/ld.so.conf.d/cryptopro-csp-k1.conf"
|
|
|
|
}
|
|
|
|
}
|
|
|
|