ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] IA: openvswitch
@ 2012-02-21 18:39 Michael Shigorin
  0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2012-02-21 18:39 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

	Здравствуйте.
Если вдруг кому интересно, опакетил http://openvswitch.org.

Работоспособный вариант базовой части отправляется в сизиф,
из недоперепиленного -- питоньи привязки и использующее их
(bugtool, xenapi и что-то ещё из дополнительного).

Для предметного осмотра потребуются ядерные модули,
собираемые по прилагаемому спеку из создаваемых
kernel-source либо вошедшие в ядро 3.3+.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: kernel-modules-openvswitch.spec --]
[-- Type: text/plain, Size: 2106 bytes --]

%define module_name	openvswitch
%define module_version	1.4.0
%define module_release	alt1

%define kversion	3.2.6
%define kextraversion	%nil

%define krelease	alt1
%define flavour		std-def

%define norm_version	%kversion

%define module_dir /lib/modules/%kversion%kextraversion-%flavour-%krelease/net

Summary: Modules for Open Virtual Switch
Name: kernel-modules-%module_name-%flavour
Version: %module_version
Release: %module_release.197126.1
License: GPLv2+
Group: System/Kernel and hardware

Packager: Kernel Maintainer Team <kernel@packages.altlinux.org>

ExclusiveOS: Linux
Url: http://www.openvswitch.org
BuildRequires(pre): rpm-build-kernel
BuildRequires: kernel-source-%{module_name} = %module_version
BuildRequires: kernel-headers-modules-%flavour = %kversion-%krelease

Provides:  kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release

PreReq: coreutils
PreReq: kernel-image-%flavour = %kversion-%krelease
Requires(postun): kernel-image-%flavour = %kversion-%krelease

%description
These packages contain kernel modules
supporting the openvswitch datapath.

%prep
rm -rf kernel-source-%module_name-%module_version
tar xvf %kernel_src/kernel-source-%module_name-%module_version.tar
%setup -D -T -n kernel-source-%module_name-%module_version

%build
# Kconfig bits spilled all over configure script...
%configure \
	--with-linux=%_usrsrc/linux-%kversion-%flavour-%krelease
make -C datapath/linux
strip datapath/linux/*.ko

%install
install -d %buildroot/%module_dir
install -pm644 datapath/linux/*.ko %buildroot/%module_dir/

%post
%post_kernel_modules %kversion%kextraversion-%flavour-%krelease

%postun
%postun_kernel_modules %kversion%kextraversion-%flavour-%krelease

%files
%module_dir

%changelog
* Wed Feb 15 2012 Michael Shigorin <mike@altlinux.org> 1.4.0-alt1.197126.1
- built for ALT Linux
  + spec based on kernel-modules-bcmwl-std-ng by shrek@ and gns@
  + thanks led@ for hints either


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-21 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 18:39 [sisyphus] IA: openvswitch Michael Shigorin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git