File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / testing / scripts / recipes / 015_strongTNC.mk
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:20:15 2021 UTC (3 years, 3 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, HEAD
strongswan 5.9.2

#!/usr/bin/make

PKG = strongTNC
ZIP = $(PKG)-master.zip
SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
DEPS = $(PKG)-deps

all: install

$(ZIP):
	wget --ca-directory=/usr/share/ca-certificates/mozilla/ $(SRC) -O $(ZIP)

$(PKG)-master: $(ZIP)
	unzip -u $(ZIP)

$(DEPS): $(PKG)-master
	mkdir -p $(DEPS)
	pip download -d $(DEPS) -r $(PKG)-master/requirements.txt six

install: $(DEPS)
	# six is required for djangorestframework-camel-case
	pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt six
	cp -r $(PKG)-master /var/www/tnc && chgrp -R www-data /var/www/tnc && chmod g+sw /var/www/tnc

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>