[Sysadmins] SPEC для dazuko
Avramenko Andrew
=?iso-8859-1?q?liksx_=CE=C1_mail=2Eru?=
Сб Фев 18 17:36:14 MSK 2006
Добрый день!
Перенося тему "samba+clamav" из samba-рассылки в эту: ссылку на SPEC для dazuko выложить пока нет возможности, так что кидаю целиком сюда, надеясь на понимание остальных участников.
====================================
%define module_name dazuko
%define module_version 2.1.1
%define module_release alt1
%define kversion 2.6.15
%define flavour std-up
%define module_dir /lib/modules/%kversion/kernel/security/%module_name
%define kheaders_path /usr/include/linux-%kversion-%flavour/
Name: %module_name
Version: 2.1.1
Release: alt1
Summary: Dazuko kernel module
License: GPL
URL: http://www.dazuko.org
Group: System/Kernel and hardware
Packager: Avramenko Andrew <liks на altlinux.ru>
ExclusiveOS: Linux
Source: http://www.dazuko.org/files/dazuko-2.1.1.tar.gz
Patch: dazuko-2.1.1-alt-configure.patch
%package -n libdazuko-static
Summary: Dazuko user library
Group: System/Libraries
%package -n libdazuko-devel
Summary: Dazuko development libraries and header files
Group: Development/C
%description
This project provides a device driver allowing 3rd-party (userland) applications
to execute file access control.
%description -n libdazuko-static
This project provides a device driver allowing 3rd-party (userland) applications
to execute file access control.
%description -n libdazuko-devel
This project provides a device driver allowing 3rd-party (userland) applications
to execute file access control.
BuildRequires: kernel-headers-%flavour-%kversion
%prep
%setup -q
%patch
%build
./configure --kernelsrcdir=%kheaders_path
%make
%make_build
%make lib
%install
mkdir -p $RPM_BUILD_ROOT/%module_dir
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/include
# Kernel module
install dazuko.ko $RPM_BUILD_ROOT/%module_dir
# Header files
install dazuko_call.h $RPM_BUILD_ROOT/usr/include/
install dazuko_core.h $RPM_BUILD_ROOT/usr/include/
install dazuko_events.h $RPM_BUILD_ROOT/usr/include/
install dazuko_linux.h $RPM_BUILD_ROOT/usr/include/
install dazuko_linux26.h $RPM_BUILD_ROOT/usr/include/
install dazukoio.h $RPM_BUILD_ROOT/usr/include/
install dazukoio_core.h $RPM_BUILD_ROOT/usr/include/
install dazuko_rsbac.h $RPM_BUILD_ROOT/usr/include/
install dazuko_transport.h $RPM_BUILD_ROOT/usr/include/
install dazuko_version.h $RPM_BUILD_ROOT/usr/include/
# Libraries
install library/libdazuko.a $RPM_BUILD_ROOT/usr/lib
%files
%defattr(644,root,root,755)
%module_dir
%files -n libdazuko-static
%_libdir/*
%files -n libdazuko-devel
%_includedir/*
%changelog
* Sat Feb 18 2006 Avramenko Andrew <liks на altlinux.ru> 2.1.1-alt1
- Initial build
====================================
Прилагающийся патч:
dazuko-2.1.1-alt-configure.patch
====================================
--- configure.orig 2005-10-03 16:10:44 +0400
+++ configure 2005-10-03 16:09:08 +0400
@@ -586,6 +586,10 @@
echo "" >> Makefile
echo "clean:" >> Makefile
echo " \$(RM) .*.cmd *.cmd *.o dazuko.ko dazuko.mod.c dummy_rule" >> Makefile
+
+ echo "" >> Makefile
+ echo "lib:" >> Makefile
+ echo " \$(MAKE) -C library" >> Makefile
}
do_linux()
@@ -772,6 +776,11 @@
echo "" >> Makefile
echo "clean:" >> Makefile
echo " \$(RM) *.o" >> Makefile
+
+ echo "" >> Makefile
+ echo "lib:" >> Makefile
+ echo " \$(MAKE) -C library" >> Makefile
+
}
do_linux24()
====================================
-----
WBR,Avramenko Andrew
ALT Linux Team
Volgograd Linux Users Group
ClickON Systems. Volgograd.
Подробная информация о списке рассылки Sysadmins