Annotation of embedaddon/strongswan/testing/scripts/recipes/015_strongTNC.mk, revision 1.1.1.2

1.1       misho       1: #!/usr/bin/make
                      2: 
                      3: PKG = strongTNC
                      4: ZIP = $(PKG)-master.zip
                      5: SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
                      6: DEPS = $(PKG)-deps
                      7: 
                      8: all: install
                      9: 
                     10: $(ZIP):
                     11:        wget --ca-directory=/usr/share/ca-certificates/mozilla/ $(SRC) -O $(ZIP)
                     12: 
                     13: $(PKG)-master: $(ZIP)
                     14:        unzip -u $(ZIP)
                     15: 
                     16: $(DEPS): $(PKG)-master
                     17:        mkdir -p $(DEPS)
1.1.1.2 ! misho      18:        pip download -d $(DEPS) -r $(PKG)-master/requirements.txt six
1.1       misho      19: 
                     20: install: $(DEPS)
1.1.1.2 ! misho      21:        # six is required for djangorestframework-camel-case
        !            22:        pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt six
1.1       misho      23:        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>