Files
strongswan-ext/testing/scripts/recipes/014_swid_generator.mk
T
Tobias Brunner 518b8e4286 testing: Use pipx to install swidGenerator on Debian trixie
We could use the same approach on bookworm (if the base image is updated),
but just use the old approach there for now.
2025-09-18 11:13:32 +02:00

25 lines
687 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)
ifeq (,$(filter $(BASEIMG),bullseye bookworm))
cd $(DIR) && pipx install --global --system-site-packages .
else
cd $(DIR) && SETUPTOOLS_USE_DISTUTILS=stdlib python3 setup.py install
endif