013_strongswan.mk 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. #!/usr/bin/make
  2. PV = $(SWANVERSION)
  3. PKG = strongswan-$(PV)
  4. TAR = $(PKG).tar.bz2
  5. SRC = http://download.strongswan.org/$(TAR)
  6. # can be passed to load sources from a directory instead of a tarball
  7. ifneq ($(origin SRCDIR), undefined)
  8. DIR = $(SRCDIR)
  9. BUILDDIR ?= $(SRCDIR)
  10. endif
  11. DIR ?= .
  12. # can be passed if not building in the source directory
  13. BUILDDIR ?= $(PKG)
  14. NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
  15. CONFIG_OPTS = \
  16. --sysconfdir=/etc \
  17. --with-strongswan-conf=/etc/strongswan.conf.testing \
  18. --with-random-device=/dev/urandom \
  19. --disable-load-warning \
  20. --enable-curl \
  21. --enable-soup \
  22. --enable-ldap \
  23. --enable-eap-aka \
  24. --enable-eap-aka-3gpp2 \
  25. --enable-eap-sim \
  26. --enable-eap-sim-file \
  27. --enable-eap-simaka-sql \
  28. --enable-eap-md5 \
  29. --enable-md4 \
  30. --enable-eap-mschapv2 \
  31. --enable-eap-identity \
  32. --enable-eap-radius \
  33. --enable-eap-dynamic \
  34. --enable-eap-tls \
  35. --enable-eap-ttls \
  36. --enable-eap-peap \
  37. --enable-eap-tnc \
  38. --enable-tnc-ifmap \
  39. --enable-tnc-pdp \
  40. --enable-tnc-imc \
  41. --enable-tnc-imv \
  42. --enable-tnccs-11 \
  43. --enable-tnccs-20 \
  44. --enable-tnccs-dynamic \
  45. --enable-imc-test \
  46. --enable-imv-test \
  47. --enable-imc-scanner \
  48. --enable-imv-scanner \
  49. --enable-imc-os \
  50. --enable-imv-os \
  51. --enable-imc-attestation \
  52. --enable-imv-attestation \
  53. --enable-imc-swima \
  54. --enable-imv-swima \
  55. --enable-imc-hcd \
  56. --enable-imv-hcd \
  57. --enable-sql \
  58. --enable-sqlite \
  59. --enable-attr-sql \
  60. --enable-mediation \
  61. --enable-botan \
  62. --enable-openssl \
  63. --enable-blowfish \
  64. --enable-kernel-pfkey \
  65. --enable-integrity-test \
  66. --enable-leak-detective \
  67. --enable-load-tester \
  68. --enable-test-vectors \
  69. --enable-gcrypt \
  70. --enable-socket-default \
  71. --enable-socket-dynamic \
  72. --enable-dhcp \
  73. --enable-farp \
  74. --enable-connmark \
  75. --enable-forecast \
  76. --enable-addrblock \
  77. --enable-ctr \
  78. --enable-ccm \
  79. --enable-gcm \
  80. --enable-cmac \
  81. --enable-chapoly \
  82. --enable-ha \
  83. --enable-af-alg \
  84. --enable-whitelist \
  85. --enable-xauth-generic \
  86. --enable-xauth-eap \
  87. --enable-pkcs8 \
  88. --enable-unity \
  89. --enable-unbound \
  90. --enable-ipseckey \
  91. --enable-dnscert \
  92. --enable-acert \
  93. --enable-cmd \
  94. --enable-libipsec \
  95. --enable-kernel-libipsec \
  96. --enable-tkm \
  97. --enable-ntru \
  98. --enable-lookip \
  99. --enable-bliss \
  100. --enable-sha3 \
  101. --enable-newhope \
  102. --enable-systemd \
  103. --enable-counters \
  104. --enable-save-keys \
  105. --enable-python-eggs-install
  106. export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
  107. all: install
  108. $(TAR):
  109. wget $(SRC)
  110. $(PKG): $(TAR)
  111. tar xfj $(TAR)
  112. echo "$(SWANVERSION)" > /root/shared/.strongswan-version
  113. configure: $(BUILDDIR)
  114. cd $(BUILDDIR) && $(DIR)/configure $(CONFIG_OPTS)
  115. build: configure
  116. cd $(BUILDDIR) && make -j $(NUM_CPUS)
  117. install: build
  118. cd $(BUILDDIR) && make -j install
  119. # for Python-based updown scripts
  120. pip install python-daemon