package/openssl: fix uninstall
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Apr 2009 18:30:20 +0000 (18:30 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 28 Apr 2009 18:30:20 +0000 (18:30 -0000)
package/openssl/openssl.mk

index a238ce859f42c7572c22fda73b619b727c989da5..a0e6f7e54a44bb28f9b0d91c5afff369588d85f2 100644 (file)
@@ -73,3 +73,11 @@ else
        $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/engines/lib*.so
 endif
        touch $@
+
+$(OPENSSL_TARGET_UNINSTALL):
+       $(call MESSAGE,"Uninstalling")
+       rm -rf $(addprefix $(TARGET_DIR)/,etc/ssl usr/bin/openssl usr/include/openssl)
+       rm -rf $(addprefix $(TARGET_DIR)/usr/lib/,ssl engines libcrypto* libssl* pkgconfig/libcrypto.pc)
+       rm -rf $(addprefix $(STAGING_DIR)/,etc/ssl usr/bin/openssl usr/include/openssl)
+       rm -rf $(addprefix $(STAGING_DIR)/usr/lib/,ssl engines libcrypto* libssl* pkgconfig/libcrypto.pc)
+       rm -f $(OPENSSL_TARGET_INSTALL_TARGET) $(OPENSSL_HOOK_POST_INSTALL)