wok view linux-aufs/receipt @ rev 23698

updated tiff, tiff-apps and tiff-dev (4.0.10 -> 4.1.0)
author Hans-G?nter Theisgen
date Tue Apr 28 07:51:26 2020 +0100 (2020-04-28)
parents d010061fa2dc
children 68cf96abc146
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-aufs"
4 SOURCE="aufs"
5 VERSION="20150928"
6 CATEGORY="base-system"
7 SHORT_DESC="aufs3 kernel module"
8 MAINTAINER="godane@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://aufs.sf.net/"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
13 BRANCH="origin/${PACKAGE}3.16"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers git xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 if [ ! -d fs ]; then
22 kver=$(. ../linux/receipt ; echo $VERSION)
23 git checkout origin/aufs${kver%.*}
24 fi
25 sed -i \
26 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
27 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
28 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
29 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
30 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
31 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
32 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
33 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
34 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
36 # The sed fixes are from gentoo portage build.
37 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile
38 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
39 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
41 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
42 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
44 make -j 1 KDIR=/usr/src/linux
45 xz -f fs/aufs/aufs.ko
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 EXTRAVERSION=_${kvers}
52 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs \
53 $install/usr/include/linux
54 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
55 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
56 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
57 $install/usr/include/linux/aufs_type.h
58 }
60 # Post install/remove commands for Tazpkg.
61 post_install()
62 {
63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
64 }
66 post_remove()
67 {
68 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
69 }