wok-6.x annotate linux64-aufs/receipt @ rev 18383
linux64-aufs: add 3.2.71 patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 18 09:16:57 2015 +0200 (2015-09-18) |
parents | b0c8c9cf19fa |
children | e111e954037a |
rev | line source |
---|---|
pascal@17374 | 1 # SliTaz package receipt. |
pascal@17374 | 2 |
pascal@17374 | 3 PACKAGE="linux64-aufs" |
pascal@17375 | 4 SOURCE="aufs" |
pascal@17374 | 5 VERSION="20130311" |
pascal@17374 | 6 CATEGORY="base-system" |
pascal@17374 | 7 SHORT_DESC="aufs3 kernel module" |
pascal@17374 | 8 MAINTAINER="godane@slitaz.org" |
pascal@17374 | 9 LICENSE="GPL2" |
pascal@17374 | 10 WEB_SITE="http://aufs.sf.net/" |
pascal@17375 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@17374 | 12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" |
pascal@17374 | 13 BRANCH="origin/${PACKAGE}3.2" |
pascal@17374 | 14 |
pascal@17374 | 15 DEPENDS="linux64" |
pascal@17375 | 16 BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64" |
pascal@17375 | 17 |
pascal@17375 | 18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" |
pascal@17374 | 19 |
pascal@17374 | 20 # Rules to configure and make the package. |
pascal@17374 | 21 compile_rules() |
pascal@17374 | 22 { |
pascal@17374 | 23 sed -i \ |
pascal@17374 | 24 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pascal@17374 | 25 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pascal@17374 | 26 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pascal@17374 | 27 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pascal@17374 | 28 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pascal@17374 | 29 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pascal@17374 | 30 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pascal@17374 | 31 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pascal@17376 | 32 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \ |
pascal@17374 | 33 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
pascal@17374 | 34 |
pascal@17374 | 35 # The sed fixes are from gentoo portage build. |
pascal@17374 | 36 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@17374 | 37 sed -i "s:__user::g" include/linux/aufs_type.h |
pascal@18383 | 38 |
pascal@18383 | 39 # Linux 3.2.71 support |
pascal@18383 | 40 sed -i 's/d_u.d_child/d_u.d_alias/' fs/aufs/dcsub.c fs/aufs/hnotify.c |
pascal@18383 | 41 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c |
pascal@18383 | 42 |
pascal@17374 | 43 make -j 1 KDIR=/usr/src/linux |
pascal@17374 | 44 xz -f fs/aufs/aufs.ko |
pascal@17374 | 45 } |
pascal@17374 | 46 |
pascal@17374 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17374 | 48 genpkg_rules() |
pascal@17374 | 49 { |
pascal@17374 | 50 EXTRAVERSION=_${kvers} |
pascal@17374 | 51 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs |
pascal@17374 | 52 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@17374 | 53 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz |
pascal@17374 | 54 install -D -o root -m 0644 $src/include/linux/aufs_type.h \ |
pascal@17374 | 55 $fs/usr/include/linux/aufs_type.h |
pascal@17374 | 56 } |
pascal@17374 | 57 |
pascal@17374 | 58 # Post install/remove commands for Tazpkg. |
pascal@17374 | 59 post_install() |
pascal@17374 | 60 { |
pascal@17374 | 61 echo "Processing post-install commands..." |
pascal@17374 | 62 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 63 } |
pascal@17374 | 64 |
pascal@17374 | 65 post_remove() |
pascal@17374 | 66 { |
pascal@17374 | 67 echo "Processing post-remove commands..." |
pascal@17374 | 68 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 69 } |