LICENSE="GPL-2"
SLOT="0"
-IUSE="dnscrypt luajit readline regex remote-logging +ssl test"
-RESTRICT="readline? ( bindist )"
+IUSE="dnscrypt luajit regex remote-logging +ssl test"
REQUIRED_USE="dnscrypt? ( ssl )"
DEPEND="
>=dev-libs/boost-1.35:=
+ dev-libs/libedit:=
luajit? ( dev-lang/luajit:= )
!luajit? ( >=dev-lang/lua-5.1:= )
remote-logging? ( dev-libs/protobuf:= )
- readline? ( sys-libs/readline:0= )
- !readline? ( dev-libs/libedit:= )
regex? ( dev-libs/re2:= )
ssl? ( dev-libs/libsodium:= )
"
"
src_prepare() {
- eapply "${FILESDIR}/${PN}-readline.patch"
- eapply_user
-
+ default
[[ ${PV} == 9999 ]] && eautoreconf
}
src_configure() {
- if use readline ; then
- local -x LIBEDIT_CFLAGS="-I/usr/include/readline"
- local -x LIBEDIT_LIBS="-lreadline -lcurses"
- append-cxxflags -DREADLINE
- fi
-
econf \
--sysconfdir=/etc/dnsdist \
$(use_enable ssl libsodium) \
elog
elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
-
- if use readline ; then
- ewarn "dnsdist (GPLv2) was linked against readline (GPLv3)."
- ewarn "A binary distribution should therefore not happen."
- fi
}
LICENSE="GPL-2"
SLOT="0"
-IUSE="dnscrypt luajit readline regex remote-logging snmp +ssl test"
-RESTRICT="readline? ( bindist )"
+IUSE="dnscrypt luajit regex remote-logging snmp +ssl test"
REQUIRED_USE="dnscrypt? ( ssl )"
DEPEND="
>=dev-libs/boost-1.35:=
+ dev-libs/libedit:=
luajit? ( dev-lang/luajit:= )
!luajit? ( >=dev-lang/lua-5.1:= )
remote-logging? ( dev-libs/protobuf:= )
- readline? ( sys-libs/readline:0= )
- !readline? ( dev-libs/libedit:= )
regex? ( dev-libs/re2:= )
snmp? ( net-analyzer/net-snmp:= )
ssl? ( dev-libs/libsodium:= )
"
src_prepare() {
- eapply "${FILESDIR}/${PN}-readline.patch"
- eapply_user
-
+ default
[[ ${PV} == 9999 ]] && eautoreconf
}
src_configure() {
- if use readline ; then
- local -x LIBEDIT_CFLAGS="-I/usr/include/readline"
- local -x LIBEDIT_LIBS="-lreadline -lcurses"
- append-cxxflags -DREADLINE
- fi
-
econf \
--sysconfdir=/etc/dnsdist \
$(use_enable ssl libsodium) \
elog
elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the"
elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default."
-
- if use readline ; then
- ewarn "dnsdist (GPLv2) was linked against readline (GPLv3)."
- ewarn "A binary distribution should therefore not happen."
- fi
}
+++ /dev/null
-diff -Naur dnsdist-1.1.0/dnsdist.cc dnsdist-1.1.0-gentoo/dnsdist.cc
---- dnsdist-1.1.0/dnsdist.cc 2016-12-29 13:45:46.000000000 +0100
-+++ dnsdist-1.1.0-gentoo/dnsdist.cc 2017-05-21 15:09:10.414951426 +0200
-@@ -29,6 +29,8 @@
-
- #if defined (__OpenBSD__)
- #include <readline/readline.h>
-+#elif defined READLINE
-+#include <readline/readline.h>
- #else
- #include <editline/readline.h>
- #endif
-diff -Naur dnsdist-1.1.0/dnsdist-console.cc dnsdist-1.1.0-gentoo/dnsdist-console.cc
---- dnsdist-1.1.0/dnsdist-console.cc 2016-12-29 13:45:46.000000000 +0100
-+++ dnsdist-1.1.0-gentoo/dnsdist-console.cc 2017-05-21 15:09:24.758950947 +0200
-@@ -25,6 +25,9 @@
- #if defined (__OpenBSD__)
- #include <readline/readline.h>
- #include <readline/history.h>
-+#elif defined READLINE
-+#include <readline/readline.h>
-+#include <readline/history.h>
- #else
- #include <editline/readline.h>
- #endif