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.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/net-dialup/l2tpns/l2tpns-2.1.21.ebuild b/net-dialup/l2tpns/l2tpns-2.1.21.ebuild
index 08f4737..c368183 100644
--- a/net-dialup/l2tpns/l2tpns-2.1.21.ebuild
+++ b/net-dialup/l2tpns/l2tpns-2.1.21.ebuild
@@ -16,12 +16,16 @@ IUSE=""
DEPEND=">=dev-libs/libcli-1.8.5"
RDEPEND="${DEPEND}"
+CONFIG_CHECK="TUN"
+
src_unpack() {
unpack ${A}
pushd "${S}"
epatch "${FILESDIR}/${PN}-trust-localhost.patch"
+ # Without "#include <linux/types.h>", compilation fails with:
+ # l2tpns.c:509: error: syntax error before "__u32"
sed -i \
-e '/^#include <libcli.h>$/ a #include <linux/types.h>' \
"${S}"/l2tpns.c || die "sed on l2tpns.c failed"
@@ -42,4 +46,7 @@ src_install() {
DESTDIR="${D}" \
libdir="/usr/$(get_libdir)/${PN}" \
|| die "emake install failed"
+
+ dodoc THANKS Changes
+ dohtml Docs/manual.html
}