blob: 66ac51095a1cbd57ac7822b43c4ed7e26e8dc2b9 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mirror/mirror-2.9.ebuild,v 1.2 2003/09/05 22:01:49 msterret Exp $
inherit eutils
DESCRIPTION="FTP mirror utility"
HOMEPAGE="http://sunsite.org.uk/packages/mirror/"
SRC_URI="ftp://sunsite.org.uk/packages/mirror/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~alpha ~sparc ~ppc"
S=${WORKDIR}
DEPEND="dev-lang/perl"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PF}-gentoo.diff
}
src_compile() {
perl install.pl here <<EOC || die "perl install.pl here failed"
/usr/bin/perl
${S}
${S}
EOC
}
src_install() {
dodir /etc/mirror
insinto /etc/mirror
doins mirror.defaults packages/sunsite.org.uk
dodir /usr/lib/${P}
insinto /usr/lib/${P}
doins dateconv.pl ftp.pl lchat.pl lsparse.pl socket.ph
dobin mirror mm pkgs_to_mmin prune_logs do_unlinks
dohtml *.html
dodoc *.txt
newman mirror.man mirror.1
newman mm.man mm.1
einfo
einfo "Defaults and sample config are in /etc/mirror."
einfo
}
|