wok-current view linux64-aufs/receipt @ rev 25104

Up klavaro (1.2.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 22 08:45:04 2022 +0000 (2022-06-22)
parents 4769ccf2417c
children c3a6f662a1c1
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-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/linux-aufs3.16"
14 PROVIDE="aufs:linux64"
16 DEPENDS="linux64"
17 BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64"
19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
21 current_version()
22 {
23 wget -O - https://sourceforge.net/p/aufs/aufs3-standalone/ci/${BRANCH#*linux-}/tree/ 2> /dev/null | \
24 sed '/History/!d;s|.*href="|https://sourceforge.net|;s|".*||' | xargs wget -O - 2> /dev/null | \
25 sed '/markdown_content/!d;s|</p>||;s|.* ||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Must match kernel version
32 #[ -d fs ] && rm -rf *
34 if [ ! -d fs ]; then
35 kver=$(. $WOK/linux/receipt ; echo $VERSION)
36 git checkout origin/aufs${kver%.*}
37 fi
39 sed -i \
40 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
41 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
42 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
43 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
44 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
45 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
46 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
47 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
48 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \
49 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
51 # The sed fixes are from gentoo portage build.
52 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile
53 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
54 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
56 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
57 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
59 make ARCH=x86_64 KDIR=/usr/src/linux
60 xz -f fs/aufs/aufs.ko
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 EXTRAVERSION=_${kvers}
67 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs \
68 $install/usr/include/linux
69 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
70 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz
71 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
72 $install/usr/include/linux/aufs_type.h
73 }
75 # Post install/remove commands for Tazpkg.
76 post_install()
77 {
78 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
79 }
81 post_remove()
82 {
83 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
84 }