1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUP = System/Filesystems
33 PKG_URL = http://people.redhat.com/heinzm/sw/dmraid
35 PKG_SUMMARY = Device-mapper RAID tool and library.
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.
45 PKG_TARBALL = $(THISAPP).tar.bz2
47 DIR_APP = $(DIR_SRC)/$(PKG_NAME)/$(PKG_VER)
50 CONFIGURE_OPTIONS += \
56 define STAGE_BUILD_CMDS
57 cd $(DIR_APP) && make -C lib libdmraid.so
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