wok-undigest diff aufs/receipt @ rev 1207
Up palemoon (27.0.0), remove gstreamer in mozconfig
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Nov 23 14:30:40 2016 +0100 (2016-11-23) |
parents | |
children | 4da314d995ae |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/aufs/receipt Wed Nov 23 14:30:40 2016 +0100 1.3 @@ -0,0 +1,74 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="aufs" 1.7 +VERSION="20130311" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="aufs3 kernel module" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="http://aufs.sf.net/" 1.13 +PROVIDE="linux-aufs" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.15 +WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git" 1.16 +BRANCH="origin/${PACKAGE}3.2" 1.17 +COOK_OPT="!remove_src" 1.18 + 1.19 +DEPENDS="linux" 1.20 +BUILD_DEPENDS="linux-module-headers git xz" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + cd $src 1.26 + 1.27 + sed -i 's|CONFIG_AUFS_BRANCH_MAX_127 =.*|CONFIG_AUFS_BRANCH_MAX_127 =|' \ 1.28 + config.mk || return 1 1.29 + sed -i 's|#CONFIG_AUFS_BRANCH_MAX_32767 =.*|CONFIG_AUFS_BRANCH_MAX_32767 = y|' \ 1.30 + config.mk || return 1 1.31 + sed -i 's|CONFIG_AUFS_HNOTIFY =.*|CONFIG_AUFS_HNOTIFY = y|' \ 1.32 + config.mk || return 1 1.33 + sed -i 's|CONFIG_AUFS_HFSNOTIFY =.*|CONFIG_AUFS_HFSNOTIFY = y|' \ 1.34 + config.mk || return 1 1.35 + sed -i 's|CONFIG_AUFS_EXPORT =.*|CONFIG_AUFS_EXPORT = y|' \ 1.36 + config.mk || return 1 1.37 + sed -i 's|CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \ 1.38 + config.mk || return 1 1.39 + sed -i 's|CONFIG_AUFS_BDEV_LOOP =.*|CONFIG_AUFS_BDEV_LOOP = y|' \ 1.40 + config.mk || return 1 1.41 + sed -i 's|CONFIG_AUFS_BR_RAMFS =.*|CONFIG_AUFS_BR_RAMFS = y|' \ 1.42 + config.mk || return 1 1.43 + sed -i 's|CONFIG_AUFS_DEBUG =.*|CONFIG_AUFS_DEBUG =|' \ 1.44 + config.mk || return 1 1.45 + 1.46 + # The sed fixes are from gentoo portage build. 1.47 + sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile 1.48 + sed -i "s:__user::g" include/linux/aufs_type.h 1.49 + make -j 1 KDIR=/usr/src/linux 1.50 + xz -f fs/aufs/aufs.ko 1.51 +} 1.52 + 1.53 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.54 +genpkg_rules() 1.55 +{ 1.56 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.57 + BASEVER=${KERNEL_VERSION:0:3} 1.58 + EXTRAVERSION=_$BASEVER 1.59 + mkdir -p $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs 1.60 + cp $src/fs/aufs/aufs.ko.xz $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/ 1.61 + chown root $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz 1.62 + chmod 0644 $fs/lib/modules/$BASEVER-slitaz/kernel/fs/aufs/aufs.ko.xz 1.63 + install -D -m 644 $src/include/linux/aufs_type.h \ 1.64 + $fs/usr/include/linux/aufs_type.h 1.65 +} 1.66 + 1.67 +post_install() 1.68 +{ 1.69 + echo "Processing post-install commands..." 1.70 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.71 +} 1.72 + 1.73 +post_remove() 1.74 +{ 1.75 + echo "Processing post-remove commands..." 1.76 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.77 +}