summaryrefslogtreecommitdiff
blob: 645f997e8936161601717d65d6c24e6d60001eb5 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mtree/mtree-1.5.ebuild,v 1.7 2006/04/18 23:28:58 flameeyes Exp $

inherit eutils

DESCRIPTION="check the permissions of a file system against a spec file"
HOMEPAGE="http://www.netbsd.org/"
SRC_URI="ftp://ftp.netbsd.org/pub/NetBSD/packages/bootstrap-pkgsrc.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc s390 ~x86"
IUSE=""
DEPEND=""

S=${WORKDIR}/bootstrap-pkgsrc

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}/${P}-gcc4.patch"
}

src_compile() {
	cd digest
	chmod +x configure
	econf || die "econf failed"
	emake || die
	cd ../mtree
	chmod +x configure
	econf || die "econf failed"
	emake || die
}

src_install() {
	cd mtree
	dosbin mtree || die
	doman mtree.8
}