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.

38 lines
1.6 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 - 2011 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 aufs${pkg_aufs_ver}-standalone 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. # patching the kernel sources
  22. echo_status "Including Aufs2 support (aufs package enabled)"
  23. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-kbuild.patch"
  24. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-base.patch"
  25. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-standalone.patch"
  26. # copying sources into kernel source tree
  27. pkg_aufs_copy_source_files() {
  28. cp -rv $pkg_aufs_tempdir/aufs2-standalone/{Documentation,fs} .
  29. cp -rv $pkg_aufs_tempdir/aufs2-standalone/include/linux/aufs_type.h include/linux/
  30. }
  31. hook_add preconf 5 "pkg_aufs_copy_source_files"
  32. else
  33. echo_warning "No matching source file found for Aufs2 support"
  34. fi