gentoo-ebuilds/net-dialup/rp-l2tp/rp-l2tp-0.4-r5.ebuild
Sam James 4bf458e63a
net-dialup/rp-l2tp: Stabilize 0.4-r5 x86, #942517
Signed-off-by: Sam James <sam@gentoo.org>
2024-10-30 14:41:24 +00:00

43 lines
908 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools toolchain-funcs
DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX systems"
HOMEPAGE="https://sourceforge.net/projects/rp-l2tp/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
LICENSE="GPL-2+ GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
PATCHES=(
"${FILESDIR}/${P}-gentoo.patch"
"${FILESDIR}/${P}-flags.patch"
"${FILESDIR}/${P}-build.patch"
"${FILESDIR}/${P}-parallel-build.patch"
"${FILESDIR}/${P}-clang16-build-fix.patch"
)
src_prepare() {
default
eautoreconf #871210
tc-export AR CC
}
src_install() {
emake RPM_INSTALL_ROOT="${D}" install
einstalldocs
newdoc l2tp.conf rp-l2tpd.conf
docinto libevent
dodoc -r libevent/Doc/.
docompress -x /usr/share/doc/${PF}/libevent
newinitd "${FILESDIR}"/rp-l2tpd-init rp-l2tpd
}