2016-04-28 09:09:54 +03:00
|
|
|
# Copyright 1999-2016 Gentoo Foundation
|
2015-11-12 10:37:40 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-04-28 09:09:54 +03:00
|
|
|
EAPI=6
|
2015-11-12 10:37:40 +03:00
|
|
|
|
2016-08-12 09:05:36 +03:00
|
|
|
inherit autotools
|
|
|
|
|
|
|
|
DESCRIPTION="FTP wrapper which supports TLS with every FTP client"
|
|
|
|
HOMEPAGE="http://www.tlswrap.com/"
|
2015-11-12 10:37:40 +03:00
|
|
|
SRC_URI="http://www.tlswrap.com/${P}.tar.gz"
|
|
|
|
|
|
|
|
# GPL-2 for Gentoo init script
|
|
|
|
LICENSE="BSD GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="libressl"
|
|
|
|
|
|
|
|
DEPEND="!libressl? ( dev-libs/openssl:0= )
|
|
|
|
libressl? ( dev-libs/libressl:= )"
|
2016-08-12 09:05:36 +03:00
|
|
|
RDEPEND="${DEPEND}"
|
2015-11-12 10:37:40 +03:00
|
|
|
|
2016-04-28 15:15:04 +03:00
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/${P}-libressl.patch"
|
2016-08-12 09:05:36 +03:00
|
|
|
"${FILESDIR}/respect-cflags.patch"
|
|
|
|
"${FILESDIR}/modernize-am_init_automake.patch"
|
|
|
|
"${FILESDIR}/fix-Wformat-security-warnings.patch"
|
2016-04-28 15:15:04 +03:00
|
|
|
)
|
2015-11-12 10:37:40 +03:00
|
|
|
|
2016-08-12 09:05:36 +03:00
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
2015-11-12 10:37:40 +03:00
|
|
|
src_install() {
|
|
|
|
emake prefix="${D}/usr" install
|
|
|
|
dodoc ChangeLog README
|
|
|
|
newinitd "${FILESDIR}/tlswrap.init" tlswrap
|
|
|
|
}
|