blob: e870f318efcc3c45f21ff52feea41075944e508a (
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
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftp/ftp-0.17.23.0.2.1.ebuild,v 1.1 2011/09/17 07:27:19 vapier Exp $
EAPI="2"
inherit eutils toolchain-funcs flag-o-matic versionator
PATCH_VER="2"
MY_PN="netkit-ftp"
MY_PV="$(get_version_component_range 1-2)"
MY_P="netkit-${PN}-${MY_PV}"
DEB_PN="${MY_PN}-ssl"
DEB_PV="$(get_version_component_range 1-3)+$(get_version_component_range 4-5)-$(get_version_component_range 6)"
DESCRIPTION="Standard Linux FTP client"
HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
SRC_URI="ftp://sunsite.unc.edu/pub/Linux/system/network/netkit/${MY_P}.tar.gz
mirror://debian/pool/main/n/${DEB_PN}/${DEB_PN}_${DEB_PV}.debian.tar.gz
mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ipv6 readline ssl"
RDEPEND=">=sys-libs/ncurses-5.2
readline? ( sys-libs/readline )
ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
EPATCH_FORCE="yes" EPATCH_SUFFIX="diff" epatch "${WORKDIR}"/debian/patches
EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
}
src_configure() {
append-lfs-flags #101038
tc-export CC
# not an autoconf script
./configure \
--prefix=/usr \
$(use_enable ipv6) \
$(use_enable readline) \
$(use_enable ssl)
}
src_install() {
dobin ftp/ftp || die
doman ftp/ftp.1 ftp/netrc.5
dodoc ChangeLog README BUGS
}
|