1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00
Files
opencryptoki/usr/lib/Makefile.am
Kent Yoder 3cf802e8cf add uninstall hooks
This patch adds uninstall-hook targets so that make uninstall removes
  the extra links and stuff that we add as part of install-data-hook.
  Directories are left alone -- I'm not sure if we can remove
  directories correctly because of the order that these makefiles get
  executed in.  SUBDIRS in usr/lib/pkcs11/Makefile.am will make the
  build go into api/ first, which is correct if we're doing make all,
  but the order needs to be reversed for make uninstall to work.

    Also, I removed the code that adds PKCS11_TPM.so links.  The other
    tokens that have these links were legacy tokens, in that they
    existed before we updated opencryptoki to comply with the FHS.
    After that update, we did need these links for backward compat, but
    only for the tokens that existed before this point.  The TPM token
    is new since this update, so it shouldn't need this backwards compat
    link.

    Thanks,
    Kent

    Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
2010-08-04 16:47:46 -03:00

13 lines
441 B
Makefile

SUBDIRS = pkcs11
install-data-hook:
$(MKDIR_P) $(DESTDIR)/etc/ld.so.conf.d
echo "$(libdir)/opencryptoki" >\
$(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(target_cpu).conf
echo "$(libdir)/opencryptoki/stdll" >>\
$(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(target_cpu).conf
echo "**** Remember you must run ldconfig before using the above settings ****"
uninstall-hook:
rm -f $(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(target_cpu).conf