1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit systemd toolchain-funcs
8 DESCRIPTION="A modern version of the Layer 2 Tunneling Protocol (L2TP) daemon"
9 HOMEPAGE="https://github.com/xelerance/xl2tpd"
10 SRC_URI="https://github.com/xelerance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86"
18 >=sys-kernel/linux-headers-2.6"
24 DOCS=(CREDITS README.xl2tpd BUGS CHANGES TODO doc/README.patents)
28 emake OSFLAGS="-DLINUX"
32 emake PREFIX=/usr DESTDIR="${D}" install
34 newinitd "${FILESDIR}"/xl2tpd-init-r1 xl2tpd
36 systemd_dounit "${FILESDIR}"/xl2tpd.service
37 systemd_dotmpfilesd "${FILESDIR}"/xl2tpd.conf
42 newins doc/l2tpd.conf.sample xl2tpd.conf
44 newins doc/l2tp-secrets.sample l2tp-secrets