summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-10-01 23:55:18 -0400
committerMike Gilbert <floppym@gentoo.org>2021-10-02 02:00:08 -0400
commit873102d5cd839fd4efe00b9336a03341d36ab8fb (patch)
tree2dd157c5b1c1b6c54a51db8bb1550a70c984936e /net-vpn
parentnet-vpn/vpnc-scripts: initial import (diff)
downloadgentoo-873102d5cd839fd4efe00b9336a03341d36ab8fb.tar.gz
gentoo-873102d5cd839fd4efe00b9336a03341d36ab8fb.tar.bz2
gentoo-873102d5cd839fd4efe00b9336a03341d36ab8fb.zip
net-vpn/openconnect: depend on net-vpn/vpnc-scripts
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/openconnect/openconnect-8.10-r2.ebuild (renamed from net-vpn/openconnect/openconnect-8.10-r1.ebuild)13
-rw-r--r--net-vpn/openconnect/openconnect-9999.ebuild37
2 files changed, 22 insertions, 28 deletions
diff --git a/net-vpn/openconnect/openconnect-8.10-r1.ebuild b/net-vpn/openconnect/openconnect-8.10-r2.ebuild
index f4a03e951f4e..bd7b218a0229 100644
--- a/net-vpn/openconnect/openconnect-8.10-r1.ebuild
+++ b/net-vpn/openconnect/openconnect-8.10-r2.ebuild
@@ -12,12 +12,9 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/openconnect/openconnect.git"
inherit git-r3 autotools
else
- ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
+ SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
-VPNC_VER=20200930
-SRC_URI="${ARCHIVE_URI}
- ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
HOMEPAGE="http://www.infradead.org/openconnect.html"
@@ -50,6 +47,7 @@ DEPEND="
"
RDEPEND="${DEPEND}
sys-apps/iproute2
+ net-vpn/vpnc-scripts
"
BDEPEND="
virtual/pkgconfig
@@ -107,7 +105,7 @@ src_configure() {
$(use_with gssapi)
$(use_with smartcard libpcsclite)
$(use_with stoken)
- --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh"
+ --with-vpnc-script="${EPREFIX}/etc/vpnc-scripts/vpnc-script"
--without-java
)
@@ -131,10 +129,7 @@ src_install() {
default
find "${ED}" -name '*.la' -delete || die
- exeinto /etc/openconnect
- newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
-
- newinitd "${FILESDIR}"/openconnect.initd.${PV} openconnect
+ newinitd "${FILESDIR}"/openconnect.initd.8.10 openconnect
dodoc "${FILESDIR}"/README.OpenRC
insinto /etc/logrotate.d
newins "${FILESDIR}"/openconnect.logrotate openconnect
diff --git a/net-vpn/openconnect/openconnect-9999.ebuild b/net-vpn/openconnect/openconnect-9999.ebuild
index 347a0d597937..bd7b218a0229 100644
--- a/net-vpn/openconnect/openconnect-9999.ebuild
+++ b/net-vpn/openconnect/openconnect-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2011-2020 Gentoo Authors
+# Copyright 2011-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python{3_7,3_8,3_9} )
+PYTHON_COMPAT=( python3_{8,9} )
PYTHON_REQ_USE="xml"
inherit linux-info python-any-r1
@@ -12,12 +12,9 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/openconnect/openconnect.git"
inherit git-r3 autotools
else
- ARCHIVE_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+ SRC_URI="ftp://ftp.infradead.org/pub/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
fi
-VPNC_VER=20200226
-SRC_URI="${ARCHIVE_URI}
- ftp://ftp.infradead.org/pub/vpnc-scripts/vpnc-scripts-${VPNC_VER}.tar.gz"
DESCRIPTION="Free client for Cisco AnyConnect SSL VPN software"
HOMEPAGE="http://www.infradead.org/openconnect.html"
@@ -50,6 +47,7 @@ DEPEND="
"
RDEPEND="${DEPEND}
sys-apps/iproute2
+ net-vpn/vpnc-scripts
"
BDEPEND="
virtual/pkgconfig
@@ -107,7 +105,7 @@ src_configure() {
$(use_with gssapi)
$(use_with smartcard libpcsclite)
$(use_with stoken)
- --with-vpnc-script="${EPREFIX}/etc/openconnect/openconnect.sh"
+ --with-vpnc-script="${EPREFIX}/etc/vpnc-scripts/vpnc-script"
--without-java
)
@@ -129,21 +127,22 @@ src_test() {
src_install() {
default
-
find "${ED}" -name '*.la' -delete || die
- dodoc "${FILESDIR}"/README.OpenRC.txt
-
- newinitd "${FILESDIR}"/openconnect.init.in-r4 openconnect
- insinto /etc/openconnect
-
- newconfd "${FILESDIR}"/openconnect.conf.in openconnect
-
- exeinto /etc/openconnect
- newexe "${WORKDIR}"/vpnc-scripts-${VPNC_VER}/vpnc-script openconnect.sh
-
+ newinitd "${FILESDIR}"/openconnect.initd.8.10 openconnect
+ dodoc "${FILESDIR}"/README.OpenRC
insinto /etc/logrotate.d
newins "${FILESDIR}"/openconnect.logrotate openconnect
keepdir /var/log/openconnect
}
+
+pkg_postinst() {
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ ver_test $v -ge 8.10-r1 && continue
+ ewarn "openconnect tunnel-specific configurations stored in ${EROOT}/etc/conf.d"
+ ewarn "should be migrated to ${EROOT}/etc/openconnect/<tunnel>.conf"
+ ewarn "For more information see ${EROOT}/usr/share/doc/${PF}/README.OpenRC"
+ done
+}