diff options
author | Michael Cummings <mcummings@gentoo.org> | 2003-08-22 11:33:37 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2003-08-22 11:33:37 +0000 |
commit | 1e126656140c8bf20b51e7ed9acd63b65b59aed3 (patch) | |
tree | 2a73b198ec1761f68bf1eb24e878f2fd8da18fff /net-misc/mirror | |
parent | Bugzilla Bug 19104; ebuild and patch written/submitted by Mark Wagner (diff) | |
download | historical-1e126656140c8bf20b51e7ed9acd63b65b59aed3.tar.gz historical-1e126656140c8bf20b51e7ed9acd63b65b59aed3.tar.bz2 historical-1e126656140c8bf20b51e7ed9acd63b65b59aed3.zip |
Bugzilla Bug 19104; ebuild and patch written/submitted by Mark Wagner
Diffstat (limited to 'net-misc/mirror')
-rw-r--r-- | net-misc/mirror/Manifest | 3 | ||||
-rw-r--r-- | net-misc/mirror/files/digest-mirror-2.9 | 1 | ||||
-rw-r--r-- | net-misc/mirror/files/mirror-2.9-gentoo.diff | 18 | ||||
-rw-r--r-- | net-misc/mirror/mirror-2.9.ebuild | 48 |
4 files changed, 69 insertions, 1 deletions
diff --git a/net-misc/mirror/Manifest b/net-misc/mirror/Manifest index 4dc8f20a0b86..2c0ebaa3d0c3 100644 --- a/net-misc/mirror/Manifest +++ b/net-misc/mirror/Manifest @@ -1,3 +1,4 @@ -MD5 9daf256bbaff939167b51ebe93980d51 mirror-2.9.ebuild 969 +MD5 63bcd20a7585c2af0c5af526ef1d99e9 mirror-2.9.ebuild 1080 +MD5 3d63c53da8d1445758d27ff1955c3645 ChangeLog 442 MD5 6b984d38b2bd4623c01cfc7f5a9337e2 files/mirror-2.9-gentoo.diff 620 MD5 cdab24634c7164f11ad0b9b396449eff files/digest-mirror-2.9 62 diff --git a/net-misc/mirror/files/digest-mirror-2.9 b/net-misc/mirror/files/digest-mirror-2.9 new file mode 100644 index 000000000000..30a02f261b4c --- /dev/null +++ b/net-misc/mirror/files/digest-mirror-2.9 @@ -0,0 +1 @@ +MD5 55178a53c7b4253c9a396a38c5a9cb94 mirror-2.9.tar.gz 123194 diff --git a/net-misc/mirror/files/mirror-2.9-gentoo.diff b/net-misc/mirror/files/mirror-2.9-gentoo.diff new file mode 100644 index 000000000000..0fe91a38a036 --- /dev/null +++ b/net-misc/mirror/files/mirror-2.9-gentoo.diff @@ -0,0 +1,18 @@ +--- mirror.pl.dist Thu Apr 3 16:36:50 2003 ++++ mirror.pl Thu Apr 3 16:38:49 2003 +@@ -174,10 +174,14 @@ + $dir = &real_dir_from_path( $0 ); + unshift( @INC, $dir ); + +-# Debian GNU/Linux stores mirror.defaults in /etc/mirror ++# Debian GNU/Linux and Gentoo store mirror.defaults in /etc/mirror + $debian_defs = '/etc/mirror'; + unshift( @INC, $debian_defs ) if -d $debian_defs; + ++# Gentoo stores libraries in /usr/lib/mirror-2.9 ++$gentoo_libs = '/usr/lib/mirror-2.9'; ++unshift( @INC, $gentoo_libs ) if -d $gentoo_libs; ++ + # This, when eval'd, will get the current dir under windows NT/95 + $win_getcwd = 'Win32::GetCwd'; + 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 +} |