summaryrefslogtreecommitdiff
path: root/debian/patches/01-mdadm.conf-location.dpatch
blob: 095ad5ff6ddd30a49c59c34fe789779cc6ea668f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-mdadm.conf-location.dpatch by martin f. krafft <madduck@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Reverses conffile locations to favour /etc/mdadm/mdadm.conf

@DPATCH@
diff -urNad mdadm-2.5.1~/Makefile mdadm-2.5.1/Makefile
--- mdadm-2.5.1~/Makefile	2006-06-26 00:06:29.000000000 +0200
+++ mdadm-2.5.1/Makefile	2006-06-26 00:06:45.936514898 +0200
@@ -48,8 +48,8 @@
 endif
 
 SYSCONFDIR = /etc
-CONFFILE = $(SYSCONFDIR)/mdadm.conf
-CONFFILE2 = $(SYSCONFDIR)/mdadm/mdadm.conf
+CONFFILE = $(SYSCONFDIR)/mdadm/mdadm.conf
+CONFFILE2 = $(SYSCONFDIR)/mdadm.conf
 MAILCMD =/usr/sbin/sendmail -t
 CONFFILEFLAGS = -DCONFFILE=\"$(CONFFILE)\" -DCONFFILE2=\"$(CONFFILE2)\"
 CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS)
diff -urNad mdadm-2.5.1~/ReadMe.c mdadm-2.5.1/ReadMe.c
--- mdadm-2.5.1~/ReadMe.c	2006-06-25 23:52:13.000000000 +0200
+++ mdadm-2.5.1/ReadMe.c	2006-06-26 00:06:34.108601730 +0200
@@ -504,7 +504,7 @@
 
 
 char Help_config[] =
-"The /etc/mdadm.conf config file:\n\n"
+"The /etc/mdadm/mdadm.conf config file:\n\n"
 " The config file contains, apart from blank lines and comment lines that\n"
 " start with a hash(#), four sorts of configuration lines: array lines, \n"
 " device lines, mailaddr lines and program lines.\n"
diff -urNad mdadm-2.5.1~/mdadm.8 mdadm-2.5.1/mdadm.8
--- mdadm-2.5.1~/mdadm.8	2006-06-25 23:52:13.000000000 +0200
+++ mdadm-2.5.1/mdadm.8	2006-06-26 00:06:34.116601671 +0200
@@ -225,9 +225,9 @@
 .TP
 .BR -c ", " --config=
 Specify the config file.  Default is to use
-.BR /etc/mdadm.conf ,
+.BR /etc/mdadm/mdadm.conf ,
 or if that is missing, then
-.BR /etc/mdadm/mdadm.conf .
+.BR /etc/mdadm.conf .
 If the config file given is
 .B partitions
 then nothing will be read, but
@@ -253,7 +253,7 @@
 permission to get any missing information, like component devices,
 array devices, array identities, and alert destination from the
 configuration file:
-.BR /etc/mdadm.conf .
+.BR /etc/mdadm/mdadm.conf .
 One exception is MISC mode when using
 .B --detail
 or
@@ -985,7 +985,7 @@
 or requested with (a possibly implicit)
 .B --scan.
 In the later case,
-.B /etc/mdadm.conf
+.B /etc/mdadm/mdadm.conf
 is used.
 
 If
@@ -1260,7 +1260,7 @@
 .B --scan
 will cause the output to be less detailed and the format to be
 suitable for inclusion in
-.BR /etc/mdadm.conf .
+.BR /etc/mdadm/mdadm.conf .
 The exit status of
 .I mdadm
 will normally be 0 unless
@@ -1296,7 +1296,7 @@
 then multiple devices that are components of the one array
 are grouped together and reported in a single entry suitable
 for inclusion in
-.BR /etc/mdadm.conf .
+.BR /etc/mdadm/mdadm.conf .
 
 Having
 .B --scan
@@ -1706,7 +1706,7 @@
 on Monitor mode.
 
 
-.SS /etc/mdadm.conf
+.SS /etc/mdadm/mdadm.conf
 
 The config file lists which devices may be scanned to see if
 they contain MD super block, and gives identifying information
diff -urNad mdadm-2.5.1~/mdadm.conf.5 mdadm-2.5.1/mdadm.conf.5
--- mdadm-2.5.1~/mdadm.conf.5	2006-06-25 23:52:13.000000000 +0200
+++ mdadm-2.5.1/mdadm.conf.5	2006-06-26 00:06:34.116601671 +0200
@@ -2,7 +2,7 @@
 .SH NAME
 mdadm.conf \- configuration for management of Software Raid with mdadm
 .SH SYNOPSIS
-/etc/mdadm.conf
+/etc/mdadm/mdadm.conf
 .SH DESCRIPTION
 .PP
 .B mdadm
diff -urNad mdadm-2.5.1~/mdassemble.8 mdadm-2.5.1/mdassemble.8
--- mdadm-2.5.1~/mdassemble.8	2006-06-25 23:52:13.000000000 +0200
+++ mdadm-2.5.1/mdassemble.8	2006-06-26 00:06:34.116601671 +0200
@@ -33,7 +33,7 @@
 
 .SH FILES
 
-.SS /etc/mdadm.conf
+.SS /etc/mdadm/mdadm.conf
 
 The config file lists which devices may be scanned to see if
 they contain MD super block, and gives identifying information