wok annotate aufs/receipt @ rev 18984
clementine: update bdeps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 16 21:28:57 2016 +0200 (2016-03-16) |
parents | e111e954037a |
children | 6d5dc1d4590e |
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 \ |
pascal@15865 | 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 |
pascal@18299 | 35 |
pascal@18299 | 36 # Linux 3.2.71 support |
pascal@18385 | 37 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c |
pascal@18299 | 38 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c |
pascal@18299 | 39 |
slaxemulator@8085 | 40 make -j 1 KDIR=/usr/src/linux |
pascal@15638 | 41 xz -f fs/aufs/aufs.ko |
slaxemulator@7297 | 42 } |
slaxemulator@7297 | 43 |
slaxemulator@7297 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7297 | 45 genpkg_rules() |
slaxemulator@7297 | 46 { |
pankso@15855 | 47 EXTRAVERSION=_${kvers} |
pankso@15855 | 48 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs |
pankso@15855 | 49 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pankso@15855 | 50 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz |
pankso@15855 | 51 install -D -o root -m 0644 $src/include/linux/aufs_type.h \ |
pankso@12285 | 52 $fs/usr/include/linux/aufs_type.h |
slaxemulator@7297 | 53 } |
slaxemulator@7297 | 54 |
pankso@15855 | 55 # Post install/remove commands for Tazpkg. |
slaxemulator@7297 | 56 post_install() |
slaxemulator@7297 | 57 { |
al@18667 | 58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@7297 | 59 } |
slaxemulator@7297 | 60 |
slaxemulator@7297 | 61 post_remove() |
slaxemulator@7297 | 62 { |
al@18667 | 63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
slaxemulator@8085 | 64 } |