From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 81027158086 for ; Sun, 10 Oct 2021 19:08:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D396BE08C3; Sun, 10 Oct 2021 19:08:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AEE68E08C3 for ; Sun, 10 Oct 2021 19:08:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A6E7342D35 for ; Sun, 10 Oct 2021 19:08:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42F6C134 for ; Sun, 10 Oct 2021 19:08:26 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1633892764.8a45aee959d1d2f1469c2c343a8e951c2bb79d1b.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/vpnc/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild X-VCS-Directories: net-vpn/vpnc/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 8a45aee959d1d2f1469c2c343a8e951c2bb79d1b X-VCS-Branch: master Date: Sun, 10 Oct 2021 19:08:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1caa3a86-64bf-41b9-a927-fda974c1bcdd X-Archives-Hash: a433d7142a406170b80c26a2a6592ae9 commit: 8a45aee959d1d2f1469c2c343a8e951c2bb79d1b Author: Mike Gilbert gentoo org> AuthorDate: Sun Oct 10 18:39:51 2021 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Oct 10 19:06:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a45aee9 net-vpn/vpnc: depend on net-vpn/vpnc-scripts Signed-off-by: Mike Gilbert gentoo.org> net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild | 72 ++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) 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 00000000000..89255813970 --- /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 +}