]>
Commit | Line | Data |
---|---|---|
5e087958 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
5e087958 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = mdadm |
db16a110 | 7 | version = 4.2 |
3b750b7c | 8 | release = 2 |
5e087958 | 9 | |
802ea3af MT |
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). | |
5e087958 | 14 | |
802ea3af MT |
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 | |
5e087958 | 20 | file can be used to help with some common tasks. |
802ea3af MT |
21 | end |
22 | ||
99f1d55b EK |
23 | source_dl = https://www.kernel.org/pub/linux/utils/raid/mdadm/ |
24 | sources = %{thisapp}.tar.xz | |
5e087958 | 25 | |
802ea3af MT |
26 | build |
27 | requires | |
db16a110 | 28 | libudev-devel |
802ea3af MT |
29 | groff |
30 | end | |
5e087958 | 31 | |
802ea3af | 32 | CFLAGS += -fno-strict-aliasing |
e55af06c | 33 | |
802ea3af MT |
34 | prepare_cmds |
35 | sed -e "s/^INSTALL = .*/INSTALL = install/" -i Makefile | |
36 | end | |
5e087958 | 37 | |
802ea3af | 38 | build |
db16a110 SS |
39 | make %{PARALLELISMFLAGS} \ |
40 | CXFLAGS="%{CFLAGS}" \ | |
41 | CWFLAGS= \ | |
42 | SYSCONFDIR="%{sysconfdir}" \ | |
43 | MDASSEMBLE_AUTO=1 | |
802ea3af | 44 | end |
5e087958 | 45 | |
db16a110 SS |
46 | make_install_targets += \ |
47 | install-systemd \ | |
48 | BINDIR=%{sbindir} \ | |
49 | UDEVDIR=%{prefix}/%{lib}/udev \ | |
50 | SYSTEMD_DIR="%{unitdir}" | |
802ea3af | 51 | end |
5e087958 | 52 | |
802ea3af MT |
53 | packages |
54 | package %{name} | |
1f9bc2f0 | 55 | |
802ea3af MT |
56 | package %{name}-devel |
57 | template DEVEL | |
58 | end | |
1f9bc2f0 MT |
59 | |
60 | package %{name}-debuginfo | |
61 | template DEBUGINFO | |
62 | end | |
802ea3af | 63 | end |