]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - multipath-tools/multipath-tools.nm
git: Update to 2.23.0
[ipfire-3.x.git] / multipath-tools / multipath-tools.nm
index 57c01031c0fa6dec2e7d6ac19cf7cffedb804d4e..02bfeeaf38a514eb99786cbe0fa12b92ef37b698 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = multipath-tools
-version    = 0.4.9
+version    = 0.6.3
 release    = 1
 
 groups     = System/Base
@@ -17,30 +17,41 @@ description
        instructing the device-mapper multipath kernel module what to do.
 end
 
-source_dl  =
-sources    = %{name}-091027.tar.gz
+# git archive 0.6.3 --prefix=multipath-tools-0.6.3/ --format=tar | gzip --best > multipath-tools-0.6.3.tar.gz
+sources    = %{thisapp}.tar.gz
 
 build
        requires
                gzip
                libaio-devel
                libdevmapper-devel
+               libudev-devel
                ncurses-devel
                readline-devel
        end
 
-       DIR_APP = %{DIR_SRC}/%{name}
+       make_build_targets += -C kpartx LIB=%{lib} LDFLAGS="%{LDFLAGS} -ldevmapper"
 
-       install_cmds
-               rm -rf %{BUILDROOT}/etc/rc.d
-       end
+       # Install everything to the correct locations.
+       make_install_targets += \
+               -C kpartx \
+               bindir=%{sbindir} \
+               syslibdir=%{libdir} \
+               libdir=%{libdir}/multipath \
+               unitdir=%{unitdir}
 end
 
 packages
-       package %{name}
-
-       package %{name}-devel
-               template DEVEL
+       package kpartx
+               summary = Partition manager for device-mapper devices.
+               description
+                       kpartx manages partition creation and removal for device-mapper devices.
+               end
+
+               files
+                       %{sbindir}/kpartx
+                       %{mandir}/man8/kpartx.8*
+               end
        end
 
        package %{name}-debuginfo