015_strongTNC.mk 588 B

12345678910111213141516171819202122
  1. #!/usr/bin/make
  2. PKG = strongTNC
  3. ZIP = $(PKG)-master.zip
  4. SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
  5. DEPS = $(PKG)-deps
  6. all: install
  7. $(ZIP):
  8. wget --ca-directory=/usr/share/ca-certificates/mozilla/ $(SRC) -O $(ZIP)
  9. $(PKG)-master: $(ZIP)
  10. unzip -u $(ZIP)
  11. $(DEPS): $(PKG)-master
  12. mkdir -p $(DEPS)
  13. pip install --download $(DEPS) -r $(PKG)-master/requirements.txt
  14. install: $(DEPS)
  15. pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt
  16. cp -r $(PKG)-master /var/www/tnc && chgrp -R www-data /var/www/tnc && chmod g+sw /var/www/tnc