wok-current annotate aufs/receipt @ rev 14381
re-alpine: build workaround
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 22 22:23:56 2013 +0200 (2013-04-22) |
parents | 90dc8be173fd |
children | 7896f0694ef6 |
rev | line source |
---|---|
slaxemulator@7297 | 1 # SliTaz package receipt. |
slaxemulator@7297 | 2 |
slaxemulator@7297 | 3 PACKAGE="aufs" |
pascal@14179 | 4 VERSION="20130311" |
slaxemulator@7297 | 5 CATEGORY="base-system" |
pankso@12285 | 6 SHORT_DESC="aufs3 kernel module" |
slaxemulator@7297 | 7 MAINTAINER="slaxemulator@gmail.com" |
pankso@9730 | 8 WEB_SITE="http://aufs.sf.net/" |
pankso@9730 | 9 PROVIDE="linux-aufs" |
pankso@9730 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12285 | 11 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" |
pascal@13939 | 12 BRANCH="origin/${PACKAGE}3.2" |
pankso@12285 | 13 COOK_OPT="!remove_src" |
pankso@9730 | 14 |
slaxemulator@7297 | 15 DEPENDS="linux" |
pascal@13278 | 16 BUILD_DEPENDS="linux-module-headers git xz" |
slaxemulator@7297 | 17 |
slaxemulator@7297 | 18 # Rules to configure and make the package. |
slaxemulator@7297 | 19 compile_rules() |
slaxemulator@7297 | 20 { |
slaxemulator@7297 | 21 cd $src |
slaxemulator@7297 | 22 |
slaxemulator@7297 | 23 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
slaxemulator@7297 | 24 config.mk || return 1 |
slaxemulator@9559 | 25 sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
slaxemulator@7297 | 26 config.mk || return 1 |
slaxemulator@7297 | 27 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
slaxemulator@7297 | 28 config.mk || return 1 |
slaxemulator@7297 | 29 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
slaxemulator@7297 | 30 config.mk || return 1 |
slaxemulator@7297 | 31 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
slaxemulator@7297 | 32 config.mk || return 1 |
slaxemulator@7297 | 33 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
slaxemulator@7297 | 34 config.mk || return 1 |
slaxemulator@7297 | 35 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
slaxemulator@7297 | 36 config.mk || return 1 |
slaxemulator@7297 | 37 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
slaxemulator@7297 | 38 config.mk || return 1 |
slaxemulator@7297 | 39 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \ |
slaxemulator@7297 | 40 config.mk || return 1 |
slaxemulator@7297 | 41 |
pankso@10669 | 42 # The sed fixes are from gentoo portage build. |
slaxemulator@8143 | 43 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
slaxemulator@8143 | 44 sed -i "s:__user::g" include/linux/aufs_type.h |
slaxemulator@8085 | 45 make -j 1 KDIR=/usr/src/linux |
slaxemulator@7297 | 46 } |
slaxemulator@7297 | 47 |
slaxemulator@7297 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7297 | 49 genpkg_rules() |
slaxemulator@7297 | 50 { |
pankso@12285 | 51 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pankso@12285 | 52 BASEVER=${KERNEL_VERSION:0:3} |
pankso@12285 | 53 EXTRAVERSION=_$BASEVER |
pankso@12285 | 54 mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs |
pascal@13278 | 55 cp $src/fs/aufs/aufs.ko $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/ |
pascal@13279 | 56 xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko |
pascal@13278 | 57 chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz |
pascal@13280 | 58 chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz |
pankso@10669 | 59 install -D -m 644 $src/include/linux/aufs_type.h \ |
pankso@12285 | 60 $fs/usr/include/linux/aufs_type.h |
slaxemulator@7297 | 61 } |
slaxemulator@7297 | 62 |
slaxemulator@7297 | 63 post_install() |
slaxemulator@7297 | 64 { |
slaxemulator@7297 | 65 echo "Processing post-install commands..." |
slaxemulator@7297 | 66 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@7297 | 67 } |
slaxemulator@7297 | 68 |
slaxemulator@7297 | 69 post_remove() |
slaxemulator@7297 | 70 { |
slaxemulator@7297 | 71 echo "Processing post-remove commands..." |
slaxemulator@8245 | 72 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@8085 | 73 } |