diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-03-11 21:31:25 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-03-11 21:31:25 -0300 |
commit | ed6f882f7bccfa04db213f2a6d90223450717884 (patch) | |
tree | 1c179592bccb8e64fe9d18e5fe675d78e6be54f9 /libre/aufs3-libre/PKGBUILD | |
parent | 7363c011f2b64e3b6931fac1244cdcee493ac928 (diff) | |
parent | f1079d00d137e7d330ae54bc438746bc369366ee (diff) | |
download | abslibre-ed6f882f7bccfa04db213f2a6d90223450717884.tar.gz abslibre-ed6f882f7bccfa04db213f2a6d90223450717884.tar.bz2 abslibre-ed6f882f7bccfa04db213f2a6d90223450717884.zip |
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'libre/aufs3-libre/PKGBUILD')
-rw-r--r-- | libre/aufs3-libre/PKGBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/libre/aufs3-libre/PKGBUILD b/libre/aufs3-libre/PKGBUILD new file mode 100644 index 000000000..cb338fe6f --- /dev/null +++ b/libre/aufs3-libre/PKGBUILD @@ -0,0 +1,69 @@ +# Contributor: Paul Mattal <pjmattal@elys.com> +# Maintainer: Calimero <calimeroteknik@free.fr> +# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy> + +pkgname=aufs3-libre +pkgver=3.2_20120109 +pkgrel=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.2-LIBRE-AUFS_FRIENDLY +depends=('linux-libre-aufs_friendly') + +pkgdesc="Another UnionFS implementation" +arch=('i686' 'x86_64') +url="http://aufs.sourceforge.net/" +license=('GPL2') +replaces=('aufs' 'aufs2' 'aufs3') +conflicts=('aufs3') +provides=("aufs3=$pkgver") +install=aufs3-libre.install +source=("http://calimeroteknik.free.fr/src/aufs3-${pkgver}.tar.gz") +options=('!makeflags' '!strip') +md5sums=('4ee4adc0c25127c942be973410a6f90a') + +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 + make KDIR="/usr/src/linux-$(</lib/modules/extramodules-${_kernver}/version)" +} + +package() { + cd "${srcdir}/aufs3-${pkgver}" + install -D -m644 fs/aufs/aufs.ko \ + "${pkgdir}/lib/modules/extramodules-${_kernver}/aufs.ko" + #"${pkgdir}/lib/modules/${_kernver}/kernel/fs/aufs/aufs.ko" + # tweak the install script for the right kernel version + sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \ + "${startdir}/aufs3.install" + # install include file + install -D -m 644 include/linux/aufs_type.h "${pkgdir}/usr/include/linux/aufs_type.h" + # gzip -9 the module + find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \; +} |