summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/l2tpns/l2tpns-2.1.21.ebuild')
-rw-r--r--net-dialup/l2tpns/l2tpns-2.1.21.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/net-dialup/l2tpns/l2tpns-2.1.21.ebuild b/net-dialup/l2tpns/l2tpns-2.1.21.ebuild
new file mode 100644
index 0000000..08f4737
--- /dev/null
+++ b/net-dialup/l2tpns/l2tpns-2.1.21.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit linux-info eutils multilib toolchain-funcs
+
+DESCRIPTION="Layer 2 tunneling protocol network server (LNS)"
+HOMEPAGE="http://sourceforge.net/projects/l2tpns"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/libcli-1.8.5"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ pushd "${S}"
+ epatch "${FILESDIR}/${PN}-trust-localhost.patch"
+
+ sed -i \
+ -e '/^#include <libcli.h>$/ a #include <linux/types.h>' \
+ "${S}"/l2tpns.c || die "sed on l2tpns.c failed"
+}
+
+src_compile() {
+ emake \
+ OPTIM="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ libdir="/usr/$(get_libdir)/${PN}" \
+ || die "emake failed"
+}
+
+src_install() {
+ emake install \
+ DESTDIR="${D}" \
+ libdir="/usr/$(get_libdir)/${PN}" \
+ || die "emake install failed"
+}