Advertisement
Guest User

kc1-x86_64.txt

a guest
Jun 30th, 2019
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 134.04 KB | None | 0 0
  1. Name : lsb-cprocsp-kc1-64
  2. Version : 5.0.11453
  3. Release : 5
  4. Architecture: x86_64
  5. Install Date: (not installed)
  6. Group : Applications/Security
  7. Size : 3307133
  8. License : Crypto-Pro
  9. Signature : (none)
  10. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  11. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  12. Build Host : build-x64-cent5.cp.ru
  13. Relocations : (not relocatable)
  14. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  15. URL : http://www.cryptopro.ru/
  16. Summary : CryptoPro CSP KC1. Build 11453.
  17. Description :
  18.  
  19. preinstall scriptlet (using /bin/sh):
  20. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  21. case `uname -s` in
  22. Linux)
  23. unset RPM_INSTALL_NAME
  24. lib_list="libgcc_s.so.1"
  25. lib_list="${lib_list} libc.so.6 libdl.so.2 libm.so.6 libpthread.so.0 libstdc++"
  26. ld_cmd=`/sbin/ldconfig -p`
  27. ;;
  28. FreeBSD)
  29. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 libcpui.so.4 librdrsup.so.4"
  30. ld_cmd=`/sbin/ldconfig -r`
  31. ;;
  32. *)
  33. lib_list=""
  34. # unsupported
  35. ;;
  36. esac
  37.  
  38. ld_text="$ld_cmd"
  39. for library in $lib_list
  40. do
  41. res=`echo "$ld_text" | grep "$library"`
  42. if [ "$res" = "" ]; then
  43. echo "$library was not found!"
  44. exit 1
  45. fi
  46. done
  47.  
  48. true
  49. postinstall scriptlet (using /bin/sh):
  50. prefix=/opt/cprocsp
  51. exec_prefix=/opt/cprocsp
  52. unset RPM_INSTALL_NAME
  53. /sbin/ldconfig -f /etc/ld.so.conf
  54. #/sbin/ldconfig -R
  55. PATH=$PATH:/opt/cprocsp/sbin/amd64
  56. cpconfig -ini '\config\apppath' -add string librdrrndmbio_tui.so /opt/cprocsp/lib/amd64/librdrrndmbio_tui.so
  57. cpconfig -ini '\config\apppath' -add string libcsp.so /opt/cprocsp/lib/amd64/libcsp.so
  58. cpconfig -ini '\config\Random\Bio_tui' -add string DLL librdrrndmbio_tui.so
  59. #cpconfig -hardware reader -add fat12_0 -name 'Disk #0' > /dev/null
  60. cpconfig -hardware reader -add hdimage -name 'HDD key storage' > /dev/null
  61. cpconfig -hardware rndm -add bio_tui -name 'Text bio random' -level 5 > /dev/null
  62.  
  63. cpconfig -defprov -setdef -provtype 75 -provname 'Crypto-Pro GOST R 34.10-2001 KC1 CSP'
  64. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 KC1 CSP' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  65. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 KC1 CSP' -add string 'Function Table Name' CPCSP_GetFunctionTable
  66. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 KC1 CSP' -add long Type 75
  67.  
  68. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  69. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider' -add string 'Function Table Name' CPCSP_GetFunctionTable
  70. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider' -add long Type 75
  71.  
  72. cpconfig -defprov -setdef -provtype 80 -provname 'Crypto-Pro GOST R 34.10-2012 KC1 CSP'
  73. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 CSP' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  74. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 CSP' -add string 'Function Table Name' CPCSP_GetFunctionTable
  75. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 CSP' -add long Type 80
  76.  
  77. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Cryptographic Service Provider' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  78. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Cryptographic Service Provider' -add string 'Function Table Name' CPCSP_GetFunctionTable
  79. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Cryptographic Service Provider' -add long Type 80
  80.  
  81. cpconfig -defprov -setdef -provtype 81 -provname 'Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP'
  82. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  83. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP' -add string 'Function Table Name' CPCSP_GetFunctionTable
  84. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP' -add long Type 81
  85.  
  86. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Strong Cryptographic Service Provider' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  87. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Strong Cryptographic Service Provider' -add string 'Function Table Name' CPCSP_GetFunctionTable
  88. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Strong Cryptographic Service Provider' -add long Type 81
  89.  
  90. cpconfig -defprov -setdef -provtype 16 -provname 'Crypto-Pro ECDSA and AES CSP'
  91. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro ECDSA and AES CSP' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  92. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro ECDSA and AES CSP' -add string 'Function Table Name' CPCSP_GetFunctionTable
  93. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro ECDSA and AES CSP' -add long Type 16
  94. cpconfig -ini '\config\parameters\Crypto-Pro ECDSA and AES CSP' -add long KeyTimeValidityControlMode 128
  95.  
  96. cpconfig -defprov -setdef -provtype 24 -provname 'Crypto-Pro Enhanced RSA and AES CSP'
  97. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro Enhanced RSA and AES CSP' -add string 'Image Path' /opt/cprocsp/lib/amd64/libcsp.so
  98. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro Enhanced RSA and AES CSP' -add string 'Function Table Name' CPCSP_GetFunctionTable
  99. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro Enhanced RSA and AES CSP' -add long Type 24
  100. cpconfig -ini '\config\parameters\Crypto-Pro Enhanced RSA and AES CSP' -add long KeyTimeValidityControlMode 128
  101.  
  102. cpconfig -ini '\cryptography\Defaults\Provider Types\Type 075' -add string 'TypeName' "GOST R 34.10-2001 Signature with Diffie-Hellman Key Exchange"
  103. cpconfig -ini '\cryptography\Defaults\Provider Types\Type 080' -add string 'TypeName' "GOST R 34.10-2012 (256) Signature with Diffie-Hellman Key Exchange"
  104. cpconfig -ini '\cryptography\Defaults\Provider Types\Type 081' -add string 'TypeName' "GOST R 34.10-2012 (512) Signature with Diffie-Hellman Key Exchange"
  105. cpconfig -ini '\cryptography\Defaults\Provider Types\Type 016' -add string 'TypeName' "ECDSA Full and AES"
  106. cpconfig -ini '\cryptography\Defaults\Provider Types\Type 024' -add string 'TypeName' "RSA Full and AES"
  107. true
  108. preuninstall scriptlet (using /bin/sh):
  109. true
  110. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  111. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  112. prefix=/opt/cprocsp
  113. exec_prefix=/opt/cprocsp
  114. /etc/init.d/cprocsp stop_check force
  115. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  116. PATH=$PATH:/opt/cprocsp/sbin/amd64
  117. cpconfig -hardware rndm -del bio_tui
  118. cpconfig -ini '\config\Random\Bio_tui' -delsection
  119. cpconfig -ini '\config\apppath\librdrrndmbio_tui.so' -delparam
  120. fi
  121. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 KC1 CSP' -delsection
  122. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 CSP' -delsection
  123. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 KC1 Strong CSP' -delsection
  124. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2001 Cryptographic Service Provider' -delsection
  125. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Cryptographic Service Provider' -delsection
  126. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro GOST R 34.10-2012 Strong Cryptographic Service Provider' -delsection
  127. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro ECDSA and AES CSP' -delsection
  128. cpconfig -ini '\config\parameters\Crypto-Pro ECDSA and AES CSP' -delsection
  129. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro Enhanced RSA and AES CSP' -delsection
  130. cpconfig -ini '\config\parameters\Crypto-Pro Enhanced RSA and AES CSP' -delsection
  131.  
  132. unreg_prov_type_name.sh 75 /opt/cprocsp/sbin/amd64
  133. unreg_prov_type_name.sh 80 /opt/cprocsp/sbin/amd64
  134. unreg_prov_type_name.sh 81 /opt/cprocsp/sbin/amd64
  135. unreg_prov_type_name.sh 16 /opt/cprocsp/sbin/amd64
  136. unreg_prov_type_name.sh 24 /opt/cprocsp/sbin/amd64
  137. true
  138. postuninstall scriptlet (using /bin/sh):
  139. true
  140. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  141. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  142. prefix=/opt/cprocsp
  143. exec_prefix=/opt/cprocsp
  144. /sbin/ldconfig -f /etc/ld.so.conf
  145. #/sbin/ldconfig -R
  146. true
  147. Name : cprocsp-compat-altlinux-64
  148. Version : 1.0.0
  149. Release : 1
  150. Architecture: noarch
  151. Install Date: (not installed)
  152. Group : Development/Libraries
  153. Size : 0
  154. License : Crypto-Pro
  155. Signature : (none)
  156. Source RPM : cprocsp-compat-altlinux-64-1.0.0-1.src.rpm
  157. Build Date : Thu 24 Mar 2016 04:36:53 PM MSK
  158. Build Host : bvm-rh4-x64-40
  159. Relocations : (not relocatable)
  160. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  161. URL : http://www.cryptopro.ru/
  162. Summary : LSB addon for Altlinux-64
  163. Description :
  164.  
  165. A compatibility extension to 64 bit Altlinux
  166. postinstall scriptlet (using /bin/sh):
  167. test -f /usr/lib64/libgdbm.so.2 || test -f /usr/lib/libgdbm.so.3 && ln -s /usr/lib/libgdbm.so.3 /usr/lib/libgdbm.so.2
  168. ldconfig
  169. postuninstall scriptlet (using /bin/sh):
  170. ldconfig
  171. Name : cprocsp-cpopenssl-110-64
  172. Version : 5.0.11453
  173. Release : 5
  174. Architecture: x86_64
  175. Install Date: (not installed)
  176. Group : Development/Libraries
  177. Size : 9900195
  178. License : Crypto-Pro
  179. Signature : (none)
  180. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  181. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  182. Build Host : build-x64-cent5.cp.ru
  183. Relocations : (not relocatable)
  184. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  185. URL : http://www.cryptopro.ru/
  186. Summary : OpenSSL-110. Build 11453.
  187. Description :
  188.  
  189. preinstall scriptlet (using /bin/sh):
  190. /etc/init.d/cprocsp stop_check force
  191.  
  192. true
  193. postinstall scriptlet (using /bin/sh):
  194. function version_le() { test "$(printf '%s\n' "$@" | sort | head -n 1)" == "$1"; }
  195.  
  196. prefix=/opt/cprocsp
  197. exec_prefix=/opt/cprocsp
  198. cur_version=`openssl version -v | sed -n 's/\S*\s*\(1\.1\S*\)\s.*/\1/p'`
  199. if test -z "";then
  200. if ! grep -q '/opt/cprocsp/cp-openssl-1.1.0/lib/amd64' /etc/ld.so.conf;then
  201. echo "/opt/cprocsp/cp-openssl-1.1.0/lib/amd64" > /tmp/ld_tmp.$$
  202. if version_le "$cur_version" "1.1.0i"; then
  203. cat /tmp/ld_tmp.$$ /etc/ld.so.conf >/tmp/ld.so.conf.$$
  204. else
  205. cat /etc/ld.so.conf /tmp/ld_tmp.$$ >/tmp/ld.so.conf.$$
  206. echo "WARNING! Higher openssl version detected, cp-openssl will not work properly. Use LD_LIBRARY_PATH to fix it."
  207. fi
  208. rm /tmp/ld_tmp.$$
  209. mv /tmp/ld.so.conf.$$ /etc/ld.so.conf
  210. fi
  211. unset RPM_INSTALL_NAME
  212. /sbin/ldconfig /opt/cprocsp/cp-openssl-1.1.0/lib/amd64
  213. fi
  214.  
  215. true
  216. preuninstall scriptlet (using /bin/sh):
  217. true
  218. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  219. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  220. /etc/init.d/cprocsp stop_check force
  221.  
  222. true
  223. postuninstall scriptlet (using /bin/sh):
  224. true
  225. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  226. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  227. prefix=/opt/cprocsp
  228. exec_prefix=/opt/cprocsp
  229. if test -z "";then
  230. if test "$1" = 0 || test "$1" = "remove"; then
  231. cp /etc/ld.so.conf /tmp/ld.so.conf.$$
  232. sed "/`echo /opt/cprocsp/cp-openssl-1.1.0/lib/amd64|sed 's#/#\\\\/#g'`/d" < /tmp/ld.so.conf.$$ > /etc/ld.so.conf
  233. /sbin/ldconfig /opt/cprocsp/cp-openssl-1.1.0/lib/amd64
  234. fi
  235. fi
  236. true
  237. Name : cprocsp-cpopenssl-110-base
  238. Version : 5.0.11453
  239. Release : 5
  240. Architecture: noarch
  241. Install Date: (not installed)
  242. Group : Development/Libraries
  243. Size : 34876
  244. License : Crypto-Pro
  245. Signature : (none)
  246. Source RPM : lsb-cprocsp-base-5.0.11453-5.src.rpm
  247. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  248. Build Host : build-x64-cent5.cp.ru
  249. Relocations : (not relocatable)
  250. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  251. URL : http://www.cryptopro.ru/
  252. Summary : Openssl-110 common Build 11453.
  253. Description :
  254.  
  255. This package contains openssl-110 files
  256. Name : cprocsp-cpopenssl-110-devel
  257. Version : 5.0.11453
  258. Release : 5
  259. Architecture: noarch
  260. Install Date: (not installed)
  261. Group : Development/Libraries
  262. Size : 1240037
  263. License : Crypto-Pro
  264. Signature : (none)
  265. Source RPM : lsb-cprocsp-base-5.0.11453-5.src.rpm
  266. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  267. Build Host : build-x64-cent5.cp.ru
  268. Relocations : (not relocatable)
  269. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  270. URL : http://www.cryptopro.ru/
  271. Summary : Openssl-110 devel Build 11453.
  272. Description :
  273.  
  274. This package contains openssl headers
  275. Name : cprocsp-cpopenssl-110-gost-64
  276. Version : 5.0.11453
  277. Release : 5
  278. Architecture: x86_64
  279. Install Date: (not installed)
  280. Group : Development/Libraries
  281. Size : 131405
  282. License : Crypto-Pro
  283. Signature : (none)
  284. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  285. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  286. Build Host : build-x64-cent5.cp.ru
  287. Relocations : (not relocatable)
  288. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  289. URL : http://www.cryptopro.ru/
  290. Summary : OpenSSL-110 gostengy engine. Build 11453.
  291. Description :
  292.  
  293. preinstall scriptlet (using /bin/sh):
  294. /etc/init.d/cprocsp stop_check force
  295. case `uname -s` in
  296. Linux)
  297. unset RPM_INSTALL_NAME
  298. lib_list="libcrypto.so"
  299. ld_cmd=`/sbin/ldconfig -p`
  300. ;;
  301. FreeBSD)
  302. lib_list=""
  303. ld_cmd=`/sbin/ldconfig -r`
  304. ;;
  305. *)
  306. lib_list=""
  307. # unsupported
  308. ;;
  309. esac
  310.  
  311. ld_text="$ld_cmd"
  312. for library in $lib_list
  313. do
  314. res=`echo "$ld_text" | grep "$library"`
  315. if [ "$res" = "" ]; then
  316. echo "$library was not found!"
  317. exit 1
  318. fi
  319. done
  320.  
  321. true
  322. postinstall scriptlet (using /bin/sh):
  323. conf=/var/opt/cprocsp/cp-openssl-1.1.0/openssl.cnf
  324. lib_path=/opt/cprocsp/cp-openssl-1.1.0/lib/amd64/engines
  325.  
  326. if ! test -d $lib_path; then
  327. echo "Warning, directory $lib_path doesn't exist"
  328. else
  329. if ! test -f $conf; then
  330. echo "Warning, $conf doesn't exist"
  331. else
  332. new_oid_section=`grep -n "\[new_oids\]\|\[ new_oids \]" $conf | awk -F":" '{print $1}'`
  333. place_to_insert=$new_oid_section
  334. grep openssl_conf $conf > /dev/null
  335. if test $? -ne 0; then
  336. sed -i -e "${place_to_insert}i\\
  337. openssl_conf = openssl_def\\
  338. " $conf
  339. place_to_insert=`expr $place_to_insert + 2`
  340. fi
  341.  
  342. grep "\[openssl_def\]\|\[ openssl__def \]" $conf > /dev/null
  343. if test $? -ne 0; then
  344. sed -i -e "${place_to_insert}i\\
  345. [openssl_def]\\
  346. engines = engine_section\\
  347. " $conf
  348. place_to_insert=`expr $place_to_insert + 3`
  349. fi
  350.  
  351. grep "\[engine_section\]\|\[ engine_section \]" $conf > /dev/null
  352. if test $? -ne 0; then
  353. sed -i -e "${place_to_insert}i\\
  354. [engine_section]\\
  355. gostengy = gost_section\\
  356. " $conf
  357. place_to_insert=`expr $place_to_insert + 3`
  358. fi
  359.  
  360. grep "\[gost_section\]\|\[ gost_section \]" $conf > /dev/null
  361. if test $? -ne 0; then
  362. sed -i -e "${place_to_insert}i\\
  363. [gost_section]\\
  364. engine_id = gostengy\\
  365. dynamic_path = $lib_path/libgostengy.so\\
  366. default_algorithms = CIPHERS, DIGESTS, PKEY, PKEY_CRYPTO, PKEY_ASN1\\
  367. " $conf
  368. fi
  369. sed -i '/^$/N;/^\n$/D' $conf
  370. fi
  371. fi
  372.  
  373. true
  374. preuninstall scriptlet (using /bin/sh):
  375. true
  376. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  377. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  378. conf=/var/opt/cprocsp/cp-openssl-1.1.0/openssl.cnf
  379.  
  380. sed -i '/\[engine_section\]/,/^\[/{//!d}' $conf
  381. sed -i '/\[engine_section\]/d' $conf
  382. sed -i '/\[openssl_def\]/,/^\[/{//!d}' $conf
  383. sed -i '/\[openssl_def\]/d' $conf
  384. sed -i '/\[gost_section]/,/^\[/{//!d}' $conf
  385. sed -i '/\[gost_section\]/d' $conf
  386. sed -i '/openssl_conf/d' $conf
  387. sed -i '/^$/N;/^\n$/D' $conf
  388.  
  389. true
  390. Name : cprocsp-cpopenssl-64
  391. Version : 5.0.11453
  392. Release : 5
  393. Architecture: x86_64
  394. Install Date: (not installed)
  395. Group : Development/Libraries
  396. Size : 9465363
  397. License : Crypto-Pro
  398. Signature : (none)
  399. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  400. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  401. Build Host : build-x64-cent5.cp.ru
  402. Relocations : (not relocatable)
  403. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  404. URL : http://www.cryptopro.ru/
  405. Summary : OpenSSL. Build 11453.
  406. Description :
  407.  
  408. preinstall scriptlet (using /bin/sh):
  409. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  410.  
  411. true
  412. postinstall scriptlet (using /bin/sh):
  413. function version_le() { test "$(printf '%s\n' "$@" | sort | head -n 1)" == "$1"; }
  414.  
  415. prefix=/opt/cprocsp
  416. exec_prefix=/opt/cprocsp
  417. cur_version=`openssl version -v | sed -n 's/\S*\s*\(1\.0\S*\)\s.*/\1/p'`
  418. if test -z "";then
  419. if ! grep -q '/opt/cprocsp/cp-openssl/lib/amd64' /etc/ld.so.conf;then
  420. echo "/opt/cprocsp/cp-openssl/lib/amd64" > /tmp/ld_tmp.$$
  421. if version_le "$cur_version" "1.0.2p"; then
  422. cat /tmp/ld_tmp.$$ /etc/ld.so.conf >/tmp/ld.so.conf.$$
  423. else
  424. cat /etc/ld.so.conf /tmp/ld_tmp.$$ >/tmp/ld.so.conf.$$
  425. echo "WARNING! Higher openssl version detected, cp-openssl will not work properly. Use LD_LIBRARY_PATH to fix it."
  426. fi
  427. rm /tmp/ld_tmp.$$
  428. mv /tmp/ld.so.conf.$$ /etc/ld.so.conf
  429. fi
  430. unset RPM_INSTALL_NAME
  431. /sbin/ldconfig /opt/cprocsp/cp-openssl/lib/amd64
  432. fi
  433.  
  434. true
  435. preuninstall scriptlet (using /bin/sh):
  436. true
  437. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  438. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  439. /etc/init.d/cprocsp stop_check force
  440.  
  441. true
  442. postuninstall scriptlet (using /bin/sh):
  443. true
  444. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  445. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  446. prefix=/opt/cprocsp
  447. exec_prefix=/opt/cprocsp
  448. if test -z "";then
  449. if test "$1" = 0 || test "$1" = "remove"; then
  450. cp /etc/ld.so.conf /tmp/ld.so.conf.$$
  451. sed "/`echo /opt/cprocsp/cp-openssl/lib/amd64|sed 's#/#\\\\/#g'`/d" < /tmp/ld.so.conf.$$ > /etc/ld.so.conf
  452. /sbin/ldconfig /opt/cprocsp/cp-openssl/lib/amd64
  453. fi
  454. fi
  455. true
  456. Name : cprocsp-cpopenssl-base
  457. Version : 5.0.11453
  458. Release : 5
  459. Architecture: noarch
  460. Install Date: (not installed)
  461. Group : Development/Libraries
  462. Size : 28568
  463. License : Crypto-Pro
  464. Signature : (none)
  465. Source RPM : lsb-cprocsp-base-5.0.11453-5.src.rpm
  466. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  467. Build Host : build-x64-cent5.cp.ru
  468. Relocations : (not relocatable)
  469. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  470. URL : http://www.cryptopro.ru/
  471. Summary : Openssl common Build 11453.
  472. Description :
  473.  
  474. This package contains openssl files
  475. Name : cprocsp-cpopenssl-gost-64
  476. Version : 5.0.11453
  477. Release : 5
  478. Architecture: x86_64
  479. Install Date: (not installed)
  480. Group : Development/Libraries
  481. Size : 91169
  482. License : Crypto-Pro
  483. Signature : (none)
  484. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  485. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  486. Build Host : build-x64-cent5.cp.ru
  487. Relocations : (not relocatable)
  488. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  489. URL : http://www.cryptopro.ru/
  490. Summary : OpenSSL capi_gost engine. Build 11453.
  491. Description :
  492.  
  493. preinstall scriptlet (using /bin/sh):
  494. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  495. case `uname -s` in
  496. Linux)
  497. unset RPM_INSTALL_NAME
  498. lib_list="libcrypto.so"
  499. ld_cmd=`/sbin/ldconfig -p`
  500. ;;
  501. FreeBSD)
  502. lib_list=""
  503. ld_cmd=`/sbin/ldconfig -r`
  504. ;;
  505. *)
  506. lib_list=""
  507. # unsupported
  508. ;;
  509. esac
  510.  
  511. ld_text="$ld_cmd"
  512. for library in $lib_list
  513. do
  514. res=`echo "$ld_text" | grep "$library"`
  515. if [ "$res" = "" ]; then
  516. echo "$library was not found!"
  517. exit 1
  518. fi
  519. done
  520.  
  521. true
  522. postinstall scriptlet (using /bin/sh):
  523. conf=/var/opt/cprocsp/cp-openssl/openssl.cnf
  524. lib_path=/opt/cprocsp/cp-openssl/lib/amd64/engines
  525.  
  526. if ! test -d $lib_path; then
  527. echo "Warning, directory $lib_path doesn't exist"
  528. else
  529. if ! test -f $conf; then
  530. echo "Warning, $conf doesn't exist"
  531. else
  532. new_oid_section=`grep -n "\[new_oids\]\|\[ new_oids \]" $conf | awk -F":" '{print $1}'`
  533. place_to_insert=$new_oid_section
  534. grep openssl_conf $conf > /dev/null
  535. if test $? -ne 0; then
  536. sed -i -e "${place_to_insert}i\\
  537. openssl_conf = openssl_def\\
  538. " $conf
  539. place_to_insert=`expr $place_to_insert + 2`
  540. fi
  541.  
  542. grep "\[openssl_def\]\|\[ openssl_def \]" $conf > /dev/null
  543. if test $? -ne 0; then
  544. sed -i -e "${place_to_insert}i\\
  545. [openssl_def]\\
  546. engines = engine_section\\
  547. " $conf
  548. place_to_insert=`expr $place_to_insert + 3`
  549. fi
  550.  
  551. grep "\[engine_section\]\|\[ engine_section \]" $conf > /dev/null
  552. if test $? -ne 0; then
  553. sed -i -e "${place_to_insert}i\\
  554. [engine_section]\\
  555. gost_capi = gost_section\\
  556. " $conf
  557. place_to_insert=`expr $place_to_insert + 3`
  558. fi
  559.  
  560. grep "\[gost_section\]\|\[ gost_section \]" $conf > /dev/null
  561. if test $? -ne 0; then
  562. sed -i -e "${place_to_insert}i\\
  563. [gost_section]\\
  564. engine_id = gost_capi\\
  565. dynamic_path = $lib_path/libgost_capi.so\\
  566. default_algorithms = CIPHERS, DIGESTS, PKEY, PKEY_CRYPTO, PKEY_ASN1\\
  567. " $conf
  568. fi
  569. sed -i '/^$/N;/^\n$/D' $conf
  570. fi
  571. fi
  572.  
  573. true
  574. preuninstall scriptlet (using /bin/sh):
  575. true
  576. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  577. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  578. conf=/var/opt/cprocsp/cp-openssl/openssl.cnf
  579.  
  580. sed -i '/\[engine_section\]/,/^\[/{//!d}' $conf
  581. sed -i '/\[engine_section\]/d' $conf
  582. sed -i '/\[openssl_def\]/,/^\[/{//!d}' $conf
  583. sed -i '/\[openssl_def\]/d' $conf
  584. sed -i '/\[gost_section]/,/^\[/{//!d}' $conf
  585. sed -i '/\[gost_section\]/d' $conf
  586. sed -i '/openssl_conf/d' $conf
  587. sed -i '/^$/N;/^\n$/D' $conf
  588.  
  589. true
  590. Name : cprocsp-cptools-gtk-64
  591. Version : 5.0.11453
  592. Release : 5
  593. Architecture: x86_64
  594. Install Date: (not installed)
  595. Group : Development/Libraries
  596. Size : 7310136
  597. License : Crypto-Pro
  598. Signature : (none)
  599. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  600. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  601. Build Host : build-x64-cent5.cp.ru
  602. Relocations : (not relocatable)
  603. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  604. URL : http://www.cryptopro.ru/
  605. Summary : GUI application for various CSP tasks. Build 11453.
  606. Description :
  607.  
  608. preinstall scriptlet (using /bin/sh):
  609. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  610. case `uname -s` in
  611. Linux)
  612. unset RPM_INSTALL_NAME
  613. lib_list="libgcc_s.so.1"
  614. lib_list="${lib_list} libatk-1.0.so.0 libSM.so.6 libcairo.so.2 libc.so.6 libdl.so.2 libgdk_pixbuf-2.0.so.0 libgdk-x11-2.0.so.0 libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0 libgthread-2.0.so.0 libgtk-x11-2.0.so.0 libm.so.6 libpango-1.0.so.0 libpangocairo-1.0.so.0 libpthread.so.0 libstdc++.so.6 libX11.so.6 libz.so.1"
  615. ld_cmd=`/sbin/ldconfig -p`
  616. ;;
  617. FreeBSD)
  618. lib_list=""
  619. ld_cmd=`/sbin/ldconfig -r`
  620. # TODO: revert libz.so.5 when CPCSP-4489 is done
  621. ;;
  622. *)
  623. lib_list=""
  624. # unsupported
  625. ;;
  626. esac
  627.  
  628. ld_text="$ld_cmd"
  629. for library in $lib_list
  630. do
  631. res=`echo "$ld_text" | grep "$library"`
  632. if [ "$res" = "" ]; then
  633. echo "$library was not found!"
  634. exit 1
  635. fi
  636. done
  637.  
  638. true
  639. postinstall scriptlet (using /bin/sh):
  640. unset RPM_INSTALL_NAME
  641. true
  642. preuninstall scriptlet (using /bin/sh):
  643. true
  644. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  645. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  646. prefix=/opt/cprocsp
  647. exec_prefix=/opt/cprocsp
  648. /etc/init.d/cprocsp stop_check force
  649.  
  650. true
  651. Name : cprocsp-curl-64
  652. Version : 5.0.11453
  653. Release : 5
  654. Architecture: x86_64
  655. Install Date: (not installed)
  656. Group : Development/Libraries
  657. Size : 1107485
  658. License : Crypto-Pro
  659. Signature : (none)
  660. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  661. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  662. Build Host : build-x64-cent5.cp.ru
  663. Relocations : (not relocatable)
  664. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  665. URL : http://www.cryptopro.ru/
  666. Summary : CryptoPro Curl shared library and binaris. Build 11453.
  667. Description :
  668. This is Curl... GOST Curl...
  669. preinstall scriptlet (using /bin/sh):
  670. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  671. case `uname -s` in
  672. Linux)
  673. unset RPM_INSTALL_NAME
  674. lib_list="libgcc_s.so.1"
  675. lib_list="${lib_list} libc.so.6 libdl.so.2 libm.so.6 libpthread.so.0 librt.so.1 libstdc++ libz.so.1"
  676. ld_cmd=`/sbin/ldconfig -p`
  677. ;;
  678. FreeBSD)
  679. lib_list="libc.so.7 libcapi20.so.4 libcpasn1.so.4 libcpext.so.4 libcplib.so.4 libssp.so.4 libthr.so.3 liburlretrieve.so.4 libz.so librdrsup.so.4 libcapi10.so.4"
  680. ld_cmd=`/sbin/ldconfig -r`
  681. # TODO: revert libz.so.5 when CPCSP-4489 is done
  682. ;;
  683. *)
  684. lib_list=""
  685. # unsupported
  686. ;;
  687. esac
  688.  
  689. ld_text="$ld_cmd"
  690. for library in $lib_list
  691. do
  692. res=`echo "$ld_text" | grep "$library"`
  693. if [ "$res" = "" ]; then
  694. echo "$library was not found!"
  695. exit 1
  696. fi
  697. done
  698.  
  699. true
  700. postinstall scriptlet (using /bin/sh):
  701. prefix=/opt/cprocsp
  702. exec_prefix=/opt/cprocsp
  703. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  704. PATH=$PATH:/opt/cprocsp/sbin/amd64
  705. libcurl_so_backup=`cpconfig -ini '\config\apppath\libcurl.so' -view 2> /dev/null`
  706. status="$?"
  707. if test "${status}" -eq 0 ; then
  708. cpconfig -ini '\config\apppath\backup' -add string libcurl.so "${libcurl_so_backup}"
  709. fi
  710. cpconfig -ini '\config\apppath' -add string libcurl.so /opt/cprocsp/lib/amd64/libcpcurl.so
  711. #cpconfig -ini '\config\apppath' -add string libcurl.so /opt/cprocsp/lib/libcpcurl.framework/libcpcurl
  712. fi
  713.  
  714. unset RPM_INSTALL_NAME
  715. /sbin/ldconfig -f /etc/ld.so.conf
  716. #/sbin/ldconfig -R
  717. true
  718. preuninstall scriptlet (using /bin/sh):
  719. true
  720. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  721. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  722. prefix=/opt/cprocsp
  723. exec_prefix=/opt/cprocsp
  724. /etc/init.d/cprocsp stop_check force
  725. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  726. PATH=$PATH:/opt/cprocsp/sbin/amd64
  727. cpconfig -ini '\config\apppath\libcurl.so' -delparam
  728. libcurl_so_backup=`cpconfig -ini '\config\apppath\backup\libcurl.so' -view 2> /dev/null`
  729. status="$?"
  730. if test "${status}" -eq 0 ; then
  731. cpconfig -ini '\config\apppath' -add string libcurl.so "${libcurl_so_backup}"
  732. cpconfig -ini '\config\apppath\backup\libcurl.so' -delparam
  733. fi
  734. fi
  735. true
  736. postuninstall scriptlet (using /bin/sh):
  737. true
  738. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  739. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  740. prefix=/opt/cprocsp
  741. exec_prefix=/opt/cprocsp
  742. /sbin/ldconfig -f /etc/ld.so.conf
  743. #/sbin/ldconfig -R
  744. true
  745. Name : cprocsp-rdr-cloud-64
  746. Version : 5.0.11453
  747. Release : 5
  748. Architecture: x86_64
  749. Install Date: (not installed)
  750. Group : Applications/Security
  751. Size : 393421
  752. License : Crypto-Pro
  753. Signature : (none)
  754. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  755. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  756. Build Host : build-x64-cent5.cp.ru
  757. Relocations : (not relocatable)
  758. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  759. URL : http://www.cryptopro.ru/
  760. Summary : DSS keys support module
  761. Description :
  762. This package contains module for DSS keys support in Crypto Pro CSP
  763. preinstall scriptlet (using /bin/sh):
  764. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  765. case `uname -s` in
  766. Linux)
  767. unset RPM_INSTALL_NAME
  768. lib_list="libgcc_s.so.1"
  769. lib_list="${lib_list} libc.so.6 libm.so.6 libpthread.so.0 libstdc++"
  770. ld_cmd=`/sbin/ldconfig -p`
  771. ;;
  772. FreeBSD)
  773. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 librdrsup.so.4 liburlretrieve.so.4 libcapi10.so.4 libcapi20.so.4 libcpasn1.so.4 libcplib.so.4"
  774. ld_cmd=`/sbin/ldconfig -r`
  775. ;;
  776. *)
  777. lib_list=""
  778. # unsupported
  779. ;;
  780. esac
  781.  
  782. ld_text="$ld_cmd"
  783. for library in $lib_list
  784. do
  785. res=`echo "$ld_text" | grep "$library"`
  786. if [ "$res" = "" ]; then
  787. echo "$library was not found!"
  788. exit 1
  789. fi
  790. done
  791.  
  792. true
  793.  
  794. #%post -n cprocsp-rdr-hsmdb-64 -f scripts/postinstall.CPROrdhsmdb
  795. #%preun -n cprocsp-rdr-hsmdb-64 -f scripts/preremove.CPROrdhsmdb
  796. #%pre -n cprocsp-rdr-hsmdb-64 -f scripts/preinstall.CPROrdhsmdb
  797. postinstall scriptlet (using /bin/sh):
  798. prefix=/opt/cprocsp
  799. exec_prefix=/opt/cprocsp
  800. PATH=$PATH:/opt/cprocsp/sbin/amd64
  801. unset RPM_INSTALL_NAME
  802. /sbin/ldconfig -f /etc/ld.so.conf
  803. #/sbin/ldconfig -R
  804.  
  805. cpconfig -ini '\config\apppath' -add string librdrcloud.so /opt/cprocsp/lib/amd64/librdrcloud.so
  806. cpconfig -ini '\config\KeyDevices\Cloud' -add string DLL librdrcloud.so
  807. cpconfig -ini '\config\KeyDevices\Cloud' -add string AuthApp /opt/cprocsp/sbin/amd64/oauthapp
  808. cpconfig -hardware reader -add Cloud > /dev/null
  809.  
  810. cpconfig -ini '\config\Parameters\' -add multistring DefaultCloudAuthServer 'https://dss.cryptopro.ru/STS/oauth'
  811. cpconfig -ini '\config\Parameters\' -add multistring DefaultCloudRestServer 'https://dss.cryptopro.ru/SignServer/rest'
  812.  
  813. cpconfig -ini '\config\debug' -add string cloud 262144
  814.  
  815. true
  816. preuninstall scriptlet (using /bin/sh):
  817. true
  818. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  819. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  820. prefix=/opt/cprocsp
  821. exec_prefix=/opt/cprocsp
  822. /etc/init.d/cprocsp stop_check force
  823. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  824. PATH=$PATH:/opt/cprocsp/sbin/amd64
  825. cpconfig -hardware reader -del cloud > /dev/null
  826. cpconfig -ini '\config\apppath\librdrcloud.so' -delparam
  827. cpconfig -ini '\config\KeyDevices\Cloud' -delsection
  828. fi
  829.  
  830. true
  831. Name : cprocsp-rdr-cloud-gtk-64
  832. Version : 5.0.11453
  833. Release : 5
  834. Architecture: x86_64
  835. Install Date: (not installed)
  836. Group : Applications/Security
  837. Size : 14155
  838. License : Crypto-Pro
  839. Signature : (none)
  840. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  841. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  842. Build Host : build-x64-cent5.cp.ru
  843. Relocations : (not relocatable)
  844. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  845. URL : http://www.cryptopro.ru/
  846. Summary : Graphical interface for DSS authentication
  847. Description :
  848. This package contains graphical interface for authentication in Crypto Pro DSS
  849. preinstall scriptlet (using /bin/sh):
  850. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  851. case `uname -s` in
  852. Linux)
  853. unset RPM_INSTALL_NAME
  854. # list is sorted: each library is checked before it's dependencies
  855. lib_list="libwebkitgtk-1.0.so.0 libgtk-x11-2.0.so.0 libsoup-2.4.so.1 libgdk_pixbuf-2.0.so.0 libgdk-x11-2.0.so.0 libpango-1.0.so.0 libatk-1.0.so.0 libgobject-2.0.so.0 libglib-2.0.so.0"
  856. ld_cmd=`/sbin/ldconfig -p`
  857. ;;
  858. *)
  859. lib_list=""
  860. # unsupported
  861. ;;
  862. esac
  863.  
  864. ld_text="$ld_cmd"
  865. for library in $lib_list
  866. do
  867. res=`echo "$ld_text" | grep "$library"`
  868. if [ "$res" = "" ]; then
  869. echo "$library was not found!"
  870. if [ "$library" = "libwebkitgtk-1.0.so.0" ]; then
  871. echo "Try to install (lib)webkitgtk package on your system first."
  872. fi
  873. exit 1
  874. fi
  875. done
  876.  
  877. true
  878. postinstall scriptlet (using /bin/sh):
  879. prefix=/opt/cprocsp
  880. exec_prefix=/opt/cprocsp
  881. unset RPM_INSTALL_NAME
  882. /sbin/ldconfig -f /etc/ld.so.conf
  883. if test -f "/opt/cprocsp/sbin/amd64/cpconfig" ; then
  884. PATH=$PATH:/opt/cprocsp/sbin/amd64
  885. authapp_backup=`cpconfig -ini '\config\KeyDevices\Cloud\AuthApp' -view 2> /dev/null`
  886. status="$?"
  887. if test "${status}" -eq 0 ; then
  888. cpconfig -ini '\config\KeyDevices\Cloud' -add string backup_AuthApp "${authapp_backup}"
  889. fi
  890. cpconfig -ini '\config\KeyDevices\Cloud' -add string AuthApp /opt/cprocsp/sbin/amd64/oauth_gtk2
  891. fi
  892.  
  893. true
  894. preuninstall scriptlet (using /bin/sh):
  895. true
  896. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  897. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  898. prefix=/opt/cprocsp
  899. exec_prefix=/opt/cprocsp
  900. /etc/init.d/cprocsp stop_check force
  901. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  902. PATH=$PATH:/opt/cprocsp/sbin/amd64
  903. cpconfig -ini '\config\KeyDevices\Cloud\AuthApp' -delparam
  904. authapp_backup=`cpconfig -ini '\config\KeyDevices\Cloud\backup_AuthApp' -view 2> /dev/null`
  905. status="$?"
  906. if test "${status}" -eq 0 ; then
  907. cpconfig -ini '\config\KeyDevices\Cloud' -add string AuthApp "${authapp_backup}"
  908. cpconfig -ini '\config\KeyDevices\Cloud\backup_AuthApp' -delparam
  909. fi
  910. fi
  911.  
  912. true
  913. Name : cprocsp-rdr-cpfkc-64
  914. Version : 5.0.11453
  915. Release : 5
  916. Architecture: x86_64
  917. Install Date: (not installed)
  918. Group : Applications/Security
  919. Size : 85396
  920. License : Crypto-Pro
  921. Signature : (none)
  922. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  923. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  924. Build Host : build-x64-cent5.cp.ru
  925. Relocations : (not relocatable)
  926. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  927. URL : http://www.cryptopro.ru/
  928. Summary : FKC support module
  929. Description :
  930. This package contains support module for FKC carriers in Crypto Pro CSP
  931. preinstall scriptlet (using /bin/sh):
  932. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  933. case `uname -s` in
  934. Linux)
  935. unset RPM_INSTALL_NAME
  936. lib_list="libgcc_s.so.1"
  937. lib_list="${lib_list} libc.so.6 libm.so.6 libpcsclite.so.1 libpthread.so.0 libstdc++"
  938. ld_cmd=`/sbin/ldconfig -p`
  939. ;;
  940. FreeBSD)
  941. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 librdrsup.so.4"
  942. ld_cmd=`/sbin/ldconfig -r`
  943. ;;
  944. *)
  945. lib_list=""
  946. # unsupported
  947. ;;
  948. esac
  949.  
  950. ld_text="$ld_cmd"
  951. for library in $lib_list
  952. do
  953. res=`echo "$ld_text" | grep "$library"`
  954. if [ "$res" = "" ]; then
  955. echo "$library was not found!"
  956. exit 1
  957. fi
  958. done
  959.  
  960. true
  961. postinstall scriptlet (using /bin/sh):
  962. prefix=/opt/cprocsp
  963. exec_prefix=/opt/cprocsp
  964. PATH=$PATH:/opt/cprocsp/sbin/amd64
  965.  
  966. unset RPM_INSTALL_NAME
  967. /sbin/ldconfig -f /etc/ld.so.conf
  968. #/sbin/ldconfig -R
  969.  
  970. cpconfig -ini '\config\apppath' -add string librdrcpfkc.so /opt/cprocsp/lib/amd64/librdrcpfkc.so
  971. cpconfig -ini '\config\KeyCarriers\fkchdimg' -add string DLL librdrcpfkc.so
  972. cpconfig -ini '\config\KeyCarriers\gemfkc' -add string DLL librdrcpfkc.so
  973. cpconfig -ini '\config\KeyCarriers\nxpfkc' -add string DLL librdrcpfkc.so
  974. cpconfig -ini '\config\KeyCarriers\rutokenfkc' -add string DLL librdrcpfkc.so
  975. cpconfig -ini '\config\KeyCarriers\smartparkfkc' -add string DLL librdrcpfkc.so
  976.  
  977. cpconfig -hardware media -add fkchdimg -name 'fkchdimg' > /dev/null
  978. cpconfig -hardware media -configure fkchdimg -connect Default -add hex atr 3B6F00FF006370656d756c666b632000009000
  979. cpconfig -hardware media -configure fkchdimg -connect Default -add hex mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  980. cpconfig -hardware media -configure fkchdimg -connect Default -add string Name 'FKC emulator'
  981. cpconfig -ini '\config\KeyCarriers\fkchdimg\Default\01' -add long Is_functional 1
  982. cpconfig -ini '\config\KeyCarriers\fkchdimg\Default\01' -add long Auth_type 3
  983. cpconfig -ini '\config\KeyCarriers\fkchdimg\Default\01' -add string Unique "CProEmul_123456_2012"
  984. cpconfig -ini '\config\KeyCarriers\fkchdimg\Default\02' -add long Is_functional 1
  985. cpconfig -ini '\config\KeyCarriers\fkchdimg\Default\02' -add long Auth_type 2
  986. cpconfig -ini '\config\KeyCarriers\fkchdimg\Default\02' -add string Unique "CProEmul_123456_Pass"
  987.  
  988. cpconfig -hardware media -add gemfkc -name 'gemfkc' > /dev/null
  989. cpconfig -hardware media -configure gemfkc -connect Default -add hex atr 3BFF9600008131FE4380318065B0845C59FB12FFFE829000FB
  990. cpconfig -hardware media -configure gemfkc -connect Default -add hex mask ffffffffffffffffffffffffffffffffffffffffffffffffff
  991. cpconfig -hardware media -configure gemfkc -connect Default -add string Name 'Gemalto FKC'
  992.  
  993. cpconfig -hardware media -add nxpfkc -name 'nxpfkc' > /dev/null
  994. cpconfig -hardware media -configure nxpfkc -connect Default -add hex atr 3BDC18FF8191FE1FC38073C821136605036351000250
  995. cpconfig -hardware media -configure nxpfkc -connect Default -add hex mask ffffffffffffffffffffffffffffffffffffffffffff
  996. cpconfig -hardware media -configure nxpfkc -connect Default -add string Name 'CryptoPro NXP'
  997.  
  998. cpconfig -hardware media -add rutokenfkc -name 'rutokenfkc' > /dev/null
  999. cpconfig -hardware media -configure rutokenfkc -connect Default -add hex atr 3b8b015275746f6b656e20445320c1
  1000. cpconfig -hardware media -configure rutokenfkc -connect Default -add hex mask ffffffffffffffffffffffffffffff
  1001. cpconfig -hardware media -configure rutokenfkc -connect Default -add string Name 'Rutoken FKC'
  1002.  
  1003. cpconfig -hardware media -add smartparkfkc -name 'smartparkfkc' > /dev/null
  1004. cpconfig -hardware media -configure smartparkfkc -connect Default -add hex atr 3B000000534D4152545041524B20464B43
  1005. cpconfig -hardware media -configure smartparkfkc -connect Default -add hex mask ff000000ffffffffffffffffffffffffff
  1006. cpconfig -hardware media -configure smartparkfkc -connect Default -add string Name 'SmartPark FKC'
  1007.  
  1008. true
  1009. preuninstall scriptlet (using /bin/sh):
  1010. true
  1011. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1012. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1013. prefix=/opt/cprocsp
  1014. exec_prefix=/opt/cprocsp
  1015. /etc/init.d/cprocsp stop_check force
  1016. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1017. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1018. for NAME in "fkchdimg" "gemfkc" "nxpfkc" "smartparkfkc" "rutokenfkc"
  1019. do
  1020. cpconfig -hardware media -del $NAME > /dev/null
  1021. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1022. done
  1023. cpconfig -ini '\config\apppath\librdrcpfkc.so' -delparam
  1024. fi
  1025. true
  1026. postuninstall scriptlet (using /bin/sh):
  1027. true
  1028. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1029. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1030. prefix=/opt/cprocsp
  1031. exec_prefix=/opt/cprocsp
  1032. /sbin/ldconfig -f /etc/ld.so.conf
  1033. #/sbin/ldconfig -R
  1034. true
  1035. Name : cprocsp-rdr-emv-64
  1036. Version : 5.0.11453
  1037. Release : 5
  1038. Architecture: x86_64
  1039. Install Date: (not installed)
  1040. Group : Applications/Security
  1041. Size : 25892
  1042. License : Crypto-Pro
  1043. Signature : (none)
  1044. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1045. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1046. Build Host : build-x64-cent5.cp.ru
  1047. Relocations : (not relocatable)
  1048. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1049. URL : http://www.cryptopro.ru/
  1050. Summary : EMV/Gemalto support module
  1051. Description :
  1052. This package contains module for EMV and Gemalto key carriers support in Crypto Pro CSP
  1053. preinstall scriptlet (using /bin/sh):
  1054. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1055. case `uname -s` in
  1056. Linux)
  1057. unset RPM_INSTALL_NAME
  1058. lib_list="libc.so.6 libpthread.so.0"
  1059. ld_cmd=`/sbin/ldconfig -p`
  1060. ;;
  1061. FreeBSD)
  1062. lib_list="libc.so.7 libthr.so.3 librdrsup.so.4"
  1063. ld_cmd=`/sbin/ldconfig -r`
  1064. ;;
  1065. *)
  1066. lib_list=""
  1067. # unsupported
  1068. ;;
  1069. esac
  1070.  
  1071. ld_text="$ld_cmd"
  1072. for library in $lib_list
  1073. do
  1074. res=`echo "$ld_text" | grep "$library"`
  1075. if [ "$res" = "" ]; then
  1076. echo "$library was not found!"
  1077. exit 1
  1078. fi
  1079. done
  1080.  
  1081. true
  1082. postinstall scriptlet (using /bin/sh):
  1083. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1084.  
  1085. LIBNAME=librdremv.so
  1086.  
  1087. cpconfig -ini '\config\apppath' -add string $LIBNAME /opt/cprocsp/lib/amd64/$LIBNAME
  1088. cpconfig -ini "\config\KeyCarriers\\GEMALTO" -add string DLL $LIBNAME
  1089.  
  1090. cpconfig -hardware media -add GEMALTO -name 'GEMALTO' > /dev/null
  1091. cpconfig -hardware media -configure GEMALTO -add hex atr 3b7a9400008065a20101013d72d643
  1092. cpconfig -hardware media -configure GEMALTO -add hex mask ffffffffffffffffffffffffffffff
  1093. cpconfig -hardware media -configure GEMALTO -add string folders 'SLOT#01\SLOT#02\SLOT#03\SLOT#04\SLOT#05\SLOT#06'
  1094.  
  1095. cpconfig -hardware media -configure GEMALTO -connect GemSim1 -add hex atr 3b2a008065a20102013172d643
  1096. cpconfig -hardware media -configure GEMALTO -connect GemSim1 -add hex mask ffffffffffffffffffffffffff
  1097. cpconfig -hardware media -configure GEMALTO -connect GemSim1 -add string folders 'SLOT#01\SLOT#02\SLOT#03\SLOT#04\SLOT#05\SLOT#06'
  1098.  
  1099. cpconfig -hardware media -configure GEMALTO -connect GemSim2 -add hex atr 3b7a9600008065a20101013d72d643
  1100. cpconfig -hardware media -configure GEMALTO -connect GemSim2 -add hex mask ffffffffffffffffffffffffffffff
  1101. cpconfig -hardware media -configure GEMALTO -connect GemSim2 -add string folders 'SLOT#01\SLOT#02\SLOT#03\SLOT#04\SLOT#05\SLOT#06'
  1102.  
  1103. cpconfig -hardware media -configure GEMALTO -connect Optelio -add hex atr 3b6a00008065a20101013d72d643
  1104. cpconfig -hardware media -configure GEMALTO -connect Optelio -add hex mask ffffffffffffffffffffffffffff
  1105. cpconfig -hardware media -configure GEMALTO -connect Optelio -add string folders 'SLOT#01\SLOT#02\SLOT#03\SLOT#04\SLOT#05\SLOT#06'
  1106.  
  1107. cpconfig -hardware media -configure GEMALTO -connect OptelioNDef -add hex atr 3B6E000080318066B0000000000083009000
  1108. cpconfig -hardware media -configure GEMALTO -connect OptelioNDef -add hex mask fffffffffffffffff00000000000ffffffff
  1109. cpconfig -hardware media -configure GEMALTO -connect OptelioNDef -add string folders 'SLOT#01\SLOT#02\SLOT#03\SLOT#04\SLOT#05\SLOT#06'
  1110.  
  1111. cpconfig -hardware media -configure GEMALTO -connect Native -add hex atr 3b2a008065a20101013d72d643
  1112. cpconfig -hardware media -configure GEMALTO -connect Native -add hex mask ffffffffffffffffffffffffff
  1113. cpconfig -hardware media -configure GEMALTO -connect Native -add string folders 'SLOT#01\SLOT#02\SLOT#03\SLOT#04\SLOT#05\SLOT#06'
  1114. true
  1115. preuninstall scriptlet (using /bin/sh):
  1116. true
  1117. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1118. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1119. prefix=/opt/cprocsp
  1120. exec_prefix=/opt/cprocsp
  1121. /etc/init.d/cprocsp stop_check force
  1122. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1123. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1124. NAME="GEMALTO"
  1125. cpconfig -hardware media -del $NAME > /dev/null
  1126. cpconfig -hardware media -del $NAME -connect GemSim1 > /dev/null
  1127. cpconfig -hardware media -del $NAME -connect GemSim2 > /dev/null
  1128. cpconfig -hardware media -del $NAME -connect Optelio > /dev/null
  1129. cpconfig -hardware media -del $NAME -connect OptelioNDef > /dev/null
  1130. cpconfig -hardware media -del $NAME -connect Native > /dev/null
  1131. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1132. cpconfig -ini '\config\apppath\librdremv.so' -delparam
  1133. fi
  1134. true
  1135. Name : cprocsp-rdr-gui-gtk-64
  1136. Version : 5.0.11453
  1137. Release : 5
  1138. Architecture: x86_64
  1139. Install Date: (not installed)
  1140. Group : Development/Libraries
  1141. Size : 364792
  1142. License : Crypto-Pro
  1143. Signature : (none)
  1144. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1145. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1146. Build Host : build-x64-cent5.cp.ru
  1147. Relocations : (not relocatable)
  1148. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1149. URL : http://www.cryptopro.ru/
  1150. Summary : GUI components for CryptoPro CSP readers. Build 11453.
  1151. Description :
  1152.  
  1153. preinstall scriptlet (using /bin/sh):
  1154. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1155. case `uname -s` in
  1156. Linux)
  1157. unset RPM_INSTALL_NAME
  1158. lib_list="libgcc_s.so.1"
  1159. # list is sorted: each library is checked before it's dependencies
  1160. lib_list="${lib_list} libgtk-x11-2.0.so.0 libgdk_pixbuf-2.0.so.0 libgdk-x11-2.0.so.0 libpango-1.0.so.0 libatk-1.0.so.0 libgobject-2.0.so.0 libgmodule-2.0.so.0 libglib-2.0.so.0 libstdc++ libpthread.so.0 libdl.so.2 libm.so.6 libc.so.6"
  1161. ld_cmd=`/sbin/ldconfig -p`
  1162. ;;
  1163. FreeBSD)
  1164. lib_list="librdrsup.so.4 libgtk-x11-2.0.so.0 libgdk_pixbuf-2.0.so.0 libgdk-x11-2.0.so.0 libpangoft2-1.0.so.0 libpango-1.0.so.0 libpangocairo-1.0.so.0 libcairo.so.2 libatk-1.0.so.0 libgobject-2.0.so.0 libgmodule-2.0.so.0 libgio-2.0.so.0 libgthread-2.0.so.0 libglib-2.0.so.0 libxcb-render-util.so.0 libxcb-render.so.0 libxcb.so.2 libX11.so.6 libXau.so.6 libXcomposite.so.1 libXcursor.so.1 libXdamage.so.1 libXdmcp.so.6 libXext.so.6 libXfixes.so.3 libXi.so.6 libXinerama.so.1 libXrandr.so.2 libXrender.so.1 libfontconfig.so.1 libpixman-1.so.9 libpng.so.6 libfreetype.so.9 libpcre.so.0 librpcsvc.so libthr.so.3 libexpat.so.6 libz.so libintl.so libstdc++ libgcc_s.so.1 libpthread-stubs.so.0 libm.so.5 libc.so.7"
  1165. # TODO: revert libz.so.5 librpcsvc.so.5 libintl.so.9 when CPCSP-4489 is done
  1166. ld_cmd=`/sbin/ldconfig -r`
  1167. ;;
  1168. *)
  1169. lib_list=""
  1170. # unsupported
  1171. ;;
  1172. esac
  1173.  
  1174. ld_text="$ld_cmd"
  1175. for library in $lib_list
  1176. do
  1177. res=`echo "$ld_text" | grep "$library"`
  1178. if [ "$res" = "" ]; then
  1179. echo "$library was not found!"
  1180. if [ "$library" = "libgtk-x11-2.0.so.0" ]; then
  1181. echo "Try to install GTK+ 2 library on your system first."
  1182. fi
  1183. exit 1
  1184. fi
  1185. done
  1186.  
  1187. true
  1188. postinstall scriptlet (using /bin/sh):
  1189. prefix=/opt/cprocsp
  1190. exec_prefix=/opt/cprocsp
  1191. unset RPM_INSTALL_NAME
  1192. /sbin/ldconfig -f /etc/ld.so.conf
  1193. #/sbin/ldconfig -R
  1194. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1195. cpconfig -ini '\config\apppath' -add string librdrrndmbio_gui_fgtk.so /opt/cprocsp/lib/amd64/librdrrndmbio_gui_fgtk.so
  1196. cpconfig -ini '\config\apppath' -add string libxcpui.so /opt/cprocsp/lib/amd64/libfgcpui.so
  1197. cpconfig -ini '\config\apppath' -add string xcpui_app /opt/cprocsp/sbin/amd64/xcpui_app
  1198. cpconfig -ini '\config\Random\Bio_gui' -add string DLL librdrrndmbio_gui_fgtk.so
  1199. cpconfig -hardware rndm -add bio_gui -name 'rndm GUI gtk+2.0' -level 4 >/dev/null 2>/dev/null
  1200. # TODO: пока в транке не собираются графические библиотеки, ошибки не выводим
  1201.  
  1202. true
  1203. preuninstall scriptlet (using /bin/sh):
  1204. true
  1205. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1206. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1207. prefix=/opt/cprocsp
  1208. exec_prefix=/opt/cprocsp
  1209. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1210. /etc/init.d/cprocsp stop_check force
  1211. /sbin/ldconfig -f /etc/ld.so.conf
  1212. #/sbin/ldconfig -R
  1213. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1214. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1215. cpconfig -hardware rndm -del bio_gui > /dev/null
  1216. cpconfig -ini '\config\Random\Bio_gui' -delsection
  1217. cpconfig -ini '\config\apppath\librdrrndmbio_gui_fgtk.so' -delparam
  1218. cpconfig -ini '\config\apppath\libxcpui.so' -delparam
  1219. cpconfig -ini '\config\apppath\fgtk_rndm_app' -delparam
  1220. cpconfig -ini '\config\apppath\xcpui_app' -delparam
  1221. fi
  1222. true
  1223. Name : cprocsp-rdr-infocrypt-64
  1224. Version : 5.0.11453
  1225. Release : 5
  1226. Architecture: x86_64
  1227. Install Date: (not installed)
  1228. Group : Applications/Security
  1229. Size : 71859
  1230. License : Crypto-Pro
  1231. Signature : (none)
  1232. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1233. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1234. Build Host : build-x64-cent5.cp.ru
  1235. Relocations : (not relocatable)
  1236. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1237. URL : http://www.cryptopro.ru/
  1238. Summary : Infocrypt FKC support module
  1239. Description :
  1240. This package contains support module for Infocrypt tokens in Crypto Pro CSP
  1241. preinstall scriptlet (using /bin/sh):
  1242. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1243. case `uname -s` in
  1244. Linux)
  1245. unset RPM_INSTALL_NAME
  1246. lib_list="libgcc_s.so.1"
  1247. lib_list="${lib_list} libc.so.6 libm.so.6 libpthread.so.0 libstdc++"
  1248. ld_cmd=`/sbin/ldconfig -p`
  1249. ;;
  1250. FreeBSD)
  1251. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3"
  1252. ld_cmd=`/sbin/ldconfig -r`
  1253. ;;
  1254. *)
  1255. lib_list=""
  1256. # unsupported
  1257. ;;
  1258. esac
  1259.  
  1260. ld_text="$ld_cmd"
  1261. for library in $lib_list
  1262. do
  1263. res=`echo "$ld_text" | grep "$library"`
  1264. if [ "$res" = "" ]; then
  1265. echo "$library was not found!"
  1266. exit 1
  1267. fi
  1268. done
  1269.  
  1270. true
  1271. postinstall scriptlet (using /bin/sh):
  1272. prefix=/opt/cprocsp
  1273. exec_prefix=/opt/cprocsp
  1274. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1275.  
  1276. unset RPM_INSTALL_NAME
  1277. /sbin/ldconfig -f /etc/ld.so.conf
  1278. #/sbin/ldconfig -R
  1279.  
  1280. cpconfig -ini '\config\apppath' -add string librdrinfocrypt.so /opt/cprocsp/lib/amd64/librdrinfocrypt.so
  1281.  
  1282. cpconfig -ini '\config\KeyCarriers\TokenPlusPlusLite' -add string DLL librdrinfocrypt.so
  1283. cpconfig -hardware media -add TokenPlusPlusLite -name 'TokenPlusPlusLite' > /dev/null
  1284. cpconfig -hardware media -configure TokenPlusPlusLite -add hex atr 3bdf18008131fe670056496e666f43727330200000900054
  1285. cpconfig -hardware media -configure TokenPlusPlusLite -add hex mask ffffffffffffffffffffffffffffffffffffffffffffffff
  1286. cpconfig -hardware media -configure TokenPlusPlusLite -add string Name 'InfoCrypt Token++ lite'
  1287. cpconfig -hardware media -configure TokenPlusPlusLite -add string folders '2000\1FFF\1FFE\1FFD\1FFC\1FFB\1FFA\1FF9\1FF8\1FF7\1FF6\1FF5'
  1288.  
  1289. cpconfig -ini '\config\KeyCarriers\TokenPlusPlusTls' -add string DLL librdrinfocrypt.so
  1290. cpconfig -hardware media -add TokenPlusPlusTls -name 'TokenPlusPlusTls' > /dev/null
  1291. cpconfig -hardware media -configure TokenPlusPlusTls -add hex atr 3bdf18008131fe67005c49434dd49147d279000038330057
  1292. cpconfig -hardware media -configure TokenPlusPlusTls -add hex mask ffffffffffffffffffffffffffffffffffffffffffffffff
  1293. cpconfig -hardware media -configure TokenPlusPlusTls -add string Name 'InfoCrypt Token++ tls'
  1294.  
  1295. cpconfig -ini '\config\KeyCarriers\VPNKEYTLS' -add string DLL librdrinfocrypt.so
  1296. cpconfig -hardware media -add VPNKEYTLS -name 'VPNKEYTLS' > /dev/null
  1297. cpconfig -hardware media -configure VPNKEYTLS -add hex atr 3bdf18008131fe67005c49434dd49147d276000038330058
  1298. cpconfig -hardware media -configure VPNKEYTLS -add hex mask ffffffffffffffffffffffffffffffffffffffffffffffff
  1299. cpconfig -hardware media -configure VPNKEYTLS -add string Name 'InfoCrypt VPN-Key-TLS'
  1300.  
  1301. cpconfig -ini '\config\KeyCarriers\TokenPlusPlus' -add string DLL librdrinfocrypt.so
  1302. cpconfig -hardware media -add TokenPlusPlus -name 'TokenPlusPlus' > /dev/null
  1303. cpconfig -hardware media -configure TokenPlusPlus -add hex atr 3bdf18008131fe67005c49434dd49147d277000038330059
  1304. cpconfig -hardware media -configure TokenPlusPlus -add hex mask ffffffffffffffffffffffffffffffffffffffffffffffff
  1305. cpconfig -hardware media -configure TokenPlusPlus -add string Name 'InfoCrypt Token++'
  1306.  
  1307. true
  1308. preuninstall scriptlet (using /bin/sh):
  1309. true
  1310. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1311. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1312. prefix=/opt/cprocsp
  1313. exec_prefix=/opt/cprocsp
  1314. /etc/init.d/cprocsp stop_check force
  1315. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1316. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1317.  
  1318. NAME="TokenPlusPlusLite"
  1319. cpconfig -hardware media -del $NAME > /dev/null
  1320. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1321.  
  1322. NAME="TokenPlusPlusTls"
  1323. cpconfig -hardware media -del $NAME > /dev/null
  1324. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1325.  
  1326. NAME="VPNKEYTLS"
  1327. cpconfig -hardware media -del $NAME > /dev/null
  1328. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1329.  
  1330. NAME="TokenPlusPlus"
  1331. cpconfig -hardware media -del $NAME > /dev/null
  1332. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1333.  
  1334. cpconfig -ini '\config\apppath\librdrinfocrypt.so' -delparam
  1335. fi
  1336. true
  1337. Name : cprocsp-rdr-inpaspot-64
  1338. Version : 5.0.11453
  1339. Release : 5
  1340. Architecture: x86_64
  1341. Install Date: (not installed)
  1342. Group : Applications/Security
  1343. Size : 27509
  1344. License : Crypto-Pro
  1345. Signature : (none)
  1346. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1347. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1348. Build Host : build-x64-cent5.cp.ru
  1349. Relocations : (not relocatable)
  1350. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1351. URL : http://www.cryptopro.ru/
  1352. Summary : Inpaspot support module
  1353. Description :
  1354. This package contains module for inpaspot carriers support in Crypto Pro CSP
  1355. preinstall scriptlet (using /bin/sh):
  1356. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1357. case `uname -s` in
  1358. Linux)
  1359. unset RPM_INSTALL_NAME
  1360. lib_list=""
  1361. ld_cmd=`/sbin/ldconfig -p`
  1362. ;;
  1363. FreeBSD)
  1364. lib_list="librdrsup.so.4"
  1365. ld_cmd=`/sbin/ldconfig -r`
  1366. ;;
  1367. *)
  1368. lib_list=""
  1369. # unsupported
  1370. ;;
  1371. esac
  1372.  
  1373. ld_text="$ld_cmd"
  1374. for library in $lib_list
  1375. do
  1376. res=`echo "$ld_text" | grep "$library"`
  1377. if [ "$res" = "" ]; then
  1378. echo "$library was not found!"
  1379. exit 1
  1380. fi
  1381. done
  1382.  
  1383. true
  1384. postinstall scriptlet (using /bin/sh):
  1385. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1386.  
  1387. cd /opt/cprocsp/lib/amd64
  1388.  
  1389. cpconfig -ini '\config\apppath' -add string librdrinpaspot.so /opt/cprocsp/lib/amd64/librdrinpaspot.so
  1390.  
  1391. NAME=INPASPOT
  1392. cpconfig -ini '\config\KeyCarriers\'$NAME -add string DLL librdrinpaspot.so
  1393.  
  1394. #cpconfig -hardware media -add $NAME -connect InpaspotCard -name 'Alioth Inpaspot' > /dev/null
  1395. #cpconfig -hardware media -configure $NAME -connect InpaspotCard -add hex atr 3b6e000080318066b0840c016e0183009000
  1396. #cpconfig -hardware media -configure $NAME -connect InpaspotCard -add hex mask ffffffffffffffffffffffffffffffffffff
  1397.  
  1398. cpconfig -hardware media -add $NAME -connect SCOneSeries -name 'ALIOTH, SCOne Series' > /dev/null
  1399. cpconfig -hardware media -configure $NAME -connect SCOneSeries -add hex atr 3b6d000080318065495300000183079000
  1400. cpconfig -hardware media -configure $NAME -connect SCOneSeries -add hex mask ffffffffffffffffffff0000ffffffffff
  1401.  
  1402. cpconfig -hardware media -add $NAME -connect SCOneV3 -name 'ALIOTH, SCOne V3' > /dev/null
  1403. cpconfig -hardware media -configure $NAME -connect SCOneV3 -add hex atr 3b6900ff4a434f503234325232
  1404. cpconfig -hardware media -configure $NAME -connect SCOneV3 -add hex mask ffffffffffffffffffffffffff
  1405.  
  1406. cpconfig -hardware media -add $NAME -connect J3H081 -name 'ALIOTH, SCOne J3H081' > /dev/null
  1407. cpconfig -hardware media -configure $NAME -connect J3H081 -add hex atr 3B6A00FF0031C173C84000009000
  1408. cpconfig -hardware media -configure $NAME -connect J3H081 -add hex mask ffffffffffffffffffffffffffff
  1409.  
  1410. cpconfig -hardware media -add $NAME -name 'ALIOTH, SCOne V4' > /dev/null
  1411. cpconfig -hardware media -configure $NAME -add hex atr 3b6800ff4a434f5076323431
  1412. cpconfig -hardware media -configure $NAME -add hex mask ffffffffffffffffffffffff
  1413.  
  1414. NAME=INPASPOT1
  1415. cpconfig -ini '\config\KeyCarriers\'$NAME -add string DLL librdrinpaspot.so
  1416. cpconfig -hardware media -add $NAME -name 'Inpaspot' > /dev/null
  1417. cpconfig -hardware media -configure $NAME -add hex atr 3bfd130000108080318065b0831100ac83009000
  1418. cpconfig -hardware media -configure $NAME -add hex mask ffffffffffffffffffffffffffffffffffffffff
  1419.  
  1420. NAME=INPASPOT2
  1421. cpconfig -ini '\config\KeyCarriers\'$NAME -add string DLL librdrinpaspot.so
  1422. cpconfig -hardware media -add $NAME -name 'Inpaspot' > /dev/null
  1423. cpconfig -hardware media -configure $NAME -add hex atr 3bfa130000108080318066b0840c016e01
  1424. cpconfig -hardware media -configure $NAME -add hex mask ffffffffffffffffffffffffffffffffff
  1425.  
  1426. true
  1427. preuninstall scriptlet (using /bin/sh):
  1428. true
  1429. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1430. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1431. /etc/init.d/cprocsp stop_check force
  1432. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1433. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1434. NAME='INPASPOT'
  1435. cpconfig -hardware media -del $NAME -connect SCOneSeries > /dev/null
  1436. cpconfig -hardware media -del $NAME -connect SCOneV3 > /dev/null
  1437. cpconfig -hardware media -del $NAME -connect J3H081 > /dev/null
  1438. #cpconfig -hardware media -del $NAME -connect InpaspotCard > /dev/null
  1439. cpconfig -hardware media -del $NAME > /dev/null
  1440. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1441. NAME='INPASPOT1'
  1442. cpconfig -hardware media -del $NAME > /dev/null
  1443. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1444. NAME='INPASPOT2'
  1445. cpconfig -hardware media -del $NAME > /dev/null
  1446. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1447.  
  1448. cpconfig -ini '\config\apppath\librdrinpaspot.so' -delparam
  1449. fi
  1450. true
  1451. Name : cprocsp-rdr-jacarta-64
  1452. Version : 5.0.0.1142
  1453. Release : 4
  1454. Architecture: x86_64
  1455. Install Date: (not installed)
  1456. Group : Aladdin R.D.
  1457. Size : 1366655
  1458. License : Commercial licence
  1459. Signature : (none)
  1460. Source RPM : cprocsp-rdr-jacarta-64-5.0.0.1142-4.src.rpm
  1461. Build Date : Thu 04 Apr 2019 08:41:12 PM MSK
  1462. Build Host : build-u12-x64
  1463. Relocations : (not relocatable)
  1464. Packager : Aladdin R.D.
  1465. Vendor : Aladdin R.D.
  1466. Summary : JaCarta components for CryptoPro CSP. Build 1142.
  1467. Description :
  1468. JaCarta components for CryptoPro CSP for use JaCarta devices.
  1469. preinstall scriptlet (using /bin/sh):
  1470. if [ -f /usr/sbin/openct* ];then
  1471. echo "[Error] This package is not compatible with openct, please uninstall openct package"
  1472. exit 1
  1473. fi
  1474. postinstall scriptlet (using /bin/sh):
  1475. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\apppath' -add string librdrjacarta.so.5.0.0 /opt/cprocsp/lib/amd64/librdrjacarta.so.5.0.0
  1476.  
  1477. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO16' -add string DLL librdrjacarta.so.5.0.0
  1478. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO32' -add string DLL librdrjacarta.so.5.0.0
  1479. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO_M420' -add string DLL librdrjacarta.so.5.0.0
  1480. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO_M420B' -add string DLL librdrjacarta.so.5.0.0
  1481. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_JAVA_10' -add string DLL librdrjacarta.so.5.0.0
  1482. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_JAVA_10B' -add string DLL librdrjacarta.so.5.0.0
  1483. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\JaCarta' -add string DLL librdrjacarta.so.5.0.0
  1484. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\JaCarta_LT' -add string DLL librdrjacarta.so.5.0.0
  1485.  
  1486. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add eToken_PRO16 -name 'Aladdin R.D. eToken Pro 16K' > /dev/null
  1487. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO16 -add hex atr 3be200ffc11031fe55c8029c
  1488. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO16 -add hex mask ffffffffffffffffffffffff
  1489. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO16 -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1490. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add eToken_PRO32 -name 'Aladdin R.D. eToken Pro 32K' > /dev/null
  1491. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO32 -add hex atr 3bf29800ffc11031fe55c80315
  1492. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO32 -add hex mask ffffffffffffffffffffffffff
  1493. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO32 -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1494. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add eToken_PRO_M420 -name 'Aladdin R.D. eToken Pro M420' > /dev/null
  1495. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO_M420 -add hex atr 3bf2180000c10a31fe55c80600
  1496. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO_M420 -add hex mask ffffffff00ffffffffffffff00
  1497. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO_M420 -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1498. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add eToken_PRO_M420B -name 'Aladdin R.D. eToken Pro M420b' > /dev/null
  1499. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO_M420B -add hex atr 3bf2180002c10a31fe58c80975
  1500. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO_M420B -add hex mask ffffffffffffffffffffffffff
  1501. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_PRO_M420B -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1502. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add eToken_JAVA_10 -name 'Aladdin R.D. eToken Java v1.0' > /dev/null
  1503. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_JAVA_10 -add hex atr 3bd518008131fe7d8073c82110f4
  1504. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_JAVA_10 -add hex mask ffffffffffffffffffffffffffff
  1505. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_JAVA_10 -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1506. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add eToken_JAVA_10B -name 'Aladdin R.D. eToken Java v1.0b' > /dev/null
  1507. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_JAVA_10B -add hex atr 3bd5180081313a7d8073c8211030
  1508. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_JAVA_10B -add hex mask ffffffffffffffffffffffffffff
  1509. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure eToken_JAVA_10B -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1510. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add JaCarta -name 'Aladdin R.D. JaCarta' > /dev/null
  1511. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure JaCarta -add hex atr 3bdc18ff8191fe1fc38073c821136601061159000128
  1512. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure JaCarta -add hex mask ffffffffffffffffffffffffffffffffffffffffffff
  1513. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure JaCarta -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1514. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -add JaCarta_LT -name 'Aladdin R.D. JaCarta LT' > /dev/null
  1515. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure JaCarta_LT -add hex atr 3bdc18ff8111fe8073c82113660106013080018d
  1516. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure JaCarta_LT -add hex mask ffffffffffffffffffffffffffffffffffffffff
  1517. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -configure JaCarta_LT -add string folders "CC00\\CC01\\CC02\\CC03\\CC04\\CC05\\CC06\\CC07\\CC08\\CC09"
  1518.  
  1519. bash /tmp/PLIST-csp/Linux/update_all_plists.sh > /dev/null 2>&1
  1520. rm -rf /tmp/PLIST-csp > /dev/null 2>&1
  1521.  
  1522. /etc/init.d/pcscd restart > /dev/null 2>&1
  1523.  
  1524. exit 0
  1525. preuninstall scriptlet (using /bin/sh):
  1526. mkdir /tmp > /dev/null 2>&1
  1527. mkdir /tmp/PLIST-csp > /dev/null 2>&1
  1528. mkdir /tmp/PLIST-csp/Linux > /dev/null 2>&1
  1529. touch /tmp/PLIST-csp/Linux/update_ifd_ccid_bundle.sh > /dev/null 2>&1
  1530. touch /tmp/PLIST-csp/Linux/remove_by_friendly_name.sh > /dev/null 2>&1
  1531. touch /tmp/PLIST-csp/Linux/check_plist_integrity.sh > /dev/null 2>&1
  1532. touch /tmp/PLIST-csp/Linux/update_all_plists.sh > /dev/null 2>&1
  1533. touch /tmp/PLIST-csp/Linux/check_pcscd_vers_ubuntu.sh > /dev/null 2>&1
  1534.  
  1535. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\AKS ifdh 00 00\Default' -delsection > /dev/null 2>&1
  1536. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\AKS ifdh 01 00\Default' -delsection > /dev/null 2>&1
  1537. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\ARDS JaCarta 00 00\Default' -delsection > /dev/null 2>&1
  1538. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\ARDS JaCarta 01 00\Default' -delsection > /dev/null 2>&1
  1539. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\Aladdin eToken PRO USB 72K Java 00 00\Default' -delsection > /dev/null 2>&1
  1540. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\Aladdin eToken PRO USB 72K Java 01 00\Default' -delsection > /dev/null 2>&1
  1541. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\ARDS ZAO JaCarta LT 00 00\Default' -delsection > /dev/null 2>&1
  1542. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\ARDS ZAO JaCarta LT 01 00\Default' -delsection > /dev/null 2>&1
  1543. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\ARDS ZAO JaCarta Flash 00 00\Default' -delsection > /dev/null 2>&1
  1544. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyDevices\PCSC\ARDS ZAO JaCarta Flash 01 00\Default' -delsection > /dev/null 2>&1
  1545.  
  1546. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del eToken_PRO16 > /dev/null
  1547. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO16' -delsection
  1548. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del eToken_PRO32 > /dev/null
  1549. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO32' -delsection
  1550. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del eToken_PRO_M420 > /dev/null
  1551. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO_M420' -delsection
  1552. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del eToken_PRO_M420B > /dev/null
  1553. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_PRO_M420B' -delsection
  1554. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del eToken_JAVA_10 > /dev/null
  1555. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_JAVA_10' -delsection
  1556. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del eToken_JAVA_10B > /dev/null
  1557. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\eToken_JAVA_10B' -delsection
  1558. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del JaCarta > /dev/null
  1559. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\JaCarta' -delsection
  1560. /opt/cprocsp/sbin/amd64/cpconfig -hardware media -del JaCarta_LT > /dev/null
  1561. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\KeyCarriers\JaCarta_LT' -delsection
  1562.  
  1563. /opt/cprocsp/sbin/amd64/cpconfig -ini '\config\apppath\librdrjacarta.so.5.0.0' -delparam
  1564.  
  1565. exit 0
  1566. Name : cprocsp-rdr-kst-64
  1567. Version : 5.0.11453
  1568. Release : 5
  1569. Architecture: x86_64
  1570. Install Date: (not installed)
  1571. Group : Applications/Security
  1572. Size : 21385
  1573. License : Crypto-Pro
  1574. Signature : (none)
  1575. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1576. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1577. Build Host : build-x64-cent5.cp.ru
  1578. Relocations : (not relocatable)
  1579. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1580. URL : http://www.cryptopro.ru/
  1581. Summary : MorphoKST support module
  1582. Description :
  1583. This package contains module for MorphoKST carriers support in Crypto Pro CSP
  1584. preinstall scriptlet (using /bin/sh):
  1585. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1586. case `uname -s` in
  1587. Linux)
  1588. unset RPM_INSTALL_NAME
  1589. lib_list="libgcc_s.so.1"
  1590. lib_list="${lib_list} libc.so.6 libm.so.6 libpthread.so.0 libstdc++"
  1591. ld_cmd=`/sbin/ldconfig -p`
  1592. ;;
  1593. FreeBSD)
  1594. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 librdrsup.so.4"
  1595. ld_cmd=`/sbin/ldconfig -r`
  1596. ;;
  1597. *)
  1598. lib_list=""
  1599. # unsupported
  1600. ;;
  1601. esac
  1602.  
  1603. ld_text="$ld_cmd"
  1604. for library in $lib_list
  1605. do
  1606. res=`echo "$ld_text" | grep "$library"`
  1607. if [ "$res" = "" ]; then
  1608. echo "$library was not found!"
  1609. exit 1
  1610. fi
  1611. done
  1612.  
  1613. true
  1614. postinstall scriptlet (using /bin/sh):
  1615. prefix=/opt/cprocsp
  1616. exec_prefix=/opt/cprocsp
  1617. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1618. unset RPM_INSTALL_NAME
  1619. /sbin/ldconfig -f /etc/ld.so.conf
  1620. #/sbin/ldconfig -R
  1621.  
  1622. cpconfig -ini '\config\apppath' -add string librdrkst.so /opt/cprocsp/lib/amd64/librdrkst.so
  1623. cpconfig -ini '\config\KeyCarriers\MORPHOKST' -add string DLL librdrkst.so
  1624.  
  1625. cpconfig -hardware media -add MORPHOKST -name 'MorphoKST' > /dev/null
  1626. cpconfig -hardware media -configure MORPHOKST -add hex atr 3b6800000073c84000009000
  1627. cpconfig -hardware media -configure MORPHOKST -add hex mask ffffffffffffffffffffffff
  1628. cpconfig -hardware media -configure MORPHOKST -add string Name 'MorphoKST'
  1629.  
  1630. true
  1631. preuninstall scriptlet (using /bin/sh):
  1632. true
  1633. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1634. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1635. prefix=/opt/cprocsp
  1636. exec_prefix=/opt/cprocsp
  1637. /etc/init.d/cprocsp stop_check force
  1638. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1639. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1640. cpconfig -hardware media -del MORPHOKST > /dev/null
  1641. cpconfig -ini '\config\apppath\librdrkst.so' -delparam
  1642. cpconfig -ini '\config\KeyCarriers\MORPHOKST' -delsection
  1643. fi
  1644.  
  1645. true
  1646. Name : cprocsp-rdr-mskey-64
  1647. Version : 5.0.11453
  1648. Release : 5
  1649. Architecture: x86_64
  1650. Install Date: (not installed)
  1651. Group : Applications/Security
  1652. Size : 20899
  1653. License : Crypto-Pro
  1654. Signature : (none)
  1655. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1656. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1657. Build Host : build-x64-cent5.cp.ru
  1658. Relocations : (not relocatable)
  1659. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1660. URL : http://www.cryptopro.ru/
  1661. Summary : Mskey support module
  1662. Description :
  1663. This package contains module for mskey carriers support in Crypto Pro CSP
  1664. preinstall scriptlet (using /bin/sh):
  1665. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1666. case `uname -s` in
  1667. Linux)
  1668. unset RPM_INSTALL_NAME
  1669. lib_list=""
  1670. ld_cmd=`/sbin/ldconfig -p`
  1671. ;;
  1672. FreeBSD)
  1673. lib_list="librdrsup.so.4"
  1674. ld_cmd=`/sbin/ldconfig -r`
  1675. ;;
  1676. *)
  1677. lib_list=""
  1678. # unsupported
  1679. ;;
  1680. esac
  1681.  
  1682. ld_text="$ld_cmd"
  1683. for library in $lib_list
  1684. do
  1685. res=`echo "$ld_text" | grep "$library"`
  1686. if [ "$res" = "" ]; then
  1687. echo "$library was not found!"
  1688. exit 1
  1689. fi
  1690. done
  1691.  
  1692. true
  1693. postinstall scriptlet (using /bin/sh):
  1694. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1695. unset RPM_INSTALL_NAME
  1696. /sbin/ldconfig -f /etc/ld.so.conf
  1697. #/sbin/ldconfig -R
  1698.  
  1699. NAME=MSKEY
  1700. cpconfig -ini '\config\apppath' -add string librdrmskey.so /opt/cprocsp/lib/amd64/librdrmskey.so
  1701. cpconfig -ini "\config\KeyCarriers\\$NAME" -add string DLL librdrmskey.so
  1702. cpconfig -hardware media -add $NAME -name $NAME > /dev/null
  1703. cpconfig -hardware media -configure $NAME -add hex atr 3b9e00008031c0654d5300000072f7418107
  1704. cpconfig -hardware media -configure $NAME -add hex mask ffff0000ffffffffffff300000ffffffffff
  1705. cpconfig -hardware media -configure $NAME -add string Name 'Multisoft MSKey'
  1706.  
  1707. cpconfig -hardware media -add $NAME -connect MskeyESMART -name 'Multisoft MSKey ESMART' > /dev/null
  1708. cpconfig -hardware media -configure $NAME -connect MskeyESMART -add hex atr 3B9796008073F7C1808105
  1709. cpconfig -hardware media -configure $NAME -connect MskeyESMART -add hex mask ffffffffffffffffffffff
  1710. true
  1711. preuninstall scriptlet (using /bin/sh):
  1712. true
  1713. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1714. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1715. /etc/init.d/cprocsp stop_check force
  1716. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1717. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1718. NAME="MSKEY"
  1719. cpconfig -hardware media -del $NAME -connect MskeyESMART > /dev/null
  1720. cpconfig -hardware media -del $NAME > /dev/null
  1721. cpconfig -ini '\config\KeyCarriers\'$NAME -delsection
  1722. cpconfig -ini '\config\apppath\librdrmskey.so' -delparam
  1723. fi
  1724. true
  1725. Name : cprocsp-rdr-novacard-64
  1726. Version : 5.0.11453
  1727. Release : 5
  1728. Architecture: x86_64
  1729. Install Date: (not installed)
  1730. Group : Applications/Security
  1731. Size : 20756
  1732. License : Crypto-Pro
  1733. Signature : (none)
  1734. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1735. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1736. Build Host : build-x64-cent5.cp.ru
  1737. Relocations : (not relocatable)
  1738. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1739. URL : http://www.cryptopro.ru/
  1740. Summary : Novacard support module
  1741. Description :
  1742. This package contains module for Novacard key carriers support in Crypto Pro CSP
  1743. preinstall scriptlet (using /bin/sh):
  1744. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1745. case `uname -s` in
  1746. Linux)
  1747. unset RPM_INSTALL_NAME
  1748. lib_list="libgcc_s.so.1"
  1749. lib_list="${lib_list} libc.so.6 libm.so.6 libpthread.so.0 libstdc++"
  1750. ld_cmd=`/sbin/ldconfig -p`
  1751. ;;
  1752. FreeBSD)
  1753. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 librdrsup.so.4"
  1754. ld_cmd=`/sbin/ldconfig -r`
  1755. ;;
  1756. *)
  1757. lib_list=""
  1758. # unsupported
  1759. ;;
  1760. esac
  1761.  
  1762. ld_text="$ld_cmd"
  1763. for library in $lib_list
  1764. do
  1765. res=`echo "$ld_text" | grep "$library"`
  1766. if [ "$res" = "" ]; then
  1767. echo "$library was not found!"
  1768. exit 1
  1769. fi
  1770. done
  1771.  
  1772. true
  1773. postinstall scriptlet (using /bin/sh):
  1774. prefix=/opt/cprocsp
  1775. exec_prefix=/opt/cprocsp
  1776. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1777. unset RPM_INSTALL_NAME
  1778. /sbin/ldconfig -f /etc/ld.so.conf
  1779. #/sbin/ldconfig -R
  1780.  
  1781. cpconfig -ini '\config\apppath' -add string librdrnova.so /opt/cprocsp/lib/amd64/librdrnova.so
  1782. cpconfig -ini '\config\KeyCarriers\NOVACARD' -add string DLL librdrnova.so
  1783.  
  1784. cpconfig -hardware media -add NOVACARD -name 'NOVACARD' > /dev/null
  1785. cpconfig -hardware media -configure NOVACARD -add hex atr 3b6f00000031c068435350454d560300009000
  1786. cpconfig -hardware media -configure NOVACARD -add hex mask ffffffffffffffffffffffffffffffff00ffff
  1787. cpconfig -hardware media -configure NOVACARD -add string folders "0B00\\0B10"
  1788. cpconfig -hardware media -configure NOVACARD -add string Name 'Novacard'
  1789.  
  1790. true
  1791. preuninstall scriptlet (using /bin/sh):
  1792. true
  1793. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1794. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1795. prefix=/opt/cprocsp
  1796. exec_prefix=/opt/cprocsp
  1797. /etc/init.d/cprocsp stop_check force
  1798. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1799. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1800. cpconfig -hardware media -del NOVACARD > /dev/null
  1801. cpconfig -ini '\config\apppath\librdrnova.so' -delparam
  1802. cpconfig -ini '\config\KeyCarriers\NOVACARD' -delsection
  1803. fi
  1804.  
  1805. true
  1806. Name : cprocsp-rdr-pcsc-64
  1807. Version : 5.0.11453
  1808. Release : 5
  1809. Architecture: x86_64
  1810. Install Date: (not installed)
  1811. Group : Development/Libraries
  1812. Size : 127975
  1813. License : Crypto-Pro
  1814. Signature : (none)
  1815. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  1816. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  1817. Build Host : build-x64-cent5.cp.ru
  1818. Relocations : (not relocatable)
  1819. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  1820. URL : http://www.cryptopro.ru/
  1821. Summary : PC/SC components for CryptoPro CSP readers. Build 11453.
  1822. Description :
  1823.  
  1824. preinstall scriptlet (using /bin/sh):
  1825. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  1826. case `uname -s` in
  1827. Linux)
  1828. unset RPM_INSTALL_NAME
  1829. lib_list="libgcc_s.so.1"
  1830. lib_list="${lib_list} libc.so.6 libm.so.6 libpcsclite.so.1 libpthread.so.0 libstdc++"
  1831. ld_cmd=`/sbin/ldconfig -p`
  1832. ;;
  1833. FreeBSD)
  1834. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 librdrsup.so.4"
  1835. ld_cmd=`/sbin/ldconfig -r`
  1836. ;;
  1837. *)
  1838. lib_list=""
  1839. # unsupported
  1840. ;;
  1841. esac
  1842.  
  1843. ld_text="$ld_cmd"
  1844. for library in $lib_list
  1845. do
  1846. res=`echo "$ld_text" | grep "$library"`
  1847. if [ "$res" = "" ]; then
  1848. echo "$library was not found!"
  1849. exit 1
  1850. fi
  1851. done
  1852.  
  1853. true
  1854. postinstall scriptlet (using /bin/sh):
  1855. prefix=/opt/cprocsp
  1856. exec_prefix=/opt/cprocsp
  1857. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1858.  
  1859. unset RPM_INSTALL_NAME
  1860. /sbin/ldconfig -f /etc/ld.so.conf
  1861. #/sbin/ldconfig -R
  1862.  
  1863. cpconfig -ini '\config\parameters' -add long dynamic_readers 1
  1864. cpconfig -ini '\config\parameters' -add long dynamic_rdr_refresh_ms 1500
  1865.  
  1866. # Ubunta 10: no libpcsclite.so, but have libpcsclite.so.1
  1867. cpconfig -ini '\config\apppath' -add string libpcsclite.so libpcsclite.so.1
  1868. #cpconfig -ini '\config\apppath' -add string libpcsclite.so /System/Library/Frameworks/PCSC.framework/PCSC
  1869.  
  1870. cpconfig -ini '\config\apppath' -add string librdrpcsc.so /opt/cprocsp/lib/amd64/librdrpcsc.so
  1871. cpconfig -ini '\config\apppath' -add string librdrric.so /opt/cprocsp/lib/amd64/librdrric.so
  1872. cpconfig -ini '\config\KeyDevices\PCSC' -add string DLL librdrpcsc.so
  1873. cpconfig -ini '\config\KeyDevices\PCSC' -add long Group 1
  1874. # Name в конфиге затирает нормальные имена считывателей собой. Секция Default нужна для работы.
  1875. # Создать секцию без параметров через cpconfig нельзя. Приходится сразу удалять.
  1876. cpconfig -ini '\config\KeyDevices\PCSC\PNP PCSC\Default' -add string Name 'All PC/SC readers'
  1877. cpconfig -ini '\config\KeyDevices\PCSC\PNP PCSC\Default\Name' -delparam
  1878. cpconfig -ini '\config\KeyCarriers\OSCAR' -add string DLL librdrric.so
  1879. cpconfig -ini '\config\KeyCarriers\OSCAR2' -add string DLL librdrric.so
  1880. cpconfig -ini '\config\KeyCarriers\TRUST' -add string DLL librdrric.so
  1881. cpconfig -ini '\config\KeyCarriers\TRUSTS' -add string DLL librdrric.so
  1882. cpconfig -ini '\config\KeyCarriers\TRUSTD' -add string DLL librdrric.so
  1883.  
  1884. cpconfig -hardware media -add oscar -name 'Oscar' > /dev/null
  1885. cpconfig -hardware media -configure oscar -add hex atr 0000000000000043525950544f5052
  1886. cpconfig -hardware media -configure oscar -add hex mask 00000000000000ffffffffffffffff
  1887. cpconfig -hardware media -configure oscar -add string folders 0B00
  1888. cpconfig -hardware media -add oscar2 -name 'Oscar CSP 2.0' > /dev/null
  1889. cpconfig -hardware media -configure oscar2 -add hex atr 000000000000004350435350010102
  1890. cpconfig -hardware media -configure oscar2 -add hex mask 00000000000000ffffffffffffffff
  1891. cpconfig -hardware media -configure oscar2 -add string folders 0B00
  1892. cpconfig -hardware media -configure oscar2 -add long size_1 60
  1893. cpconfig -hardware media -configure oscar2 -add long size_2 70
  1894. cpconfig -hardware media -configure oscar2 -add long size_4 60
  1895. cpconfig -hardware media -configure oscar2 -add long size_5 70
  1896. cpconfig -hardware media -configure oscar2 -add long size_6 62
  1897. cpconfig -hardware media -add oscar2 -connect KChannel -name 'Channel K' > /dev/null
  1898. cpconfig -hardware media -configure oscar2 -connect KChannel -add hex atr 000000000000004350435350010101
  1899. cpconfig -hardware media -configure oscar2 -connect KChannel -add hex mask 00000000000000ffffffffffffffff
  1900. cpconfig -hardware media -configure oscar2 -connect KChannel -add string folders 0B00
  1901. cpconfig -hardware media -configure oscar2 -connect KChannel -add long size_1 56
  1902. cpconfig -hardware media -configure oscar2 -connect KChannel -add long size_2 36
  1903. cpconfig -hardware media -configure oscar2 -connect KChannel -add long size_4 56
  1904. cpconfig -hardware media -configure oscar2 -connect KChannel -add long size_5 36
  1905. cpconfig -hardware media -configure oscar2 -connect KChannel -add long size_6 62
  1906.  
  1907. cpconfig -hardware media -add TRUST -name 'Magistra' > /dev/null
  1908. cpconfig -hardware media -configure TRUST -add hex atr 3b9e00008031c0654d4700000072f7418107
  1909. cpconfig -hardware media -configure TRUST -add hex mask ffff0000ffffffffffff300000ffffffffff
  1910. cpconfig -hardware media -configure TRUST -add string folders "A\\B\\C\\D\\E\\F\\G\\H"
  1911.  
  1912. cpconfig -hardware media -add TRUSTS -name 'Magistra SocCard' > /dev/null
  1913. cpconfig -hardware media -configure TRUSTS -add hex atr 3b9a00008031c0610072f7418107
  1914. cpconfig -hardware media -configure TRUSTS -add hex mask ffff0000ffffffff30ffffffffff
  1915. cpconfig -hardware media -configure TRUSTS -add string folders "A\\B\\C\\D"
  1916.  
  1917. cpconfig -hardware media -add TRUSTD -name 'Magistra Debug' > /dev/null
  1918. cpconfig -hardware media -configure TRUSTD -add hex atr 3b9800008031c072f7418107
  1919. cpconfig -hardware media -configure TRUSTD -add hex mask ffff0000ffffffffffffffff
  1920. cpconfig -hardware media -configure TRUSTD -add string folders "A\\B\\C\\D\\E\\F\\G\\H"
  1921.  
  1922. not_solaris=1
  1923. if test ! -z "$not_solaris"; then
  1924. search_dirs=''
  1925. for d in `echo /usr/lib*/pcsc /usr/local/lib*/pcsc /usr/libexec/SmartCardServices/*`; do
  1926. if echo $d|grep -v '*'; then
  1927. search_dirs="$d $search_dirs";
  1928. fi;
  1929. done
  1930. if test ! -z "$search_dirs"; then
  1931. folder=`find -L $search_dirs -name "*ccid.bundle"`
  1932. if test ! -z "$folder"; then
  1933. pList_files=`find -L $folder -name "Info.plist"`
  1934. if test ! -z "$pList_files"; then
  1935. for pList in $pList_files; do
  1936. ccid_reg.sh -add $pList 0x072F 0x90CC "ACS ACR 38U-CCID - CP"
  1937. ccid_reg.sh -add $pList 0x072F 0x1204 "ACS ACR101 ICC Reader - CP"
  1938. ccid_reg.sh -add $pList 0x072F 0x8201 "ACS APG8201 PINhandy 1 - CP"
  1939. ccid_reg.sh -add $pList 0x072F 0x8202 "ACS APG8201 USB Reader - CP"
  1940. ccid_reg.sh -add $pList 0x072F 0x90DB "ACS CryptoMate64 - CP"
  1941. ccid_reg.sh -add $pList 0x0483 0xACD1 "Ancud Crypton SCR/RNG - CP"
  1942. ccid_reg.sh -add $pList 0x0A89 0x0025 "Aktiv Rutoken lite - CP"
  1943. ccid_reg.sh -add $pList 0x0A89 0x0030 "Aktiv Rutoken ECP - CP"
  1944. ccid_reg.sh -add $pList 0x0A89 0x0080 "Aktiv PINPad Ex - CP"
  1945. ccid_reg.sh -add $pList 0x0A89 0x0081 "Aktiv PINPad In - CP"
  1946. ccid_reg.sh -add $pList 0x0A89 0x0060 "Aktiv Co., ProgramPark Rutoken Magistra - CP"
  1947. ccid_reg.sh -add $pList 0x072f 0x90de "ACS Token - CP"
  1948. ccid_reg.sh -add $pList 0x24dc 0x0102 "ARDS ZAO JaCarta LT - CP"
  1949. ccid_reg.sh -add $pList 0x2fb0 0x0002 "Infocrypt Token++ - CP"
  1950. ccid_reg.sh -add $pList 0x2fb0 0x0004 "Infocrypt Token++ - CP"
  1951. ccid_reg.sh -add $pList 0x2fb0 0x0006 "Infocrypt Token++ lite - CP"
  1952. ccid_reg.sh -add $pList 0x2fb0 0x0008 "Infocrypt Token++ lite - CP"
  1953. ccid_reg.sh -add $pList 0x2fb0 0x003a "Infocrypt Token++ lite - CP"
  1954. ccid_reg.sh -add $pList 0x2022 0x078a "Infocrypt HWDSSL DEVICE - CP"
  1955. ccid_reg.sh -add $pList 0x2022 0x016c "Infocrypt HWDSSL DEVICE - CP"
  1956. ccid_reg.sh -add $pList 0x2022 0x0172 "Infocrypt HWDSSL DEVICE - CP"
  1957. ccid_reg.sh -add $pList 0x2022 0x0226 "Infocrypt HWDSSL DEVICE - CP"
  1958. ccid_reg.sh -add $pList 0x2fb0 0x078a "Infocrypt HWDSSL DEVICE - CP"
  1959. ccid_reg.sh -add $pList 0x2fb0 0x016c "Infocrypt HWDSSL DEVICE - CP"
  1960. ccid_reg.sh -add $pList 0x2fb0 0x0172 "Infocrypt HWDSSL DEVICE - CP"
  1961. ccid_reg.sh -add $pList 0x2fb0 0x0226 "Infocrypt HWDSSL DEVICE - CP"
  1962. ccid_reg.sh -add $pList 0x2a0c 0x0001 "MultiSoft ltd. SCR2 - CP"
  1963. ccid_reg.sh -add $pList 0x23a0 0x0008 "BIFIT ANGARA - CP"
  1964. ccid_reg.sh -add $pList 0x1fc9 0x7479 "ISBC ESMART reader - CP"
  1965. ccid_reg.sh -add $pList 0x2ce4 0x7479 "ESMART Token - CP"
  1966. ccid_reg.sh -add $pList 0x04d8 0x003f "zis-group PRIVATE Security System Key"
  1967. done
  1968. fi
  1969. fi
  1970. fi
  1971. fi
  1972. true
  1973. preuninstall scriptlet (using /bin/sh):
  1974. true
  1975. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  1976. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  1977. prefix=/opt/cprocsp
  1978. exec_prefix=/opt/cprocsp
  1979. /etc/init.d/cprocsp stop_check force
  1980.  
  1981. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  1982. PATH=$PATH:/opt/cprocsp/sbin/amd64
  1983.  
  1984. cpconfig -ini '\config\parameters\dynamic_readers' -delparam
  1985. cpconfig -ini '\config\parameters\dynamic_rdr_refresh_ms' -delparam
  1986.  
  1987. cpconfig -hardware media -del OSCAR > /dev/null
  1988. cpconfig -ini '\config\KeyCarriers\OSCAR' -delsection
  1989. cpconfig -hardware media -del OSCAR2 > /dev/null
  1990. cpconfig -ini '\config\KeyCarriers\OSCAR2' -delsection
  1991. cpconfig -hardware media -del TRUST > /dev/null
  1992. cpconfig -ini '\config\KeyCarriers\TRUST' -delsection
  1993. cpconfig -hardware media -del TRUSTS > /dev/null
  1994. cpconfig -ini '\config\KeyCarriers\TRUSTS' -delsection
  1995. cpconfig -hardware media -del TRUSTD > /dev/null
  1996. cpconfig -ini '\config\KeyCarriers\TRUSTD' -delsection
  1997. cpconfig -ini '\config\apppath\librdrric.so' -delparam
  1998.  
  1999. cpconfig -hardware reader -del PCSC > /dev/null
  2000. cpconfig -ini '\config\KeyDevices\PCSC' -delsection
  2001. cpconfig -ini '\config\apppath\librdrpcsc.so' -delparam
  2002. fi
  2003. true
  2004. Name : cprocsp-rdr-rosan-64
  2005. Version : 5.0.11453
  2006. Release : 5
  2007. Architecture: x86_64
  2008. Install Date: (not installed)
  2009. Group : Applications/Security
  2010. Size : 18084
  2011. License : Crypto-Pro
  2012. Signature : (none)
  2013. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2014. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2015. Build Host : build-x64-cent5.cp.ru
  2016. Relocations : (not relocatable)
  2017. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2018. URL : http://www.cryptopro.ru/
  2019. Summary : Rosan support module
  2020. Description :
  2021. This package contains module for Rosan key carriers support in Crypto Pro CSP
  2022. preinstall scriptlet (using /bin/sh):
  2023. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2024. case `uname -s` in
  2025. Linux)
  2026. unset RPM_INSTALL_NAME
  2027. lib_list="libgcc_s.so.1"
  2028. lib_list="${lib_list} libc.so.6 libm.so.6 libpthread.so.0 libstdc++"
  2029. ld_cmd=`/sbin/ldconfig -p`
  2030. ;;
  2031. FreeBSD)
  2032. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 librdrsup.so.4"
  2033. ld_cmd=`/sbin/ldconfig -r`
  2034. ;;
  2035. *)
  2036. lib_list=""
  2037. # unsupported
  2038. ;;
  2039. esac
  2040.  
  2041. ld_text="$ld_cmd"
  2042. for library in $lib_list
  2043. do
  2044. res=`echo "$ld_text" | grep "$library"`
  2045. if [ "$res" = "" ]; then
  2046. echo "$library was not found!"
  2047. exit 1
  2048. fi
  2049. done
  2050.  
  2051. true
  2052. postinstall scriptlet (using /bin/sh):
  2053. prefix=/opt/cprocsp
  2054. exec_prefix=/opt/cprocsp
  2055. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2056. unset RPM_INSTALL_NAME
  2057. /sbin/ldconfig -f /etc/ld.so.conf
  2058. #/sbin/ldconfig -R
  2059.  
  2060. cpconfig -ini '\config\apppath' -add string librdrrosan.so /opt/cprocsp/lib/amd64/librdrrosan.so
  2061. cpconfig -ini '\config\KeyCarriers\ROSAN' -add string DLL librdrrosan.so
  2062.  
  2063. cpconfig -hardware media -add ROSAN -name 'Rosan' > /dev/null
  2064. cpconfig -hardware media -configure ROSAN -add hex atr 3B6800000073C84000009000
  2065. cpconfig -hardware media -configure ROSAN -add hex mask FFFFFFFFFFFFFFFF00FFFFFF
  2066. cpconfig -hardware media -configure ROSAN -add string folders "D01\\D02\\D03\\D04\\D05"
  2067.  
  2068. cpconfig -hardware media -add ROSAN -connect Rosan_GD -name 'Rosan' > /dev/null
  2069. cpconfig -hardware media -configure ROSAN -connect Rosan_GD -add hex atr 3BFF9700008031FE450031C173C82110640000000000900000
  2070. cpconfig -hardware media -configure ROSAN -connect Rosan_GD -add hex mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFF00
  2071. cpconfig -hardware media -configure ROSAN -connect Rosan_GD -add string folders "D01\\D02\\D03\\D04\\D05"
  2072.  
  2073. cpconfig -hardware media -add ROSAN -connect Rosan_GD1 -name 'Rosan' > /dev/null
  2074. cpconfig -hardware media -configure ROSAN -connect Rosan_GD1 -add hex atr 3BFD9700008031FE450031C071C6644D35000001900000
  2075. cpconfig -hardware media -configure ROSAN -connect Rosan_GD1 -add hex mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFF00
  2076. cpconfig -hardware media -configure ROSAN -connect Rosan_GD1 -add string folders "D01\\D02\\D03\\D04\\D05"
  2077.  
  2078. cpconfig -hardware media -add ROSAN -connect Rosan_GD2 -name 'Rosan' > /dev/null
  2079. cpconfig -hardware media -configure ROSAN -connect Rosan_GD2 -add hex atr 3BE800008131FE450073C840130090009B
  2080. cpconfig -hardware media -configure ROSAN -connect Rosan_GD2 -add hex mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  2081. cpconfig -hardware media -configure ROSAN -connect Rosan_GD2 -add string folders "D01\\D02\\D03\\D04\\D05"
  2082.  
  2083. cpconfig -hardware media -add ROSAN -connect Rosan_GD3 -name 'Rosan' > /dev/null
  2084. cpconfig -hardware media -configure ROSAN -connect Rosan_GD3 -add hex atr 3B6D00000073C800136454000000009000
  2085. cpconfig -hardware media -configure ROSAN -connect Rosan_GD3 -add hex mask FFFFFFFFFFFFFFFFFFFFFF000000FFFFFF
  2086. cpconfig -hardware media -configure ROSAN -connect Rosan_GD3 -add string folders "D01\\D02\\D03\\D04\\D05"
  2087.  
  2088. cpconfig -hardware media -add ROSAN -connect Rosan_GD4 -name 'Rosan' > /dev/null
  2089. cpconfig -hardware media -configure ROSAN -connect Rosan_GD4 -add hex atr 3B7E9600000031C071C665740B041631019000
  2090. cpconfig -hardware media -configure ROSAN -connect Rosan_GD4 -add hex mask FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  2091. cpconfig -hardware media -configure ROSAN -connect Rosan_GD4 -add string folders "D01\\D02\\D03\\D04\\D05"
  2092.  
  2093. true
  2094. preuninstall scriptlet (using /bin/sh):
  2095. true
  2096. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2097. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2098. prefix=/opt/cprocsp
  2099. exec_prefix=/opt/cprocsp
  2100. /etc/init.d/cprocsp stop_check force
  2101. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  2102. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2103. cpconfig -hardware media -del ROSAN > /dev/null
  2104. cpconfig -ini '\config\apppath\librdrrosan.so' -delparam
  2105. cpconfig -ini '\config\KeyCarriers\ROSAN' -delsection
  2106. fi
  2107.  
  2108. true
  2109. Name : cprocsp-rdr-rutoken-64
  2110. Version : 5.0.11453
  2111. Release : 5
  2112. Architecture: x86_64
  2113. Install Date: (not installed)
  2114. Group : Applications/Security
  2115. Size : 295393
  2116. License : Crypto-Pro
  2117. Signature : (none)
  2118. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2119. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2120. Build Host : build-x64-cent5.cp.ru
  2121. Relocations : (not relocatable)
  2122. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2123. URL : http://www.cryptopro.ru/
  2124. Summary : Rutoken support module
  2125. Description :
  2126. This package contains module for Rutoken key carriers support in Crypto Pro CSP
  2127. preinstall scriptlet (using /bin/sh):
  2128. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2129. case `uname -s` in
  2130. Linux)
  2131. unset RPM_INSTALL_NAME
  2132. lib_list=""
  2133. ld_cmd=`/sbin/ldconfig -p`
  2134. ;;
  2135. FreeBSD)
  2136. lib_list="librdrsup.so.4"
  2137. ld_cmd=`/sbin/ldconfig -r`
  2138. ;;
  2139. *)
  2140. lib_list=""
  2141. # unsupported
  2142. ;;
  2143. esac
  2144.  
  2145. ld_text="$ld_cmd"
  2146. for library in $lib_list
  2147. do
  2148. res=`echo "$ld_text" | grep "$library"`
  2149. if [ "$res" = "" ]; then
  2150. echo "$library was not found!"
  2151. exit 1
  2152. fi
  2153. done
  2154.  
  2155. true
  2156. postinstall scriptlet (using /bin/sh):
  2157. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2158. unset RPM_INSTALL_NAME
  2159. /sbin/ldconfig -f /etc/ld.so.conf
  2160. #/sbin/ldconfig -R
  2161.  
  2162. cpconfig -ini '\config\apppath' -add string librdrrutoken.so /opt/cprocsp/lib/amd64/librdrrutoken.so
  2163. #
  2164. cpconfig -ini '\config\KeyCarriers\RutokenECP' -add string DLL librdrrutoken.so
  2165. cpconfig -hardware media -add RutokenECP -name 'Rutoken ECP' > /dev/null
  2166. cpconfig -hardware media -configure RutokenECP -add hex atr 3b8b015275746f6b656e20445320c1
  2167. cpconfig -hardware media -configure RutokenECP -add hex mask ffffffffffffffffffffffffffffff
  2168. cpconfig -hardware media -configure RutokenECP -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2169. cpconfig -hardware media -configure RutokenECP -add long size_1 60
  2170. cpconfig -hardware media -configure RutokenECP -add long size_2 70
  2171. cpconfig -hardware media -configure RutokenECP -add long size_3 8
  2172. cpconfig -hardware media -configure RutokenECP -add long size_4 60
  2173. cpconfig -hardware media -configure RutokenECP -add long size_5 70
  2174. cpconfig -hardware media -configure RutokenECP -add long size_6 300
  2175. cpconfig -hardware media -configure RutokenECP -add long size_7 8
  2176. #
  2177. cpconfig -ini '\config\KeyCarriers\RutokenFkcOld' -add string DLL librdrrutoken.so
  2178. cpconfig -hardware media -add RutokenFkcOld -name 'CryptoPro Rutoken' > /dev/null
  2179. cpconfig -hardware media -configure RutokenFkcOld -add hex atr 3b8b015275746f6b656e20454350a0
  2180. cpconfig -hardware media -configure RutokenFkcOld -add hex mask ffffffffffffffffffffffffffffff
  2181. cpconfig -hardware media -configure RutokenFkcOld -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2182. cpconfig -hardware media -configure RutokenFkcOld -add long size_1 60
  2183. cpconfig -hardware media -configure RutokenFkcOld -add long size_2 70
  2184. cpconfig -hardware media -configure RutokenFkcOld -add long size_3 8
  2185. cpconfig -hardware media -configure RutokenFkcOld -add long size_4 60
  2186. cpconfig -hardware media -configure RutokenFkcOld -add long size_5 70
  2187. cpconfig -hardware media -configure RutokenFkcOld -add long size_6 300
  2188. cpconfig -hardware media -configure RutokenFkcOld -add long size_7 8
  2189. #
  2190. cpconfig -ini '\config\KeyCarriers\RutokenECPSC' -add string DLL librdrrutoken.so
  2191. cpconfig -hardware media -add RutokenECPSC -name 'Rutoken ECP SC' > /dev/null
  2192. cpconfig -hardware media -configure RutokenECPSC -add hex atr 3b9c96005275746f6b656e4543507363
  2193. cpconfig -hardware media -configure RutokenECPSC -add hex mask ffffffffffffffffffffffffffffffff
  2194. cpconfig -hardware media -configure RutokenECPSC -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2195. cpconfig -hardware media -configure RutokenECPSC -add long size_1 60
  2196. cpconfig -hardware media -configure RutokenECPSC -add long size_2 70
  2197. cpconfig -hardware media -configure RutokenECPSC -add long size_3 8
  2198. cpconfig -hardware media -configure RutokenECPSC -add long size_4 60
  2199. cpconfig -hardware media -configure RutokenECPSC -add long size_5 70
  2200. cpconfig -hardware media -configure RutokenECPSC -add long size_6 300
  2201. cpconfig -hardware media -configure RutokenECPSC -add long size_7 8
  2202. #
  2203. cpconfig -ini '\config\KeyCarriers\RutokenLiteSC2' -add string DLL librdrrutoken.so
  2204. cpconfig -hardware media -add RutokenLiteSC2 -name 'Rutoken Lite SC' > /dev/null
  2205. cpconfig -hardware media -configure RutokenLiteSC2 -add hex atr 3b9e96005275746f6b656e4c697465534332
  2206. cpconfig -hardware media -configure RutokenLiteSC2 -add hex mask ffffffffffffffffffffffffffffffffffff
  2207. cpconfig -hardware media -configure RutokenLiteSC2 -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2208. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_1 60
  2209. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_2 70
  2210. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_3 8
  2211. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_4 60
  2212. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_5 70
  2213. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_6 300
  2214. cpconfig -hardware media -configure RutokenLiteSC2 -add long size_7 8
  2215. #
  2216. cpconfig -ini '\config\KeyCarriers\RutokenLite' -add string DLL librdrrutoken.so
  2217. cpconfig -hardware media -add RutokenLite -name 'Rutoken lite' > /dev/null
  2218. cpconfig -hardware media -configure RutokenLite -add hex atr 3b8b015275746f6b656e6c697465c2
  2219. cpconfig -hardware media -configure RutokenLite -add hex mask ffffffffffffffffffffffffffffff
  2220. cpconfig -hardware media -configure RutokenLite -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2221. cpconfig -hardware media -configure RutokenLite -add long size_1 60
  2222. cpconfig -hardware media -configure RutokenLite -add long size_2 70
  2223. cpconfig -hardware media -configure RutokenLite -add long size_3 8
  2224. cpconfig -hardware media -configure RutokenLite -add long size_4 60
  2225. cpconfig -hardware media -configure RutokenLite -add long size_5 70
  2226. cpconfig -hardware media -configure RutokenLite -add long size_6 300
  2227. cpconfig -hardware media -configure RutokenLite -add long size_7 8
  2228. #
  2229. cpconfig -ini '\config\KeyCarriers\Rutoken' -add string DLL librdrrutoken.so
  2230. cpconfig -hardware media -add Rutoken -name 'Rutoken S' > /dev/null
  2231. cpconfig -hardware media -configure Rutoken -add hex atr 3b6f00ff00567275546f6b6e73302000009000
  2232. cpconfig -hardware media -configure Rutoken -add hex mask ffffffffffffffffffffffffffffffffffffff
  2233. cpconfig -hardware media -configure Rutoken -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000"
  2234. cpconfig -hardware media -configure Rutoken -add long size_1 60
  2235. cpconfig -hardware media -configure Rutoken -add long size_2 70
  2236. cpconfig -hardware media -configure Rutoken -add long size_3 8
  2237. cpconfig -hardware media -configure Rutoken -add long size_4 60
  2238. cpconfig -hardware media -configure Rutoken -add long size_5 70
  2239. cpconfig -hardware media -configure Rutoken -add long size_6 300
  2240. cpconfig -hardware media -configure Rutoken -add long size_7 8
  2241. #
  2242. cpconfig -ini '\config\KeyCarriers\RutokenPinpad' -add string DLL librdrrutoken.so
  2243. cpconfig -hardware media -add RutokenPinpad -name 'Rutoken PinPad' > /dev/null
  2244. cpconfig -hardware media -configure RutokenPinpad -add hex atr 3B8B01527450494E5061642020329C
  2245. cpconfig -hardware media -configure RutokenPinpad -add hex mask ffffffffffffffffffffffffffffff
  2246. #
  2247. #cpconfig -hardware reader -add "Aktiv Rutoken ECP 00 00" -name 'Rutoken ECP 0'
  2248. #cpconfig -hardware reader -add "Aktiv Rutoken ECP 01 00" -name 'Rutoken ECP 1'
  2249. #cpconfig -hardware reader -add "Aktiv Rutoken lite 00 00" -name 'Rutoken lite 0'
  2250. #cpconfig -hardware reader -add "Aktiv Rutoken lite 01 00" -name 'Rutoken lite 1'
  2251. #cpconfig -hardware reader -add "Aktiv Co. Rutoken S 00 00" -name 'Rutoken S 0'
  2252. #cpconfig -hardware reader -add "Aktiv Co. Rutoken S 01 00" -name 'Rutoken S 1'
  2253. #cpconfig -hardware reader -add "Aktiv Rutoken Magistra 00 00" -name 'Rutoken Magistra 0'
  2254. #cpconfig -hardware reader -add "Aktiv Rutoken Magistra 01 00" -name 'Rutoken Magistra 1'
  2255.  
  2256. #
  2257. cpconfig -ini '\config\KeyCarriers\RutokenECPM' -add string DLL librdrrutoken.so
  2258. cpconfig -hardware media -add RutokenECPM -name 'Rutoken ECP 2151' > /dev/null
  2259. cpconfig -hardware media -configure RutokenECPM -add hex atr 3B18967275746F6B656E6D
  2260. cpconfig -hardware media -configure RutokenECPM -add hex mask ffffffffffffffffffffff
  2261. cpconfig -hardware media -configure RutokenECPM -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2262. cpconfig -hardware media -configure RutokenECPM -add long size_1 60
  2263. cpconfig -hardware media -configure RutokenECPM -add long size_2 70
  2264. cpconfig -hardware media -configure RutokenECPM -add long size_3 3072
  2265. cpconfig -hardware media -configure RutokenECPM -add long size_4 60
  2266. cpconfig -hardware media -configure RutokenECPM -add long size_5 70
  2267. cpconfig -hardware media -configure RutokenECPM -add long size_6 300
  2268. cpconfig -hardware media -configure RutokenECPM -add long size_7 8
  2269.  
  2270. #
  2271. cpconfig -ini '\config\KeyCarriers\RutokenECPMSC' -add string DLL librdrrutoken.so
  2272. cpconfig -hardware media -add RutokenECPMSC -name 'Rutoken ECP 2151 SC' > /dev/null
  2273. cpconfig -hardware media -configure RutokenECPMSC -add hex atr 3B1A967275746F6B656E6D7363
  2274. cpconfig -hardware media -configure RutokenECPMSC -add hex mask ffffffffffffffffffffffffff
  2275. cpconfig -hardware media -configure RutokenECPMSC -add string folders "0A00\\0B00\\0C00\\0D00\\0E00\\0F00\\1000\\1100\\1200\\1300\\1400\\1500\\1600\\1700\\1800"
  2276. cpconfig -hardware media -configure RutokenECPMSC -add long size_1 60
  2277. cpconfig -hardware media -configure RutokenECPMSC -add long size_2 70
  2278. cpconfig -hardware media -configure RutokenECPMSC -add long size_3 3072
  2279. cpconfig -hardware media -configure RutokenECPMSC -add long size_4 60
  2280. cpconfig -hardware media -configure RutokenECPMSC -add long size_5 70
  2281. cpconfig -hardware media -configure RutokenECPMSC -add long size_6 300
  2282. cpconfig -hardware media -configure RutokenECPMSC -add long size_7 8
  2283.  
  2284. true
  2285. preuninstall scriptlet (using /bin/sh):
  2286. true
  2287. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2288. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2289. prefix=/opt/cprocsp
  2290. exec_prefix=/opt/cprocsp
  2291. /etc/init.d/cprocsp stop_check force
  2292. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  2293. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2294. #
  2295. cpconfig -hardware media -del RutokenECP > /dev/null
  2296. cpconfig -ini '\config\KeyCarriers\RutokenECP' -delsection
  2297.  
  2298. cpconfig -hardware media -del RutokenFkcOld > /dev/null
  2299. cpconfig -ini '\config\KeyCarriers\RutokenFkcOld' -delsection
  2300.  
  2301. cpconfig -hardware media -del RutokenLite > /dev/null
  2302. cpconfig -ini '\config\KeyCarriers\RutokenLite' -delsection
  2303.  
  2304. cpconfig -hardware media -del Rutoken > /dev/null
  2305. cpconfig -ini '\config\KeyCarriers\Rutoken' -delsection
  2306.  
  2307. cpconfig -hardware media -del RutokenLiteSC2 > /dev/null
  2308. cpconfig -ini '\config\KeyCarriers\RutokenLiteSC2' -delsection
  2309.  
  2310. cpconfig -hardware media -del RutokenECPSC > /dev/null
  2311. cpconfig -ini '\config\KeyCarriers\RutokenECPSC' -delsection
  2312.  
  2313. cpconfig -hardware media -del RutokenPinpad > /dev/null
  2314. cpconfig -ini '\config\KeyCarriers\RutokenPinpad' -delsection
  2315.  
  2316. cpconfig -hardware media -del RutokenECPM > /dev/null
  2317. cpconfig -ini '\config\KeyCarriers\RutokenECPM' -delsection
  2318.  
  2319. cpconfig -hardware media -del RutokenECPMSC > /dev/null
  2320. cpconfig -ini '\config\KeyCarriers\RutokenECPMSC' -delsection
  2321.  
  2322. cpconfig -ini '\config\apppath\librdrrutoken.so' -delparam
  2323. fi
  2324. true
  2325. Name : cprocsp-rsa-64
  2326. Version : 5.0.11453
  2327. Release : 5
  2328. Architecture: x86_64
  2329. Install Date: (not installed)
  2330. Group : Development/Libraries
  2331. Size : 332316
  2332. License : Crypto-Pro
  2333. Signature : (none)
  2334. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2335. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2336. Build Host : build-x64-cent5.cp.ru
  2337. Relocations : (not relocatable)
  2338. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2339. URL : http://www.cryptopro.ru/
  2340. Summary : CryptoPro RSA CSP. Build 11453.
  2341. Description :
  2342.  
  2343. preinstall scriptlet (using /bin/sh):
  2344. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2345. case `uname -s` in
  2346. Linux)
  2347. unset RPM_INSTALL_NAME
  2348. lib_list="libgcc_s.so.1"
  2349. lib_list="${lib_list} libc.so.6 libm.so.6 libpthread.so.0 libstdc++"
  2350. ld_cmd=`/sbin/ldconfig -p`
  2351. ;;
  2352. FreeBSD)
  2353. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 libcapi10.so.4 librdrsup.so.4"
  2354. ld_cmd=`/sbin/ldconfig -r`
  2355. ;;
  2356. *)
  2357. lib_list=""
  2358. # unsupported
  2359. ;;
  2360. esac
  2361.  
  2362. ld_text="$ld_cmd"
  2363. for library in $lib_list
  2364. do
  2365. res=`echo "$ld_text" | grep "$library"`
  2366. if [ "$res" = "" ]; then
  2367. echo "$library was not found!"
  2368. exit 1
  2369. fi
  2370. done
  2371.  
  2372. true
  2373. postinstall scriptlet (using /bin/sh):
  2374. prefix=/opt/cprocsp
  2375. exec_prefix=/opt/cprocsp
  2376. unset RPM_INSTALL_NAME
  2377. /sbin/ldconfig -f /etc/ld.so.conf
  2378. #/sbin/ldconfig -R
  2379. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2380. cpconfig -ini '\config\apppath' -add string librsaenh.so /opt/cprocsp/lib/amd64/librsaenh.so
  2381. cpconfig -defprov -setdef -provtype 1 -provname 'Crypto-Pro RSA CSP'
  2382. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro RSA CSP' -add string 'Image Path' /opt/cprocsp/lib/amd64/librsaenh.so
  2383. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro RSA CSP' -add string 'Function Table Name' CPRSA_GetFunctionTable
  2384. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro RSA CSP' -add long type 1
  2385. cpconfig -ini '\cryptography\Defaults\Provider Types\Type 001' -add string 'TypeName' "RSA Full (Signature and Key Exchange)"
  2386.  
  2387. true
  2388. preuninstall scriptlet (using /bin/sh):
  2389. true
  2390. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2391. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2392. prefix=/opt/cprocsp
  2393. exec_prefix=/opt/cprocsp
  2394. /etc/init.d/cprocsp stop_check force
  2395. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  2396. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2397. cpconfig -ini '\cryptography\Defaults\Provider\Crypto-Pro RSA CSP' -delsection > /dev/null
  2398. unreg_prov_type_name.sh 1 /opt/cprocsp/sbin/amd64
  2399. cpconfig -ini '\config\apppath\librsaenh.so' -delparam > /dev/null
  2400. fi
  2401. true
  2402. postuninstall scriptlet (using /bin/sh):
  2403. true
  2404. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2405. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2406. prefix=/opt/cprocsp
  2407. exec_prefix=/opt/cprocsp
  2408. /sbin/ldconfig -f /etc/ld.so.conf
  2409. #/sbin/ldconfig -R
  2410. true
  2411. Name : cprocsp-stunnel-64
  2412. Version : 5.0.11453
  2413. Release : 5
  2414. Architecture: x86_64
  2415. Install Date: (not installed)
  2416. Group : Application/Security
  2417. Size : 312232
  2418. License : Crypto-Pro
  2419. Signature : (none)
  2420. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2421. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2422. Build Host : build-x64-cent5.cp.ru
  2423. Relocations : (not relocatable)
  2424. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2425. URL : http://www.cryptopro.ru/
  2426. Summary : Universal SSL/TLS tunnel.
  2427. Description :
  2428.  
  2429. preinstall scriptlet (using /bin/sh):
  2430. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2431. case `uname -s` in
  2432. Linux)
  2433. unset RPM_INSTALL_NAME
  2434. lib_list="libgcc_s.so.1"
  2435. lib_list="${lib_list} libc.so.6 libdl.so.2 libm.so.6 libpam.so.0 libpthread.so.0 libstdc++ libutil.so.1"
  2436. if test `uname -p` != "armv7l"; then lib_list="$lib_list libwrap.so.0"; fi
  2437. ld_cmd=`/sbin/ldconfig -p`
  2438. ;;
  2439. FreeBSD)
  2440. lib_list="libc.so.7 libcapi20.so.4 libcpasn1.so.4 libcpext.so.4 libcplib.so.4 libgcc_s.so.1 libm.so.5 libpam.so libssp.so.4 libstdc++ libthr.so.3 liburlretrieve.so.4 libutil.so libwrap.so "
  2441. # TODO: revert libpam.so.5 libutil.so.8 libwrap.so.6 libstdc++.so.6 when CPCSP-4489 is done
  2442. ld_cmd=`/sbin/ldconfig -r`
  2443. ;;
  2444. *)
  2445. lib_list=""
  2446. # unsupported
  2447. ;;
  2448. esac
  2449.  
  2450. ld_text="$ld_cmd"
  2451. for library in $lib_list
  2452. do
  2453. res=`echo "$ld_text" | grep "$library"`
  2454. if [ "$res" = "" ]; then
  2455. echo "$library was not found!"
  2456. exit 1
  2457. fi
  2458. done
  2459.  
  2460. true
  2461. preuninstall scriptlet (using /bin/sh):
  2462. true
  2463. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2464. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2465. /etc/init.d/cprocsp stop_check force
  2466.  
  2467. true
  2468. Name : cprocsp-xer2print
  2469. Version : 5.0.11453
  2470. Release : 5
  2471. Architecture: noarch
  2472. Install Date: (not installed)
  2473. Group : Development/Libraries
  2474. Size : 355773
  2475. License : Crypto-Pro
  2476. Signature : (none)
  2477. Source RPM : lsb-cprocsp-base-5.0.11453-5.src.rpm
  2478. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2479. Build Host : build-x64-cent5.cp.ru
  2480. Relocations : (not relocatable)
  2481. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2482. URL : http://www.cryptopro.ru/
  2483. Summary : Utility and templates to convert xer to pdf/ps/html documents. Build 11453.
  2484. Description :
  2485.  
  2486. This package contains scripts and xsl templates to convert xer files to pdf/ps/html documents.
  2487. Name : ifd-rutokens
  2488. Version : 1.0.1
  2489. Release : 1
  2490. Architecture: x86_64
  2491. Install Date: (not installed)
  2492. Group : System Environment/Libraries
  2493. Size : 156631
  2494. License : GPL
  2495. Signature : (none)
  2496. Source RPM : ifd-rutokens-1.0.1-1.src.rpm
  2497. Build Date : Wed 27 Mar 2013 04:39:54 PM MSK
  2498. Build Host : aktiv-pkcs11c64.aktiv.guardant.ru
  2499. Relocations : (not relocatable)
  2500. Packager : Aktiv Co. <hotline@rutoken.ru>
  2501. Vendor : Aktiv Co.
  2502. URL : http://www.rutoken.ru/
  2503. Summary : Aktiv Co Rutoken S driver
  2504. Description :
  2505. Allows users to access Rutoken S through pcsc-lite.
  2506. postinstall scriptlet (using /bin/sh):
  2507.  
  2508. /etc/rc.d/init.d/pcscd try-restart &>/dev/null || :
  2509. /bin/sh -c "udevadm control --reload-rules" &>/dev/null || :
  2510. /bin/sh -c "/sbin/udevcontrol reload-rules" &>/dev/null || :
  2511.  
  2512. local_usbdropdir=`pkg-config libpcsclite --variable=usbdropdir 2>/dev/null`
  2513. if [ -d "/usr/lib/pcsc/drivers/" -a -z "${local_usbdropdir}" ] ; then
  2514. ln -sf "/usr/lib64/pcsc/drivers//ifd-rutokens.bundle" "/usr/lib/pcsc/drivers/ifd-rutokens.bundle" &>/dev/null
  2515. fi
  2516.  
  2517. if [ -n "${local_usbdropdir}" -a "${local_usbdropdir}"!="/usr/lib64/pcsc/drivers/" ] ; then
  2518. ln -sf "/usr/lib64/pcsc/drivers//ifd-rutokens.bundle" "${local_usbdropdir}/ifd-rutokens.bundle" &>/dev/null
  2519. fi
  2520. postuninstall scriptlet (using /bin/sh):
  2521.  
  2522. /etc/rc.d/init.d/pcscd try-restart &>/dev/null || :
  2523. /bin/sh -c "udevadm control --reload-rules" &>/dev/null || :
  2524. /bin/sh -c "/sbin/udevcontrol reload-rules" &>/dev/null || :
  2525.  
  2526. local_usbdropdir=`pkg-config libpcsclite --variable=usbdropdir 2>/dev/null`
  2527. if [ -n "${local_usbdropdir}" -a -h "${local_usbdropdir}/ifd-rutokens.bundle" ] ; then
  2528. rm -rf "${local_usbdropdir}/ifd-rutokens.bundle" &>/dev/null
  2529. fi
  2530.  
  2531. if [ -h /usr/lib/pcsc/drivers/ifd-rutokens.bundle ] ; then
  2532. rm -rf "/usr/lib/pcsc/drivers/ifd-rutokens.bundle" &>/dev/null
  2533. fi
  2534. Name : lsb-cprocsp-base
  2535. Version : 5.0.11453
  2536. Release : 5
  2537. Architecture: noarch
  2538. Install Date: (not installed)
  2539. Group : Applications/Security
  2540. Size : 547242
  2541. License : Crypto-Pro
  2542. Signature : (none)
  2543. Source RPM : lsb-cprocsp-base-5.0.11453-5.src.rpm
  2544. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2545. Build Host : build-x64-cent5.cp.ru
  2546. Relocations : (not relocatable)
  2547. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2548. URL : http://www.cryptopro.ru/
  2549. Summary : CryptoPro CSP directories and scripts. Build 11453.
  2550. Description :
  2551. This package contains basic directories, supplementary files and directory structure for CryptoPro CSP.
  2552. Install this package if you plan to use any of CryptoPro CSP products.
  2553. postinstall scriptlet (using /bin/sh):
  2554. prefix=/opt/cprocsp
  2555. exec_prefix=/opt/cprocsp
  2556. if test -r /etc/debian_version; then
  2557. if ! dpkg -s lsb-base > /dev/null 2>&1; then
  2558. echo -e "Lsb-core package is needed. Execute\n\
  2559. apt-get install lsb-base\nto install it."
  2560. fi
  2561. fi
  2562.  
  2563. if test ! -d /etc/init.d/; then
  2564. mkdir /etc/init.d
  2565. fi
  2566.  
  2567. if test ! -d /etc/rc.d/; then
  2568. mkdir /etc/rc.d
  2569. fi
  2570.  
  2571.  
  2572. if test -z "";then
  2573. test -r /etc/debian_version && debian=1
  2574. if test -n "$debian" && test -f /usr/sbin/update-rc.d;then
  2575. /usr/sbin/update-rc.d cprocsp defaults
  2576. elif test -f /usr/lib/lsb/install_initd;then
  2577. /usr/lib/lsb/install_initd /etc/init.d/cprocsp
  2578. elif test -f /sbin/chkconfig;then
  2579. /sbin/chkconfig --add cprocsp
  2580. elif test -f /usr/sbin/update-rc.d; then
  2581. /usr/sbin/update-rc.d cprocsp defaults
  2582. else
  2583. for i in 2 3 4 5;do
  2584. ln -sf /etc/init.d/cprocsp /etc/rc.d/rc$i.d/S50cprocsp
  2585. done
  2586. for i in 0 1 6;do
  2587. ln -sf /etc/init.d/cprocsp /etc/rc.d/rc$i.d/K60cprocsp
  2588. done
  2589. fi
  2590. fi
  2591. #cp /var/opt/cprocsp/tmp/cprocsp /etc/init.d/cprocsp
  2592. #ln -sf /etc/init.d/cprocsp /etc/rc2.d/S25cprocsp
  2593. #cp /var/opt/cprocsp/tmp/cprocsp /etc/init.d/cprocsp
  2594. if test -z "#";then
  2595. sysctl vfs.usermount=1
  2596. test -c /dev/fd0 && chmod a+rw /dev/fd0
  2597. cp /var/opt/cprocsp/tmp/cprocsp /etc/init.d/cprocsp
  2598. fi
  2599. if test -z "" && test -d /etc/cron.daily
  2600. then
  2601. echo '#!/bin/sh' >/etc/cron.daily/cprocsp
  2602. echo '/etc/init.d/cprocsp check > /dev/null 2>&1' >>/etc/cron.daily/cprocsp
  2603. chmod +x /etc/cron.daily/cprocsp
  2604. else
  2605. crontab -l 2>/dev/null |fgrep -v '/etc/init.d/cprocsp' > /tmp/crontab.tmp
  2606. echo '00 0,12 * * * /etc/init.d/cprocsp check > /dev/null 2>&1' >> /tmp/crontab.tmp
  2607. # echo '@reboot /etc/init.d/cprocsp start > /dev/null 2>&1' >> /tmp/crontab.tmp
  2608. crontab /tmp/crontab.tmp
  2609. fi
  2610. # на FreeBSD и mac OS явно меняем права на папки
  2611. if test -z "#" || test -z "#"; then
  2612. test ! -d /var/opt/cprocsp/keys && mkdir -p /var/opt/cprocsp/keys
  2613. chmod 1777 /var/opt/cprocsp/keys
  2614. chmod 1777 /var/opt/cprocsp/users
  2615. chmod 1777 /var/opt/cprocsp/tmp
  2616. chmod 711 /var/opt/cprocsp/mnt
  2617. fi
  2618.  
  2619. test_command=test
  2620. #test_command=/bin/test
  2621.  
  2622. $test_command ! -d /usr/share/man/man8 && mkdir -p /usr/share/man/man8
  2623. $test_command ! -d /usr/share/man/ru/man8 && mkdir -p /usr/share/man/ru/man8
  2624.  
  2625. # создаём симлинк, если ни файла любого типа, ни симлинка по этому адресу не существует
  2626. $test_command ! -e /usr/share/man/man8/certmgr.8 && \
  2627. $test_command ! -h /usr/share/man/man8/certmgr.8 && \
  2628. ln -sf /opt/cprocsp/share/man/man8/certmgr.8 /usr/share/man/man8/certmgr.8
  2629.  
  2630. $test_command ! -e /usr/share/man/ru/man8/certmgr.8 && \
  2631. $test_command ! -h /usr/share/man/ru/man8/certmgr.8 && \
  2632. ln -sf /opt/cprocsp/share/man/man8/certmgr.ru.8 /usr/share/man/ru/man8/certmgr.8
  2633.  
  2634. # используем ln -s вместо -sf, чтобы случайно не затереть маны оригинального stunnel
  2635. $test_command ! -e /usr/share/man/man8/stunnel.8 && \
  2636. $test_command ! -h /usr/share/man/man8/stunnel.8 && \
  2637. ln -s /opt/cprocsp/share/man/man8/stunnel.8 /usr/share/man/man8/stunnel.8
  2638.  
  2639. $test_command ! -e /usr/share/man/ru/man8/stunnel.8 && \
  2640. $test_command ! -h /usr/share/man/ru/man8/stunnel.8 && \
  2641. ln -s /opt/cprocsp/share/man/man8/stunnel.ru.8 /usr/share/man/ru/man8/stunnel.8
  2642.  
  2643. # Создаём симлинк ru_RU.UTF-8 на директорию локализации ru_RU.utf8,
  2644. # чтобы catgets работал с обоими названиями кодировки.
  2645. # Если ru_RU.UTF-8 = ru_RU.utf8, не будет сделано ничего.
  2646. $test_command ! -e "/opt/cprocsp/share/locale/ru_RU.UTF-8" && \
  2647. $test_command ! -h "/opt/cprocsp/share/locale/ru_RU.UTF-8" && \
  2648. ln -s "/opt/cprocsp/share/locale/ru_RU.utf8" "/opt/cprocsp/share/locale/ru_RU.UTF-8"
  2649.  
  2650. true
  2651. preuninstall scriptlet (using /bin/sh):
  2652. true
  2653. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2654. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2655. test -h /usr/share/man/man8/certmgr.8 && rm -f /usr/share/man/man8/certmgr.8
  2656. test -h /usr/share/man/ru/man8/certmgr.8 && rm -f /usr/share/man/ru/man8/certmgr.8
  2657.  
  2658. # есть надежда, что так мы не затрём маны оригинального stunnel
  2659. test -h /usr/share/man/man8/stunnel.8 && rm -f /usr/share/man/man8/stunnel.8
  2660. test -h /usr/share/man/ru/man8/stunnel.8 && rm -f /usr/share/man/ru/man8/stunnel.8
  2661.  
  2662. test -h "/opt/cprocsp/share/locale/ru_RU.UTF-8" && rm -f "/opt/cprocsp/share/locale/ru_RU.UTF-8"
  2663.  
  2664. if test -z "" && test -f /etc/cron.daily/cprocsp;then
  2665. rm -f /etc/cron.daily/cprocsp
  2666. else
  2667. crontab -l |fgrep -v '/etc/init.d/cprocsp' > /tmp/crontab.tmp
  2668. crontab /tmp/crontab.tmp
  2669. fi
  2670.  
  2671. /etc/init.d/cprocsp stop_check force
  2672. /etc/init.d/cprocsp stop
  2673.  
  2674. if test -z "";then
  2675. test -r /etc/debian_version && debian=1
  2676. if test -n "$debian" && test -f /usr/sbin/update-rc.d;then
  2677. /usr/sbin/update-rc.d cprocsp remove
  2678. elif test -f /usr/lib/lsb/remove_initd;then
  2679. /usr/lib/lsb/remove_initd /etc/init.d/cprocsp
  2680. elif test -f /sbin/chkconfig;then
  2681. /sbin/chkconfig --del cprocsp
  2682. elif test -f /usr/sbin/update-rc.d; then
  2683. /usr/sbin/update-rc.d cprocsp remove
  2684. else
  2685. for i in 2 3 4 5;do
  2686. rm /etc/rc.d/rc$i.d/S50cprocsp
  2687. done
  2688. for i in 0 1 6;do
  2689. rm /etc/rc.d/rc$i.d/K60cprocsp
  2690. done
  2691. fi
  2692. true
  2693. fi
  2694.  
  2695. #rm -f /etc/init.d/cprocsp /etc/rc2.d/S25cprocsp
  2696. #rm /etc/rc.d/cprocsp
  2697.  
  2698. true
  2699. postuninstall scriptlet (using /bin/sh):
  2700. true
  2701. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2702. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2703. prefix=/opt/cprocsp
  2704. exec_prefix=/opt/cprocsp
  2705. if test -z "";then
  2706. if test "$1" = 0 || test "$1" = "remove"; then
  2707. cp /etc/ld.so.conf /tmp/ld.so.conf.$$
  2708. sed "/`echo /opt/cprocsp/lib/amd64|sed 's#/#\\\\/#g'`/d" < /tmp/ld.so.conf.$$ > /etc/ld.so.conf
  2709. /sbin/ldconfig -f /etc/ld.so.conf
  2710. fi
  2711. fi
  2712. true
  2713. Name : lsb-cprocsp-ca-certs
  2714. Version : 5.0.11453
  2715. Release : 5
  2716. Architecture: noarch
  2717. Install Date: (not installed)
  2718. Group : Applications/Security
  2719. Size : 21919
  2720. License : Crypto-Pro
  2721. Signature : (none)
  2722. Source RPM : lsb-cprocsp-base-5.0.11453-5.src.rpm
  2723. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2724. Build Host : build-x64-cent5.cp.ru
  2725. Relocations : (not relocatable)
  2726. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2727. URL : http://www.cryptopro.ru/
  2728. Summary : CA certificates. Build 11453.
  2729. Description :
  2730.  
  2731. This package contains authorized root and intermediate CA certificates.
  2732. postinstall scriptlet (using /bin/sh):
  2733. prefix=/opt/cprocsp
  2734. exec_prefix=/opt/cprocsp
  2735.  
  2736. # т.к. это noarch-пакет, то зашивать путь к certmgr мы не можем, поэтому ищем его
  2737. # в macOS путь фиксирован, для остальных *nix используем * вместо жёстко заданной архитектуры
  2738. #ls_result=`ls /opt/cprocsp/bin/certmgr 2>/dev/null`
  2739. ls_result=`ls /opt/cprocsp/bin/*/certmgr 2>/dev/null`
  2740. if test $? -eq 0; then
  2741. # ls_result может содержать более одного результата, поэтому вырезаем первый результат
  2742. certmgr=`echo $ls_result | awk '{ print $1 }'`
  2743. # добавление сертификатов в соответствующие хранилища. путь к файлу определяет, в какое хранилище его следует установить
  2744. # чтобы не выводить на экран информацию из устанавливаемых сертификатов, перенаправляем стандарный вывод в /dev/null
  2745. ls -d /var/opt/cprocsp/tmpcerts/root/* | xargs -n 1 $certmgr -install -store mroot -file 1>/dev/null || printf "Failed to install root certificates!\n"
  2746. ls -d /var/opt/cprocsp/tmpcerts/ca/* | xargs -n 1 $certmgr -install -store mca -file 1>/dev/null || printf "Failed to install intermediate certificates!\n"
  2747. else
  2748. printf "Warning: certmgr not found.\n"
  2749. printf "Cannot install authorized certificates into stores.\n"
  2750. printf "CryptoPro CAPILite package must be installed first.\n"
  2751. fi
  2752.  
  2753. true
  2754. Name : lsb-cprocsp-capilite-64
  2755. Version : 5.0.11453
  2756. Release : 5
  2757. Architecture: x86_64
  2758. Install Date: (not installed)
  2759. Group : Development/Libraries
  2760. Size : 28150713
  2761. License : Crypto-Pro
  2762. Signature : (none)
  2763. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2764. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2765. Build Host : build-x64-cent5.cp.ru
  2766. Relocations : (not relocatable)
  2767. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2768. URL : http://www.cryptopro.ru/
  2769. Summary : CryptoAPI lite. Build 11453.
  2770. Description :
  2771.  
  2772. preinstall scriptlet (using /bin/sh):
  2773. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2774. case `uname -s` in
  2775. Linux)
  2776. unset RPM_INSTALL_NAME
  2777. lib_list="libgcc_s.so.1"
  2778. lib_list="${lib_list} libc.so.6 libdl.so.2 libm.so.6 libpthread.so.0 libstdc++"
  2779. ld_cmd=`/sbin/ldconfig -p`
  2780. ;;
  2781. FreeBSD)
  2782. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 libcapi10.so.4 librdrsup.so.4"
  2783. ld_cmd=`/sbin/ldconfig -r`
  2784. ;;
  2785. *)
  2786. lib_list=""
  2787. # unsupported
  2788. ;;
  2789. esac
  2790.  
  2791. ld_text="$ld_cmd"
  2792. for library in $lib_list
  2793. do
  2794. res=`echo "$ld_text" | grep "$library"`
  2795. if [ "$res" = "" ]; then
  2796. echo "$library was not found!"
  2797. exit 1
  2798. fi
  2799. done
  2800.  
  2801. true
  2802. postinstall scriptlet (using /bin/sh):
  2803. prefix=/opt/cprocsp
  2804. exec_prefix=/opt/cprocsp
  2805. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2806.  
  2807. unset RPM_INSTALL_NAME
  2808. /sbin/ldconfig -f /etc/ld.so.conf
  2809. #/sbin/ldconfig -R
  2810.  
  2811. cpconfig -ini '\config\apppath' -add string libcapi20.so /opt/cprocsp/lib/amd64/libcapi20.so
  2812.  
  2813. # create several local machine stores if they don't exist
  2814. /opt/cprocsp/bin/amd64/certmgr -list -crl -store mMy > /dev/null 2>&1
  2815. /opt/cprocsp/bin/amd64/certmgr -list -crl -store mCryptoProTrustedStore > /dev/null 2>&1
  2816.  
  2817. # update all stores to Windows-compatible format. we don't want to silence
  2818. # stderr because user should be notified about errors
  2819. find '/var/opt/cprocsp/users/' -name '*.sto' -type f \
  2820. -exec /opt/cprocsp/bin/amd64/certmgr -updatestore -crl -file {} \; > /dev/null
  2821. find '/var/opt/cprocsp/users/' -name '*.sto' -type f \
  2822. -exec /opt/cprocsp/bin/amd64/certmgr -updatestore -cert -file {} \; > /dev/null
  2823.  
  2824. true
  2825. preuninstall scriptlet (using /bin/sh):
  2826. true
  2827. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2828. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2829. /etc/init.d/cprocsp stop_check force
  2830.  
  2831. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  2832. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2833. cpconfig -ini '\config\apppath\libcapi20.so' -delparam
  2834. fi
  2835.  
  2836. true
  2837. postuninstall scriptlet (using /bin/sh):
  2838. true
  2839. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2840. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2841. prefix=/opt/cprocsp
  2842. /sbin/ldconfig -f /etc/ld.so.conf
  2843. #/sbin/ldconfig -R
  2844. true
  2845. Name : lsb-cprocsp-pkcs11-64
  2846. Version : 5.0.11453
  2847. Release : 5
  2848. Architecture: x86_64
  2849. Install Date: (not installed)
  2850. Group : Development/Libraries
  2851. Size : 1431306
  2852. License : Crypto-Pro
  2853. Signature : (none)
  2854. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2855. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2856. Build Host : build-x64-cent5.cp.ru
  2857. Relocations : (not relocatable)
  2858. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2859. URL : http://www.cryptopro.ru/
  2860. Summary : CryptoPro PKCS11. Build 11453.
  2861. Description :
  2862.  
  2863. preinstall scriptlet (using /bin/sh):
  2864. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2865. case `uname -s` in
  2866. Linux)
  2867. unset RPM_INSTALL_NAME
  2868. lib_list="libgcc_s.so.1"
  2869. lib_list="${lib_list} libc.so.6 libdl.so.2 libm.so.6 libpthread.so.0 libstdc++"
  2870. ld_cmd=`/sbin/ldconfig -p`
  2871. ;;
  2872. FreeBSD)
  2873. lib_list="libc.so.7 libcapi20.so.4 libcpasn1.so.4 libcpext.so.4 libcplib.so.4 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 liburlretrieve.so.4 libcapi10.so.4 librdrsup.so.4"
  2874. ld_cmd=`/sbin/ldconfig -r`
  2875. ;;
  2876. *)
  2877. lib_list=""
  2878. # unsupported
  2879. ;;
  2880. esac
  2881.  
  2882. ld_text="$ld_cmd"
  2883. for library in $lib_list
  2884. do
  2885. res=`echo "$ld_text" | grep "$library"`
  2886. if [ "$res" = "" ]; then
  2887. echo "$library was not found!"
  2888. exit 1
  2889. fi
  2890. done
  2891.  
  2892. true
  2893. postinstall scriptlet (using /bin/sh):
  2894. prefix=/opt/cprocsp
  2895. exec_prefix=/opt/cprocsp
  2896. unset RPM_INSTALL_NAME
  2897. /sbin/ldconfig -f /etc/ld.so.conf
  2898. #/sbin/ldconfig -R
  2899. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2900. cpconfig -ini '\config\apppath' -add string libcppkcs11.so /opt/cprocsp/lib/amd64/libcppkcs11.so
  2901. cpconfig -ini '\config\PKCS11\slot0' -add string "ProvGOST" ""
  2902. cpconfig -ini '\config\PKCS11\slot0' -add string "Firefox" ""
  2903. cpconfig -ini '\config\PKCS11\slot0' -add string "reader" ""
  2904. true
  2905. preuninstall scriptlet (using /bin/sh):
  2906. true
  2907. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2908. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2909. /etc/init.d/cprocsp stop_check force
  2910.  
  2911. true
  2912. postuninstall scriptlet (using /bin/sh):
  2913. true
  2914. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  2915. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  2916. prefix=/opt/cprocsp
  2917. exec_prefix=/opt/cprocsp
  2918. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  2919. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2920. cpconfig -ini '\config\apppath\libcppkcs11.so' -delparam > /dev/null
  2921. cpconfig -ini '\config\PKCS11\slot0' -delsection > /dev/null
  2922. fi
  2923. true
  2924. Name : lsb-cprocsp-rdr-64
  2925. Version : 5.0.11453
  2926. Release : 5
  2927. Architecture: x86_64
  2928. Install Date: (not installed)
  2929. Group : Development/Libraries
  2930. Size : 1218213
  2931. License : Crypto-Pro
  2932. Signature : (none)
  2933. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  2934. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  2935. Build Host : build-x64-cent5.cp.ru
  2936. Relocations : (not relocatable)
  2937. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  2938. URL : http://www.cryptopro.ru/
  2939. Summary : CryptoPro CSP readers. Build 11453.
  2940. Description :
  2941.  
  2942. preinstall scriptlet (using /bin/sh):
  2943. if test ! -f /etc/init.d/cprocsp && test ! -f /etc/init.d/cprocsp.dpkg-new; then
  2944. echo "file /etc/init.d/cprocsp doesn't exist"
  2945. exit 1
  2946. fi
  2947.  
  2948. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  2949. case `uname -s` in
  2950. Linux)
  2951. unset RPM_INSTALL_NAME
  2952. lib_list="libgcc_s.so.1"
  2953. lib_list="${lib_list} libc.so.6 libdl.so.2 libm.so.6 libpthread.so.0 libstdc++"
  2954. ld_cmd=`/sbin/ldconfig -p`
  2955. ;;
  2956. FreeBSD)
  2957. lib_list="libc.so.7 libgcc_s.so.1 libm.so.5 libstdc++ libthr.so.3 "
  2958. ld_cmd=`/sbin/ldconfig -r`
  2959. ;;
  2960. *)
  2961. lib_list=""
  2962. # unsupported
  2963. ;;
  2964. esac
  2965.  
  2966. ld_text="$ld_cmd"
  2967. for library in $lib_list
  2968. do
  2969. res=`echo "$ld_text" | grep "$library"`
  2970. if [ "$res" = "" ]; then
  2971. echo "$library was not found!"
  2972. exit 1
  2973. fi
  2974. done
  2975.  
  2976. true
  2977. postinstall scriptlet (using /bin/sh):
  2978. prefix=/opt/cprocsp
  2979. exec_prefix=/opt/cprocsp
  2980. if test -z "";then
  2981. if ! grep -q '/opt/cprocsp/lib/amd64' /etc/ld.so.conf;then
  2982. echo "/opt/cprocsp/lib/amd64" > /tmp/ld_tmp.$$
  2983. cat /tmp/ld_tmp.$$ /etc/ld.so.conf >/tmp/ld.so.conf.$$
  2984. rm /tmp/ld_tmp.$$
  2985. mv /tmp/ld.so.conf.$$ /etc/ld.so.conf
  2986. fi
  2987. unset RPM_INSTALL_NAME
  2988. /sbin/ldconfig -f /etc/ld.so.conf
  2989. fi
  2990. #/sbin/ldconfig -m /opt/cprocsp/lib/amd64
  2991. PATH=$PATH:/opt/cprocsp/sbin/amd64
  2992. cpconfig -ini '\config\apppath' -add string libcapi10.so /opt/cprocsp/lib/amd64/libcapi10.so
  2993. cpconfig -ini '\config\apppath' -add string librdrfat12.so /opt/cprocsp/lib/amd64/librdrfat12.so
  2994. # cpconfig -ini '\config\apppath' -add string librdrrdr.so /opt/cprocsp/lib/amd64/librdrrdr.so
  2995. # cpconfig -ini '\config\apppath' -add string librdrrndm.so /opt/cprocsp/lib/amd64/librdrrndm.so
  2996. cpconfig -ini '\config\apppath' -add string librdrdsrf.so /opt/cprocsp/lib/amd64/librdrdsrf.so
  2997. cpconfig -ini '\config\apppath' -add string libcpui.so /opt/cprocsp/lib/amd64/libcpui.so
  2998.  
  2999. check_libcurl_compatibility() {
  3000. command -v file > /dev/null 2>&1 || return 0
  3001. is64arch=0
  3002. is64arch=1
  3003. #is64arch=1
  3004. is64lib=0
  3005. if test -z '' ; then
  3006. file -L "${libcurl}" | grep '64-bit' > /dev/null 2>&1
  3007. else
  3008. file "${libcurl}" | grep '64-bit' > /dev/null 2>&1
  3009. fi
  3010. test "$?" -eq 0 && is64lib=1
  3011. test "${is64arch}" -eq "${is64lib}" && return 0
  3012. return 1
  3013. }
  3014. search_dirs=`echo /lib* /usr/lib* /usr/local/lib* /opt/CPcvpn-*/lib* /opt/sfw/lib* | xargs -n1 | grep -v '*' | xargs`
  3015. ld_cmd="ldconfig -p ; find ${search_dirs} -name \*libcurl\*"
  3016. #ld_cmd='ldconfig -r'
  3017. #ld_cmd="find ${search_dirs} -name \*libcurl\*"
  3018. libcurl_checked='manually_set_path_to_libcurl.so'
  3019. for libcurl in `eval "${ld_cmd}" | grep '/libcurl.*so' | awk '{print $NF}' | xargs` \
  3020. `eval "${ld_cmd}" | grep 'libcurl-gnutls.*so' | awk '{print $NF}' | xargs` ; do
  3021. if check_libcurl_compatibility ; then
  3022. libcurl_checked="${libcurl}"
  3023. break
  3024. fi
  3025. done
  3026. cpconfig -ini '\config\apppath' -add string libcurl.so "${libcurl_checked}"
  3027.  
  3028. if test -z "";then
  3029. cpconfig -ini '\config\apppath' -add string mount_flash.sh /opt/cprocsp/sbin/amd64/mount_flash.sh
  3030. cpconfig -ini '\config\KeyDevices\FLASH' -add string DLL librdrfat12.so
  3031. cpconfig -ini '\config\KeyDevices\FLASH' -add string Script mount_flash.sh
  3032. cpconfig -hardware reader -add FLASH -name FLASH
  3033. fi
  3034. cpconfig -hardware rndm -add CPSD -name 'КПИМ' -level 3 > /dev/null
  3035. cpconfig -ini '\config\Random\CPSD\Default' -add string '/db1/kis_1' /var/opt/cprocsp/dsrf/db1/kis_1
  3036. cpconfig -ini '\config\Random\CPSD\Default' -add string '/db2/kis_1' /var/opt/cprocsp/dsrf/db2/kis_1
  3037.  
  3038. cpconfig -license -view > /dev/null 2> /dev/null
  3039. test $? = 0 || cpconfig -license -set 4040E-G0037-EK8R3-C6K4U-HCXQG
  3040. true
  3041. preuninstall scriptlet (using /bin/sh):
  3042. true
  3043. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  3044. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  3045. /etc/init.d/cprocsp stop_check force
  3046.  
  3047. true
  3048. postuninstall scriptlet (using /bin/sh):
  3049. true
  3050. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  3051. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  3052. prefix=/opt/cprocsp
  3053. exec_prefix=/opt/cprocsp
  3054. if test -z "";then
  3055. if test "$1" = 0 || test "$1" = "remove"; then
  3056. cp /etc/ld.so.conf /tmp/ld.so.conf.$$
  3057. sed "/`echo /opt/cprocsp/lib/amd64|sed 's#/#\\\\/#g'`/d" < /tmp/ld.so.conf.$$ > /etc/ld.so.conf
  3058. /sbin/ldconfig -f /etc/ld.so.conf
  3059. fi
  3060. fi
  3061.  
  3062. if test -z "#";then
  3063. libs=`ldconfig -r | grep search | awk -F":" '{for (i=2; i<=NF; i++) print $i}' | grep -v cpro`
  3064. ldconfig $libs
  3065. fi
  3066. true
  3067. Name : lsb-cprocsp-rdr-accord-64
  3068. Version : 5.0.11453
  3069. Release : 5
  3070. Architecture: x86_64
  3071. Install Date: (not installed)
  3072. Group : Development/Libraries
  3073. Size : 13732
  3074. License : Crypto-Pro
  3075. Signature : (none)
  3076. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  3077. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  3078. Build Host : build-x64-cent5.cp.ru
  3079. Relocations : (not relocatable)
  3080. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  3081. URL : http://www.cryptopro.ru/
  3082. Summary : Accord components for CryptoPro CSP readers. Build 11453.
  3083. Description :
  3084.  
  3085. preinstall scriptlet (using /bin/sh):
  3086. /etc/init.d/cprocsp stop_check force
  3087. case `uname -s` in
  3088. Linux)
  3089. unset RPM_INSTALL_NAME
  3090. lib_list="libc.so.6 libpthread.so.0 librdrsup.so.4"
  3091. ld_cmd=`/sbin/ldconfig -p`
  3092. ;;
  3093. FreeBSD)
  3094. lib_list=""
  3095. ld_cmd=`/sbin/ldconfig -r`
  3096. ;;
  3097. *)
  3098. lib_list=""
  3099. # unsupported
  3100. ;;
  3101. esac
  3102.  
  3103. ld_text="$ld_cmd"
  3104. for library in $lib_list
  3105. do
  3106. res=`echo "$ld_text" | grep "$library"`
  3107. if [ "$res" = "" ]; then
  3108. echo "$library was not found!"
  3109. exit 1
  3110. fi
  3111. done
  3112.  
  3113. true
  3114. postinstall scriptlet (using /bin/sh):
  3115. prefix=/opt/cprocsp
  3116. exec_prefix=/opt/cprocsp
  3117. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3118. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3119. cpconfig -ini '\config\apppath' -add string librdraccord.so /opt/cprocsp/lib/amd64/librdraccord.so
  3120. cpconfig -ini '\config\apppath' -add string libtm.so /opt/cprocsp/lib/amd64/libtm.so
  3121. cpconfig -ini '\config\Random\Accord' -add string DLL librdraccord.so
  3122. #cpconfig -ini '\config\Random\Accord5' -add string DLL librdraccord.so
  3123. cpconfig -hardware rndm -add accord -name 'Аккорд' >&-
  3124. #cpconfig -hardware rndm -add accord5 -name 'Аккорд5' >&-
  3125. true
  3126. preuninstall scriptlet (using /bin/sh):
  3127. prefix=/opt/cprocsp
  3128. exec_prefix=/opt/cprocsp
  3129. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3130. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  3131. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3132. cpconfig -hardware rndm -del accord > /dev/null
  3133. cpconfig -ini '\config\Random\Accord' -delsection
  3134. cpconfig -hardware rndm -del accord5 > /dev/null
  3135. cpconfig -ini '\config\Random\Accord5' -delsection
  3136. cpconfig -ini '\config\apppath\librdraccord.so' -delparam
  3137. cpconfig -ini '\config\apppath\libtm.so' -delparam
  3138. fi
  3139. true
  3140. Name : lsb-cprocsp-rdr-ancud-64
  3141. Version : 5.0.11453
  3142. Release : 5
  3143. Architecture: x86_64
  3144. Install Date: (not installed)
  3145. Group : Development/Libraries
  3146. Size : 21611
  3147. License : Crypto-Pro
  3148. Signature : (none)
  3149. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  3150. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  3151. Build Host : build-x64-cent5.cp.ru
  3152. Relocations : (not relocatable)
  3153. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  3154. URL : http://www.cryptopro.ru/
  3155. Summary : ANCUD CRYPTON-SCR/RNG support module. Build 11453.
  3156. Description :
  3157.  
  3158. preinstall scriptlet (using /bin/sh):
  3159. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  3160. case `uname -s` in
  3161. Linux)
  3162. unset RPM_INSTALL_NAME
  3163. lib_list="libc.so.6 libpthread.so.0"
  3164. ld_cmd=`/sbin/ldconfig -p`
  3165. ;;
  3166. FreeBSD)
  3167. lib_list=""
  3168. ld_cmd=`/sbin/ldconfig -r`
  3169. ;;
  3170. *)
  3171. lib_list=""
  3172. # unsupported
  3173. ;;
  3174. esac
  3175.  
  3176. ld_text="$ld_cmd"
  3177. for library in $lib_list
  3178. do
  3179. res=`echo "$ld_text" | grep "$library"`
  3180. if [ "$res" = "" ]; then
  3181. echo "$library was not found!"
  3182. exit 1
  3183. fi
  3184. done
  3185.  
  3186. true
  3187. postinstall scriptlet (using /bin/sh):
  3188. prefix=/opt/cprocsp
  3189. exec_prefix=/opt/cprocsp
  3190. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3191. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3192. cpconfig -ini '\config\apppath' -add string librdrancud.so /opt/cprocsp/lib/amd64/librdrancud.so
  3193. cpconfig -ini '\config\Random\ancud' -add string DLL librdrancud.so
  3194. cpconfig -hardware rndm -add ancud -name 'Ancud SCR/RNG' >&-
  3195. true
  3196. preuninstall scriptlet (using /bin/sh):
  3197. true
  3198. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  3199. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  3200. prefix=/opt/cprocsp
  3201. exec_prefix=/opt/cprocsp
  3202. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3203. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  3204. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3205. cpconfig -hardware rndm -del ancud > /dev/null
  3206. cpconfig -ini '\config\Random\ancud' -delsection
  3207. cpconfig -ini '\config\apppath\librdrancud.so' -delparam
  3208. fi
  3209. true
  3210. Name : lsb-cprocsp-rdr-crypton-64
  3211. Version : 5.0.11453
  3212. Release : 5
  3213. Architecture: x86_64
  3214. Install Date: (not installed)
  3215. Group : Development/Libraries
  3216. Size : 32984
  3217. License : Crypto-Pro
  3218. Signature : (none)
  3219. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  3220. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  3221. Build Host : build-x64-cent5.cp.ru
  3222. Relocations : (not relocatable)
  3223. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  3224. URL : http://www.cryptopro.ru/
  3225. Summary : ANCUD APMDZ Crypton-Lock RNG support module. Build 11453.
  3226. Description :
  3227.  
  3228. preinstall scriptlet (using /bin/sh):
  3229. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  3230. case `uname -s` in
  3231. Linux)
  3232. unset RPM_INSTALL_NAME
  3233. lib_list="libc.so.6 libpthread.so.0"
  3234. ld_cmd=`/sbin/ldconfig -p`
  3235. ;;
  3236. FreeBSD)
  3237. lib_list=""
  3238. ld_cmd=`/sbin/ldconfig -r`
  3239. ;;
  3240. *)
  3241. lib_list=""
  3242. # unsupported
  3243. ;;
  3244. esac
  3245.  
  3246. ld_text="$ld_cmd"
  3247. for library in $lib_list
  3248. do
  3249. res=`echo "$ld_text" | grep "$library"`
  3250. if [ "$res" = "" ]; then
  3251. echo "$library was not found!"
  3252. exit 1
  3253. fi
  3254. done
  3255.  
  3256. true
  3257. postinstall scriptlet (using /bin/sh):
  3258. prefix=/opt/cprocsp
  3259. exec_prefix=/opt/cprocsp
  3260. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3261. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3262. cpconfig -ini '\config\apppath' -add string librdrcrypton.so /opt/cprocsp/lib/amd64/librdrcrypton.so
  3263. cpconfig -ini '\config\Random\crypton' -add string DLL librdrcrypton.so
  3264. cpconfig -hardware rndm -add crypton -name 'Crypton-Lock RNG' >&-
  3265. true
  3266. preuninstall scriptlet (using /bin/sh):
  3267. true
  3268. # Не исполнять preremove и postremove скрипт в rpm при upgrade
  3269. ! test -r /etc/debian_version && test "$1" -eq 1 && exit 0
  3270. prefix=/opt/cprocsp
  3271. exec_prefix=/opt/cprocsp
  3272. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3273. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  3274. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3275. cpconfig -hardware rndm -del crypton > /dev/null
  3276. cpconfig -ini '\config\Random\crypton' -delsection
  3277. cpconfig -ini '\config\apppath\librdrcrypton.so' -delparam
  3278. fi
  3279. true
  3280. Name : lsb-cprocsp-rdr-maxim-64
  3281. Version : 5.0.11453
  3282. Release : 5
  3283. Architecture: x86_64
  3284. Install Date: (not installed)
  3285. Group : Development/Libraries
  3286. Size : 13780
  3287. License : Crypto-Pro
  3288. Signature : (none)
  3289. Source RPM : lsb-cprocsp-kc1-64-5.0.11453-5.src.rpm
  3290. Build Date : Tue 07 May 2019 12:23:51 AM MSK
  3291. Build Host : build-x64-cent5.cp.ru
  3292. Relocations : (not relocatable)
  3293. Packager : CryptoPro Ltd. <support@cryptopro.ru>
  3294. URL : http://www.cryptopro.ru/
  3295. Summary : Maxim RNG support module. Build 11453.
  3296. Description :
  3297.  
  3298. preinstall scriptlet (using /bin/sh):
  3299. test -f /etc/init.d/cprocsp && /etc/init.d/cprocsp stop_check force
  3300. case `uname -s` in
  3301. Linux)
  3302. unset RPM_INSTALL_NAME
  3303. lib_list="libc.so.6 libpthread.so.0"
  3304. ld_cmd=`/sbin/ldconfig -p`
  3305. ;;
  3306. FreeBSD)
  3307. lib_list=""
  3308. ld_cmd=`/sbin/ldconfig -r`
  3309. ;;
  3310. *)
  3311. lib_list=""
  3312. # unsupported
  3313. ;;
  3314. esac
  3315.  
  3316. ld_text="$ld_cmd"
  3317. for library in $lib_list
  3318. do
  3319. res=`echo "$ld_text" | grep "$library"`
  3320. if [ "$res" = "" ]; then
  3321. echo "$library was not found!"
  3322. exit 1
  3323. fi
  3324. done
  3325.  
  3326. true
  3327. postinstall scriptlet (using /bin/sh):
  3328. prefix=/opt/cprocsp
  3329. exec_prefix=/opt/cprocsp
  3330. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3331. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3332. cpconfig -ini '\config\apppath' -add string librdrmaxim.so /opt/cprocsp/lib/amd64/librdrmaxim.so
  3333. cpconfig -ini '\config\Random\maxim' -add string DLL librdrmaxim.so
  3334. cpconfig -hardware rndm -add maxim -name 'Maxim RNG' >&-
  3335. true
  3336. preuninstall scriptlet (using /bin/sh):
  3337. prefix=/opt/cprocsp
  3338. exec_prefix=/opt/cprocsp
  3339. /sbin/ldconfig /opt/cprocsp/lib/amd64
  3340. if test -f "/opt/cprocsp/sbin/amd64/cpconfig"; then
  3341. PATH=$PATH:/opt/cprocsp/sbin/amd64
  3342. cpconfig -hardware rndm -del maxim > /dev/null
  3343. cpconfig -ini '\config\Random\maxim' -delsection
  3344. cpconfig -ini '\config\apppath\librdrmaxim.so' -delparam
  3345. fi
  3346. true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement