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
This commit is contained in:
ludovic.rousseau 2007-11-13 09:38:18 +00:00
parent 82253cd635
commit 4bf320b304
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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