* [Sysadmins] SPEC для dazuko
@ 2006-02-18 14:36 Avramenko Andrew
0 siblings, 0 replies; only message in thread
From: Avramenko Andrew @ 2006-02-18 14:36 UTC (permalink / raw)
To: sysadmins
Добрый день!
Перенося тему "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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-18 14:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-18 14:36 [Sysadmins] SPEC для dazuko Avramenko Andrew
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git