From: Michael Tremer Date: Tue, 17 Feb 2009 18:32:24 +0000 (+0100) Subject: Added new packages: dmraid, libbdevid, pyblock. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c6dbb0ecc260441a5e78b0fa2275b73f6630119;p=ipfire-3.x.git Added new packages: dmraid, libbdevid, pyblock. --- diff --git a/lfs/dmraid b/lfs/dmraid new file mode 100644 index 000000000..9a86297cd --- /dev/null +++ b/lfs/dmraid @@ -0,0 +1,93 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008, 2009 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 Config + +PKG_NAME = dmraid +PKG_VER = 1.0.0.rc15 +PKG_REL = 0 + +THISAPP = $(PKG_NAME)-$(PKG_VER) +DL_FILE = $(THISAPP).tar.bz2 +DIR_APP = $(DIR_SRC)/$(PKG_NAME)/$(PKG_VER) + +OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) + +MAINTAINER = +GROUP = System/Filesystems +EXTRA = no +DEBUG = no +DEPS = lvm2 + +URL = http://people.redhat.com/heinzm/sw/dmraid +LICENSE = GPLv2+ +SHORT_DESC = Device-mapper RAID tool and library. + +define LONG_DESC + 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 + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +download: $(objects) + +info: + $(DO_PKG_INFO) + +install: $(OBJECT) + +package: + @$(DO_PACKAGE) + +$(objects): + @$(LOAD) + +############################################################################### +# Installation Details +############################################################################### + +$(OBJECT): $(objects) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && \ + ./configure \ + $(CONFIGURE_ARCH) \ + --prefix=/usr \ + --sbindir=/sbin \ + --libdir=/lib \ + --disable-static \ + --disable-static_link + cd $(DIR_APP) && make #$(PARALLELISMFLAGS) + cd $(DIR_APP) && make -C lib libdmraid.so #$(PARALLELISMFLAGS) + cd $(DIR_APP) && make install + cd $(DIR_APP) && install -v -m 755 lib/libdmraid.so /lib/libdmraid.so.$(PKG_VER) + ln -svf libdmraid.so.$(PKG_VER) /lib/libdmraid.so + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/lfs/libbdevid b/lfs/libbdevid new file mode 100644 index 000000000..46190df94 --- /dev/null +++ b/lfs/libbdevid @@ -0,0 +1,79 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008, 2009 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 Config + +PKG_NAME = libbdevid +PKG_VER = ipfire-1 +PKG_REL = 0 + +THISAPP = $(PKG_NAME)-$(PKG_VER) +DL_FILE = $(THISAPP).tar.bz2 +DIR_APP = $(DIR_SRC)/bdevid + +OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) + +MAINTAINER = +GROUP = System/Filesystems +EXTRA = no +DEBUG = no +DEPS = e2fsprogs lvm2 parted util-linux-ng + +URL = http://git.fedorahosted.org/git/?p=mkinitrd;a=summary +LICENSE = GPLv2+ +SHORT_DESC = A library that detects raid devices. + +define LONG_DESC + A library that detects raid devices. +endef + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +download: $(objects) + +info: + $(DO_PKG_INFO) + +install: $(OBJECT) + +package: + @$(DO_PACKAGE) + +$(objects): + @$(LOAD) + +############################################################################### +# Installation Details +############################################################################### + +$(OBJECT): $(objects) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && export VER=0.1; make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/lfs/python-pyblock b/lfs/python-pyblock new file mode 100644 index 000000000..f96ce1fce --- /dev/null +++ b/lfs/python-pyblock @@ -0,0 +1,80 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008, 2009 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 Config + +PKG_NAME = pyblock +PKG_VER = 0.34 +PKG_REL = 0 + +THISAPP = $(PKG_NAME)-$(PKG_VER) +DL_FILE = $(THISAPP).tar.bz2 +DIR_APP = $(DIR_SRC)/$(THISAPP) + +OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) + +MAINTAINER = +GROUP = System/Libraries +EXTRA = no +DEBUG = no +DEPS = dmraid lvm2 python python-parted + +URL = http://git.fedorahosted.org/git/?p=pyblock.git;a=summary +LICENSE = GPLv2 or GPLv3 +SHORT_DESC = Python modules for dealing with block devices. + +define LONG_DESC + The pyblock contains Python modules for dealing with block devices. +endef + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +download: $(objects) + +info: + $(DO_PKG_INFO) + +install: $(OBJECT) + +package: + @$(DO_PACKAGE) + +$(objects): + @$(LOAD) + +############################################################################### +# Installation Details +############################################################################### + +$(OBJECT): $(objects) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && sed -e "s/-Werror//g" -i Makefile + cd $(DIR_APP) && make install USESELINUX=0 + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 1111ec815..808b8dc4a 100755 --- a/make.sh +++ b/make.sh @@ -289,6 +289,7 @@ ipfire_build() { ipfire_make dosfstools ipfire_make lvm2 ipfire_make mdadm + ipfire_make dmraid ### Building hardware utils # @@ -320,6 +321,8 @@ ipfire_build() { ipfire_make cpio ipfire_make cdrtools ipfire_make python-parted + ipfire_make python-pyblock + ipfire_make libbdevid ipfire_make memtest86+ #ipfire_make pakfire ipfire_make quagga