diff options
-rw-r--r-- | net-vpn/openvpn-nl/Manifest | 2 | ||||
-rw-r--r-- | net-vpn/openvpn-nl/openvpn-nl-2.4.12.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-vpn/openvpn-nl/Manifest b/net-vpn/openvpn-nl/Manifest index 894208d..26fdba3 100644 --- a/net-vpn/openvpn-nl/Manifest +++ b/net-vpn/openvpn-nl/Manifest @@ -2,7 +2,9 @@ AUX down.sh 949 BLAKE2B 1598e2e876ca52423166ee71872723c5736b1a6625e74d8c41d20bb1 AUX openvpn-nl.conf 898 BLAKE2B 6679d8cbde00665d439c88dc0db41ec7e445ff3ccf301209247807e12b95220422755cae94baf662ec1867d789ce8316e7895b45685f95317e61c6671f6480ba SHA512 672c9c9450b841b5d3828a0523b25692e7221af2ef00e78205c7e21d909bc590ef18073c6312d1cc310f54cec08c3465066d0d5032198467aacde3f38de05668 AUX openvpn-nl.init 4235 BLAKE2B a74e34cc21f109c4fbb917d47a297eebf824a0c2a05d4ef75219741fa9d00d97eee6e2bf5187229c2146c7c1b2b91208275ecb87b69ccb313c3b405cba286dbc SHA512 0d40f1a751349a1eb24a41609f0cb452ef0ac376615ef0a976c01c1bb28b0dfe971f228b14f6d678257be92c3c069bd1847fb0dadf29b1f07ce7ca64eabadc0d AUX up.sh 2877 BLAKE2B c11d4f5eee8e416bd05e40566377f75ccf23290e071558f6bd8cb5654452ed385ab2fe22a67bf5166a272f014a78a0da269ac9266244699f19b364b66e079848 SHA512 d8ce50421d1b5e218c60da1c3a948648b2df851e2a395bc96690d07e7bb3d625a4e5f7c02717bcaab28f0c417047829f3fd71b24e4c47a97fe9b26448578c52f +DIST openvpn-nl-src-2.4.12.tar.gz 4745149 BLAKE2B 86d29cb927c5831639755951c13cbe8c313cb91c012eb38ab3e471b4b947bbc98860de63264e8f5d8fb4e5777d51d3fa15e5af4e51d581a46eb66828e6614972 SHA512 5e13c53750894a74837f4fe546eaf205fa18c618c03cbc5b79e9ac5b4b11b14f50995d7629136d02a9cb11c094b5cf9139d94f944dd19847b75bcbe61d007532 DIST openvpn-nl-src-2.4.7-nl1.tar.gz 4575119 BLAKE2B a543bdbc934a5be5fe60da0bbefe639cfdaff6bf8804d037d40fc464f11801feffb0a92be4547708861629a5586375154e4ece90bd8d4078d208256b24c28c9c SHA512 9cc16a7ae972787276ddf561c45c58ccc8a77f165cf3bac7b6819283e3c9e1296091167db118ed1f98da171a5e1eb0e9e0665f954d0798cbab8aa1ee0e44b2b5 DIST openvpn-nl-src-2.4.9-nl1.tar.gz 4721730 BLAKE2B fb3840d5cdf9c69e981b8e09ab2614ad852cc3fb949a63f4887b41fac77fcbe1a051768dd76049651421c8c500e65463e6c84fd45f3573ef3b763b4b9a553642 SHA512 1569e97ce6f60a3302815d28512c0b2acd2e7c7716b797400de1ce5f46f4d415a3035ba91c792c36507e1c511559c9bcc8f5d1c35a96b452e12169ec89553ffe +EBUILD openvpn-nl-2.4.12.ebuild 1189 BLAKE2B c7e6ff0555cb32d610f15a9919a07df92322f5f055fe71fcfded569f1c9694b5ef7342f1ca9b696b84362dc06e0bed7c75475648a41e596d3c314e5bb9426169 SHA512 98e84d71c5e48949f7c49e5f7b855d7824bacc08df25e664507981133b6024d19abb4d4c79b1e2030be3ba891dc0b6cb0e2ec8a794ba40ebe6e568b67a1fae9d EBUILD openvpn-nl-2.4.7.ebuild 1259 BLAKE2B ae8b40ff948f8d903e81c617512cc038f83624e5861b89d80a010a39419b05f1a44411bbef59f78b3b87d8a27546615f4447b5039c88421e08296a3ff5a3323d SHA512 72e7b641ad99fb01497e4d4188d88d34496016d3c025a4f5a7a0adef78a1b2f511307145ff10ed569da13946ba6b9d3f035a5bd7fb987946a8da3c7f0a878e1b EBUILD openvpn-nl-2.4.9.ebuild 1201 BLAKE2B 9658c52a1e75de7146415811f129c6ac56b8a5668dad2f0001e064b42bf25e4c504d41b147ae03a96b37d81df2c4727a910ba4606507503d6507b0cc1d7abfd0 SHA512 4285ab00aa63290be6d8f6834859810f07f9c8f4688e6d5e8bf1eee6fc882efb1a85769a512386d69ea035b0902db879fea79de1737f64ca2fea882135d4f4d3 diff --git a/net-vpn/openvpn-nl/openvpn-nl-2.4.12.ebuild b/net-vpn/openvpn-nl/openvpn-nl-2.4.12.ebuild new file mode 100644 index 0000000..8487b71 --- /dev/null +++ b/net-vpn/openvpn-nl/openvpn-nl-2.4.12.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Modified version of OpenVPN with mbedtls and pkcs11 support" +HOMEPAGE="https://openvpn.fox-it.com" +SRC_URI="https://openvpn.fox-it.com/repos/source/${PV}/${PN}-src-${PV}.tar.gz https://code.pa4wdh.nl.eu.org/distfiles/${PN}-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~riscv" +IUSE="cpu_flags_x86_aes" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +CONFIG_CHECK="~TUN" + +src_unpack() { + unpack ${A} + mv openvpn-nl ${P} +} + +src_prepare() { + eapply_user +} + +src_configure() { + if use cpu_flags_x86_aes; then + einfo "Enabling AES-NI support" + cd ${WORKDIR}/${P}/mbedtls + scripts/config.pl set MBEDTLS_AESNI_C + else + einfo "Not enabling AES-NI support" + fi +} + +src_compile() { + cd ${WORKDIR}/${P} + ./build-openvpn-nl.sh +} + +src_install() { + newsbin ${WORKDIR}/${P}/build-openvpn-nl/src/openvpn/openvpn openvpn-nl + newinitd "${FILESDIR}/openvpn-nl.init" openvpn-nl + newconfd "${FILESDIR}/openvpn-nl.conf" openvpn-nl + + exeinto /etc/openvpn-nl + doexe "${FILESDIR}/up.sh" + doexe "${FILESDIR}/down.sh" + + newman ${WORKDIR}/${P}/openvpn/doc/openvpn.8 openvpn-nl.8 +} |