wok-current annotate linux-aufs/receipt @ rev 20264
Up lguest (3.16.55), linux64-aufs (20150928), remove linux-radio
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 15 15:50:34 2018 +0100 (2018-03-15) |
parents | 708b5293dd29 |
children | 564f7f9745bd |
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@20264 | 48 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs \ |
pascal@20264 | 49 $install/usr/include/linux |
pascal@20200 | 50 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@20200 | 51 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz |
pascal@20261 | 52 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \ |
pascal@20261 | 53 $install/usr/include/linux/aufs_type.h |
pascal@20200 | 54 } |
pascal@20200 | 55 |
pascal@20200 | 56 # Post install/remove commands for Tazpkg. |
pascal@20200 | 57 post_install() |
pascal@20200 | 58 { |
pascal@20200 | 59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20200 | 60 } |
pascal@20200 | 61 |
pascal@20200 | 62 post_remove() |
pascal@20200 | 63 { |
pascal@20200 | 64 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20200 | 65 } |