summaryrefslogtreecommitdiff
path: root/kernels/aufs3-libre/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-14 10:24:35 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-14 10:24:35 +0100
commita4f3ca8891e50241ac2ca144949e92b26920ffaf (patch)
treed31841075429e437c4908580e8ec074f2fe40aa5 /kernels/aufs3-libre/PKGBUILD
parent3156702a5deccd61451be9f7d8ba0fd212a3043b (diff)
parent01a0c4bc740842efa3bf1a7e1d6c8be5656e4e2a (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/aspell-ca/PKGBUILD community/corkscrew/PKGBUILD cross/mips64el-unknown-linux-gnu-binutils/PKGBUILD extra/gstreamer0.10-base/PKGBUILD extra/gstreamer0.10-good/PKGBUILD extra/gstreamer0.10-ugly/PKGBUILD extra/libxi/PKGBUILD extra/mesa/PKGBUILD extra/mkvtoolnix/PKGBUILD extra/mpc/PKGBUILD extra/poppler/PKGBUILD extra/xf86-video-siliconmotion/PKGBUILD extra/xorg-server/PKGBUILD gnome-unstable/gconf/PKGBUILD gnome-unstable/gnome-desktop/PKGBUILD gnome-unstable/network-manager-applet/PKGBUILD gnome-unstable/vte3/PKGBUILD multilib/chuck/PKGBUILD multilib/lib32-libpciaccess/PKGBUILD multilib/lib32-libx11/PKGBUILD multilib/lib32-libxcb/PKGBUILD multilib/lib32-libxcb/libxcb-1.1-no-pthread-stubs.patch multilib/lib32-libxft/PKGBUILD multilib/lib32-libxi/PKGBUILD multilib/lib32-llvm/PKGBUILD multilib/lib32-mesa/PKGBUILD testing/grep/PKGBUILD testing/sudo/PKGBUILD testing/xf86-input-joystick/PKGBUILD testing/xf86-input-wacom/PKGBUILD
Diffstat (limited to 'kernels/aufs3-libre/PKGBUILD')
-rw-r--r--kernels/aufs3-libre/PKGBUILD70
1 files changed, 70 insertions, 0 deletions
diff --git a/kernels/aufs3-libre/PKGBUILD b/kernels/aufs3-libre/PKGBUILD
new file mode 100644
index 000000000..6c593e2c2
--- /dev/null
+++ b/kernels/aufs3-libre/PKGBUILD
@@ -0,0 +1,70 @@
+# Contributor: Paul Mattal <pjmattal@elys.com>
+# Maintainer: Calimero <calimeroteknik@free.fr>
+# Maintainer (Parabola): André Silva <andre.paulista@adinet.com.uy>
+# Contributor (Parabola): Márcio Silva <coadde@adinet.com.uy>
+
+pkgname=aufs3-libre
+pkgver=3.2_20120109
+pkgrel=2
+
+# 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' 'linux-libre-aufs_friendly-headers')
+
+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=('35dd55adc3f403f532ebe6d8fb354c77')
+
+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-libre.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 {} \;
+}