# # spec file for package drbd-kmp (Version 8.3.7) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: drbd-kmp BuildRequires: kernel-source kernel-syms module-init-tools Summary: Distributed Replicated Block Device Version: 8.3.7 Release: 0. Source: drbd-%{version}.tar.gz Source1: Module.supported Patch1: 0001-drbd-fix-max_segment_size-initialization.patch Patch2: 0002-drbd-null-dereference-bug.patch Patch3: 0003-drbdadm-fix-potential-access-after-free.patch Patch4: 0004-snapshot-resync-target-handler-fix-endless-loop-in-o.patch Patch5: 0005-drbd-fix-NULL-pointer-dereference-on-4k-hard-sect-si.patch Patch6: 0006-drbd-fix-broken-state-change-after-split-brain-attac.patch Patch7: 0007-fix-segfault-in-drbdadm-parser.patch Patch8: 0008-fix-unit-of-rs_same_csums-accounting.patch Patch9: 0009-drbd_disconnect-grab-meta.socket-mutex-as-well.patch Patch10: 0010-add-missing-drbd-command-names-to-avoid-NULL-in-erro.patch Patch11: 0011-Reduce-the-time-an-empty-resync-takes-usually.patch Patch12: 0012-Make-sure-we-do-not-send-state-updates-during-an-emp.patch Patch13: 0013-Forcing-primary-should-also-work-for-Consistent-disk.patch Patch14: 0014-drbd-fix-al-to-on-disk-bitmap-for-4k-logical_block_s.patch Patch15: 0015-Removed-that-mystical-UTF-character-trailing-white-s.patch Patch16: 0016-drbd-Do-not-upgrade-state-to-Outdated-if-already-Inc.patch Patch17: 0017-fix-regression-attach-while-connected-failed.patch License: GPL v2 or later Group: Productivity/Clustering/HA Url: http://www.drbd.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq fileutils Requires: drbd-utils = %{version}, /sbin/depmod %kernel_module_package -n drbd %description Drbd is a distributed replicated block device. It mirrors a block device over the network to another machine. Think of it as networked raid 1. It is a building block for setting up clusters. Authors: Philipp Reisner Lars Ellenberg Authors: -------- Philipp Reisner Lars Ellenberg %package KMP License: GPL v2 or later Summary: Distributed Replicated Block Device Group: Productivity/Clustering/HA %description KMP Drbd is a distributed replicated block device. It mirrors a block device over the network to another machine. Think of it as networked raid 1. It is a building block for setting up clusters. Authors: -------- Philipp Reisner Lars Ellenberg %prep %setup -n drbd-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 mkdir source cp -a drbd/. source/. || : cp source/Makefile-2.6 source/Makefile cp -a %_sourcedir/Module.supported source/ mkdir obj %build export CONFIG_BLK_DEV_DRBD=m export EXTRA_CFLAGS='-DVERSION=\"%version\"' for flavor in %flavors_to_build; do rm -rf obj/$flavor export KDIR="/usr/src/linux-obj/%_target_cpu/$flavor" (cd source ; ../scripts/adjust_drbd_config_h.sh) cp -r source obj/$flavor make -C $KDIR modules \ M=$PWD/obj/$flavor done %install export CONFIG_BLK_DEV_DRBD=m # # Install kernel modules: export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/obj/$flavor done %changelog