This reduces the chances of misusing the interfaces.
---
 usr/lib/pkcs11/aep_stdll/Makefile.am      |   11 +----------
 usr/lib/pkcs11/bcom_stdll/Makefile.am     |   11 +----------
 usr/lib/pkcs11/cca_stdll/Makefile.am      |   12 +-----------
 usr/lib/pkcs11/cr_stdll/Makefile.am       |   11 +----------
 usr/lib/pkcs11/ica_s390_stdll/Makefile.am |   12 +-----------
 usr/lib/pkcs11/ica_stdll/Makefile.am      |   11 +----------
 usr/lib/pkcs11/leeds_stdll/Makefile.am    |   11 +----------
 usr/lib/pkcs11/soft_stdll/Makefile.am     |   10 ----------
 usr/lib/pkcs11/tpm_stdll/Makefile.am      |   10 ----------
 9 files changed, 7 insertions(+), 92 deletions(-)

diff --git a/usr/lib/pkcs11/aep_stdll/Makefile.am 
b/usr/lib/pkcs11/aep_stdll/Makefile.am
index 8c5e2be..3edb062 100644
--- a/usr/lib/pkcs11/aep_stdll/Makefile.am
+++ b/usr/lib/pkcs11/aep_stdll/Makefile.am
@@ -1,7 +1,7 @@
 stdll_LTLIBRARIES = libpkcs11_aep.la
 
 libpkcs11_aep_la_LDFLAGS = $(LCRYPTO)          \
-$(AEP_LIB_DIRS) -nostartfiles -shared -Wl,-soname,PKCS11_AEP.so.1 -lc  \
+$(AEP_LIB_DIRS) -nostartfiles -shared -lc      \
 -lpthread -lcrypto -laep
 
 libpkcs11_aep_la_CFLAGS = -DSPINXPL -DDEV              \
@@ -23,12 +23,3 @@ aeptok_specific.c aeptok_api.c
  
 INCLUDES = -I/usr/include -I. -I../../../include/pkcs11/stdll  \
 -I../../../include/pkcs11 -I ../common
-
-install-data-hook:
-       cd $(DESTDIR)/$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_aep.so PKCS11_AEP.so
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)/$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_AEP.so; fi
diff --git a/usr/lib/pkcs11/bcom_stdll/Makefile.am 
b/usr/lib/pkcs11/bcom_stdll/Makefile.am
index a10532a..dafbc94 100644
--- a/usr/lib/pkcs11/bcom_stdll/Makefile.am
+++ b/usr/lib/pkcs11/bcom_stdll/Makefile.am
@@ -1,7 +1,7 @@
 stdll_LTLIBRARIES = libpkcs11_bc.la
 
 libpkcs11_bc_la_LDFLAGS = $(LCRYPTO) $(BC_LIB_DIRS)    \
--nostartfiles -shared -Wl,-Bsymbolic -Wl,-soname,PKCS11_BC.so.1 -lc    \
+-nostartfiles -shared -Wl,-Bsymbolic -lc       \
 -lpthread -lubsec -ldl
 
 VARIANT = -DSHALLOW=0 -DSWTOK=1 -DLITE=0
@@ -27,12 +27,3 @@ INCLUDES = $(BC_INC_DIRS) -I/usr/include                     
\
 -I. -I../../../include/pkcs11/stdll -I../../../include/pkcs11  \
 -I../common -I../../../ica/inc -I../../../../ica/include       \
 -I.. -I../../../../ica/src/inc
-
-install-data-hook:
-       cd $(DESTDIR)/$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_bc.so PKCS11_BC.so
-
-uninstall-hook:
-       if test -d $(DESTDIR)/$(libdir)/opencryptoki/stdll; then
-               cd $(DESTDIR)/$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_BC.so; fi
diff --git a/usr/lib/pkcs11/cca_stdll/Makefile.am 
b/usr/lib/pkcs11/cca_stdll/Makefile.am
index 928b111..82d9387 100644
--- a/usr/lib/pkcs11/cca_stdll/Makefile.am
+++ b/usr/lib/pkcs11/cca_stdll/Makefile.am
@@ -12,7 +12,7 @@ libpkcs11_cca_la_CFLAGS = -DLINUX -DSPINXPL -DNOCDMF  \
        -DSTDLL_NAME=\"ccatok\"
 
 libpkcs11_cca_la_LDFLAGS = -shared -Wl,-Bsymbolic      \
-       -lcrypto -lpthread -nostartfiles -Wl,-soname,$@
+       -lcrypto -lpthread -nostartfiles
 
 libpkcs11_cca_la_SOURCES = asn1.c                      \
                                              ../common/dig_mgr.c       \
@@ -50,13 +50,3 @@ libpkcs11_cca_la_SOURCES = asn1.c                    \
 
 noinst_HEADERS = h_extern.h tok_spec_struct.h defs.h csulincl.h                
\
                 host_defs.h cca_stdll.h tok_specific.h
-
-install-data-hook:
-       cd $(DESTDIR)/$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_cca.so PKCS11_CCA.so
-       $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/ccatok
-
-uninstall-hook:
-       if test -d $(DESTDIR)/$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)/$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_CCA.so; fi
diff --git a/usr/lib/pkcs11/cr_stdll/Makefile.am 
b/usr/lib/pkcs11/cr_stdll/Makefile.am
index 2463058..bf087f6 100644
--- a/usr/lib/pkcs11/cr_stdll/Makefile.am
+++ b/usr/lib/pkcs11/cr_stdll/Makefile.am
@@ -1,7 +1,7 @@
 stdll_LTLIBRARIES = libpkcs11_cr.la
 
 libpkcs11_cr_la_LDFLAGS = $(LCRYPTO) $(CR_LIB_DIRS)    \
--nostartfiles -shared -Wl,-Bsymbolic -Wl,-soname,PKCS11_BC.so.1 -lc    \
+-nostartfiles -shared -Wl,-Bsymbolic -lc       \
 -lpthread -lsocketarmor -ldl -lcrypto
 
 VARIANT = -DSHALLOW=0 -DSWTOK=1 -DLITE=0
@@ -26,12 +26,3 @@ INCLUDES = $(CR_INC_DIRS) -I/usr/include                     
\
 -I. -I../../../include/pkcs11/stdll -I../../../include/pkcs11  \
 -I../common -I../../../ica/inc -I../../../../ica/include       \
 -I.. -I../../../../ica/src/inc
-
-install-data-hook:
-       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_cr.so PKCS11_CR.so
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_CR.so; fi
diff --git a/usr/lib/pkcs11/ica_s390_stdll/Makefile.am 
b/usr/lib/pkcs11/ica_s390_stdll/Makefile.am
index 15b256e..906cef1 100644
--- a/usr/lib/pkcs11/ica_s390_stdll/Makefile.am
+++ b/usr/lib/pkcs11/ica_s390_stdll/Makefile.am
@@ -1,7 +1,7 @@
 stdll_LTLIBRARIES = libpkcs11_ica.la
 
 libpkcs11_ica_la_LDFLAGS = $(LCRYPTO)          \
-$(ICA_LIB_DIRS) -nostartfiles -shared -Wl,-Bsymbolic -Wl,-soname,$@    \
+$(ICA_LIB_DIRS) -nostartfiles -shared -Wl,-Bsymbolic   \
 -Wl,-Bsymbolic -lc -lpthread -lica -ldl -lcrypto
 
 libpkcs11_ica_la_CFLAGS = -DSPINXPL -DDEV              \
@@ -24,13 +24,3 @@ libpkcs11_ica_la_SOURCES = ../common/asn1.c  \
 INCLUDES = $(ICA_INC_DIRS) -I. -I../../../include/pkcs11/stdll \
 -I../../../include/pkcs11 -I../common -I../../../ica/inc       \
 -I../../../../ica/include -I.. -I../../../../ica/src/inc
-
-install-data-hook:
-       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_ica.so PKCS11_ICA.so
-       $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/lite
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_ICA.so; fi
diff --git a/usr/lib/pkcs11/ica_stdll/Makefile.am 
b/usr/lib/pkcs11/ica_stdll/Makefile.am
index 727deef..558cd87 100644
--- a/usr/lib/pkcs11/ica_stdll/Makefile.am
+++ b/usr/lib/pkcs11/ica_stdll/Makefile.am
@@ -2,7 +2,7 @@ stdll_LTLIBRARIES = libpkcs11_ica.la
 
 libpkcs11_ica_la_LDFLAGS = $(LCRYPTO)  \
 $(ICA_LIB_DIRS) -nostartfiles -shared -Wl,-Bsymbolic           \
--Wl,-soname,PKCS11_ICA.so.1 -lc -lpthread -ldl -lica
+-lc -lpthread -ldl -lica
 
 libpkcs11_ica_la_CFLAGS = -DSPINXPL -DDEV              \
 -D_THREAD_SAFE -fPIC -DSHALLOW=0 -DSWTOK=0 -DLITE=1 -DNOCDMF -DNOMD2   \
@@ -27,12 +27,3 @@ INCLUDES = $(ICA_INC_DIRS) -I/usr/include                    
\
 -I. -I../../../include/pkcs11/stdll -I../../../include/pkcs11  \
 -I../common -I../../../ica/inc -I../../../../ica/include       \
 -I.. -I../../../../ica/src/inc
-
-install-data-hook:
-       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_ica.so PKCS11_ICA.so
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_ICA.so; fi
diff --git a/usr/lib/pkcs11/leeds_stdll/Makefile.am 
b/usr/lib/pkcs11/leeds_stdll/Makefile.am
index 6450112..91a638a 100644
--- a/usr/lib/pkcs11/leeds_stdll/Makefile.am
+++ b/usr/lib/pkcs11/leeds_stdll/Makefile.am
@@ -1,7 +1,7 @@
 stdll_LTLIBRARIES=libpkcs11_4758.la
 
 libpkcs11_4758_la_LDFLAGS = $(SCC_LIBS) -nostartfiles -shared  \
-       -Wl,-Bsymbolic -Wl,-soname,[email protected] -lpthread -lscc -ldl
+       -Wl,-Bsymbolic -lpthread -lscc -ldl
 
 libpkcs11_4758_la_CFLAGS = -DDEV -D_THREAD_SAFE -DLEEDS_BUILD
 
@@ -9,12 +9,3 @@ libpkcs11_4758_la_SOURCES = host_api.c util.c
 
 INCLUDES = $(SCC_INC_DIRS) -I/usr/include -I. -I../../../include/pkcs11/stdll \
           -I../../../include/pkcs11 
-
-install-data-hook:
-       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_4758.so PKCS11_4758.so
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_4758.so; fi
diff --git a/usr/lib/pkcs11/soft_stdll/Makefile.am 
b/usr/lib/pkcs11/soft_stdll/Makefile.am
index 6612bf1..50afc35 100644
--- a/usr/lib/pkcs11/soft_stdll/Makefile.am
+++ b/usr/lib/pkcs11/soft_stdll/Makefile.am
@@ -46,13 +46,3 @@ libpkcs11_sw_la_SOURCES = ../common/asn1.c           \
                                             ../common/log.c            \
                                             ../common/mech_list.c      \
                                             soft_specific.c
-
-install-data-hook:
-       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_sw.so PKCS11_SW.so
-       $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/swtok
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               rm -f PKCS11_SW.so; fi
diff --git a/usr/lib/pkcs11/tpm_stdll/Makefile.am 
b/usr/lib/pkcs11/tpm_stdll/Makefile.am
index 74cbfbb..2927c4d 100644
--- a/usr/lib/pkcs11/tpm_stdll/Makefile.am
+++ b/usr/lib/pkcs11/tpm_stdll/Makefile.am
@@ -48,13 +48,3 @@ libpkcs11_tpm_la_SOURCES = ../common/asn1.c           \
 
 noinst_HEADERS = h_extern.h tok_spec_struct.h defs.h   \
                 host_defs.h tpm_specific.h tok_specific.h
-
-install-data-hook:
-       $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/opencryptoki/tpm
-       cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               ln -sf libpkcs11_tpm.so PKCS11_TPM.so
-
-uninstall-hook:
-       if test -d $(DESTDIR)$(libdir)/opencryptoki/stdll; then \
-               cd $(DESTDIR)$(libdir)/opencryptoki/stdll && \
-               rm -rf PKCS11_TPM.so; fi
-- 
1.7.4.rc3


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to