]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/core/dmraid/dmraid.nm
dmraid: New package.
[people/amarx/ipfire-3.x.git] / pkgs / core / dmraid / dmraid.nm
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
25 include $(PKGROOT)/Include
26
27 PKG_NAME = dmraid
28 PKG_VER = 1.0.0.rc15
29 PKG_REL = 0
30
31 PKG_MAINTAINER =
32 PKG_GROUP = System/Filesystems
33 PKG_URL = http://people.redhat.com/heinzm/sw/dmraid
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = Device-mapper RAID tool and library.
36
37 PKG_DEPS += lvm2
38
39 define PKG_DESCRIPTION
40 DMRAID supports RAID device discovery, RAID set activation, creation, \
41 removal, rebuild and display of properties for ATARAID/DDF1 metadata on \
42 Linux >= 2.4 using device-mapper.
43 endef
44
45 PKG_TARBALL = $(THISAPP).tar.bz2
46
47 DIR_APP = $(DIR_SRC)/$(PKG_NAME)/$(PKG_VER)
48 PARALLELISMFLAGS =
49
50 CONFIGURE_OPTIONS += \
51 --sbindir=/sbin \
52 --libdir=/lib \
53 --disable-static \
54 --disable-static_link
55
56 define STAGE_BUILD_CMDS
57 cd $(DIR_APP) && make -C lib libdmraid.so
58 endef
59
60 define STAGE_INSTALL
61 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) sbindir=$(BUILDROOT)/sbin
62 -mkdir -pv $(BUILDROOT)/{,usr}/lib
63 cd $(DIR_APP) && install -v -m 755 lib/libdmraid.so \
64 $(BUILDROOT)/lib/libdmraid.so.$(PKG_VER)
65 ln -svf ../../lib/libdmraid.so.$(PKG_VER) $(BUILDROOT)/usr/lib/libdmraid.so
66 endef