commit a0d14ca80386eba5a33759cafd5e4cc7b7a5f5aa parent d8225cac1d9fb04323e2251b35e2f1e21f9db1d3 Author: parazyd <parazyd@dyne.org> Date: Mon, 12 Jul 2021 09:00:49 +0200 net-misc/sacc: TLS support Diffstat:
M | net-misc/sacc/sacc-9999.ebuild | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/net-misc/sacc/sacc-9999.ebuild b/net-misc/sacc/sacc-9999.ebuild @@ -12,9 +12,12 @@ EGIT_REPO_URI="git://bitreich.org/sacc" LICENSE="ISC" SLOT="0" KEYWORDS="" -IUSE="ncurses savedconfig static" +IUSE="ncurses savedconfig static ssl" -DEPEND="ncurses? ( sys-libs/ncurses:0 )" +DEPEND=" + ncurses? ( sys-libs/ncurses:0 ) + ssl? ( dev-libs/libretls:0 ) +" RDEPEND="${DEPEND}" src_prepare() { @@ -26,10 +29,15 @@ src_prepare() { else sed -e 's/LIBS=.*/UI=txt/' -i config.mk fi + if use static; then echo "LDFLAGS+=-static" >> config.mk fi + if use ssl; then + echo "LIBS+=-ltls" >> config.mk + fi + restore_config config.h }