wok-6.x annotate linux-aufs/receipt @ rev 20261
Up linux 3.16.55
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 15 11:24:25 2018 +0100 (2018-03-15) |
parents | b9679b3a0de2 |
children | d010061fa2dc |
rev | line source |
---|---|
pascal@20200 | 1 # SliTaz package receipt. |
pascal@20200 | 2 |
pascal@20200 | 3 PACKAGE="linux-aufs" |
pascal@20200 | 4 SOURCE="aufs" |
pascal@20261 | 5 VERSION="20150928" |
pascal@20200 | 6 CATEGORY="base-system" |
pascal@20200 | 7 SHORT_DESC="aufs3 kernel module" |
pascal@20200 | 8 MAINTAINER="godane@slitaz.org" |
pascal@20200 | 9 LICENSE="GPL2" |
pascal@20200 | 10 WEB_SITE="http://aufs.sf.net/" |
pascal@20200 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@20200 | 12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" |
pascal@20261 | 13 BRANCH="origin/${PACKAGE}3.16" |
pascal@20200 | 14 |
pascal@20200 | 15 DEPENDS="linux" |
pascal@20200 | 16 BUILD_DEPENDS="linux-module-headers git xz" |
pascal@20200 | 17 |
pascal@20200 | 18 # Rules to configure and make the package. |
pascal@20200 | 19 compile_rules() |
pascal@20200 | 20 { |
pascal@20200 | 21 sed -i \ |
pascal@20200 | 22 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pascal@20200 | 23 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pascal@20200 | 24 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pascal@20200 | 25 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pascal@20200 | 26 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pascal@20200 | 27 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pascal@20200 | 28 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pascal@20200 | 29 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pascal@20200 | 30 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
pascal@20261 | 31 |
pascal@20200 | 32 # The sed fixes are from gentoo portage build. |
pascal@20261 | 33 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@20200 | 34 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@20261 | 35 sed -i "s:__user::g" include/uapi/linux/aufs_type.h |
pascal@20261 | 36 |
pascal@20200 | 37 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c |
pascal@20200 | 38 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c |
pascal@20261 | 39 |
pascal@20200 | 40 make -j 1 KDIR=/usr/src/linux |
pascal@20200 | 41 xz -f fs/aufs/aufs.ko |
pascal@20200 | 42 } |
pascal@20200 | 43 |
pascal@20200 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20200 | 45 genpkg_rules() |
pascal@20200 | 46 { |
pascal@20200 | 47 EXTRAVERSION=_${kvers} |
pascal@20200 | 48 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs |
pascal@20200 | 49 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@20200 | 50 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz |
pascal@20261 | 51 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \ |
pascal@20261 | 52 $install/usr/include/linux/aufs_type.h |
pascal@20200 | 53 } |
pascal@20200 | 54 |
pascal@20200 | 55 # Post install/remove commands for Tazpkg. |
pascal@20200 | 56 post_install() |
pascal@20200 | 57 { |
pascal@20200 | 58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20200 | 59 } |
pascal@20200 | 60 |
pascal@20200 | 61 post_remove() |
pascal@20200 | 62 { |
pascal@20200 | 63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20200 | 64 } |