From 4bf320b3044252e47ecc863ee210b4b6ca46f906 Mon Sep 17 00:00:00 2001 From: "ludovic.rousseau" Date: Tue, 13 Nov 2007 09:38:18 +0000 Subject: [PATCH] add support of /usr/lib/pkcs11/ directory. See http://wiki.cacert.org/wiki/Pkcs11TaskForce Thanks to Alon Bar-Lev for the better patch git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3300 c6295689-39f2-0310-b995-f0e70906c6a9 --- configure.in | 3 +++ src/pkcs11/Makefile.am | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 1e89298a..f0cf99ba 100644 --- a/configure.in +++ b/configure.in @@ -387,6 +387,9 @@ AC_SUBST(OPENSC_CFLAGS) pkgdata=`eval echo ${datadir}/${PACKAGE}` ; pkgdata=`eval echo ${pkgdata}` AC_SUBST(pkgdata) +pkcs11dir="\$(libdir)/pkcs11" +AC_SUBST([pkcs11dir]) + AC_OUTPUT([ Makefile aclocal/Makefile diff --git a/src/pkcs11/Makefile.am b/src/pkcs11/Makefile.am index 636ac4db..69ac8401 100644 --- a/src/pkcs11/Makefile.am +++ b/src/pkcs11/Makefile.am @@ -45,3 +45,8 @@ pkcs11-jar: jar-dir cp opensc_pkcs11_install.js jar-dir signtool -Z"opensc-pkcs11.jar" -i"opensc_pkcs11_install.js" \ -k"testcert" jar-dir + +# see http://wiki.cacert.org/wiki/Pkcs11TaskForce +pkcs11_DATA = #This will create the directory +install-data-hook: + $(LN_S) ../opensc-pkcs11.so $(DESTDIR)$(pkcs11dir)/opensc-pkcs11.so