From: Michael Tremer Date: Thu, 18 Feb 2010 16:36:28 +0000 (+0100) Subject: dmraid: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=717626ea7056e4bc3d2b900e047abd5aeabc8ef3;p=ipfire-3.x.git dmraid: New package. --- diff --git a/pkgs/core/dmraid/dmraid.nm b/pkgs/core/dmraid/dmraid.nm new file mode 100644 index 000000000..16df42d03 --- /dev/null +++ b/pkgs/core/dmraid/dmraid.nm @@ -0,0 +1,66 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = dmraid +PKG_VER = 1.0.0.rc15 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = System/Filesystems +PKG_URL = http://people.redhat.com/heinzm/sw/dmraid +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = Device-mapper RAID tool and library. + +PKG_DEPS += lvm2 + +define PKG_DESCRIPTION + DMRAID supports RAID device discovery, RAID set activation, creation, \ + removal, rebuild and display of properties for ATARAID/DDF1 metadata on \ + Linux >= 2.4 using device-mapper. +endef + +PKG_TARBALL = $(THISAPP).tar.bz2 + +DIR_APP = $(DIR_SRC)/$(PKG_NAME)/$(PKG_VER) +PARALLELISMFLAGS = + +CONFIGURE_OPTIONS += \ + --sbindir=/sbin \ + --libdir=/lib \ + --disable-static \ + --disable-static_link + +define STAGE_BUILD_CMDS + cd $(DIR_APP) && make -C lib libdmraid.so +endef + +define STAGE_INSTALL + cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) sbindir=$(BUILDROOT)/sbin + -mkdir -pv $(BUILDROOT)/{,usr}/lib + cd $(DIR_APP) && install -v -m 755 lib/libdmraid.so \ + $(BUILDROOT)/lib/libdmraid.so.$(PKG_VER) + ln -svf ../../lib/libdmraid.so.$(PKG_VER) $(BUILDROOT)/usr/lib/libdmraid.so +endef