wok-next annotate aufs/receipt @ rev 15855
New kernel config and huge receipt clean up
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 29 09:56:07 2014 +0100 (2014-01-29) |
parents | 773c1b6e7f21 |
children | 2a99b2b046d1 |
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" |
pankso@15855 | 7 MAINTAINER="godane@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pankso@9730 | 9 WEB_SITE="http://aufs.sf.net/" |
pankso@9730 | 10 PROVIDE="linux-aufs" |
pankso@9730 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12285 | 12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" |
pascal@13939 | 13 BRANCH="origin/${PACKAGE}3.2" |
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 { |
pankso@15855 | 21 sed -i \ |
pankso@15855 | 22 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pankso@15855 | 23 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pankso@15855 | 24 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pankso@15855 | 25 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pankso@15855 | 26 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pankso@15855 | 27 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pankso@15855 | 28 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pankso@15855 | 29 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pankso@15855 | 30 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
pankso@15855 | 31 |
pankso@10669 | 32 # The sed fixes are from gentoo portage build. |
slaxemulator@8143 | 33 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
slaxemulator@8143 | 34 sed -i "s:__user::g" include/linux/aufs_type.h |
slaxemulator@8085 | 35 make -j 1 KDIR=/usr/src/linux |
pascal@15638 | 36 xz -f fs/aufs/aufs.ko |
slaxemulator@7297 | 37 } |
slaxemulator@7297 | 38 |
slaxemulator@7297 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7297 | 40 genpkg_rules() |
slaxemulator@7297 | 41 { |
pankso@15855 | 42 EXTRAVERSION=_${kvers} |
pankso@15855 | 43 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs |
pankso@15855 | 44 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pankso@15855 | 45 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz |
pankso@15855 | 46 install -D -o root -m 0644 $src/include/linux/aufs_type.h \ |
pankso@12285 | 47 $fs/usr/include/linux/aufs_type.h |
slaxemulator@7297 | 48 } |
slaxemulator@7297 | 49 |
pankso@15855 | 50 # Post install/remove commands for Tazpkg. |
slaxemulator@7297 | 51 post_install() |
slaxemulator@7297 | 52 { |
slaxemulator@7297 | 53 echo "Processing post-install commands..." |
pankso@15855 | 54 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@7297 | 55 } |
slaxemulator@7297 | 56 |
slaxemulator@7297 | 57 post_remove() |
slaxemulator@7297 | 58 { |
slaxemulator@7297 | 59 echo "Processing post-remove commands..." |
pankso@15855 | 60 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@8085 | 61 } |