blob: 5b78cc51c9ce12d4e3a77ded4adbb4619b10aede (
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
42
43
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/mtree/mtree-2007.4.ebuild,v 1.3 2008/06/14 08:57:54 flameeyes Exp $
inherit flag-o-matic eutils
MY_PV=${PV/./Q}
DESCRIPTION="check the permissions of a file system against a spec file"
HOMEPAGE="http://www.netbsd.org/"
SRC_URI="ftp://ftp.netbsd.org/pub/pkgsrc/pkgsrc-${MY_PV}/pkgsrc-${MY_PV}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~s390 ~x86"
IUSE=""
S=${WORKDIR}/pkgsrc/pkgtools
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}+glibc-2.8.patch"
}
src_compile() {
cd "${S}"/libnbcompat/files
econf || die "econf libnbcompat failed"
# workaround weak makefile dependencies
emake nbcompat/nbtypes.h || die "emake nbcompat/nbtypes.h failed"
emake || die "emake libnbcompat failed"
cd "${S}"/mtree/files
append-cppflags -I../../libnbcompat/files
LIBS=../../libnbcompat/files/libnbcompat.a \
econf || die "econf mtree failed"
emake || die "emake mtree failed"
}
src_install() {
cd mtree/files
dosbin mtree || die
doman mtree.8
}
|