Files
strongswan-ext/testing/scripts/recipes/014_swid_generator.mk
T
Tobias Brunner 2cd5314de7 testing: Use specific versions of swidGenerator and strongTNC
This way we get updated versions automatically (referencing "master"
required manually deleting the downloaded archives and the unpacked
directories).  It also allows switching versions when working in different
branches (note that REV can also be set to a commit ID, e.g. to test
changes before tagging them later and merging the branch).
2021-06-30 16:17:39 +02:00

21 lines
535 B
Makefile

#!/usr/bin/make
PKG = swidGenerator
REV = v1.1.0
DIR = $(PKG)-$(REV)
TAR = $(PKG)-$(REV).tar.gz
SRC = https://github.com/strongswan/$(PKG)/archive/$(REV).tar.gz
all: install
$(TAR):
wget --ca-directory="/usr/share/ca-certificates/mozilla" $(SRC) -O $(TAR)
.$(PKG)-unpacked-$(REV): $(TAR)
# a tag's "v" prefix is not reflected in the directory name in the archive
[ -d $(DIR) ] || (mkdir -p $(DIR); tar -xf $(TAR) --strip-components=1 -C $(DIR))
@touch $@
install: .$(PKG)-unpacked-$(REV)
cd $(DIR) && python setup.py install