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 95A12139360 for ; Sat, 7 Aug 2021 00:05:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58317E09C3; Sat, 7 Aug 2021 00:05:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17B29E09C3 for ; Sat, 7 Aug 2021 00:05:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 36552342B51 for ; Sat, 7 Aug 2021 00:05:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC1F685A for ; Sat, 7 Aug 2021 00:05:35 +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: <1628294679.d6d2ccc78afb0e0fcbfb03ddbe08b86fd95e0313.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/ocserv/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/ocserv/ocserv-9999.ebuild X-VCS-Directories: net-vpn/ocserv/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: d6d2ccc78afb0e0fcbfb03ddbe08b86fd95e0313 X-VCS-Branch: master Date: Sat, 7 Aug 2021 00:05:35 +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: 19f4132d-ad55-4882-97f7-d726e7c2e610 X-Archives-Hash: 5e45015818ff6beb2b3f0ef49501f501 commit: d6d2ccc78afb0e0fcbfb03ddbe08b86fd95e0313 Author: Mike Gilbert gentoo org> AuthorDate: Sat Aug 7 00:04:30 2021 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sat Aug 7 00:04:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6d2ccc7 net-vpn/ocserv: add live ebuild Signed-off-by: Mike Gilbert gentoo.org> net-vpn/ocserv/ocserv-9999.ebuild | 95 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/net-vpn/ocserv/ocserv-9999.ebuild b/net-vpn/ocserv/ocserv-9999.ebuild new file mode 100644 index 00000000000..1dd59ce1a33 --- /dev/null +++ b/net-vpn/ocserv/ocserv-9999.ebuild @@ -0,0 +1,95 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +if [[ ${PV} == 9999 ]]; then + inherit autotools git-r3 + EGIT_REPO_URI="https://gitlab.com/openconnect/ocserv.git" +else + SRC_URI="ftp://ftp.infradead.org/pub/ocserv/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="Openconnect SSL VPN server" +HOMEPAGE="https://ocserv.gitlab.io/www/index.html" + +LICENSE="GPL-2" +SLOT="0" +IUSE="geoip kerberos +lz4 otp pam radius +seccomp systemd tcpd test" +RESTRICT="!test? ( test )" + +BDEPEND=" + virtual/pkgconfig + test? ( + net-libs/gnutls[tools(+)] + net-libs/socket_wrapper + net-vpn/openconnect + sys-libs/nss_wrapper + sys-libs/uid_wrapper + ) +" +DEPEND=" + dev-libs/libnl:3= + dev-libs/libev:0= + >=dev-libs/nettle-2.7:0= + dev-libs/pcl:0= + dev-libs/protobuf-c:0= + >=net-libs/gnutls-3.3.0:0= + net-libs/http-parser:0= + sys-libs/readline:0= + sys-libs/talloc:0= + virtual/libcrypt:= + geoip? ( dev-libs/geoip:0= ) + kerberos? ( virtual/krb5 ) + lz4? ( app-arch/lz4:0= ) + otp? ( sys-auth/oath-toolkit:0= ) + pam? ( sys-libs/pam:0= ) + radius? ( net-dialup/freeradius-client:0= ) + seccomp? ( sys-libs/libseccomp:0= ) + systemd? ( sys-apps/systemd:0= ) + tcpd? ( sys-apps/tcp-wrappers:0= ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + if [[ ${PV} == 9999 ]]; then + eautoreconf + fi +} + +src_configure() { + local myconf=( + --without-root-tests + --without-nuttcp-tests + + $(use_enable seccomp) + $(use_enable systemd) + + $(use_with geoip) + $(use_with kerberos gssapi) + $(use_with lz4) + $(use_with otp liboath) + $(use_with radius) + $(use_with tcpd libwrap) + ) + econf "${myconf[@]}" +} + +src_install() { + default + + dodoc doc/sample.{config,passwd} + use otp && dodoc doc/sample.otp + + doinitd "${FILESDIR}"/ocserv + + if use systemd; then + systemd_dounit doc/systemd/socket-activated/ocserv.{service,socket} + else + systemd_dounit doc/systemd/standalone/ocserv.service + fi +}