]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added new packages: dmraid, libbdevid, pyblock.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Feb 2009 18:32:24 +0000 (19:32 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 17 Feb 2009 18:32:24 +0000 (19:32 +0100)
lfs/dmraid [new file with mode: 0644]
lfs/libbdevid [new file with mode: 0644]
lfs/python-pyblock [new file with mode: 0644]
make.sh

diff --git a/lfs/dmraid b/lfs/dmraid
new file mode 100644 (file)
index 0000000..9a86297
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 (file)
index 0000000..46190df
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 (file)
index 0000000..f96ce1f
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# 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 1111ec8155f956eca7941f2198fd24173352fd76..808b8dc4a8999c9803e9d03cb889844a69ced367 100755 (executable)
--- 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