wok view aufs/receipt @ rev 14532
openssh: privsep-path fixs no start
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun May 19 00:48:28 2013 +0000 (2013-05-19) |
parents | 90dc8be173fd |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs"
4 VERSION="20130311"
5 CATEGORY="base-system"
6 SHORT_DESC="aufs3 kernel module"
7 MAINTAINER="slaxemulator@gmail.com"
8 WEB_SITE="http://aufs.sf.net/"
9 PROVIDE="linux-aufs"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git"
12 BRANCH="origin/${PACKAGE}3.2"
13 COOK_OPT="!remove_src"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers git xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \
24 config.mk || return 1
25 sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \
26 config.mk || return 1
27 sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \
28 config.mk || return 1
29 sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \
30 config.mk || return 1
31 sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \
32 config.mk || return 1
33 sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
34 config.mk || return 1
35 sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \
36 config.mk || return 1
37 sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \
38 config.mk || return 1
39 sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \
40 config.mk || return 1
42 # The sed fixes are from gentoo portage build.
43 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile
44 sed -i "s:__user::g" include/linux/aufs_type.h
45 make -j 1 KDIR=/usr/src/linux
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
52 BASEVER=${KERNEL_VERSION:0:3}
53 EXTRAVERSION=_$BASEVER
54 mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs
55 cp $src/fs/aufs/aufs.ko $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/
56 xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko
57 chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
58 chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz
59 install -D -m 644 $src/include/linux/aufs_type.h \
60 $fs/usr/include/linux/aufs_type.h
61 }
63 post_install()
64 {
65 echo "Processing post-install commands..."
66 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
67 }
69 post_remove()
70 {
71 echo "Processing post-remove commands..."
72 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
73 }