blob: d7d40d07bd9f2aeac924d1a2da89e7c860b102bc (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
inherit eutils multilib toolchain-funcs
DESCRIPTION="access control list utilities, libraries and headers"
HOMEPAGE="http://savannah.nongnu.org/projects/acl"
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
IUSE="nfs nls static-libs"
RDEPEND=">=sys-apps/attr-2.4
nfs? ( net-libs/libnfsidmap )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_prepare() {
if use nfs ; then
epatch \
"${FILESDIR}"/0001-Add-nfsv4-posix-acl-translation.patch \
"${FILESDIR}"/0002-nfsd4-move-to-new-nfsv4-posix-mapping-clean-up.patch \
"${FILESDIR}"/0003-NFSv4-POSIX-mapping-clean-up-loop-interation.patch \
"${FILESDIR}"/0004-acl_ptn4_get_mask-style-cleanup.patch \
"${FILESDIR}"/0005-fix-WRITE_MODE.patch \
"${FILESDIR}"/0006-Remove-some-some-unused-header-cruft.patch \
"${FILESDIR}"/0007-NFSv4-POSIX-relax-inheritance-bit-mapping.patch \
"${FILESDIR}"/0008-NFSv4-POSIX-factor-out-inheritance-splitting-code.patch \
"${FILESDIR}"/0009-NFSv4-POSIX-remove-a-redundant-NULL-check.patch \
"${FILESDIR}"/0010-Minor-header-cleanup.patch \
"${FILESDIR}"/0011-POSIX-NFSv4-relax-inheritance-bit-mapping.patch \
"${FILESDIR}"/0012-nfsv4-posix-mapping-don-t-add-unnecessary-masks.patch \
"${FILESDIR}"/0013-nfsv4-posix-return-zero-length-default-acl-when-appr.patch \
"${FILESDIR}"/0014-nfsd4-remove-spurious-XATTR_REPLACE.patch \
"${FILESDIR}"/0015-fix-comment-typo.patch \
"${FILESDIR}"/0016-fix-nfs4-posix-mapping-state-allocation.patch \
"${FILESDIR}"/0017-fix-calculation-of-group-bits.patch
fi
epatch "${FILESDIR}"/${PN}-2.2.49-quote-strchr.patch
epatch "${FILESDIR}"/${PN}-2.2.51-config-shell.patch #365397
sed -i \
-e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
configure # hack PATH with AC_PATH_PROG
sed -i \
-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
include/builddefs.in \
|| die "failed to update builddefs"
strip-linguas po
}
src_configure() {
unset PLATFORM #184564
export OPTIMIZER=${CFLAGS}
export DEBUG=-DNDEBUG
econf \
$(use_enable nls gettext) \
--enable-shared $(use_enable static-libs static) \
--libexecdir="${EPREFIX}"/usr/$(get_libdir) \
--bindir="${EPREFIX}"/bin
}
src_install() {
emake DIST_ROOT="${D}" install install-dev install-lib || die
use static-libs || find "${D}" -name '*.la' -delete
# move shared libs to /
gen_usr_ldscript -a acl
}
|