wok-next annotate linux64-aufs/receipt @ rev 18924

glibc: fix build (thanks az_ua)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 25 14:47:17 2016 +0200 (2016-02-25)
parents bf1acce7f66c
children 119e586fb823
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@18387 14 PROVIDE="aufs:linux64"
pascal@17374 15
pascal@17374 16 DEPENDS="linux64"
pascal@17375 17 BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64"
pascal@17375 18
pascal@17375 19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
pascal@17374 20
pascal@17374 21 # Rules to configure and make the package.
pascal@17374 22 compile_rules()
pascal@17374 23 {
pascal@17374 24 sed -i \
pascal@17374 25 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
pascal@17374 26 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
pascal@17374 27 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
pascal@17374 28 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
pascal@17374 29 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
pascal@17374 30 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
pascal@17374 31 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
pascal@17374 32 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
pascal@17376 33 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \
pascal@17374 34 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
al@18741 35
pascal@17374 36 # The sed fixes are from gentoo portage build.
pascal@17374 37 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
pascal@17374 38 sed -i "s:__user::g" include/linux/aufs_type.h
al@18741 39
pascal@18383 40 # Linux 3.2.71 support
pascal@18385 41 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
pascal@18383 42 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
al@18741 43
pascal@17374 44 make -j 1 KDIR=/usr/src/linux
pascal@17374 45 xz -f fs/aufs/aufs.ko
pascal@17374 46 }
pascal@17374 47
pascal@17374 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17374 49 genpkg_rules()
pascal@17374 50 {
pascal@17374 51 EXTRAVERSION=_${kvers}
pascal@17374 52 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs
pascal@17374 53 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
pascal@17374 54 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
pascal@17374 55 install -D -o root -m 0644 $src/include/linux/aufs_type.h \
pascal@17374 56 $fs/usr/include/linux/aufs_type.h
pascal@17374 57 }
pascal@17374 58
pascal@17374 59 # Post install/remove commands for Tazpkg.
pascal@17374 60 post_install()
pascal@17374 61 {
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 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64
pascal@17374 68 }