summaryrefslogtreecommitdiff
blob: 99aefb4e008778ba05dc53e7a1f0c7e15ba03477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

if [[ ${PV} == 99999999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://gitlab.com/openconnect/vpnc-scripts.git"
else
	SRC_URI="ftp://ftp.infradead.org/pub/vpnc-scripts/${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi

DESCRIPTION="Connect scripts for use with vpnc and openconnect (and similar clients)"
HOMEPAGE="https://gitlab.com/openconnect/vpnc-scripts"

LICENSE="GPL-2+"
SLOT="0"

RDEPEND="!<net-vpn/vpnc-0.5.3_p550-r3"

src_install() {
	exeinto /etc/vpnc
	doexe vpnc-script{,-{ptrtd,sshd}}
}