public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-vpn/vpnc/files/, net-vpn/vpnc/
@ 2020-04-18 13:07 David Seifert
  0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2020-04-18 13:07 UTC (permalink / raw
  To: gentoo-commits

commit:     3d52f0aede746ac5da9e5808b0733a20b50f32cd
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 13:07:29 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Apr 18 13:07:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d52f0ae

net-vpn/vpnc: Revbump to use fork

* We're using streambinder's fork at
    https://github.com/streambinder/vpnc
  which is just a collection of patches to vpnc.

Closes: https://bugs.gentoo.org/689802
Closes: https://bugs.gentoo.org/715314
Closes: https://bugs.gentoo.org/716556
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-vpn/vpnc/Manifest                              |  1 +
 .../files/vpnc-0.5.3_p550-r1-var-run-fhs-3.0.patch | 33 +++++++++++
 net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild             | 68 ++++++++++++++++++++++
 3 files changed, 102 insertions(+)

diff --git a/net-vpn/vpnc/Manifest b/net-vpn/vpnc/Manifest
index f63a67a64dd..8104364d86c 100644
--- a/net-vpn/vpnc/Manifest
+++ b/net-vpn/vpnc/Manifest
@@ -1 +1,2 @@
+DIST vpnc-0.5.3_p550-r1.tar.gz 133339 BLAKE2B d4f09a62edbe3b4014c4903d908eecf27ee09705017f715aadc869592fb80d7f4482f08e4681dd9e9c22ae16ae185404e09572800de8cb76419c20f5bf8e17d1 SHA512 3adaf4c73c14c328ca9702c1e3d3c333b0a589f99b52990febf7b22ac87f666f1fc0a1d62e9831ec645567ca01425ea476a7bb62fee214012c97651e0e99b732
 DIST vpnc-0.5.3_p550.tar.xz 101860 BLAKE2B 9800ab0704108cd70450dcfe314eba7c09ca1bb329fa6b9f2946dbb6ee6407e5f6bc3d17d8be782e9103d94a12895777125acdad070f39ea1b96a946ba7d2302 SHA512 95150c743c61a962c36591bb874c77f2c28f341c0a1290dba4e878a460d22d762dd88f7cfc0aa9d17ace71a8b826d9fd13554c23b5123dee6009e9fffcd2de55

diff --git a/net-vpn/vpnc/files/vpnc-0.5.3_p550-r1-var-run-fhs-3.0.patch b/net-vpn/vpnc/files/vpnc-0.5.3_p550-r1-var-run-fhs-3.0.patch
new file mode 100644
index 00000000000..e574b51fba6
--- /dev/null
+++ b/net-vpn/vpnc/files/vpnc-0.5.3_p550-r1-var-run-fhs-3.0.patch
@@ -0,0 +1,33 @@
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -158,7 +158,7 @@
+      * treat passcode as password
+      * filter "metric10 64" and the like from ip route get output
+      * updated to libgcrypt-1.1.90
+-     * create /var/run/vpnc/ as necessary
++     * create /run/vpnc/ as necessary
+ 
+ * vpnc-0.2-rm+zomb-pre6.tar.gz Sun Nov 2 02:15:56 CET 2003
+ 
+--- a/src/config.c
++++ b/src/config.c
+@@ -390,7 +390,7 @@
+ 
+ static const char *config_def_pid_file(void)
+ {
+-	return "/var/run/vpnc.pid";
++	return "/run/vpnc.pid";
+ }
+ 
+ static const char *config_def_vendor(void)
+--- a/TODO
++++ b/TODO
+@@ -115,7 +115,7 @@
+ * DONE post link to http://www.liebchen-online.de/vpn-zaurus.html
+ * DONE passcode == password
+ * DONE support for new libgcrypt versions
+-* DONE make /var/run/vpnc as needed
++* DONE make /run/vpnc as needed
+ * DONE ignore "metric10 xx"
+ * DONE ignore attr 32136! (Cisco extension: XAUTH Vendor)
+ * DONE FreeBSD supported

diff --git a/net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild b/net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild
new file mode 100644
index 00000000000..4276d407ffa
--- /dev/null
+++ b/net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info systemd toolchain-funcs vcs-snapshot
+
+DESCRIPTION="Free client for Cisco VPN routing software"
+HOMEPAGE="https://www.unix-ag.uni-kl.de/~massar/vpnc/"
+SRC_URI="https://github.com/streambinder/vpnc/archive/fa0689c.tar.gz -> ${PF}.tar.gz"
+
+LICENSE="GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~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}
+	resolvconf? ( virtual/resolvconf )
+	selinux? ( sec-policy/selinux-vpn )
+"
+
+CONFIG_CHECK="~TUN"
+
+S="${WORKDIR}/${PF}"
+PATCHES=( "${FILESDIR}"/${PF}-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
+	sed -e "s:/usr/local:${EPREFIX}/usr:" -i "${ED}"/etc/vpnc/vpnc-script || die
+
+	systemd_dotmpfilesd "${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() {
+	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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-vpn/vpnc/files/, net-vpn/vpnc/
@ 2020-09-06  9:57 David Seifert
  0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2020-09-06  9:57 UTC (permalink / raw
  To: gentoo-commits

commit:     5e5ebb72a7d43e87953cd0e078acdbb1f1a9bd6c
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  6 09:57:41 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Sep  6 09:57:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e5ebb72

net-vpn/vpnc: Switch to tmpfiles.eclass

Closes: https://bugs.gentoo.org/740636
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-vpn/vpnc/Manifest                                            | 2 +-
 ...un-fhs-3.0.patch => vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch} | 0
 .../{vpnc-0.5.3_p550-r1.ebuild => vpnc-0.5.3_p550-r2.ebuild}     | 9 +++++----
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/net-vpn/vpnc/Manifest b/net-vpn/vpnc/Manifest
index 65c9cf48cbf..8048d237274 100644
--- a/net-vpn/vpnc/Manifest
+++ b/net-vpn/vpnc/Manifest
@@ -1 +1 @@
-DIST vpnc-0.5.3_p550-r1.tar.gz 133339 BLAKE2B d4f09a62edbe3b4014c4903d908eecf27ee09705017f715aadc869592fb80d7f4482f08e4681dd9e9c22ae16ae185404e09572800de8cb76419c20f5bf8e17d1 SHA512 3adaf4c73c14c328ca9702c1e3d3c333b0a589f99b52990febf7b22ac87f666f1fc0a1d62e9831ec645567ca01425ea476a7bb62fee214012c97651e0e99b732
+DIST vpnc-0.5.3_p550-r2.tar.gz 133339 BLAKE2B d4f09a62edbe3b4014c4903d908eecf27ee09705017f715aadc869592fb80d7f4482f08e4681dd9e9c22ae16ae185404e09572800de8cb76419c20f5bf8e17d1 SHA512 3adaf4c73c14c328ca9702c1e3d3c333b0a589f99b52990febf7b22ac87f666f1fc0a1d62e9831ec645567ca01425ea476a7bb62fee214012c97651e0e99b732

diff --git a/net-vpn/vpnc/files/vpnc-0.5.3_p550-r1-var-run-fhs-3.0.patch b/net-vpn/vpnc/files/vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch
similarity index 100%
rename from net-vpn/vpnc/files/vpnc-0.5.3_p550-r1-var-run-fhs-3.0.patch
rename to net-vpn/vpnc/files/vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch

diff --git a/net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild b/net-vpn/vpnc/vpnc-0.5.3_p550-r2.ebuild
similarity index 91%
rename from net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild
rename to net-vpn/vpnc/vpnc-0.5.3_p550-r2.ebuild
index 8e9eeda195c..529bf1d4e35 100644
--- a/net-vpn/vpnc/vpnc-0.5.3_p550-r1.ebuild
+++ b/net-vpn/vpnc/vpnc-0.5.3_p550-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit linux-info systemd toolchain-funcs vcs-snapshot
+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/"
@@ -23,8 +23,7 @@ DEPEND="
 	!gnutls? ( dev-libs/openssl:0= )"
 RDEPEND="${DEPEND}
 	resolvconf? ( virtual/resolvconf )
-	selinux? ( sec-policy/selinux-vpn )
-"
+	selinux? ( sec-policy/selinux-vpn )"
 
 CONFIG_CHECK="~TUN"
 
@@ -45,7 +44,7 @@ src_install() {
 	newconfd "${FILESDIR}"/vpnc.confd vpnc
 	sed -e "s:/usr/local:${EPREFIX}/usr:" -i "${ED}"/etc/vpnc/vpnc-script || die
 
-	systemd_dotmpfilesd "${FILESDIR}"/vpnc-tmpfiles.conf
+	dotmpfiles "${FILESDIR}"/vpnc-tmpfiles.conf
 	systemd_newunit "${FILESDIR}"/vpnc.service vpnc@.service
 
 	# COPYING file resides here, should not be installed
@@ -53,6 +52,8 @@ src_install() {
 }
 
 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"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-vpn/vpnc/files/, net-vpn/vpnc/
@ 2023-02-20 20:52 David Seifert
  0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2023-02-20 20:52 UTC (permalink / raw
  To: gentoo-commits

commit:     af341e30d04d6b0098de026dab4dff005ef5b2c2
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 20 20:51:59 2023 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Feb 20 20:51:59 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af341e30

net-vpn/vpnc: drop 0.5.3_p550-r3, 0.5.3_p20220927

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-vpn/vpnc/Manifest                              |  1 -
 .../files/vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch | 33 ---------
 net-vpn/vpnc/files/vpnc-tmpfiles.conf              |  1 -
 net-vpn/vpnc/files/vpnc.service                    | 20 -----
 net-vpn/vpnc/vpnc-0.5.3_p20220927.ebuild           | 85 ----------------------
 net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild             | 72 ------------------
 6 files changed, 212 deletions(-)

diff --git a/net-vpn/vpnc/Manifest b/net-vpn/vpnc/Manifest
index b7de56d3af33..efc850dff590 100644
--- a/net-vpn/vpnc/Manifest
+++ b/net-vpn/vpnc/Manifest
@@ -1,3 +1,2 @@
 DIST vpnc-0.5.3-docs.tar.xz 4816 BLAKE2B fe972fb71e74dea481593ce42225a2969608dd4d29a2f34ca1f7b5b82a71a62bfbd94d5fcd2e8db830768be1e858682904e655b8629cb164961644bc5de291e1 SHA512 e3e9f3e3651906f41a4a6b0f4247b903fb555155cbda210823f36a5613d8390b6aad7615ff88fd627ece4037b0e0f04753ac924c9cd9c1335480ca8186d476b8
 DIST vpnc-0.5.3_p20220927.tar.gz 119773 BLAKE2B 0dabadac8b5a8116c07597140b6fa31e8f7daed9448e1bf653491809453ec114c0e96d38a8103d90a8b68dd2cefa0540ed676ced3fb9d57eaf16d8be5e3f0fa1 SHA512 e8c2254042c67283749331349467b2aed29ececc26de0bc3227c9c4a14f06d9d518599b28ca979df0cbe997c8997dda8afa508a0858c80ec270922096d8f906f
-DIST vpnc-0.5.3_p550-r2.tar.gz 133339 BLAKE2B d4f09a62edbe3b4014c4903d908eecf27ee09705017f715aadc869592fb80d7f4482f08e4681dd9e9c22ae16ae185404e09572800de8cb76419c20f5bf8e17d1 SHA512 3adaf4c73c14c328ca9702c1e3d3c333b0a589f99b52990febf7b22ac87f666f1fc0a1d62e9831ec645567ca01425ea476a7bb62fee214012c97651e0e99b732

diff --git a/net-vpn/vpnc/files/vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch b/net-vpn/vpnc/files/vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch
deleted file mode 100644
index e574b51fba63..000000000000
--- a/net-vpn/vpnc/files/vpnc-0.5.3_p550-r2-var-run-fhs-3.0.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/ChangeLog
-+++ b/ChangeLog
-@@ -158,7 +158,7 @@
-      * treat passcode as password
-      * filter "metric10 64" and the like from ip route get output
-      * updated to libgcrypt-1.1.90
--     * create /var/run/vpnc/ as necessary
-+     * create /run/vpnc/ as necessary
- 
- * vpnc-0.2-rm+zomb-pre6.tar.gz Sun Nov 2 02:15:56 CET 2003
- 
---- a/src/config.c
-+++ b/src/config.c
-@@ -390,7 +390,7 @@
- 
- static const char *config_def_pid_file(void)
- {
--	return "/var/run/vpnc.pid";
-+	return "/run/vpnc.pid";
- }
- 
- static const char *config_def_vendor(void)
---- a/TODO
-+++ b/TODO
-@@ -115,7 +115,7 @@
- * DONE post link to http://www.liebchen-online.de/vpn-zaurus.html
- * DONE passcode == password
- * DONE support for new libgcrypt versions
--* DONE make /var/run/vpnc as needed
-+* DONE make /run/vpnc as needed
- * DONE ignore "metric10 xx"
- * DONE ignore attr 32136! (Cisco extension: XAUTH Vendor)
- * DONE FreeBSD supported

diff --git a/net-vpn/vpnc/files/vpnc-tmpfiles.conf b/net-vpn/vpnc/files/vpnc-tmpfiles.conf
deleted file mode 100644
index 67224ac3ef2d..000000000000
--- a/net-vpn/vpnc/files/vpnc-tmpfiles.conf
+++ /dev/null
@@ -1 +0,0 @@
-D /run/vpnc 0755 root root -

diff --git a/net-vpn/vpnc/files/vpnc.service b/net-vpn/vpnc/files/vpnc.service
deleted file mode 100644
index ce1e3683f4ec..000000000000
--- a/net-vpn/vpnc/files/vpnc.service
+++ /dev/null
@@ -1,20 +0,0 @@
-[Unit]
-Description=Free Cisco VPN connection to %i
-Documentation=man:vpnc(8) http://www.unix-ag.uni-kl.de/~massar/vpnc/
-Requires=network.target
-After=network.target
-ConditionPathExists=/dev/net/tun
-
-[Service]
-Type=forking
-EnvironmentFile=/etc/vpnc/%i.conf
-PIDFile=/run/vpnc/%i.pid
-
-ExecStartPre=-/etc/vpnc/scripts.d/%i-preup.sh
-ExecStart=/usr/sbin/vpnc --pid-file /run/vpnc/%i.pid
-ExecStartPost=-/etc/vpnc/scripts.d/%i-postup.sh
-
-ExecStopPost=-/etc/vpnc/scripts.d/%i-postdown.sh
-
-[Install]
-WantedBy=multi-user.target

diff --git a/net-vpn/vpnc/vpnc-0.5.3_p20220927.ebuild b/net-vpn/vpnc/vpnc-0.5.3_p20220927.ebuild
deleted file mode 100644
index 743b2ec9d6b1..000000000000
--- a/net-vpn/vpnc/vpnc-0.5.3_p20220927.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info systemd tmpfiles toolchain-funcs
-
-DESCRIPTION="Free client for Cisco VPN routing software"
-HOMEPAGE="https://www.unix-ag.uni-kl.de/~massar/vpnc/"
-
-if [[ ${PV} == *9999 ]]; then
-	inherit git-r3
-	EGIT_REPO_URI="https://github.com/streambinder/vpnc.git"
-else
-	inherit vcs-snapshot
-	SRC_URI="
-		https://api.github.com/repos/streambinder/vpnc/tarball/fdd0de7 -> ${P}.tar.gz
-		https://dev.gentoo.org/~soap/distfiles/${PN}-0.5.3-docs.tar.xz"
-	KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
-fi
-
-LICENSE="GPL-3"
-SLOT="0"
-IUSE="resolvconf +gnutls selinux"
-RESTRICT="!gnutls? ( bindist )"
-
-DEPEND="
-	dev-libs/libgcrypt:=
-	sys-apps/iproute2[-minimal]
-	gnutls? ( net-libs/gnutls:= )
-	!gnutls? ( dev-libs/openssl:= )"
-RDEPEND="${DEPEND}
-	>=net-vpn/vpnc-scripts-20210402-r1
-	resolvconf? ( virtual/resolvconf )
-	selinux? ( sec-policy/selinux-vpn )"
-BDEPEND="
-	dev-lang/perl
-	virtual/pkgconfig"
-
-CONFIG_CHECK="~TUN"
-
-src_unpack() {
-	if [[ ${PV} == *9999 ]]; then
-		git-r3_src_unpack
-	else
-		vcs-snapshot_src_unpack
-		mv vpnc-0.5.3-docs/src/doc/*.md "${S}"/src/doc/ || die
-	fi
-}
-
-src_configure() {
-	tc-export CC PKG_CONFIG
-	export OPENSSL_GPL_VIOLATION=$(usex !gnutls)
-}
-
-src_install() {
-	emake PREFIX="${EPREFIX}"/usr DOCDIR='$(PREFIX)'/share/doc/${PF} DESTDIR="${D}" install
-
-	keepdir /etc/vpnc/scripts.d
-	newinitd "${FILESDIR}"/vpnc-3.init vpnc
-	newconfd "${FILESDIR}"/vpnc.confd vpnc
-
-	dotmpfiles "${FILESDIR}"/vpnc-tmpfiles.conf
-	systemd_newunit "${FILESDIR}"/vpnc.service vpnc@.service
-
-	# LICENSE file resides here, should not be installed
-	rm -r "${ED}"/usr/share/licenses || 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
-}

diff --git a/net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild b/net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild
deleted file mode 100644
index ffead8b84325..000000000000
--- a/net-vpn/vpnc/vpnc-0.5.3_p550-r3.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# 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
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-20 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-18 13:07 [gentoo-commits] repo/gentoo:master commit in: net-vpn/vpnc/files/, net-vpn/vpnc/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2020-09-06  9:57 David Seifert
2023-02-20 20:52 David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox