]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - dmraid/dmraid.nm
Move all packages to root.
[people/ms/ipfire-3.x.git] / dmraid / dmraid.nm
diff --git a/dmraid/dmraid.nm b/dmraid/dmraid.nm
new file mode 100644 (file)
index 0000000..e017e19
--- /dev/null
@@ -0,0 +1,61 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = dmraid
+version    = 1.0.0.rc15
+release    = 1
+
+groups     = System/Filesystems
+url        = http://people.redhat.com/heinzm/sw/dmraid
+license    = GPLv2+
+summary    = Device-mapper RAID tool and library.
+
+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.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libdevmapper-devel
+               libselinux-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}/%{version}
+       PARALLELISMFLAGS = # Disabled
+
+       make_install_targets += sbindir=%{BUILDROOT}/sbin
+
+       configure_options += \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --disable-static \
+               --disable-static_link \
+               --enable-libselinux
+
+       build_cmds
+               make -C lib libdmraid.so
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{,usr}/lib
+               install -v -m 755 lib/libdmraid.so \
+                       %{BUILDROOT}/lib/libdmraid.so.%{version}
+               ln -svf ../../lib/libdmraid.so.%{version} %{BUILDROOT}/usr/lib/libdmraid.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end