OBS User unknown 2007-09-17 15:10:20 +00:00 committed by Git OBS Bridge
parent 8b947bef08
commit 44c2da2968
8 changed files with 56 additions and 88 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cfeef4e5bf89516752e141719e7e7ae1af7c878b368f591ff3340b7542b5152b
size 296960

3
drbd-8.0.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f08eb9a1fade6a089fefd5652d394f516531857890e83757f67ec54144ae50a2
size 495421

View File

@ -1,23 +0,0 @@
#
# SUSE specific makefile for the km_drbd
#
EXTRA_CFLAGS += -I$(src)
CFLAGS_drbd_sizeof_sanity_check.o = -Wpadded
obj-m := drbd.o
drbd-objs := drbd_sizeof_sanity_check.o \
drbd_buildtag.o drbd_bitmap.o drbd_fs.o drbd_proc.o \
drbd_worker.o drbd_receiver.o drbd_req.o drbd_actlog.o \
lru_cache.o drbd_main.o
# Set to something different to install somewhere else:
# MOD_DIR := extra
.PHONY: modules install clean modules_add
install : modules_add
modules modules_add clean:
$(MAKE) -C $(KERNEL_SOURCE) $@ SUBDIRS=$(CURDIR)

View File

@ -1,12 +0,0 @@
Index: drbd/linux/drbd_config.h
===================================================================
--- drbd/linux/drbd_config.h (revision 2574)
+++ drbd/linux/drbd_config.h (working copy)
@@ -69,6 +69,6 @@
// but more recent kernels define it in arch/um/include/mem.h
#define HAVE_UML_TO_VIRT
-//#define NO_MORE_DEV_FS
+#define NO_MORE_DEV_FS
#endif

View File

@ -1,7 +0,0 @@
# If you wish to use drbd on the old major number 43 (/dev/nbX) instead
# of the new default major number 147 (/dev/drbdX), enable this.
#
# Then, reload the module.
#
# options drbd use_nbd_major=1

View File

@ -1,8 +1,12 @@
Index: drbd-0.7.13/benchmark/Makefile ---
=================================================================== benchmark/Makefile | 4 +++-
--- drbd-0.7.13.orig/benchmark/Makefile 2004-10-08 11:22:47.000000000 +0200 testing/Makefile | 2 +-
+++ drbd-0.7.13/benchmark/Makefile 2005-09-01 12:25:11.248962784 +0200 user/Makefile | 3 ++-
@@ -1,4 +1,6 @@ 3 files changed, 6 insertions(+), 3 deletions(-)
--- drbd-8.0.6.orig/benchmark/Makefile 2007-05-22 14:57:52.000000000 +0200
+++ drbd-8.0.6/benchmark/Makefile 2007-09-17 14:20:13.584966000 +0200
@@ -1,6 +1,8 @@
-CFLAGS=-Wall -CFLAGS=-Wall
+CFLAGS=-Wall $(OPTFLAGS) +CFLAGS=-Wall $(OPTFLAGS)
+ +
@ -10,29 +14,32 @@ Index: drbd-0.7.13/benchmark/Makefile
all: dm all: dm
Index: drbd-0.7.13/testing/Makefile install:
===================================================================
--- drbd-0.7.13.orig/testing/Makefile 2004-11-02 11:09:09.000000000 +0100 --- drbd-8.0.6.orig/testing/Makefile 2007-05-22 14:58:01.000000000 +0200
+++ drbd-0.7.13/testing/Makefile 2005-09-01 12:25:11.249962638 +0200 +++ drbd-8.0.6/testing/Makefile 2007-09-17 14:20:37.310216000 +0200
@@ -1,5 +1,6 @@ @@ -1,7 +1,7 @@
PROGRAMS=show_size access_and_verify ioctl_structs_sizes PROGRAMS=show_size access_and_verify #drbd_states
-CFLAGS=-Wall -I../drbd -CFLAGS=-Wall -I../drbd
+OPTFLAGS=-O2
+CFLAGS=-Wall $(OPTFLAGS) -I../drbd +CFLAGS=-Wall $(OPTFLAGS) -I../drbd
all: $(PROGRAMS) all: $(PROGRAMS)
Index: drbd-0.7.13/user/Makefile clean:
=================================================================== rm -f $(PROGRAMS)
--- drbd-0.7.13.orig/user/Makefile 2004-11-02 11:09:09.000000000 +0100 --- drbd-8.0.6.orig/user/Makefile 2007-08-02 21:09:28.000000000 +0200
+++ drbd-0.7.13/user/Makefile 2005-09-01 12:25:46.980727993 +0200 +++ drbd-8.0.6/user/Makefile 2007-09-17 14:23:06.198178000 +0200
@@ -17,7 +17,8 @@ @@ -18,11 +18,12 @@
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# #
-CFLAGS = -c -Wall -I../drbd KDIR := /lib/modules/$(shell uname -r)/build
+OPTFLAGS = -O2
+CFLAGS = $(OPTFLAGS) -c -Wall -I../drbd
CC = gcc CC = gcc
-CFLAGS = -g -O2 -c -W -Wall -I../drbd
+OPTFLAGS = -O2
+CFLAGS = -g $(OPTFLAGS) -c -W -Wall -I../drbd
# for the netlink connector stuff <linux/connector.h>:
drbdsetup: CFLAGS += -I$(KDIR)/include
drbdsetup drbdmeta: CFLAGS += -fno-strict-aliasing
drbdadm-obj = drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o \ drbdadm-obj = drbdadm_scanner.o drbdadm_parser.o drbdadm_main.o \

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Sep 17 14:41:31 CEST 2007 - lmb@suse.de
- Update to drbd 8.0.6 for kernel-compatibility (310187)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 4 22:13:20 CEST 2007 - lrupp@suse.de Wed Apr 4 22:13:20 CEST 2007 - lrupp@suse.de

View File

@ -1,5 +1,5 @@
# #
# spec file for package drbd (Version 0.7.23) # spec file for package drbd (Version 8.0.6)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
@ -12,18 +12,14 @@
Name: drbd Name: drbd
BuildRequires: bison flex glib-devel kernel-source kernel-syms module-init-tools BuildRequires: bison flex glib-devel kernel-source kernel-syms module-init-tools
Summary: Distributed Replicated Block Device Summary: Distributed Replicated Block Device
Version: 0.7.23 Version: 8.0.6
Release: 13 Release: 1
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
# Source: drbd-SVN.tar.bz2
Source1: drbd-Makefile.module
Source2: drbd-modprobe.d
Patch0: drbd-optflags.patch Patch0: drbd-optflags.patch
Patch1: drbd-kver.patch License: GPL v2 or later
License: GNU General Public License (GPL)
Group: Productivity/Clustering/HA Group: Productivity/Clustering/HA
Provides: drbdsetup drbd-control Provides: drbdsetup drbd-control
URL: http://www.drbd.org/ Url: http://www.drbd.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %insserv_prereq %fillup_prereq fileutils PreReq: %insserv_prereq %fillup_prereq fileutils
%suse_kernel_module_package kdump um %suse_kernel_module_package kdump um
@ -59,10 +55,9 @@ Authors:
%prep %prep
%setup -n drbd-%{version} %setup -n drbd-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p0
mkdir source mkdir source
cp -a drbd/. source/. || : cp -a drbd/. source/. || :
cp %{SOURCE1} source/Makefile cp source/Makefile-2.6 source/Makefile
mkdir obj mkdir obj
%build %build
@ -84,7 +79,6 @@ export RPM_BUILD_ROOT
export DIST=suselike export DIST=suselike
make PREFIX=%{buildroot}/ install-tools make PREFIX=%{buildroot}/ install-tools
ln -sf ../etc/init.d/drbd $RPM_BUILD_ROOT/sbin/rcdrbd ln -sf ../etc/init.d/drbd $RPM_BUILD_ROOT/sbin/rcdrbd
ln -sf drbddisk $RPM_BUILD_ROOT/etc/ha.d/resource.d/datadisk
mkdir -p $RPM_BUILD_ROOT/var/lib/drbd mkdir -p $RPM_BUILD_ROOT/var/lib/drbd
# #
# and I only want to install a hint to the example conf # and I only want to install a hint to the example conf
@ -95,8 +89,6 @@ cat <<___ > $RPM_BUILD_ROOT/etc/drbd.conf
# %{_docdir}/drbd/drbd.conf # %{_docdir}/drbd/drbd.conf
# #
___ ___
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d/
cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/modprobe.d/drbd
# Install kernel modules: # Install kernel modules:
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates export INSTALL_MOD_DIR=updates
@ -115,31 +107,37 @@ done
%{insserv_cleanup} %{insserv_cleanup}
%files -n drbd %files -n drbd
%defattr(-, root, root) %defattr(644, root, root)
%config /etc/drbd.conf %config(noreplace) /etc/drbd.conf
%defattr(755, root, root)
/sbin/drbdadm /sbin/drbdadm
/sbin/drbdsetup /sbin/drbdsetup
/sbin/rcdrbd /sbin/rcdrbd
/var/lib/drbd /sbin/drbdmeta
/etc/xen/scripts/block-drbd
/etc/ha.d/resource.d/drbddisk
%config /etc/init.d/drbd %config /etc/init.d/drbd
%dir /etc/modprobe.d %defattr(-, root, root)
%config /etc/modprobe.d/drbd /var/lib/drbd
/usr/lib/drbd
%dir /etc/ha.d %dir /etc/ha.d
%dir /etc/ha.d/resource.d %dir /etc/ha.d/resource.d
/etc/ha.d/resource.d/drbddisk %dir /etc/xen
/etc/ha.d/resource.d/datadisk %dir /etc/xen/scripts
%doc %{_mandir}/man5/drbd.conf.5* %doc %{_mandir}/man5/drbd.conf.5*
%doc %{_mandir}/man8/drbd.8* %doc %{_mandir}/man8/drbd.8*
%doc %{_mandir}/man8/drbdsetup.8* %doc %{_mandir}/man8/drbdsetup.8*
%doc %{_mandir}/man8/drbdadm.8* %doc %{_mandir}/man8/drbdadm.8*
%doc %{_mandir}/man8/drbddisk.8* %doc %{_mandir}/man8/drbddisk.8*
%doc %{_mandir}/man8/drbdmeta.8*
%doc COPYING %doc COPYING
%doc README %doc README
%doc ChangeLog %doc ChangeLog
%doc upgrade_*.txt
%doc scripts/drbd.conf %doc scripts/drbd.conf
%changelog %changelog
* Mon Sep 17 2007 - lmb@suse.de
- Update to drbd 8.0.6 for kernel-compatibility (310187)
* Wed Apr 04 2007 - lrupp@suse.de * Wed Apr 04 2007 - lrupp@suse.de
- added module-init-tools to BuildRequires - added module-init-tools to BuildRequires
* Fri Mar 30 2007 - rguenther@suse.de * Fri Mar 30 2007 - rguenther@suse.de