wok view linux-aufs/receipt @ rev 20257

Add giflossy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 23:27:32 2018 +0100 (23 months ago)
parents 6d5dc1d4590e
children 708b5293dd29
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-aufs"
4 SOURCE="aufs"
5 VERSION="20130311"
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.2"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers git xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i \
22 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
23 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
24 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
25 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
26 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
27 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
28 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
29 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
30 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk
32 # The sed fixes are from gentoo portage build.
33 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
34 sed -i "s:__user::g" include/linux/aufs_type.h
36 # Linux 3.2.71 support
37 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c
38 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c
40 make -j 1 KDIR=/usr/src/linux
41 xz -f fs/aufs/aufs.ko
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 EXTRAVERSION=_${kvers}
48 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs
49 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
50 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
51 mkdir -p $install/usr/include/linux
52 cp $src/include/linux/aufs_type.h $install/usr/include/linux
53 }
55 # Post install/remove commands for Tazpkg.
56 post_install()
57 {
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
59 }
61 post_remove()
62 {
63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
64 }