wok annotate linux-aufs/receipt @ rev 25735
Remove iptraf: replaced by iptraf-ng
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 23 09:39:49 2024 +0000 (2 months ago) |
parents | 4769ccf2417c |
children |
rev | line source |
---|---|
pascal@20200 | 1 # SliTaz package receipt. |
pascal@20200 | 2 |
pascal@20200 | 3 PACKAGE="linux-aufs" |
pascal@20200 | 4 SOURCE="aufs" |
pascal@20261 | 5 VERSION="20150928" |
pascal@20200 | 6 CATEGORY="base-system" |
pascal@20200 | 7 SHORT_DESC="aufs3 kernel module" |
pascal@20200 | 8 MAINTAINER="godane@slitaz.org" |
pascal@20200 | 9 LICENSE="GPL2" |
pascal@25539 | 10 WEB_SITE="https://aufs.sf.net/" |
pascal@20200 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@20200 | 12 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" |
pascal@20261 | 13 BRANCH="origin/${PACKAGE}3.16" |
pascal@20200 | 14 |
pascal@20200 | 15 DEPENDS="linux" |
pascal@20200 | 16 BUILD_DEPENDS="linux-module-headers git xz" |
pascal@20200 | 17 |
pascal@24066 | 18 current_version() |
pascal@24066 | 19 { |
pascal@24066 | 20 wget -O - https://sourceforge.net/p/aufs/aufs3-standalone/ci/${BRANCH#*linux-}/tree/ 2> /dev/null | \ |
pascal@24066 | 21 sed '/History/!d;s|.*href="|https://sourceforge.net|;s|".*||' | xargs wget -O - 2> /dev/null | \ |
pascal@24066 | 22 sed '/markdown_content/!d;s|</p>||;s|.* ||;q' |
pascal@24066 | 23 } |
pascal@24066 | 24 |
pascal@20200 | 25 # Rules to configure and make the package. |
pascal@20200 | 26 compile_rules() |
pascal@20200 | 27 { |
pascal@24141 | 28 # Must match kernel version |
pascal@24142 | 29 #[ -d fs ] && rm -rf * |
pascal@24142 | 30 |
pascal@24142 | 31 if [ ! -d fs ]; then |
pascal@24142 | 32 kver=$(. $WOK/linux/receipt ; echo $VERSION) |
pascal@24142 | 33 git checkout origin/aufs${kver%.*} |
pascal@24142 | 34 fi |
pascal@24141 | 35 |
pascal@20200 | 36 sed -i \ |
pascal@20200 | 37 -e 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ |
pascal@20200 | 38 -e 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ |
pascal@20200 | 39 -e 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ |
pascal@20200 | 40 -e 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ |
pascal@20200 | 41 -e 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ |
pascal@20200 | 42 -e 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ |
pascal@20200 | 43 -e 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ |
pascal@20200 | 44 -e 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ |
pascal@20200 | 45 -e 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' config.mk |
pascal@24142 | 46 |
pascal@20200 | 47 # The sed fixes are from gentoo portage build. |
pascal@20261 | 48 sed -i "s:aufs.ko usr/include/uapi/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@20200 | 49 sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile |
pascal@20261 | 50 sed -i "s:__user::g" include/uapi/linux/aufs_type.h |
pascal@20261 | 51 |
pascal@20200 | 52 sed -i 's/d_u.d_child/d_child/' fs/aufs/dcsub.c fs/aufs/hnotify.c |
pascal@20200 | 53 sed -i 's/ d_alias/ d_u.d_alias/' fs/aufs/hnotify.c fs/aufs/export.c |
pascal@24142 | 54 |
pascal@24088 | 55 make ARCH=i386 KDIR=/usr/src/linux |
pascal@20200 | 56 xz -f fs/aufs/aufs.ko |
pascal@20200 | 57 } |
pascal@20200 | 58 |
pascal@20200 | 59 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20200 | 60 genpkg_rules() |
pascal@20200 | 61 { |
pascal@20200 | 62 EXTRAVERSION=_${kvers} |
pascal@20264 | 63 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs \ |
pascal@20264 | 64 $install/usr/include/linux |
pascal@20200 | 65 install -o root -m 0644 $src/fs/aufs/aufs.ko.xz \ |
pascal@20200 | 66 $fs/lib/modules/${kvers}-slitaz/kernel/fs/aufs/aufs.ko.xz |
pascal@20261 | 67 install -o root -m 0644 $src/include/uapi/linux/aufs_type.h \ |
pascal@20261 | 68 $install/usr/include/linux/aufs_type.h |
pascal@20200 | 69 } |
pascal@20200 | 70 |
pascal@20200 | 71 # Post install/remove commands for Tazpkg. |
pascal@20200 | 72 post_install() |
pascal@20200 | 73 { |
pascal@20200 | 74 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20200 | 75 } |
pascal@20200 | 76 |
pascal@20200 | 77 post_remove() |
pascal@20200 | 78 { |
pascal@20200 | 79 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@20200 | 80 } |