]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/core/mdadm/mdadm.nm
mdadm: New package.
[people/ms/ipfire-3.x.git] / pkgs / core / mdadm / mdadm.nm
CommitLineData
5e087958
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = mdadm
28PKG_VER = 3.0-devel2
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = System/Base
33PKG_URL = http://www.kernel.org/pub/linux/utils/raid/mdadm/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = The mdadm program controls Linux md devices (software RAID arrays).
36
37PKG_BUILD_DEPS+= groff
38
39define PKG_DESCRIPTION
40 The mdadm program is used to create, manage, and monitor Linux MD (software \
41 RAID) devices. As such, it provides similar functionality to the raidtools \
42 package. However, mdadm is a single program, and it can perform \
43 almost all functions without a configuration file, though a configuration \
44 file can be used to help with some common tasks.
45endef
46
47PKG_TARBALL = $(THISAPP).tar.bz2
48
49CFLAGS += -fno-strict-aliasing
50
51define STAGE_PREPARE_CMDS
52 cd $(DIR_APP) && sed -e "s/^INSTALL = .*/INSTALL = install/" -i Makefile
53endef
54
55define STAGE_BUILD
56 cd $(DIR_APP) && make $(PARALLELISMFLAGS) CXFLAGS="$(CFLAGS)" \
57 SYSCONFDIR="/etc" MDASSEMBLE_AUTO=1
58endef
59
60define STAGE_INSTALL
61 cd $(DIR_APP) && make install BINDIR=/sbin DESTDIR=$(BUILDROOT)
62
63 -mkdir -pv $(BUILDROOT)/var/run/mdadm
64 chmod 700 $(BUILDROOT)/var/run/mdadm
65endef