aboutsummaryrefslogtreecommitdiff
blob: 58134e71f0849a51dbbb3e4afda753ff574c8909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit toolchain-funcs

DESCRIPTION="Secure file transfer optimized for files larger than 2GB"
HOMEPAGE="http://doc.in2p3.fr/bbftp/"
SRC_URI="http://doc.in2p3.fr/bbftp/dist/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"

DEPEND="ssl? ( dev-libs/openssl:0 )"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P}/bbftpc"

src_prepare() {
	sed \
		-e '/@INSTALL@\|mkdir/s:${\(prefix\|mandir\|bindir\)}:${DESTDIR}${\1}:' \
		-e '/\/etc/d' \
		-i Makefile.in || die
	tc-export CC
	default
}

src_configure() {
	econf \
		$(use_with ssl) \
		--with-gzip \
		--without-rfio \
		--without-afs
}

src_install() {
	DOCS=( ../README ../ChangeLog ../TODO ../doc/. )
	default
	doman ../doc/bbftp.1
}