You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

674 lines
21 KiB

  1. #
  2. # Copyright (C) 2012-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=strongswan
  9. PKG_VERSION:=5.7.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://download.strongswan.org/ http://download2.strongswan.org/
  13. PKG_HASH:=308e3ba76e2ce2da070e48fcebbe1fa923a27cc71e43bf63917e6f2a889ecc70
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be>
  16. PKG_MOD_AVAILABLE:= \
  17. addrblock \
  18. aes \
  19. af-alg \
  20. agent \
  21. attr \
  22. attr-sql \
  23. blowfish \
  24. ccm \
  25. cmac \
  26. constraints \
  27. connmark \
  28. coupling \
  29. ctr \
  30. curl \
  31. curve25519 \
  32. des \
  33. dhcp \
  34. dnskey \
  35. duplicheck \
  36. eap-identity \
  37. eap-md5 \
  38. eap-mschapv2 \
  39. eap-radius \
  40. eap-tls \
  41. farp \
  42. fips-prf \
  43. forecast \
  44. gcm \
  45. gcrypt \
  46. gmp \
  47. gmpdh \
  48. ha \
  49. hmac \
  50. kernel-libipsec \
  51. kernel-netlink \
  52. ldap \
  53. led \
  54. load-tester \
  55. nonce \
  56. md4 \
  57. md5 \
  58. mysql \
  59. openssl \
  60. pem \
  61. pgp \
  62. pkcs1 \
  63. pkcs7 \
  64. pkcs8 \
  65. pkcs11 \
  66. pkcs12 \
  67. pubkey \
  68. random \
  69. rc2 \
  70. resolve \
  71. revocation \
  72. sha1 \
  73. sha2 \
  74. smp \
  75. socket-default \
  76. socket-dynamic \
  77. sql \
  78. sqlite \
  79. sshkey \
  80. stroke \
  81. test-vectors \
  82. unity \
  83. uci \
  84. updown \
  85. vici \
  86. whitelist \
  87. x509 \
  88. xauth-eap \
  89. xauth-generic \
  90. xcbc
  91. PKG_CONFIG_DEPENDS:= \
  92. CONFIG_STRONGSWAN_ROUTING_TABLE \
  93. CONFIG_STRONGSWAN_ROUTING_TABLE_PRIO \
  94. $(patsubst %,CONFIG_PACKAGE_strongswan-mod-%,$(PKG_MOD_AVAILABLE)) \
  95. PKG_FIXUP:=autoreconf
  96. PKG_INSTALL:=1
  97. PKG_BUILD_PARALLEL:=1
  98. include $(INCLUDE_DIR)/package.mk
  99. # strongswan-mod-mysql needs iconv
  100. include $(INCLUDE_DIR)/nls.mk
  101. define Package/strongswan/Default
  102. SUBMENU:=VPN
  103. SECTION:=net
  104. CATEGORY:=Network
  105. TITLE:=StrongSwan
  106. URL:=http://www.strongswan.org/
  107. endef
  108. define Package/strongswan/description/Default
  109. StrongSwan is an OpenSource IPsec implementation for the Linux operating system.
  110. endef
  111. define Package/strongswan
  112. $(call Package/strongswan/Default)
  113. MENU:=1
  114. DEPENDS:= +libpthread +ip \
  115. +kmod-crypto-authenc \
  116. +kmod-ipsec +kmod-ipsec4 +IPV6:kmod-ipsec6 \
  117. +kmod-ipt-ipsec +iptables-mod-ipsec
  118. endef
  119. define Package/strongswan/config
  120. source "$(SOURCE)/Config.in"
  121. endef
  122. define Package/strongswan/description
  123. $(call Package/strongswan/description/Default)
  124. This package contains shared libraries and scripts.
  125. endef
  126. define Package/strongswan-full
  127. $(call Package/strongswan/Default)
  128. TITLE+= (full)
  129. DEPENDS:= strongswan \
  130. +strongswan-charon \
  131. +strongswan-charon-cmd \
  132. +strongswan-ipsec \
  133. +strongswan-mod-addrblock \
  134. +strongswan-mod-aes \
  135. +strongswan-mod-af-alg \
  136. +strongswan-mod-agent \
  137. +strongswan-mod-attr \
  138. +strongswan-mod-attr-sql \
  139. +strongswan-mod-blowfish \
  140. +strongswan-mod-ccm \
  141. +strongswan-mod-cmac \
  142. +strongswan-mod-constraints \
  143. +strongswan-mod-connmark \
  144. +strongswan-mod-coupling \
  145. +strongswan-mod-ctr \
  146. +strongswan-mod-curl \
  147. +strongswan-mod-curve25519 \
  148. +strongswan-mod-des \
  149. +strongswan-mod-dhcp \
  150. +strongswan-mod-dnskey \
  151. +strongswan-mod-duplicheck \
  152. +strongswan-mod-eap-identity \
  153. +strongswan-mod-eap-md5 \
  154. +strongswan-mod-eap-mschapv2 \
  155. +strongswan-mod-eap-radius \
  156. +strongswan-mod-eap-tls \
  157. +strongswan-mod-farp \
  158. +strongswan-mod-fips-prf \
  159. +strongswan-mod-forecast \
  160. +strongswan-mod-gcm \
  161. +strongswan-mod-gcrypt \
  162. +strongswan-mod-gmp \
  163. +strongswan-mod-ha \
  164. +strongswan-mod-hmac \
  165. +strongswan-mod-kernel-netlink \
  166. +strongswan-mod-ldap \
  167. +strongswan-mod-led \
  168. +strongswan-mod-load-tester \
  169. +strongswan-mod-nonce \
  170. +strongswan-mod-md4 \
  171. +strongswan-mod-md5 \
  172. +strongswan-mod-mysql \
  173. +strongswan-mod-openssl \
  174. +strongswan-mod-pem \
  175. +strongswan-mod-pgp \
  176. +strongswan-mod-pkcs1 \
  177. +strongswan-mod-pkcs7 \
  178. +strongswan-mod-pkcs8 \
  179. +strongswan-mod-pkcs11 \
  180. +strongswan-mod-pkcs12 \
  181. +strongswan-mod-pubkey \
  182. +strongswan-mod-random \
  183. +strongswan-mod-rc2 \
  184. +strongswan-mod-resolve \
  185. +strongswan-mod-revocation \
  186. +strongswan-mod-sha1 \
  187. +strongswan-mod-sha2 \
  188. +strongswan-mod-smp \
  189. +strongswan-mod-socket-default \
  190. +strongswan-mod-sql \
  191. +strongswan-mod-sqlite \
  192. +strongswan-mod-sshkey \
  193. +strongswan-mod-stroke \
  194. +strongswan-mod-test-vectors \
  195. +strongswan-mod-uci \
  196. +strongswan-mod-unity \
  197. +strongswan-mod-updown \
  198. +strongswan-mod-vici \
  199. +strongswan-mod-whitelist \
  200. +strongswan-mod-x509 \
  201. +strongswan-mod-xauth-eap \
  202. +strongswan-mod-xauth-generic \
  203. +strongswan-mod-xcbc \
  204. +strongswan-pki \
  205. +strongswan-scepclient \
  206. +strongswan-swanctl \
  207. @DEVEL
  208. endef
  209. define Package/strongswan-full/description
  210. $(call Package/strongswan/description/Default)
  211. This meta-package contains dependencies for all of the strongswan plugins
  212. except kernel-libipsec,
  213. socket-dynamic and which are omitted in favor of the kernel-netlink and
  214. socket-default plugins.
  215. endef
  216. define Package/strongswan-default
  217. $(call Package/strongswan/Default)
  218. TITLE+= (default)
  219. DEPENDS:= strongswan \
  220. +strongswan-charon \
  221. +strongswan-ipsec \
  222. +strongswan-mod-aes \
  223. +strongswan-mod-attr \
  224. +strongswan-mod-connmark \
  225. +strongswan-mod-constraints \
  226. +strongswan-mod-des \
  227. +strongswan-mod-dnskey \
  228. +strongswan-mod-fips-prf \
  229. +strongswan-mod-gmp \
  230. +strongswan-mod-hmac \
  231. +strongswan-mod-kernel-netlink \
  232. +strongswan-mod-md5 \
  233. +strongswan-mod-nonce \
  234. +strongswan-mod-pem \
  235. +strongswan-mod-pgp \
  236. +strongswan-mod-pkcs1 \
  237. +strongswan-mod-pubkey \
  238. +strongswan-mod-random \
  239. +strongswan-mod-rc2 \
  240. +strongswan-mod-resolve \
  241. +strongswan-mod-revocation \
  242. +strongswan-mod-sha1 \
  243. +strongswan-mod-sha2 \
  244. +strongswan-mod-socket-default \
  245. +strongswan-mod-sshkey \
  246. +strongswan-mod-stroke \
  247. +strongswan-mod-updown \
  248. +strongswan-mod-x509 \
  249. +strongswan-mod-xauth-generic \
  250. +strongswan-mod-xcbc
  251. endef
  252. define Package/strongswan-default/description
  253. $(call Package/strongswan/description/Default)
  254. This meta-package contains only dependencies to match upstream defaults.
  255. endef
  256. define Package/strongswan-isakmp
  257. $(call Package/strongswan/Default)
  258. TITLE+= (isakmp)
  259. DEPENDS:= strongswan \
  260. +strongswan-charon \
  261. +strongswan-ipsec \
  262. +strongswan-mod-aes \
  263. +strongswan-mod-des \
  264. +strongswan-mod-gmpdh \
  265. +strongswan-mod-hmac \
  266. +strongswan-mod-kernel-netlink \
  267. +strongswan-mod-md5 \
  268. +strongswan-mod-nonce \
  269. +strongswan-mod-pubkey \
  270. +strongswan-mod-random \
  271. +strongswan-mod-sha1 \
  272. +strongswan-mod-socket-default \
  273. +strongswan-mod-stroke \
  274. +strongswan-mod-uci \
  275. +strongswan-mod-updown
  276. endef
  277. define Package/strongswan-isakmp/description
  278. $(call Package/strongswan/description/Default)
  279. This meta-package contains only dependencies to establish ISAKMP /
  280. IKE PSK connections, dropping other capabilities in favor of small size
  281. Can fit most routers even with 4Mb flash (after removing IPv6 support).
  282. endef
  283. define Package/strongswan-minimal
  284. $(call Package/strongswan/Default)
  285. TITLE+= (minimal)
  286. DEPENDS:= strongswan \
  287. +strongswan-charon \
  288. +strongswan-mod-aes \
  289. +strongswan-mod-gmp \
  290. +strongswan-mod-hmac \
  291. +strongswan-mod-kernel-netlink \
  292. +strongswan-mod-nonce \
  293. +strongswan-mod-pubkey \
  294. +strongswan-mod-random \
  295. +strongswan-mod-sha1 \
  296. +strongswan-mod-socket-default \
  297. +strongswan-mod-stroke \
  298. +strongswan-mod-updown \
  299. +strongswan-mod-x509 \
  300. +strongswan-mod-xcbc
  301. endef
  302. define Package/strongswan-minimal/description
  303. $(call Package/strongswan/description/Default)
  304. This meta-package contains only dependencies for a minimal IKEv2 setup.
  305. endef
  306. define Package/strongswan-charon
  307. $(call Package/strongswan/Default)
  308. TITLE+= IKEv1/IKEv2 keying daemon
  309. DEPENDS:= strongswan
  310. endef
  311. define Package/strongswan-charon/description
  312. $(call Package/strongswan/description/Default)
  313. This package contains charon, an IKEv2 keying daemon.
  314. endef
  315. define Package/strongswan-charon-cmd
  316. $(call Package/strongswan/Default)
  317. TITLE+= charon-cmd utility
  318. DEPENDS:= strongswan +strongswan-charon
  319. endef
  320. define Package/strongswan-charon-cmd/description
  321. $(call Package/strongswan/description/Default)
  322. This package contains the charon-cmd utility.
  323. endef
  324. define Package/strongswan-ipsec
  325. $(call Package/strongswan/Default)
  326. TITLE+= utilities
  327. DEPENDS:= strongswan
  328. endef
  329. define Package/strongswan-ipsec/description
  330. $(call Package/strongswan/description/Default)
  331. This package contains the ipsec utility.
  332. endef
  333. define Package/strongswan-pki
  334. $(call Package/strongswan/Default)
  335. TITLE+= PKI tool
  336. DEPENDS:= strongswan
  337. endef
  338. define Package/strongswan-pki/description
  339. $(call Package/strongswan/description/Default)
  340. This package contains the pki tool.
  341. endef
  342. define Package/strongswan-scepclient
  343. $(call Package/strongswan/Default)
  344. TITLE+= SCEP client
  345. DEPENDS:= strongswan
  346. endef
  347. define Package/strongswan-scepclient/description
  348. $(call Package/strongswan/description/Default)
  349. This package contains the SCEP client.
  350. endef
  351. define Package/strongswan-swanctl
  352. $(call Package/strongswan/Default)
  353. TITLE+= swanctl utility
  354. DEPENDS:= strongswan +strongswan-mod-vici
  355. endef
  356. define Package/strongswan-swanctl/description
  357. $(call Package/strongswan/description/Default)
  358. This package contains the swanctl utility.
  359. endef
  360. define Package/strongswan-libtls
  361. $(call Package/strongswan/Default)
  362. TITLE+= libtls
  363. DEPENDS:= strongswan
  364. endef
  365. define Package/strongswan-libtls/description
  366. $(call Package/strongswan/description/Default)
  367. This package contains libtls for strongSwan plugins eap-tls, eap-ttls,
  368. eap-peap, tnc-tnccs
  369. endef
  370. define BuildPlugin
  371. define Package/strongswan-mod-$(1)
  372. $$(call Package/strongswan/Default)
  373. TITLE:= StrongSwan $(2) plugin
  374. DEPENDS:= strongswan $(3)
  375. endef
  376. define Package/strongswan-mod-$(1)/install
  377. $(INSTALL_DIR) $$(1)/etc/strongswan.d/charon
  378. if [ -f $(PKG_INSTALL_DIR)/etc/strongswan.d/charon/$(1).conf ]; then \
  379. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/strongswan.d/charon/$(1).conf $$(1)/etc/strongswan.d/charon/; fi
  380. $(INSTALL_DIR) $$(1)/usr/lib/ipsec/plugins
  381. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-$(1).so \
  382. $$(1)/usr/lib/ipsec/plugins/
  383. $(call Plugin/$(1)/install,$$(1))
  384. endef
  385. $$(eval $$(call BuildPackage,strongswan-mod-$(1)))
  386. endef
  387. CONFIGURE_ARGS+= \
  388. --disable-scripts \
  389. --disable-static \
  390. --disable-fast \
  391. --enable-mediation \
  392. --with-systemdsystemunitdir=no \
  393. $(if $(CONFIG_PACKAGE_strongswan-charon-cmd),--enable-cmd,--disable-cmd) \
  394. $(if $(CONFIG_PACKAGE_strongswan-pki),--enable-pki,--disable-pki) \
  395. $(if $(CONFIG_PACKAGE_strongswan-scepclient),--enable-scepclient,--disable-scepclient) \
  396. --with-random-device=/dev/random \
  397. --with-urandom-device=/dev/urandom \
  398. --with-routing-table="$(call qstrip,$(CONFIG_STRONGSWAN_ROUTING_TABLE))" \
  399. --with-routing-table-prio="$(call qstrip,$(CONFIG_STRONGSWAN_ROUTING_TABLE_PRIO))" \
  400. $(foreach m,$(PKG_MOD_AVAILABLE), \
  401. $(if $(CONFIG_PACKAGE_strongswan-mod-$(m)),--enable-$(m),--disable-$(m)) \
  402. ) \
  403. ac_cv_search___atomic_load=no
  404. EXTRA_LDFLAGS+= -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
  405. define Package/strongswan/conffiles
  406. /etc/ipsec.d/
  407. /etc/ipsec.conf
  408. /etc/ipsec.secrets
  409. /etc/ipsec.user
  410. /etc/strongswan.conf
  411. /etc/strongswan.d/
  412. endef
  413. define Package/strongswan/install
  414. $(INSTALL_DIR) $(1)/etc
  415. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/ipsec.conf $(1)/etc/
  416. $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/strongswan.conf $(1)/etc/
  417. $(INSTALL_DIR) $(1)/usr/lib/ipsec
  418. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libstrongswan.so.* $(1)/usr/lib/ipsec/
  419. $(INSTALL_CONF) ./files/ipsec.secrets $(1)/etc/
  420. $(INSTALL_CONF) ./files/ipsec.user $(1)/etc/
  421. $(INSTALL_DIR) $(1)/etc/init.d
  422. $(INSTALL_BIN) ./files/ipsec.init $(1)/etc/init.d/ipsec
  423. endef
  424. define Package/strongswan-default/install
  425. true
  426. endef
  427. define Package/strongswan-full/install
  428. true
  429. endef
  430. define Package/strongswan-isakmp/install
  431. true
  432. endef
  433. define Package/strongswan-minimal/install
  434. true
  435. endef
  436. define Package/strongswan-charon/install
  437. $(INSTALL_DIR) $(1)/etc/strongswan.d
  438. $(CP) $(PKG_INSTALL_DIR)/etc/strongswan.d/charon.conf $(1)/etc/strongswan.d
  439. $(CP) $(PKG_INSTALL_DIR)/etc/strongswan.d/charon-logging.conf $(1)/etc/strongswan.d
  440. $(INSTALL_DIR) $(1)/usr/lib/ipsec
  441. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ipsec/charon $(1)/usr/lib/ipsec/
  442. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libcharon.so.* $(1)/usr/lib/ipsec/
  443. endef
  444. define Package/strongswan-charon-cmd/install
  445. $(INSTALL_DIR) $(1)/usr/sbin
  446. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/charon-cmd $(1)/usr/sbin/
  447. endef
  448. define Package/strongswan-ipsec/install
  449. $(INSTALL_DIR) $(1)/usr/sbin
  450. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ipsec $(1)/usr/sbin/
  451. endef
  452. define Package/strongswan-pki/install
  453. $(INSTALL_DIR) $(1)/etc/strongswan.d
  454. $(CP) $(PKG_INSTALL_DIR)/etc/strongswan.d/pki.conf $(1)/etc/strongswan.d/
  455. $(INSTALL_DIR) $(1)/usr/bin
  456. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pki $(1)/usr/bin/
  457. endef
  458. define Package/strongswan-scepclient/install
  459. $(INSTALL_DIR) $(1)/etc/strongswan.d
  460. $(CP) $(PKG_INSTALL_DIR)/etc/strongswan.d/scepclient.conf $(1)/etc/strongswan.d/
  461. $(INSTALL_DIR) $(1)/usr/lib/ipsec
  462. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ipsec/scepclient $(1)/usr/lib/ipsec/
  463. endef
  464. define Package/strongswan-swanctl/install
  465. $(INSTALL_DIR) $(1)/etc/swanctl/{bliss,ecdsa,pkcs{12,8},private,pubkey,rsa}
  466. $(INSTALL_DIR) $(1)/etc/swanctl/x509{,aa,ac,ca,crl,ocsp}
  467. $(CP) $(PKG_INSTALL_DIR)/etc/swanctl/swanctl.conf $(1)/etc/swanctl/
  468. $(INSTALL_DIR) $(1)/usr/sbin
  469. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swanctl $(1)/usr/sbin/
  470. endef
  471. define Package/strongswan-libtls/install
  472. $(INSTALL_DIR) $(1)/usr/lib/ipsec
  473. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libtls.so.* $(1)/usr/lib/ipsec/
  474. endef
  475. define Plugin/duplicheck/install
  476. $(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
  477. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/duplicheck $(1)/usr/lib/ipsec/
  478. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-duplicheck.so $(1)/usr/lib/ipsec/plugins/
  479. endef
  480. define Plugin/eap-radius/install
  481. $(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
  482. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libradius.so.* $(1)/usr/lib/ipsec/
  483. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-eap-radius.so $(1)/usr/lib/ipsec/plugins/
  484. endef
  485. define Plugin/attr-sql/install
  486. $(INSTALL_DIR) $(1)/usr/lib/ipsec
  487. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/pool $(1)/usr/lib/ipsec/
  488. endef
  489. define Plugin/stroke/install
  490. $(INSTALL_DIR) $(1)/etc/ipsec.d/aacerts
  491. $(INSTALL_DIR) $(1)/etc/ipsec.d/acerts
  492. $(INSTALL_DIR) $(1)/etc/ipsec.d/cacerts
  493. $(INSTALL_DIR) $(1)/etc/ipsec.d/certs
  494. $(INSTALL_DIR) $(1)/etc/ipsec.d/crls
  495. $(INSTALL_DIR) $(1)/etc/ipsec.d/ocspcerts
  496. $(INSTALL_DIR) $(1)/etc/ipsec.d/private
  497. $(INSTALL_DIR) $(1)/etc/ipsec.d/reqs
  498. $(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
  499. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ipsec/{starter,stroke} $(1)/usr/lib/ipsec/
  500. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-stroke.so $(1)/usr/lib/ipsec/plugins/
  501. endef
  502. define Plugin/updown/install
  503. $(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
  504. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/_updown $(1)/usr/lib/ipsec/
  505. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-updown.so $(1)/usr/lib/ipsec/plugins/
  506. $(INSTALL_DIR) $(1)/etc/hotplug.d/ipsec
  507. $(CP) ./files/etc/hotplug.d/ipsec/01-user \
  508. $(1)/etc/hotplug.d/ipsec/01-user
  509. endef
  510. define Plugin/vici/install
  511. $(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
  512. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libvici.so.* $(1)/usr/lib/ipsec/
  513. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-vici.so $(1)/usr/lib/ipsec/plugins/
  514. endef
  515. define Plugin/whitelist/install
  516. $(INSTALL_DIR) $(1)/usr/lib/ipsec/plugins
  517. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/whitelist $(1)/usr/lib/ipsec/
  518. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/plugins/libstrongswan-whitelist.so $(1)/usr/lib/ipsec/plugins/
  519. endef
  520. define Plugin/kernel-libipsec/install
  521. $(INSTALL_DIR) $(1)/usr/lib/ipsec
  522. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ipsec/libipsec.so.* $(1)/usr/lib/ipsec/
  523. endef
  524. $(eval $(call BuildPackage,strongswan))
  525. $(eval $(call BuildPackage,strongswan-default))
  526. $(eval $(call BuildPackage,strongswan-full))
  527. $(eval $(call BuildPackage,strongswan-minimal))
  528. $(eval $(call BuildPackage,strongswan-isakmp))
  529. $(eval $(call BuildPackage,strongswan-charon))
  530. $(eval $(call BuildPackage,strongswan-charon-cmd))
  531. $(eval $(call BuildPackage,strongswan-ipsec))
  532. $(eval $(call BuildPackage,strongswan-pki))
  533. $(eval $(call BuildPackage,strongswan-scepclient))
  534. $(eval $(call BuildPackage,strongswan-swanctl))
  535. $(eval $(call BuildPackage,strongswan-libtls))
  536. $(eval $(call BuildPlugin,addrblock,RFC 3779 address block constraint support,))
  537. $(eval $(call BuildPlugin,aes,AES crypto,))
  538. $(eval $(call BuildPlugin,af-alg,AF_ALG crypto interface to Linux Crypto API,+kmod-crypto-user))
  539. $(eval $(call BuildPlugin,agent,SSH agent signing,))
  540. $(eval $(call BuildPlugin,attr,file based config,))
  541. $(eval $(call BuildPlugin,attr-sql,SQL based config,+strongswan-charon))
  542. $(eval $(call BuildPlugin,blowfish,Blowfish crypto,))
  543. $(eval $(call BuildPlugin,ccm,CCM AEAD wrapper crypto,))
  544. $(eval $(call BuildPlugin,cmac,CMAC crypto,))
  545. $(eval $(call BuildPlugin,connmark,netfilter connection marking,))
  546. $(eval $(call BuildPlugin,constraints,advanced X509 constraint checking,))
  547. $(eval $(call BuildPlugin,coupling,IKEv2 plugin to couple peer certificates permanently to authentication,))
  548. $(eval $(call BuildPlugin,ctr,Counter Mode wrapper crypto,))
  549. $(eval $(call BuildPlugin,curl,cURL fetcher plugin,+PACKAGE_strongswan-mod-curl:libcurl))
  550. $(eval $(call BuildPlugin,curve25519,Curve25519 Diffie-Hellman,))
  551. $(eval $(call BuildPlugin,des,DES crypto,))
  552. $(eval $(call BuildPlugin,dhcp,DHCP based attribute provider,))
  553. $(eval $(call BuildPlugin,dnskey,DNS RR key decoding,))
  554. $(eval $(call BuildPlugin,duplicheck,advanced duplicate checking,))
  555. $(eval $(call BuildPlugin,eap-identity,EAP identity helper,))
  556. $(eval $(call BuildPlugin,eap-md5,EAP MD5 (CHAP) EAP auth,))
  557. $(eval $(call BuildPlugin,eap-mschapv2,EAP MS-CHAPv2 EAP auth,+strongswan-mod-md4 +strongswan-mod-des))
  558. $(eval $(call BuildPlugin,eap-radius,EAP RADIUS auth,))
  559. $(eval $(call BuildPlugin,eap-tls,EAP TLS auth,+strongswan-libtls))
  560. $(eval $(call BuildPlugin,farp,fake arp respsonses,))
  561. $(eval $(call BuildPlugin,fips-prf,FIPS PRF crypto,+strongswan-mod-sha1))
  562. $(eval $(call BuildPlugin,forecast,forward multi/broadcast traffic,+kmod-ipt-conntrack-extra))
  563. $(eval $(call BuildPlugin,gcm,GCM AEAD wrapper crypto,))
  564. $(eval $(call BuildPlugin,gcrypt,libgcrypt,+PACKAGE_strongswan-mod-gcrypt:libgcrypt))
  565. $(eval $(call BuildPlugin,gmp,libgmp,+PACKAGE_strongswan-mod-gmp:libgmp))
  566. $(eval $(call BuildPlugin,gmpdh,DH-Groups; no libgmp dep,))
  567. $(eval $(call BuildPlugin,ha,high availability cluster,))
  568. $(eval $(call BuildPlugin,hmac,HMAC crypto,))
  569. $(eval $(call BuildPlugin,kernel-libipsec,libipsec kernel interface,))
  570. $(eval $(call BuildPlugin,kernel-netlink,netlink kernel interface,))
  571. $(eval $(call BuildPlugin,ldap,LDAP,+PACKAGE_strongswan-mod-ldap:libopenldap))
  572. $(eval $(call BuildPlugin,led,LED blink on IKE activity,))
  573. $(eval $(call BuildPlugin,load-tester,load testing,))
  574. $(eval $(call BuildPlugin,nonce,nonce genereation,))
  575. $(eval $(call BuildPlugin,md4,MD4 crypto,))
  576. $(eval $(call BuildPlugin,md5,MD5 crypto,))
  577. $(eval $(call BuildPlugin,mysql,MySQL database interface,+strongswan-mod-sql +PACKAGE_strongswan-mod-mysql:libmysqlclient-r))
  578. $(eval $(call BuildPlugin,openssl,OpenSSL crypto,+PACKAGE_strongswan-mod-openssl:libopenssl))
  579. $(eval $(call BuildPlugin,pem,PEM decoding,))
  580. $(eval $(call BuildPlugin,pgp,PGP key decoding,))
  581. $(eval $(call BuildPlugin,pkcs1,PKCS1 key decoding,))
  582. $(eval $(call BuildPlugin,pkcs7,PKCS7 key decoding,))
  583. $(eval $(call BuildPlugin,pkcs8,PKCS8 key decoding,))
  584. $(eval $(call BuildPlugin,pkcs11,PKCS11 key decoding,))
  585. $(eval $(call BuildPlugin,pkcs12,PKCS12 key decoding,))
  586. $(eval $(call BuildPlugin,pubkey,raw public key,))
  587. $(eval $(call BuildPlugin,random,RNG,))
  588. $(eval $(call BuildPlugin,rc2,RC2 crypto,))
  589. $(eval $(call BuildPlugin,resolve,DNS resolver,))
  590. $(eval $(call BuildPlugin,revocation,X509 CRL/OCSP revocation,))
  591. $(eval $(call BuildPlugin,sha1,SHA1 crypto,))
  592. $(eval $(call BuildPlugin,sha2,SHA2 crypto,))
  593. $(eval $(call BuildPlugin,smp,SMP configuration and control interface,+PACKAGE_strongswan-mod-smp:libxml2))
  594. $(eval $(call BuildPlugin,socket-default,default socket implementation for charon,))
  595. $(eval $(call BuildPlugin,socket-dynamic,dynamic socket implementation for charon,))
  596. $(eval $(call BuildPlugin,sql,SQL database interface,))
  597. $(eval $(call BuildPlugin,sqlite,SQLite database interface,+strongswan-mod-sql +PACKAGE_strongswan-mod-sqlite:libsqlite3))
  598. $(eval $(call BuildPlugin,sshkey,SSH key decoding,))
  599. $(eval $(call BuildPlugin,stroke,Stroke,+strongswan-charon +strongswan-ipsec))
  600. $(eval $(call BuildPlugin,test-vectors,crypto test vectors,))
  601. $(eval $(call BuildPlugin,uci,UCI config interface,+PACKAGE_strongswan-mod-uci:libuci))
  602. $(eval $(call BuildPlugin,unity,Cisco Unity extension,))
  603. $(eval $(call BuildPlugin,updown,updown firewall,))
  604. $(eval $(call BuildPlugin,vici,Versatile IKE Configuration Interface,))
  605. $(eval $(call BuildPlugin,whitelist,peer identity whitelisting,))
  606. $(eval $(call BuildPlugin,x509,x509 certificate,))
  607. $(eval $(call BuildPlugin,xauth-eap,EAP XAuth backend,))
  608. $(eval $(call BuildPlugin,xauth-generic,generic XAuth backend,))
  609. $(eval $(call BuildPlugin,xcbc,xcbc crypto,))