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