|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../grsecurity/gradm-Makefile-fix.patch
|
|
|
|
# Copyright (C) 2006 - 2010 The OpenSDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
|
|
# of the GNU General Public License as published by the Free Software
|
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
# version.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
--- gradm2/Makefile.orig 2005-12-18 01:24:06.000000000 +0100
|
|
|
|
+++ gradm2/Makefile 2006-10-12 17:03:21.000000000 +0200
|
|
|
|
@@ -123,21 +123,9 @@
|
|
|
|
@if [ ! -f $(DESTDIR)$(GRSEC_DIR)/learn_config ] ; then \
|
|
|
|
$(INSTALL) -m 0600 learn_config $(DESTDIR)$(GRSEC_DIR) ; \
|
|
|
|
fi
|
|
|
|
- @if [ -z "`cut -d" " -f3 /proc/mounts | grep "^devfs"`" ] ; then \
|
|
|
|
- rm -f $(DESTDIR)/dev/grsec ; \
|
|
|
|
- if [ ! -e $(DESTDIR)/dev/grsec ] ; then \
|
|
|
|
- mkdir -p $(DESTDIR)/dev ; \
|
|
|
|
- $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
|
|
|
|
- fi \
|
|
|
|
- fi
|
|
|
|
@echo "Installing gradm manpage..."
|
|
|
|
@mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
|
|
@$(INSTALL) -m 0644 gradm.8 $(DESTDIR)$(MANDIR)/man8/$(GRADM_BIN).8
|
|
|
|
- @if [ -x /sbin/$(GRADM_BIN) ] ; then \
|
|
|
|
- if [ -z $(DESTDIR) ] && [ ! -f $(GRSEC_DIR)/pw ] ; then \
|
|
|
|
- /sbin/$(GRADM_BIN) -P ; \
|
|
|
|
- fi \
|
|
|
|
- fi
|
|
|
|
@true
|
|
|
|
|
|
|
|
clean:
|
|
|
|
--- gradm2/Makefile.orig 2010-05-04 16:03:43.000000000 +0200
|
|
|
|
+++ gradm2/Makefile 2010-10-12 18:17:42.416002009 +0200
|
|
|
|
@@ -127,29 +127,14 @@
|
|
|
|
@if [ ! -f $(DESTDIR)$(GRSEC_DIR)/learn_config ] ; then \
|
|
|
|
$(INSTALL) -m 0600 learn_config $(DESTDIR)$(GRSEC_DIR) ; \
|
|
|
|
fi
|
|
|
|
- @if [ -z "`cut -d" " -f3 /proc/mounts | grep "^devfs"`" ] ; then \
|
|
|
|
- rm -f $(DESTDIR)/dev/grsec ; \
|
|
|
|
- if [ ! -e $(DESTDIR)/dev/grsec ] ; then \
|
|
|
|
- mkdir -p $(DESTDIR)/dev ; \
|
|
|
|
- $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \
|
|
|
|
- fi \
|
|
|
|
- fi
|
|
|
|
@if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \
|
|
|
|
echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
|
|
|
|
echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
|
|
|
|
echo "LABEL=\"permissions_end\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \
|
|
|
|
fi
|
|
|
|
- @if [ -f $(DESTDIR)/sbin/udevadm ] ; then \
|
|
|
|
- $(DESTDIR)/sbin/udevadm trigger --action=change ; \
|
|
|
|
- fi
|
|
|
|
@echo "Installing gradm manpage..."
|
|
|
|
@mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
|
|
@$(INSTALL) -m 0644 gradm.8 $(DESTDIR)$(MANDIR)/man8/$(GRADM_BIN).8
|
|
|
|
- @if [ -x /sbin/$(GRADM_BIN) ] ; then \
|
|
|
|
- if [ -z $(DESTDIR) ] && [ ! -f $(GRSEC_DIR)/pw ] ; then \
|
|
|
|
- /sbin/$(GRADM_BIN) -P ; \
|
|
|
|
- fi \
|
|
|
|
- fi
|
|
|
|
@true
|
|
|
|
|
|
|
|
clean:
|