wok-current view linux-aufs/receipt @ rev 24141
linux: add r8188eu.ko
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 14 20:30:13 2021 +0000 (2021-11-14) |
parents | 97e141edc8c2 |
children | 4769ccf2417c |
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 *
30 kver=$(. $WOK/linux/receipt ; echo $VERSION)
31 git checkout origin/aufs${kver%.*}
33 sed -i \
34 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
35 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
36 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
37 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
38 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
39 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
40 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
41 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
42 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
44 # The sed fixes are from gentoo portage build.
45 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile
46 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
47 sed -i "s:__user::g" include/uapi/linux/aufs_type.h
49 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
50 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
52 make ARCH=i386 KDIR=/usr/src/linux
53 xz -f fs/aufs/aufs.ko
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 EXTRAVERSION=_${kvers}
60 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs \
61 $install/usr/include/linux
62 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
63 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
64 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \
65 $install/usr/include/linux/aufs_type.h
66 }
68 # Post install/remove commands for Tazpkg.
69 post_install()
70 {
71 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
72 }
74 post_remove()
75 {
76 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
77 }