--- /dev/null
+--- dazuko-2.0.6/configure~ 2006-03-02 20:27:30.000000000 +0200
++++ dazuko-2.0.6/configure 2006-03-02 20:27:33.000000000 +0200
+@@ -1012,7 +1012,7 @@
+ echo "CC ?= gcc" > Makefile
+
+ TEMPNAME="$LINUX_SRC/include"
+- echo "CFLAGS = -Wall -D__KERNEL__ -DMODULE -I$TEMPNAME" >> Makefile
++ echo "CFLAGS = -Wall -D__KERNEL__ -DMODULE -I$TEMPNAME -Io/include" >> Makefile
+
+ if [ -f "$TEMPNAME/linux/config.h" ]
+ then
+@@ -1047,7 +1047,7 @@
+ ./linux_conf > linux.config
+ rm -f linux_conf
+
+- . linux.config
++ . ./linux.config
+ rm -f linux.config
+
+ echo -n "checking if Linux is RSBAC patched... "
Group: Base/Kernel
Source0: http://www.dazuko.org/files/%{name}-%{version}.tar.gz
# Source0-md5: 844498651d22ddd76bea4104bf7c3e43
+Patch0: %{name}-kbuild.patch
URL: http://www.dazuko.org/
%if %{with kernel}
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
%prep
%setup -q
+%patch0 -p1
%build
-# NOTE: It's not autoconf configure.
-bash ./configure \
- %{?debug:--enable-debug} \
- --kernelsrcdir=%{_kernelsrcdir} \
- --disable-local-dpath \
- --disable-compat1 \
- %{!?with_userspace:--without-library} \
- %{!?with_kernel:--without-module}
-
%if %{with kernel}
for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
%endif
#
# patching/creating makefile(s) (optional)
-#
+
+ # NOTE: It's not autoconf configure.
+ bash ./configure \
+ --kernelsrcdir=%{_kernelsrcdir} \
+ %{?debug:--enable-debug} \
+ --disable-local-dpath \
+ --disable-compat1 \
+ --without-library
+
%{__make} -C %{_kernelsrcdir} clean \
RCS_FIND_IGNORE="-name '*.ko' -o" \
SYSSRC=%{_kernelsrcdir} \
%endif
%if %{with userspace}
+# NOTE: It's not autoconf configure.
+bash ./configure \
+ %{?debug:--enable-debug} \
+ --disable-local-dpath \
+ --disable-compat1 \
+ --without-module
+
cd library
%{__make} \
CC="%{__cc}" \