2012-12-03 21:47:03 +00:00
|
|
|
include ports/libssh.inc
|
|
|
|
|
2013-05-25 12:50:46 +00:00
|
|
|
LIBSSH_TGZ = $(LIBSSH).tar.gz
|
|
|
|
LIBSSH_SIG = $(LIBSSH).tar.asc
|
|
|
|
LIBSSH_URL = https://red.libssh.org/attachments/download/41/$(LIBSSH_TGZ)
|
|
|
|
LIBSSH_URL_SIG = https://red.libssh.org/attachments/download/42/$(LIBSSH_SIG)
|
|
|
|
|
|
|
|
#
|
|
|
|
# XXX The signature check for libssh is prepared but yet disabled. The source
|
|
|
|
# for the verification PGP key is yet unknown. If the PGP key becomes
|
|
|
|
# known, just add it to the _KEY variable.
|
|
|
|
#
|
|
|
|
LIBSSH_KEY = FIXME
|
2012-12-03 21:47:03 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Interface to top-level prepare Makefile
|
|
|
|
#
|
|
|
|
PORTS += $(LIBSSH)
|
|
|
|
|
|
|
|
prepare-libssh: $(CONTRIB_DIR)/$(LIBSSH) include/libssh
|
|
|
|
|
|
|
|
$(CONTRIB_DIR)/$(LIBSSH): clean-libssh
|
|
|
|
|
|
|
|
#
|
|
|
|
# Port-specific local rules
|
|
|
|
#
|
|
|
|
$(DOWNLOAD_DIR)/$(LIBSSH_TGZ):
|
2013-03-06 17:07:50 +00:00
|
|
|
$(VERBOSE)wget --no-check-certificate -c -P $(DOWNLOAD_DIR) $(LIBSSH_URL) && touch $@
|
2013-05-25 12:50:46 +00:00
|
|
|
$(VERBOSE)wget --no-check-certificate -c -P $(DOWNLOAD_DIR) $(LIBSSH_URL_SIG) && touch $@
|
2013-06-06 14:49:56 +00:00
|
|
|
|
|
|
|
$(DOWNLOAD_DIR)/$(LIBSSH_TGZ).verified: $(DOWNLOAD_DIR)/$(LIBSSH_TGZ)
|
|
|
|
# XXX We have no key for libssh at the moment
|
2013-05-25 12:50:46 +00:00
|
|
|
#$(VERBOSE)$(SIGVERIFIER) $(DOWNLOAD_DIR)/$(LIBSSH_TGZ) $(DOWNLOAD_DIR)/$(LIBSSH_SIG) $(LIBSSH_KEY)
|
2013-06-06 14:49:56 +00:00
|
|
|
$(VERBOSE)touch $@
|
2012-12-03 21:47:03 +00:00
|
|
|
|
2013-06-06 14:49:56 +00:00
|
|
|
$(CONTRIB_DIR)/$(LIBSSH): $(DOWNLOAD_DIR)/$(LIBSSH_TGZ).verified
|
|
|
|
$(VERBOSE)tar xfz $(<:.verified=) -C $(CONTRIB_DIR) && touch $@
|
2012-12-03 21:47:03 +00:00
|
|
|
|
|
|
|
include/libssh:
|
|
|
|
$(VERBOSE)mkdir -p $@
|
|
|
|
$(VERBOSE)for f in $(shell find $(CONTRIB_DIR)/$(LIBSSH)/include -name *.h); do \
|
|
|
|
ln -sf ../../$$f $@; done
|
|
|
|
|
|
|
|
clean-libssh:
|
|
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBSSH)
|
|
|
|
$(VERBOSE)rm -rf include/libssh
|