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.

34 lines
1.5 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 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-linux aufs`
  17. # extracting Aufs sources into a tempdir
  18. pkg_aufs_tempdir=$( mktemp -d )
  19. tar -C $pkg_aufs_tempdir -xf $pkg_aufs_source_file
  20. # patching the kernel sources
  21. echo_status "Including Aufs2 support (aufs package enabled)"
  22. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-kbuild.patch"
  23. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-base.patch"
  24. var_append patchfiles ' ' "$pkg_aufs_tempdir/aufs2-standalone/aufs2-standalone.patch"
  25. # copying sources into kernel source tree
  26. pkg_aufs_copy_source_files() {
  27. cp -rv $pkg_aufs_tempdir/aufs2-standalone/{Documentation,fs} .
  28. cp -rv $pkg_aufs_tempdir/aufs2-standalone/include/linux/aufs_type.h include/linux/
  29. }
  30. hook_add preconf 5 "pkg_aufs_copy_source_files"