blob: cbc0dff57a89e0be5dd92366b12a1dc0c14380ad (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/snarf/snarf-7.0-r2.ebuild,v 1.5 2003/10/20 22:00:07 taviso Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A full featured small web-spider"
SRC_URI="http://www.xach.com/snarf/${P}.tar.gz"
HOMEPAGE="http://www.xach.com/snarf/"
KEYWORDS="x86 alpha"
LICENSE="GPL-2"
SLOT="0"
DEPEND=">=sys-libs/glibc-2.1.3"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/snarf-basename-patch.diff
epatch ${FILESDIR}/snarf-unlink-empty.diff
}
src_compile() {
econf || die
emake || die
}
src_install() {
into /usr
dobin snarf
doman snarf.1
dodoc COPYING ChangeLog README TODO
}
pkg_postinst() {
einfo 'To use snarf with portage, try these settings in your make.conf'
einfo
einfo ' FETCHCOMMAND="/usr/bin/snarf -b \${URI} \${DISTDIR}/\${FILE}"'
einfo ' RESUMECOMMAND="/usr/bin/snarf -rb \${URI} \${DISTDIR}/\${FILE}"'
}
|