diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-20 10:22:14 +0100 |
commit | 46eedbedafdb0040c37884982d4c775ce277fb7b (patch) | |
tree | db33a91259730be84999e13a8d8168c799f50ac0 /net-vpn/vpnc | |
parent | e23a08d0c97a0cc415aaa165da840b056f93c997 (diff) |
gentoo resync : 20.10.2021
Diffstat (limited to 'net-vpn/vpnc')
-rw-r--r-- | net-vpn/vpnc/Manifest | 1 | ||||
-rw-r--r-- | net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/net-vpn/vpnc/Manifest b/net-vpn/vpnc/Manifest index c2fcad65087e..951ff93a4bef 100644 --- a/net-vpn/vpnc/Manifest +++ b/net-vpn/vpnc/Manifest @@ -5,4 +5,5 @@ AUX vpnc.confd 123 BLAKE2B 313d5999586f56b3b88f8473d1f6f07e69994c620ddf3d8cfb9e2 AUX vpnc.service 517 BLAKE2B 3fa2eaeea6a28fdf8826d936e1fe93dccade383411df395d69971312c9e062299af8b9f7514875a79a7d4e916efa4b4cf83ab0fb29eedbf52da31af3bc0fff63 SHA512 d580ad4fadbe6ea733f42eda53516e1766ba028f610653c62ba211d4a9ee05a6bf1d8676405a7a3ffede3432d75f9c4dcc72d1fab2a9215150f41a74269850c5 DIST vpnc-0.5.3_p550-r2.tar.gz 133339 BLAKE2B d4f09a62edbe3b4014c4903d908eecf27ee09705017f715aadc869592fb80d7f4482f08e4681dd9e9c22ae16ae185404e09572800de8cb76419c20f5bf8e17d1 SHA512 3adaf4c73c14c328ca9702c1e3d3c333b0a589f99b52990febf7b22ac87f666f1fc0a1d62e9831ec645567ca01425ea476a7bb62fee214012c97651e0e99b732 EBUILD vpnc-0.5.3_p550-r2.ebuild 2229 BLAKE2B fcd7c82681987e3f766980bb8b7cccfb069b1c51234518a750a074eb73fa3734eac52e84aaa1a385d8c36f2f4a2bc049fd45fa9e1f2fb46778a251ee5b8e04ef SHA512 71b10eea902d6bcb4f472b4e80f0597f697bee4aea45a1900c4e85a33894ed9e46e5e31db516d468954ac854e2f0ec250527c5592461e28ca461ed06c44e32eb +EBUILD vpnc-0.5.3_p550-r3.ebuild 2299 BLAKE2B f16d4c12cb5ae5373a2017ab2220bd9f52bac52e13d9ca43c54184d395f50b4d4bc9481606bcf4c1fd41a666c09362fdd68bdd69b35ec93faf603113aa149c07 SHA512 0d37011d53ed0acf1b9768ed544511d543c8299e01b5c565ae00897e12fec297b36b9cd135265aa0ff36040a0367659088642e58202fd1ceeba7f9f0ad2a8272 MISC metadata.xml 365 BLAKE2B 9505bbae63099cc965f4eb072819ef593e9d5d564002f550db6bfc277f12201dc1ac7cfd9d511d5ceaae501b308755004b2a2618059e122bd64e7b6d5109bd76 SHA512 d0925c0a1863f6de571a81ebbbc6b59eabaa73aa88c73162c4ea735a3cafcaac7c3ecacf05b9038f4aeb07e911865dc5c72f5ead3c1b2861dd3cf4c2cd3a2d84 diff --git a/net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild b/net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild new file mode 100644 index 000000000000..ffead8b84325 --- /dev/null +++ b/net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd tmpfiles toolchain-funcs vcs-snapshot + +DESCRIPTION="Free client for Cisco VPN routing software" +HOMEPAGE="https://www.unix-ag.uni-kl.de/~massar/vpnc/" +MY_P="${P}-r2" +SRC_URI="https://github.com/streambinder/vpnc/archive/fa0689c.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86" +IUSE="resolvconf +gnutls selinux" +RESTRICT="!gnutls? ( bindist )" + +DEPEND=" + dev-lang/perl + dev-libs/libgcrypt:0= + >=sys-apps/iproute2-2.6.19.20061214[-minimal] + gnutls? ( net-libs/gnutls:0= ) + !gnutls? ( dev-libs/openssl:0= )" +RDEPEND="${DEPEND} + >=net-vpn/vpnc-scripts-20210402-r1 + resolvconf? ( virtual/resolvconf ) + selinux? ( sec-policy/selinux-vpn )" + +CONFIG_CHECK="~TUN" + +S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}"/${MY_P}-var-run-fhs-3.0.patch ) + +src_configure() { + tc-export CC + export OPENSSL_GPL_VIOLATION=$(usex !gnutls) +} + +src_install() { + emake PREFIX="/usr" DESTDIR="${ED}" install + dodoc README.md TODO VERSION + + keepdir /etc/vpnc/scripts.d + newinitd "${FILESDIR}"/vpnc-3.init vpnc + newconfd "${FILESDIR}"/vpnc.confd vpnc + # Use the newer version from net-vpn/vpnc-scripts + rm "${ED}"/etc/vpnc/vpnc-script || die + + dotmpfiles "${FILESDIR}"/vpnc-tmpfiles.conf + systemd_newunit "${FILESDIR}"/vpnc.service vpnc@.service + + # COPYING file resides here, should not be installed + rm -r "${ED}"/usr/share/doc/vpnc/ || die +} + +pkg_postinst() { + tmpfiles_process vpnc-tmpfiles.conf + + elog "You can generate a configuration file from the original Cisco profiles of your" + elog "connection by using /usr/bin/pcf2vpnc to convert the .pcf file" + elog "A guide is available at https://wiki.gentoo.org/wiki/Vpnc" + + if use gnutls; then + elog "Will build with GnuTLS (default) instead of OpenSSL so you may even redistribute binaries." + elog "See the Makefile itself and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318" + else + ewarn "Building SSL support with OpenSSL instead of GnuTLS. This means that" + ewarn "you are not allowed to re-distibute the binaries due to conflicts between BSD license and GPL," + ewarn "see the vpnc Makefile and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440318" + fi +} |