# Contributor: Paul Mattal # Maintainer: Calimero # Maintainer (Parabola): André Silva # Contributor (Parabola): Márcio Silva pkgname=aufs3-libre pkgver=3.3_20120430 pkgrel=1.1 # Set to whatever the tree of your aufs-libre-friendly kernel is, and set the right dependency. #_kernver=${pkgver%_*}-LIBRE #depends=('aufs_friendly') _kernver=3.3-LIBRE-AUFS_FRIENDLY depends=('linux-libre-aufs_friendly' 'linux-libre-aufs_friendly-headers') pkgdesc="Another UnionFS implementation" arch=('i686' 'x86_64' 'mips64el') url="http://aufs.sourceforge.net/" license=('GPL2') replaces=('aufs' 'aufs2' 'aufs3') conflicts=('aufs2' 'aufs3') provides=("aufs3=$pkgver") install=aufs3-libre.install source=("http://calimeroteknik.free.fr/src/aufs3-${pkgver}.tar.gz") options=('!makeflags' '!strip') md5sums=('70ccfcf9914ce46ba7cbab42444b6ce8') build() { cd "${srcdir}/aufs3-${pkgver}" sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ config.mk sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ config.mk sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ config.mk sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ config.mk sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ config.mk sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ config.mk sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \ config.mk if [ "${CARCH}" = "x86_64" ]; then inot64=" y" else inot64="" fi sed -i "s|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 =${inot64}|" \ config.mk # build, sed fixes are from gentoo portage build sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile sed -i "s:__user::g" include/linux/aufs_type.h ln -s "/usr/src/linux-$(