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.

72 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../grsecurity/gradm-Makefile-fix.patch
  5. # Copyright (C) 2006 - 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- gradm2/Makefile.orig 2005-12-18 01:24:06.000000000 +0100
  17. +++ gradm2/Makefile 2006-10-12 17:03:21.000000000 +0200
  18. @@ -123,21 +123,9 @@
  19. @if [ ! -f $(DESTDIR)$(GRSEC_DIR)/learn_config ] ; then \
  20. $(INSTALL) -m 0600 learn_config $(DESTDIR)$(GRSEC_DIR) ; \
  21. fi
  22. - @if [ -z "`cut -d" " -f3 /proc/mounts | grep "^devfs"`" ] ; then \
  23. - rm -f $(DESTDIR)/dev/grsec ; \
  24. - if [ ! -e $(DESTDIR)/dev/grsec ] ; then \
  25. - mkdir -p $(DESTDIR)/dev ; \
  26. - $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
  27. - fi \
  28. - fi
  29. @echo "Installing gradm manpage..."
  30. @mkdir -p $(DESTDIR)$(MANDIR)/man8
  31. @$(INSTALL) -m 0644 gradm.8 $(DESTDIR)$(MANDIR)/man8/$(GRADM_BIN).8
  32. - @if [ -x /sbin/$(GRADM_BIN) ] ; then \
  33. - if [ -z $(DESTDIR) ] && [ ! -f $(GRSEC_DIR)/pw ] ; then \
  34. - /sbin/$(GRADM_BIN) -P ; \
  35. - fi \
  36. - fi
  37. @true
  38. clean:
  39. --- gradm2/Makefile.orig 2010-05-04 16:03:43.000000000 +0200
  40. +++ gradm2/Makefile 2010-10-12 18:17:42.416002009 +0200
  41. @@ -127,29 +127,14 @@
  42. @if [ ! -f $(DESTDIR)$(GRSEC_DIR)/learn_config ] ; then \
  43. $(INSTALL) -m 0600 learn_config $(DESTDIR)$(GRSEC_DIR) ; \
  44. fi
  45. - @if [ -z "`cut -d" " -f3 /proc/mounts | grep "^devfs"`" ] ; then \
  46. - rm -f $(DESTDIR)/dev/grsec ; \
  47. - if [ ! -e $(DESTDIR)/dev/grsec ] ; then \
  48. - mkdir -p $(DESTDIR)/dev ; \
  49. - $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
  50. - fi \
  51. - fi
  52. @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \
  53. echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
  54. echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
  55. echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
  56. fi
  57. - @if [ -f $(DESTDIR)/sbin/udevadm ] ; then \
  58. - $(DESTDIR)/sbin/udevadm trigger --action=change ; \
  59. - fi
  60. @echo "Installing gradm manpage..."
  61. @mkdir -p $(DESTDIR)$(MANDIR)/man8
  62. @$(INSTALL) -m 0644 gradm.8 $(DESTDIR)$(MANDIR)/man8/$(GRADM_BIN).8
  63. - @if [ -x /sbin/$(GRADM_BIN) ] ; then \
  64. - if [ -z $(DESTDIR) ] && [ ! -f $(GRSEC_DIR)/pw ] ; then \
  65. - /sbin/$(GRADM_BIN) -P ; \
  66. - fi \
  67. - fi
  68. @true
  69. clean: