wok view aufs/receipt @ rev 16222
ARM add librsvg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Mar 31 23:37:15 2014 +0200 (2014-03-31) |
parents | db5b03f42dd9 |
children | 59f5754f3bea |
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="20130311"
5 CATEGORY="base-system"
6 SHORT_DESC="aufs3 kernel module"
7 MAINTAINER="godane@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://aufs.sf.net/"
10 PROVIDE="linux-aufs"
11 TARBALL="$PACKAGE-$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
35 make -j 1 KDIR=/usr/src/linux
36 xz -f fs/aufs/aufs.ko
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 EXTRAVERSION=_${kvers}
43 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs
44 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \
45 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz
46 install -D -o root -m 0644 $src/include/linux/aufs_type.h \
47 $fs/usr/include/linux/aufs_type.h
48 }
50 # Post install/remove commands for Tazpkg.
51 post_install()
52 {
53 echo "Processing post-install commands..."
54 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
55 }
57 post_remove()
58 {
59 echo "Processing post-remove commands..."
60 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
61 }