diff options
Diffstat (limited to 'net-dialup/rp-l2tp/rp-l2tp-0.4-r3.ebuild')
-rw-r--r-- | net-dialup/rp-l2tp/rp-l2tp-0.4-r3.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net-dialup/rp-l2tp/rp-l2tp-0.4-r3.ebuild b/net-dialup/rp-l2tp/rp-l2tp-0.4-r3.ebuild new file mode 100644 index 000000000000..06058b993573 --- /dev/null +++ b/net-dialup/rp-l2tp/rp-l2tp-0.4-r3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX systems" +HOMEPAGE="http://sourceforge.net/projects/rp-l2tp/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64 ~ppc x86" +SLOT="0" + +src_prepare() { + tc-export AR CC RANLIB + epatch \ + "${FILESDIR}/${P}-gentoo.patch" \ + "${FILESDIR}/${P}-flags.patch" \ + "${FILESDIR}/${P}-build.patch" + epatch_user +} + +src_install() { + emake RPM_INSTALL_ROOT="${D}" install + + dodoc README + newdoc l2tp.conf rp-l2tpd.conf + docinto libevent + dodoc libevent/Doc/* + docompress -x "/usr/share/doc/${PF}/libevent" + + newinitd "${FILESDIR}/rp-l2tpd-init" rp-l2tpd +} |