1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/fmirror/fmirror-0.8.4-r2.ebuild,v 1.1 2007/01/25 07:08:57 antarus Exp $ |
4 |
|
5 |
inherit eutils flag-o-matic toolchain-funcs |
6 |
|
7 |
DESCRIPTION="FTP mirror utility" |
8 |
HOMEPAGE="http://linux.maruhn.com/sec/fmirror.html" |
9 |
SRC_URI="http://www.ibiblio.org/pub/solaris/freeware/SOURCES/${P}.tar.gz" |
10 |
LICENSE="GPL-2" |
11 |
SLOT="0" |
12 |
KEYWORDS="~amd64 ~ppc ~sparc x86" |
13 |
IUSE="" |
14 |
|
15 |
RDEPEND="" |
16 |
DEPEND="" |
17 |
|
18 |
src_unpack() { |
19 |
unpack ${A} |
20 |
cd "${S}" |
21 |
|
22 |
epatch "${FILESDIR}"/${PN}-crlf.patch |
23 |
} |
24 |
|
25 |
src_compile() { |
26 |
append-flags "-D_FILE_OFFSET_BITS=64" # large file support bug # 123964 |
27 |
|
28 |
econf \ |
29 |
--datadir=/etc/fmirror || die "econf failed" |
30 |
|
31 |
emake CC="$(tc-getCC)" || die "emake failed" |
32 |
} |
33 |
|
34 |
src_install() { |
35 |
dobin fmirror |
36 |
dodoc ChangeLog README |
37 |
newdoc configs/README README.sample |
38 |
doman fmirror.1 |
39 |
|
40 |
cd configs |
41 |
insinto /etc/fmirror/sample |
42 |
doins {sample,generic,redhat}.conf |
43 |
} |