1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
7 DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX systems"
8 HOMEPAGE="https://sourceforge.net/projects/rp-l2tp/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
12 KEYWORDS="amd64 ~ppc x86"
16 "${FILESDIR}/${P}-gentoo.patch"
17 "${FILESDIR}/${P}-flags.patch"
18 "${FILESDIR}/${P}-build.patch"
19 "${FILESDIR}/${P}-parallel-build.patch"
23 tc-export AR CC RANLIB
28 emake RPM_INSTALL_ROOT="${D}" install
31 newdoc l2tp.conf rp-l2tpd.conf
34 docompress -x "/usr/share/doc/${PF}/libevent"
36 newinitd "${FILESDIR}/rp-l2tpd-init" rp-l2tpd