wok annotate linux64-aufs/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 4769ccf2417c |
children | c3a6f662a1c1 |
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@24303 | 13 BRANCH="origin/linux-aufs3.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@24142 | 21 current_version() |
pascal@24142 | 22 { |
pascal@24142 | 23 wget -O - https://sourceforge.net/p/aufs/aufs3-standalone/ci/${BRANCH#*linux-}/tree/ 2> /dev/null | \ |
pascal@24142 | 24 sed '/History/!d;s|.*href="|https://sourceforge.net|;s|".*||' | xargs wget -O - 2> /dev/null | \ |
pascal@24142 | 25 sed '/markdown_content/!d;s|</p>||;s|.* ||;q' |
pascal@24142 | 26 } |
pascal@24142 | 27 |
pascal@17374 | 28 # Rules to configure and make the package. |
pascal@17374 | 29 compile_rules() |
pascal@17374 | 30 { |
pascal@24142 | 31 # Must match kernel version |
pascal@24142 | 32 #[ -d fs ] && rm -rf * |
pascal@24142 | 33 |
pascal@24142 | 34 if [ ! -d fs ]; then |
pascal@24142 | 35 kver=$(. $WOK/linux/receipt ; echo $VERSION) |
pascal@24142 | 36 git checkout origin/aufs${kver%.*} |
pascal@24142 | 37 fi |
pascal@24142 | 38 |
pascal@17374 | 39 sed -i \ |
pascal@17374 | 40 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pascal@17374 | 41 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pascal@17374 | 42 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pascal@17374 | 43 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pascal@17374 | 44 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pascal@17374 | 45 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pascal@17374 | 46 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pascal@17374 | 47 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pascal@17376 | 48 -e 's|CONFIG_AUFS_INO_T_64 =.*|CONFIG_AUFS_INO_T_64 = y|' \ |
pascal@17374 | 49 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
al@18741 | 50 |
pascal@17374 | 51 # The sed fixes are from gentoo portage build. |
pascal@20264 | 52 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@17374 | 53 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@20264 | 54 sed -i "s:__user::g" include/uapi/linux/aufs_type.h |
pascal@20264 | 55 |
pascal@18385 | 56 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c |
pascal@18383 | 57 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c |
al@18741 | 58 |
pascal@24088 | 59 make ARCH=x86_64 KDIR=/usr/src/linux |
pascal@17374 | 60 xz -f fs/aufs/aufs.ko |
pascal@17374 | 61 } |
pascal@17374 | 62 |
pascal@17374 | 63 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17374 | 64 genpkg_rules() |
pascal@17374 | 65 { |
pascal@17374 | 66 EXTRAVERSION=_${kvers} |
pascal@20264 | 67 mkdir -p $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs \ |
pascal@20264 | 68 $install/usr/include/linux |
pascal@17374 | 69 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@17374 | 70 $fs/lib/modules/${kvers}-slitaz64/kernel/fs/aufs/aufs.ko.xz |
pascal@20264 | 71 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \ |
pascal@20264 | 72 $install/usr/include/linux/aufs_type.h |
pascal@17374 | 73 } |
pascal@17374 | 74 |
pascal@17374 | 75 # Post install/remove commands for Tazpkg. |
pascal@17374 | 76 post_install() |
pascal@17374 | 77 { |
pascal@20264 | 78 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 79 } |
pascal@17374 | 80 |
pascal@17374 | 81 post_remove() |
pascal@17374 | 82 { |
pascal@20264 | 83 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@17374 | 84 } |