void-packages/srcpkgs/libkcapi/patches/makefile.patch
2018-06-18 00:05:43 -03:00

22 lines
1.2 KiB
Diff

--- Makefile.am
+++ Makefile.am
@@ -153,16 +153,16 @@ CHECK_DIR_BIN_HC = $(if $(CHECK_DIR),$(CHECK_DIR)/hmaccalc,$(bindir))
install-exec-hook:
(cd $(DESTDIR)$(bindir) && \
- ($(foreach link, $(hasher_links), $(LN) -f kcapi-hasher $(link);)))
+ ($(foreach link, $(hasher_links), $(LN) -f kcapi-hasher $(link)-kcapi;)))
-rm -f $(DESTDIR)$(bindir)/kcapi-hasher
if HAVE_OPENSSL
$(MKDIR_P) $(DESTDIR)$(CHECK_DIR_BIN_FC)
$(MKDIR_P) $(DESTDIR)$(CHECK_DIR_BIN_HC)
(cd $(DESTDIR)$(bindir) && \
($(foreach link, $(hasher_links_fc), \
- $(CHECKSUM_CMD_FC) $(link) > $(DESTDIR)$(CHECK_DIR_BIN_FC)/$(CHECK_PREFIX)$(link).$(CHECK_SUFFIX);) \
+ $(CHECKSUM_CMD_FC) $(link)-kcapi > $(DESTDIR)$(CHECK_DIR_BIN_FC)/$(CHECK_PREFIX)$(link).$(CHECK_SUFFIX);) \
$(foreach link, $(hasher_links_hc), \
- $(CHECKSUM_CMD_HC) $(link) > $(DESTDIR)$(CHECK_DIR_BIN_HC)/$(CHECK_PREFIX)$(link).$(CHECK_SUFFIX);):))
+ $(CHECKSUM_CMD_HC) $(link)-kcapi > $(DESTDIR)$(CHECK_DIR_BIN_HC)/$(CHECK_PREFIX)$(link).$(CHECK_SUFFIX);):))
($(foreach lib, $(wildcard $(DESTDIR)$(libdir)/libkcapi.so*), \
$(CHECKSUM_CMD_FC) $(lib) > $(DESTDIR)$(CHECK_DIR_LIB)/$(CHECK_PREFIX)$(notdir $(lib)).$(CHECK_SUFFIX);):)
endif