wok-next view linux/stuff/tools/aufs-patches @ rev 21463
stardict: added mysql dependencies
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 12 08:14:16 2020 +0100 (2020-05-12) |
parents | 960a052d15d3 |
children |
line source
1 #!/bin/sh
2 # aufs-patches: source this file in the receipt to get and apply aufs patches
4 # Check for aufs and get source / patches if needed
5 echo "Checking for aufs patches..."
6 aufs_ver=$(. $WOK/aufs/receipt; echo $VERSION)
7 aufs_dir="$WOK/aufs/source/aufs-$aufs_ver"
8 if [ ! -d "$aufs_dir" ]; then
9 aufs_tarball=$(. $WOK/aufs/receipt; echo $TARBALL)
10 [ ! -f "$SRC/$aufs_tarball" ] && cook aufs --getsrc
11 mkdir -p $WOK/aufs/source
12 _ 'Extracting: %s' $aufs_tarball
13 tar -xf $SRC/$aufs_tarball -C $WOK/aufs/source/
14 fi
17 echo "Copying aufs files and patches..."
18 cp -a $aufs_dir/Documentation $aufs_dir/fs $aufs_dir/include $src
20 # Apply patches
21 echo "Applying aufs patches..."
22 while read patch_file; do
23 [ ${patch_file:0:1} == '#' ] && continue
24 if [ -f done.$patch_file ]; then
25 echo "Skipping $patch_file"; continue
26 fi
27 echo -e "\nApply $patch_file"
28 patch -p1 -i "$aufs_dir/$patch_file" || exit 1
29 touch done.$patch_file
30 done <<EOT
31 aufs4-base.patch
32 aufs4-mmap.patch
33 aufs4-standalone.patch
34 # aufs4-loopback.patch
35 EOT