wok-current annotate linux64-aufs/receipt @ rev 23288
updated perl-apache-dbi (1.07 -> 1.12)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 29 15:03:00 2020 +0100 (2020-03-29) |
parents | 708b5293dd29 |
children | 97e141edc8c2 |
rev | line source |
---|---|
pascal@17374 | 1 # SliTaz package receipt. |
pascal@17374 | 2 |
pascal@17374 | 3 PACKAGE="linux64-aufs" |
pascal@17375 | 4 SOURCE="aufs" |
pascal@20264 | 5 VERSION="20150928" |
pascal@17374 | 6 CATEGORY="base-system" |
pascal@17374 | 7 SHORT_DESC="aufs3 kernel module" |
pascal@17374 | 8 MAINTAINER="godane@slitaz.org" |
pascal@17374 | 9 LICENSE="GPL2" |
pascal@17374 | 10 WEB_SITE="http://aufs.sf.net/" |
pascal@17375 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@17374 | 12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" |
pascal@20264 | 13 BRANCH="origin/${PACKAGE}3.16" |
pascal@20261 | 14 PROVIDE="aufs:linux64" |
pascal@17374 | 15 |
pascal@17374 | 16 DEPENDS="linux64" |
pascal@17375 | 17 BUILD_DEPENDS="linux64-module-headers git xz uclibc-cross-compiler-x86_64" |
pascal@17375 | 18 |
pascal@17375 | 19 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" |
pascal@17374 | 20 |
pascal@17374 | 21 # Rules to configure and make the package. |
pascal@17374 | 22 compile_rules() |
pascal@17374 | 23 { |
pascal@17374 | 24 sed -i \ |
pascal@17374 | 25 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pascal@17374 | 26 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pascal@17374 | 27 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pascal@17374 | 28 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pascal@17374 | 29 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pascal@17374 | 30 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pascal@17374 | 31 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pascal@17374 | 32 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pascal@17376 | 33 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \ |
pascal@17374 | 34 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
al@18741 | 35 |
pascal@17374 | 36 # The sed fixes are from gentoo portage build. |
pascal@20264 | 37 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@17374 | 38 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@20264 | 39 sed -i "s:__user::g" include/uapi/linux/aufs_type.h |
pascal@20264 | 40 |
pascal@18385 | 41 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c |
pascal@18383 | 42 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c |
al@18741 | 43 |
pascal@17374 | 44 make -j 1 KDIR=/usr/src/linux |
pascal@17374 | 45 xz -f fs/aufs/aufs.ko |
pascal@17374 | 46 } |
pascal@17374 | 47 |
pascal@17374 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17374 | 49 genpkg_rules() |
pascal@17374 | 50 { |
pascal@17374 | 51 EXTRAVERSION=_${kvers} |
pascal@20264 | 52 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs \ |
pascal@20264 | 53 $install/usr/include/linux |
pascal@17374 | 54 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@17374 | 55 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz |
pascal@20264 | 56 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \ |
pascal@20264 | 57 $install/usr/include/linux/aufs_type.h |
pascal@17374 | 58 } |
pascal@17374 | 59 |
pascal@17374 | 60 # Post install/remove commands for Tazpkg. |
pascal@17374 | 61 post_install() |
pascal@17374 | 62 { |
pascal@20264 | 63 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 64 } |
pascal@17374 | 65 |
pascal@17374 | 66 post_remove() |
pascal@17374 | 67 { |
pascal@20264 | 68 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 69 } |