wok-6.x view linux-aufs/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | da48d3800edf |
children | c3a6f662a1c1 |
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 current_version()
19 {
20 wget -O - https://sourceforge.net/p/aufs/aufs3-standalone/ci/${BRANCH#*linux-}/tree/ 2> /dev/null | \
21 sed '/History/!d;s|.*href="|https://sourceforge.net|;s|".*||' | xargs wget -O - 2> /dev/null | \
22 sed '/markdown_content/!d;s|</p>||;s|.* ||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Must match kernel version
29 #[ -d fs ] && rm -rf *
31 if [ ! -d fs ]; then
32 kver=$(. $WOK/linux/receipt ; echo $VERSION)
33 git checkout origin/aufs${kver%.*}
34 fi
36 sed -i \
37 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
38 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
39 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
40 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
41 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
42 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
43 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
44 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
45 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
47 # The sed fixes are from gentoo portage build.
48 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile
49 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
50 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
52 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
53 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
55 make ARCH=i386 KDIR=/usr/src/linux
56 xz -f fs/aufs/aufs.ko
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 EXTRAVERSION=_${kvers}
63 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs \
64 $install/usr/include/linux
65 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
66 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
67 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
68 $install/usr/include/linux/aufs_type.h
69 }
71 # Post install/remove commands for Tazpkg.
72 post_install()
73 {
74 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
75 }
77 post_remove()
78 {
79 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
80 }