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.

45 lines
1.7 KiB

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