/[gentoo-alt]/trunk/overlay/sys-apps/findutils/findutils-4.2.25.ebuild
Gentoo

Contents of /trunk/overlay/sys-apps/findutils/findutils-4.2.25.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 803 - (show annotations) (download)
Fri Oct 7 12:30:39 2005 UTC (9 years ago) by flameeyes
File size: 1710 byte(s)
Added findutils bump that works on FreeBSD.
1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/findutils/findutils-4.2.24.ebuild,v 1.4 2005/10/01 22:04:55 ciaranm Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
6
7 # SELINUX_PATCH="findutils-4.2.23-selinux.patch"
8
9 DESCRIPTION="GNU utilities for finding files"
10 HOMEPAGE="http://www.gnu.org/software/findutils/findutils.html"
11 # SRC_URI="mirror://gnu/${PN}/${P}.tar.gz mirror://gentoo/${P}.tar.gz"
12 SRC_URI="ftp://alpha.gnu.org/gnu/${PN}/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
17 IUSE="nls build selinux static"
18
19 RDEPEND="selinux? ( sys-libs/libselinux )"
20 DEPEND="${RDEPEND}
21 nls? ( sys-devel/gettext )"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26
27 # Don't build or install locate because it conflicts with slocate,
28 # which is a secure version of locate. See bug 18729
29 sed -i '/^SUBDIRS/s/locate//' Makefile.in
30
31 # Patches for selinux
32 # use selinux && epatch "${FILESDIR}/${SELINUX_PATCH}"
33 }
34
35 src_compile() {
36 use static && append-ldflags -static
37
38 local myconf="--without-included-regex"
39 [[ "${USERLAND}" != "GNU" ]] && myconf=" --program-prefix=g"
40
41 econf $(use_enable nls) ${myconf} || die "configure failed"
42 emake libexecdir=/usr/lib/find AR="$(tc-getAR)" || die "make failed"
43 }
44
45 src_install() {
46 make DESTDIR="${D}" libexecdir="${D}/usr/lib/find" install || die
47 prepallman
48
49 rm -rf "${D}"/usr/var
50 use build \
51 && rm -rf "${D}"/usr/share \
52 || dodoc NEWS README TODO ChangeLog
53 }
54
55 pkg_postinst() {
56 ewarn "Please note that the locate and updatedb binaries"
57 ewarn "are now provided by slocate, not findutils."
58 }

  ViewVC Help
Powered by ViewVC 1.1.20