ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Avramenko Andrew <liksx@mail.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] SPEC для dazuko
Date: Sat, 18 Feb 2006 17:36:14 +0300
Message-ID: <E1FATC2-000JMn-00.liksx-mail-ru@f39.mail.ru> (raw)

Добрый день!

Перенося тему "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.



                 reply	other threads:[~2006-02-18 14:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FATC2-000JMn-00.liksx-mail-ru@f39.mail.ru \
    --to=liksx@mail.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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