2023-02-16 14:33:42 +01:00
|
|
|
--- opencryptoki-3.20.0/Makefile.am 2023-02-13 03:22:42.000000000 -0500
|
|
|
|
+++ opencryptoki-3.20.0/Makefile.am 2023-02-13 10:40:14.561790695 -0500
|
|
|
|
@@ -39,7 +39,6 @@
|
|
|
|
include doc/doc.mk
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
- getent group pkcs11 > /dev/null || $(GROUPADD) -r pkcs11
|
|
|
|
if ENABLE_LIBRARY
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(libdir)/opencryptoki/stdll
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(libdir)/pkcs11
|
|
|
|
@@ -60,12 +59,9 @@
|
2018-11-16 17:33:50 +01:00
|
|
|
cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
|
|
|
|
ln -fs libpkcs11_cca.so PKCS11_CCA.so
|
2014-07-02 11:29:50 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/ccatok/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ccatok/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ccatok
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ccatok/TOK_OBJ
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ccatok
|
2014-07-02 11:29:50 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir)/ccatok
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir)/ccatok
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir)/ccatok
|
2022-10-05 18:08:30 +02:00
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki || $(MKDIR_P) $(DESTDIR)$(sysconfdir)/opencryptoki || true
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki/ccatok.conf || $(INSTALL) -m 644 $(srcdir)/usr/lib/cca_stdll/ccatok.conf $(DESTDIR)$(sysconfdir)/opencryptoki/ccatok.conf || true
|
2023-02-16 14:33:42 +01:00
|
|
|
@@ -74,12 +70,9 @@
|
2014-07-02 11:29:50 +02:00
|
|
|
cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
|
2018-11-16 17:33:50 +01:00
|
|
|
ln -fs libpkcs11_ep11.so PKCS11_EP11.so
|
2014-07-02 11:29:50 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/ep11tok/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ep11tok/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ep11tok
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ep11tok/TOK_OBJ
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/ep11tok
|
2014-07-02 11:29:50 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir)/ep11tok
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir)/ep11tok
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir)/ep11tok
|
2018-11-16 17:33:50 +01:00
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki || $(MKDIR_P) $(DESTDIR)$(sysconfdir)/opencryptoki || true
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki/ep11tok.conf || $(INSTALL) -m 644 $(srcdir)/usr/lib/ep11_stdll/ep11tok.conf $(DESTDIR)$(sysconfdir)/opencryptoki/ep11tok.conf || true
|
2023-02-16 14:33:42 +01:00
|
|
|
@@ -87,30 +80,24 @@
|
2022-10-05 18:08:30 +02:00
|
|
|
endif
|
|
|
|
if ENABLE_P11SAK
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki || $(MKDIR_P) $(DESTDIR)$(sysconfdir)/opencryptoki || true
|
|
|
|
- test -f $(DESTDIR)$(sysconfdir)/opencryptoki/p11sak_defined_attrs.conf || $(INSTALL) -g pkcs11 -m 0640 $(srcdir)/usr/sbin/p11sak/p11sak_defined_attrs.conf $(DESTDIR)$(sysconfdir)/opencryptoki/p11sak_defined_attrs.conf || true
|
|
|
|
+ test -f $(DESTDIR)$(sysconfdir)/opencryptoki/p11sak_defined_attrs.conf || $(INSTALL) -m 0640 $(srcdir)/usr/sbin/p11sak/p11sak_defined_attrs.conf $(DESTDIR)$(sysconfdir)/opencryptoki/p11sak_defined_attrs.conf || true
|
|
|
|
endif
|
|
|
|
if ENABLE_ICATOK
|
2014-07-02 11:29:50 +02:00
|
|
|
cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
|
2018-11-16 17:33:50 +01:00
|
|
|
ln -fs libpkcs11_ica.so PKCS11_ICA.so
|
2014-07-02 11:29:50 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/lite/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/lite/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/lite
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/lite/TOK_OBJ
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/lite
|
2014-07-02 11:29:50 +02:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir)/lite
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir)/lite
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir)/lite
|
2018-11-16 17:33:50 +01:00
|
|
|
endif
|
|
|
|
if ENABLE_SWTOK
|
2014-02-06 10:10:48 +01:00
|
|
|
cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
|
2018-11-16 17:33:50 +01:00
|
|
|
ln -fs libpkcs11_sw.so PKCS11_SW.so
|
2014-02-06 10:10:48 +01:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/swtok/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/swtok/TOK_OBJ
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/swtok
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/swtok/TOK_OBJ
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/swtok
|
2014-02-06 10:10:48 +01:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir)/swtok
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir)/swtok
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir)/swtok
|
2018-11-16 17:33:50 +01:00
|
|
|
endif
|
|
|
|
if ENABLE_TPMTOK
|
2023-02-16 14:33:42 +01:00
|
|
|
@@ -118,10 +105,8 @@
|
2014-02-06 10:10:48 +01:00
|
|
|
cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
|
2018-11-16 17:33:50 +01:00
|
|
|
ln -fs libpkcs11_tpm.so PKCS11_TPM.so
|
2014-02-06 10:10:48 +01:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/tpm
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/tpm
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/tpm
|
2014-02-06 10:10:48 +01:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir)/tpm
|
2018-11-16 17:33:50 +01:00
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir)/tpm
|
2016-04-16 19:18:42 +02:00
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir)/tpm
|
2018-11-16 17:33:50 +01:00
|
|
|
endif
|
|
|
|
if ENABLE_ICSFTOK
|
2023-02-16 14:33:42 +01:00
|
|
|
@@ -129,16 +114,14 @@
|
2018-11-16 17:33:50 +01:00
|
|
|
cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
|
|
|
|
ln -fs libpkcs11_icsf.so PKCS11_ICSF.so
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/icsf
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(localstatedir)/lib/opencryptoki/icsf
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(localstatedir)/lib/opencryptoki/icsf
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir)/icsf
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir)/icsf
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir)/icsf
|
|
|
|
endif
|
|
|
|
if ENABLE_DAEMON
|
2022-10-05 18:08:30 +02:00
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki || $(MKDIR_P) $(DESTDIR)$(sysconfdir)/opencryptoki || true
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)/opencryptoki/opencryptoki.conf || $(INSTALL) -m 644 $(srcdir)/usr/sbin/pkcsslotd/opencryptoki.conf $(DESTDIR)$(sysconfdir)/opencryptoki/opencryptoki.conf || true
|
|
|
|
- test -f $(DESTDIR)$(sysconfdir)/opencryptoki/strength.conf || $(INSTALL) -m 640 -o root -g pkcs11 -T $(srcdir)/doc/strength-example.conf $(DESTDIR)$(sysconfdir)/opencryptoki/strength.conf || true
|
|
|
|
+ test -f $(DESTDIR)$(sysconfdir)/opencryptoki/strength.conf || $(INSTALL) -m 640 -o root -T $(srcdir)/doc/strength-example.conf $(DESTDIR)$(sysconfdir)/opencryptoki/strength.conf || true
|
2023-02-16 14:33:42 +01:00
|
|
|
endif
|
|
|
|
$(MKDIR_P) $(DESTDIR)/etc/ld.so.conf.d
|
|
|
|
echo "$(libdir)/opencryptoki" >\
|
|
|
|
@@ -149,7 +132,6 @@
|
2018-11-16 17:33:50 +01:00
|
|
|
@echo "Remember you must run ldconfig before using the above settings"
|
|
|
|
@echo "--------------------------------------------------------------"
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(lockdir) $(DESTDIR)$(logdir)
|
|
|
|
- $(CHGRP) pkcs11 $(DESTDIR)$(lockdir) $(DESTDIR)$(logdir)
|
|
|
|
$(CHMOD) 0770 $(DESTDIR)$(lockdir) $(DESTDIR)$(logdir)
|
|
|
|
|
2014-02-06 10:10:48 +01:00
|
|
|
|