* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / security / grsecurity / gradm-Makefile-fix.patch
blobf3b344ca157d86cb29e4f54f7857b0518b24d5aa
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../grsecurity/gradm-Makefile-fix.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE 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 # --- T2-COPYRIGHT-NOTE-END ---
16 diff -Nur gradm2.orig/Makefile gradm2/Makefile
17 --- gradm2.orig/Makefile 2005-05-14 21:10:34.000000000 +0200
18 +++ gradm2/Makefile 2005-06-28 15:26:42.000000000 +0200
19 @@ -123,21 +123,11 @@
20 @if [ ! -f $(DESTDIR)$(GRSEC_DIR)/learn_config ] ; then \
21 $(INSTALL) -m 0600 learn_config $(DESTDIR)$(GRSEC_DIR) ; \
23 - @if [ -z "`cut -d" " -f3 /proc/mounts | grep "^devfs"`" ] ; then \
24 - rm -f $(DESTDIR)/dev/grsec ; \
25 - if [ ! -e $(DESTDIR)/dev/grsec ] ; then \
26 - mkdir -p $(DESTDIR)/dev ; \
27 - $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 12 ; \
28 - fi \
29 - fi
31 @echo "Installing gradm manpage..."
32 @mkdir -p $(DESTDIR)$(MANDIR)/man8
33 @$(INSTALL) -m 0644 gradm.8 $(DESTDIR)$(MANDIR)/man8/$(GRADM_BIN).8
34 - @if [ -x /sbin/$(GRADM_BIN) ] ; then \
35 - if [ -z $(DESTDIR) ] && [ ! -f $(GRSEC_DIR)/pw ] ; then \
36 - /sbin/$(GRADM_BIN) -P ; \
37 - fi \
38 - fi
40 @true
42 clean: