1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils flag-o-matic linux-info multilib toolchain-funcs
8 DESCRIPTION="Utilities are always necessary for aufs"
9 HOMEPAGE="http://aufs.sourceforge.net/"
10 SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
11 # git archive -v --prefix=${P}/ --remote=git://git.code.sf.net/p/aufs/aufs-util aufs4.14 -o ${P}.tar
16 KEYWORDS="~amd64 ~x86"
21 !<sys-fs/aufs3-3_p20130318"
23 ~sys-fs/aufs-headers-${PV}"
27 -e "/LDFLAGS += -static -s/d" \
28 -e "/CFLAGS/s:-O::g" \
29 -e "s:/usr/lib:/usr/$(get_libdir):g" \
33 -e '/LDFLAGS/s: -s::g' \
34 -e "s:m 644 -s:m 644:g" \
35 -e "s:/usr/lib:/usr/$(get_libdir):g" \
36 -i libau/Makefile || die
39 -e '/LDFLAGS/s: -s::g' \
40 -e '/LDLIBS/s:-lrt::g' \
41 -e '/LDLIBS/s:$: -lrt:g' \
42 -i fhsm/Makefile || die
45 export HOSTCC=$(tc-getCC)