summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/mirror/mirror-2.9.ebuild')
-rw-r--r--net-misc/mirror/mirror-2.9.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/net-misc/mirror/mirror-2.9.ebuild b/net-misc/mirror/mirror-2.9.ebuild
new file mode 100644
index 000000000000..c29a280321b4
--- /dev/null
+++ b/net-misc/mirror/mirror-2.9.ebuild
@@ -0,0 +1,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.1 2003/08/22 11:33:33 mcummings 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
+}