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.

44 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../rsbac/pkg_linux_post.conf
  5. # Copyright (C) 2006 - 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. pkg_rsbac_tempdir=`mktemp -d`
  17. pkg_rsbac_archdir=$base/download/mirror/r
  18. pkg_rsbac_confdir=$base/package/*/rsbac
  19. pkg_rsbac_ver=`sed -n 's,^\[V\] \(.*\),\1,p' ${pkg_rsbac_confdir}/rsbac.desc`
  20. echo_status "Including RSBAC ($pkg_rsbac_ver) patch..."
  21. pkg_rsbac_lxpatch=`match_source_file -p patch-linux-${ver:0:3} rsbac`
  22. bunzip2 -c $pkg_rsbac_lxpatch > \
  23. ${pkg_rsbac_tempdir}/rsbac-${pkg_rsbac_ver}.patch
  24. var_append patchfiles ' ' "${pkg_rsbac_tempdir}/rsbac-${pkg_rsbac_ver}.patch"
  25. var_append lx_confscripts ' ' "${pkg_rsbac_confdir}/kernel.conf.sh"
  26. hook_add prepatch 4 "tar -v $taropt `match_source_file -p rsbac-common rsbac`"
  27. hook_add postpatch 6 "rm -rf $pkg_rsbac_tempdir"
  28. # apply hotfixes here
  29. eval `grep '^\[O] pkg_rsbac_lx' package/security/rsbac/rsbac.desc | cut -d' ' -f2-`
  30. if [[ "$ver" == 2.4* ]]; then
  31. pkg_rsbac_lxpatches=$( match_source_file -p "rsbac-bugfix-v$pkg_rsbac_ver-${pkg_rsbac_lx24}" rsbac )
  32. else
  33. pkg_rsbac_lxpatches=$( match_source_file -p "rsbac-bugfix-v$pkg_rsbac_ver-${pkg_rsbac_lx26}" rsbac )
  34. fi
  35. for x in $pkg_rsbac_lxpatches; do
  36. var_append patchfiles ' ' "$x"
  37. done