1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 K_WANT_GENPATCHES="base extras experimental"
10 inherit kernel-2 eutils readme.gentoo-r1
12 AUFS_VERSION=4.19.63+_p20190909
13 AUFS_TARBALL="aufs-sources-${AUFS_VERSION}.tar.xz"
14 # git archive -v --remote=git://git.code.sf.net/p/aufs/aufs4-standalone aufs${AUFS_VERSION/_p*} > aufs-sources-${AUFS_VERSION}.tar
15 AUFS_URI="https://dev.gentoo.org/~jlec/distfiles/${AUFS_TARBALL}"
17 KEYWORDS="~amd64 ~x86"
18 HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches http://aufs.sourceforge.net/"
19 IUSE="experimental module vanilla"
21 DESCRIPTION="Full sources (incl. Gentoo patchset) for the linux kernel tree and aufs4 support"
26 !vanilla? ( ${GENPATCHES_URI} )
29 PDEPEND="=sys-fs/aufs-util-4*"
31 README_GENTOO_SUFFIX="-r1"
37 unset UNIPATCH_LIST_GENPATCHES UNIPATCH_LIST_DEFAULT
38 ewarn "You are using USE=vanilla"
39 ewarn "This will drop all support from the gentoo kernel security team"
43 "${WORKDIR}"/aufs4-kbuild.patch
44 "${WORKDIR}"/aufs4-base.patch
45 "${WORKDIR}"/aufs4-mmap.patch"
47 use module && UNIPATCH_LIST+=" "${WORKDIR}"/aufs4-standalone.patch"
49 unpack ${AUFS_TARBALL}
51 einfo "Using aufs4 version: ${AUFS_VERSION}"
59 sed -e 's:tristate:bool:g' -i "${WORKDIR}"/fs/aufs/Kconfig || die
61 cp -f "${WORKDIR}"/include/uapi/linux/aufs_type.h include/uapi/linux/aufs_type.h || die
62 cp -rf "${WORKDIR}"/{Documentation,fs} . || die
67 dodoc "${WORKDIR}"/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
68 docompress -x /usr/share/doc/${PF}/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
69 readme.gentoo_create_doc
74 einfo "For more info on this patchset, and how to report problems, see:"
76 has_version sys-fs/aufs-util || \
77 elog "In order to use aufs FS you need to install sys-fs/aufs-util"
79 readme.gentoo_print_elog