e48e5efc33
- Use the udev rules file included with mdadm instead of our own - Drop all the no longer relevant patches - Fix a build error in mdopen.c - Fix the udev rules path in Makefile
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
--- mdadm-3.0-devel2/Makefile.udev 2009-02-12 09:10:23.000000000 -0500
|
|
+++ mdadm-3.0-devel2/Makefile 2009-02-12 09:12:20.000000000 -0500
|
|
@@ -44,7 +44,7 @@ CC = $(CROSS_COMPILE)gcc
|
|
CXFLAGS = -ggdb
|
|
CWFLAGS = -Wall -Werror -Wstrict-prototypes
|
|
ifdef WARN_UNUSED
|
|
-CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O
|
|
+CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -Os
|
|
endif
|
|
|
|
ifdef DEBIAN
|
|
@@ -71,6 +71,7 @@ MANDIR = /usr/share/man
|
|
MAN4DIR = $(MANDIR)/man4
|
|
MAN5DIR = $(MANDIR)/man5
|
|
MAN8DIR = $(MANDIR)/man8
|
|
+UDEVDIR = /etc/udev/rules.d
|
|
|
|
OBJS = mdadm.o config.o mdstat.o ReadMe.o util.o Manage.o Assemble.o Build.o \
|
|
Create.o Detail.o Examine.o Grow.o Monitor.o dlink.o Kill.o Query.o \
|
|
@@ -199,7 +200,7 @@ install-man: mdadm.8 md.4 mdadm.conf.5
|
|
$(INSTALL) -D -m 644 mdadm.conf.5 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5
|
|
|
|
install-udev: udev-md-raid.rules
|
|
- $(INSTALL) -D -m 644 udev-md-raid.rules /lib/udev/rules.d/64-md-raid.rules
|
|
+ $(INSTALL) -D -m 644 udev-md-raid.rules $(DESTDIR)$(UDEVDIR)/64-md-raid.rules
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(MAN8DIR)/mdadm.8 md.4 $(DESTDIR)$(MAN4DIR)/md.4 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5 $(DESTDIR)$(BINDIR)/mdadm
|