wok-current annotate linux-aufs/receipt @ rev 20879

updated electric-fence (2.1.13 -> 2.2.5)
author Hans-G?nter Theisgen
date Sun Feb 24 15:20:13 2019 +0100 (2019-02-24)
parents d010061fa2dc
children 68cf96abc146
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@20324 21 if [ ! -d fs ]; then
pascal@20324 22 kver=$(. ../linux/receipt ; echo $VERSION)
pascal@20324 23 git checkout origin/aufs${kver%.*}
pascal@20324 24 fi
pascal@20200 25 sed -i \
pascal@20200 26 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
pascal@20200 27 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
pascal@20200 28 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
pascal@20200 29 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
pascal@20200 30 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
pascal@20200 31 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
pascal@20200 32 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
pascal@20200 33 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
pascal@20200 34 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
pascal@20261 35
pascal@20200 36 # The sed fixes are from gentoo portage build.
pascal@20261 37 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile
pascal@20200 38 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
pascal@20261 39 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
pascal@20261 40
pascal@20200 41 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
pascal@20200 42 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
pascal@20261 43
pascal@20200 44 make -j 1 KDIR=/usr/src/linux
pascal@20200 45 xz -f fs/aufs/aufs.ko
pascal@20200 46 }
pascal@20200 47
pascal@20200 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20200 49 genpkg_rules()
pascal@20200 50 {
pascal@20200 51 EXTRAVERSION=_${kvers}
pascal@20264 52 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs \
pascal@20264 53 $install/usr/include/linux
pascal@20200 54 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
pascal@20200 55 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
pascal@20261 56 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
pascal@20261 57 $install/usr/include/linux/aufs_type.h
pascal@20200 58 }
pascal@20200 59
pascal@20200 60 # Post install/remove commands for Tazpkg.
pascal@20200 61 post_install()
pascal@20200 62 {
pascal@20200 63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20200 64 }
pascal@20200 65
pascal@20200 66 post_remove()
pascal@20200 67 {
pascal@20200 68 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20200 69 }