]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - mdadm/mdadm.nm
Move all packages to root.
[people/ms/ipfire-3.x.git] / mdadm / mdadm.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = mdadm
7 version = 3.2.2
8 release = 1
9
10 groups = System/Base
11 url = http://www.kernel.org/pub/linux/utils/raid/mdadm/
12 license = GPLv2+
13 summary = The mdadm program controls Linux md devices (software RAID arrays).
14
15 description
16 The mdadm program is used to create, manage, and monitor Linux MD (software
17 RAID) devices. As such, it provides similar functionality to the raidtools
18 package. However, mdadm is a single program, and it can perform
19 almost all functions without a configuration file, though a configuration
20 file can be used to help with some common tasks.
21 end
22
23 source_dl =
24
25 build
26 requires
27 groff
28 end
29
30 CFLAGS += -fno-strict-aliasing
31
32 prepare_cmds
33 sed -e "s/^INSTALL = .*/INSTALL = install/" -i Makefile
34 end
35
36 build
37 make %{PARALLELISMFLAGS} CXFLAGS="%{CFLAGS}" \
38 CWFLAGS= SYSCONFDIR="/etc" MDASSEMBLE_AUTO=1
39 end
40
41 install
42 make install BINDIR=/sbin DESTDIR=%{BUILDROOT}
43
44 mkdir -pv %{BUILDROOT}/var/run/mdadm
45 chmod 700 %{BUILDROOT}/var/run/mdadm
46 end
47 end
48
49 packages
50 package %{name}
51
52 package %{name}-devel
53 template DEVEL
54 end
55 end