OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../aufs/pkg_linux_post.conf
  5. # Copyright (C) 2010 - 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # get version of the aufs package and determine file name of the sources
  15. pkg_aufs_ver="$( pkgdesc ver aufs )"
  16. pkg_aufs_source_file=`match_source_file -p aufs3-standalone-${pkg_aufs_ver} aufs`
  17. # extracting Aufs sources into a tempdir if we found a matching source file
  18. if [ ! -z "$pkg_aufs_source_file" ]; then
  19. pkg_aufs_tempdir=$( mktemp -d )
  20. tar -C $pkg_aufs_tempdir -xf $pkg_aufs_source_file
  21. pkg_aufs_srcdir="$( basename $( ls -1d $pkg_aufs_tempdir/* ) )"
  22. ln -sf $pkg_aufs_srcdir $pkg_aufs_tempdir/aufs3-standalone
  23. # patching the kernel sources
  24. echo_status "Including Aufs3 support (aufs package enabled)"
  25. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-kbuild.patch"
  26. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-base.patch"
  27. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-mmap.patch"
  28. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs3-standalone/aufs3-standalone.patch"
  29. # apply possible local patches we have in the aufs package dir
  30. var_append patchfiles ' ' "$base/package/*/aufs/*.diff"
  31. # copying sources into kernel source tree
  32. pkg_aufs_copy_source_files() {
  33. cp -rv $pkg_aufs_tempdir/aufs3-standalone/{Documentation,fs} .
  34. cp -rv $pkg_aufs_tempdir/aufs3-standalone/include/uapi/linux/aufs_type.h include/uapi/linux/
  35. }
  36. hook_add prepatch 5 "pkg_aufs_copy_source_files"
  37. # removing tempdir
  38. hook_add finish 9 "rm -rf $pkg_aufs_tempdir"
  39. else
  40. echo_warning "No matching source file found for Aufs3 support"
  41. fi