wok annotate linux64-aufs/receipt @ rev 18032
Up: cookutils, cookutils-daemon (731).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 08 15:53:40 2015 +0300 (2015-05-08) |
parents | 787074b4d567 |
children | 4184d3fe3f1b |
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@17374 | 38 make -j 1 KDIR=/usr/src/linux |
pascal@17374 | 39 xz -f fs/aufs/aufs.ko |
pascal@17374 | 40 } |
pascal@17374 | 41 |
pascal@17374 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17374 | 43 genpkg_rules() |
pascal@17374 | 44 { |
pascal@17374 | 45 EXTRAVERSION=_${kvers} |
pascal@17374 | 46 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs |
pascal@17374 | 47 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@17374 | 48 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz |
pascal@17374 | 49 install -D -o root -m 0644 $src/include/linux/aufs_type.h \ |
pascal@17374 | 50 $fs/usr/include/linux/aufs_type.h |
pascal@17374 | 51 } |
pascal@17374 | 52 |
pascal@17374 | 53 # Post install/remove commands for Tazpkg. |
pascal@17374 | 54 post_install() |
pascal@17374 | 55 { |
pascal@17374 | 56 echo "Processing post-install commands..." |
pascal@17374 | 57 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 58 } |
pascal@17374 | 59 |
pascal@17374 | 60 post_remove() |
pascal@17374 | 61 { |
pascal@17374 | 62 echo "Processing post-remove commands..." |
pascal@17374 | 63 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 64 } |