Witam,
jako ze grsec czsami uniemozliwia dzialanie niektorych aplikacji, stwierdzilem 
ze niezlym pomyslem byloby dorobic bcond without_grsec do speca z kernelem, 
co tez uczynilem :)

-- 
Grzegorz Zebrowski xavier [] x-tech,one,pl
--- kernel.spec~	2004-06-02 08:15:33.000000000 +0000
+++ kernel.spec	2004-06-02 22:47:34.340192224 +0000
@@ -16,7 +16,7 @@
 %bcond_with	verbose		# verbose build (V=1)
 %bcond_with	preemptive	# build preemptive kernel
 %bcond_with	bootsplash	# build with bootsplash
-
+%bcond_without  grsec		# build without grsecurity
 %{?debug:%define with_verbose 1}
 
 %ifarch sparc
@@ -189,7 +189,7 @@
 Patch88:	2.6.6-qsort-updated-lkml.patch
 Patch90:	2.6.6-xfs-qsort-lkml.patch
 
-Patch94:	grsecurity-2.0-2.6.6-unofficial.patch
+%{?with_grsec:Patch94:	grsecurity-2.0-2.6.6-unofficial.patch}
 Patch94:	%{name}-grsec.patch
 
 Patch96:	2.6.6-lirc_i2c.diff
@@ -645,7 +645,7 @@
 
 #grsec
 %ifarch alpha %{ix86} ia64 ppc sparc sparc64 amd64
-%patch94 -p1
+%{?with_grsec: %patch94 -p1}
 %endif
 
 %patch96 -p1
@@ -713,7 +713,7 @@
 	cat %{SOURCE80} >> arch/%{_target_base_arch}/defconfig
 
 #grsec
-cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig
+%{?with_grsec:cat %{SOURCE90} >> arch/%{_target_base_arch}/defconfig}
 
 	ln -sf arch/%{_target_base_arch}/defconfig .config
 
@@ -970,7 +970,7 @@
 
 cat %{SOURCE80} >> .config
 #grsec
-cat %{SOURCE90} >> .config
+%{?with_grsec:cat %{SOURCE90} >> .config}
 
 cp .config config-up
 
@@ -1000,7 +1000,7 @@
 
 cat %{SOURCE80} >> .config
 #grsec
-cat %{SOURCE90} >> .config
+%{?with_grsec:cat %{SOURCE90} >> .config}
 
 cp .config config-smp
 
@@ -1402,7 +1402,7 @@
 %{_prefix}/src/linux-%{version}/crypto
 %{_prefix}/src/linux-%{version}/drivers
 %{_prefix}/src/linux-%{version}/fs
-%{_prefix}/src/linux-%{version}/grsecurity
+%{?with_grsec: %{_prefix}/src/linux-%{version}/grsecurity }
 %{_prefix}/src/linux-%{version}/init
 %{_prefix}/src/linux-%{version}/ipc
 %{_prefix}/src/linux-%{version}/kernel

_______________________________________________________
z�ota zasada - kto si� nie zna, niech si� nie wypowiada

Odpowiedź listem elektroniczym