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.

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