summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-05-03 16:05:27 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-05-03 16:05:27 +0000
commitb37330922661c010b3b100c202619df899a295d6 (patch)
treee0ce7a2c495c0acb6392e16f1f52597d47c42ebc /sys-fs/multipath-tools
parentamd64 and x86 stable, wrt bug #468196 (diff)
downloadhistorical-b37330922661c010b3b100c202619df899a295d6.tar.gz
historical-b37330922661c010b3b100c202619df899a295d6.tar.bz2
historical-b37330922661c010b3b100c202619df899a295d6.zip
old
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs/multipath-tools')
-rw-r--r--sys-fs/multipath-tools/ChangeLog11
-rw-r--r--sys-fs/multipath-tools/Manifest25
-rw-r--r--sys-fs/multipath-tools/files/init.d-multipath-0.4.8-r141
-rw-r--r--sys-fs/multipath-tools/files/multipath-start.sh28
-rwxr-xr-xsys-fs/multipath-tools/files/multipath-stop.sh21
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.4.8-build.patch243
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.4.8-r1-kpartx.patch250
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.4.8-socket-cve-2009-0115.patch29
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.4.8-udev-scsi_id-changes.patch90
-rw-r--r--sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild77
10 files changed, 18 insertions, 797 deletions
diff --git a/sys-fs/multipath-tools/ChangeLog b/sys-fs/multipath-tools/ChangeLog
index e087ce7826bb..041517bc4d5b 100644
--- a/sys-fs/multipath-tools/ChangeLog
+++ b/sys-fs/multipath-tools/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-fs/multipath-tools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v 1.57 2013/04/09 10:12:33 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v 1.58 2013/05/03 16:05:16 ssuominen Exp $
+
+ 03 May 2013; Samuli Suominen <ssuominen@gentoo.org>
+ -multipath-tools-0.4.8-r1.ebuild, -files/init.d-multipath-0.4.8-r1,
+ -files/multipath-tools-0.4.8-build.patch,
+ -files/multipath-tools-0.4.8-r1-kpartx.patch,
+ -files/multipath-tools-0.4.8-socket-cve-2009-0115.patch,
+ -files/multipath-tools-0.4.8-udev-scsi_id-changes.patch,
+ -files/multipath-start.sh, -files/multipath-stop.sh:
+ old
09 Apr 2013; Samuli Suominen <ssuominen@gentoo.org>
multipath-tools-0.4.8-r1.ebuild, multipath-tools-0.4.9-r5.ebuild:
diff --git a/sys-fs/multipath-tools/Manifest b/sys-fs/multipath-tools/Manifest
index 46537a39a9d0..cafc26cab7b9 100644
--- a/sys-fs/multipath-tools/Manifest
+++ b/sys-fs/multipath-tools/Manifest
@@ -1,33 +1,24 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
-AUX init.d-multipath-0.4.8-r1 990 SHA256 4b6e4d09828c58fbe7394c33d7950a54ecd2ae48064594e2117516367119f677 SHA512 2b5bb89896c6bd214fb423a3737bd7ac69fd69483d2e4a46f72ecf1553d8956c1faa1ad5d5c47326df12392e4289058e929f68b4b8b0d257c8a6050dcabbb746 WHIRLPOOL df8932ec992a55c8c312596080174b9ed4dc84e19fbd3eb9934dffd5dba5f208851bff8cd844005cb6b580e869d236547e3c77a69e0b16d707f544784ccaff06
-AUX multipath-start.sh 763 SHA256 523398049d7c2f640355d7552c2fefe064b9026f8796e4ffe8b71acdca80a01c SHA512 6432cd812b6fa2a9a4580099ef0fb8dc7b646b2e2d49b6eccf97e1bcaf7939c0fc184ef2affbd8b32820dfcd33e30295ab76f9763e98e11f178b73586e52081e WHIRLPOOL 1a47ffe5b610b1057b585c92e3895176833bccb3fb07aec22e8781103ffe3831a601fc14ce57403f957d7cf0a4a8b683112f3e9cb3d9ba3916bd6ee25039604b
-AUX multipath-stop.sh 527 SHA256 601995e60d6e75cd51f6cd7176a1757a93dc7d163042373ddfe3a4b9a1735984 SHA512 63b54ccb392687379cfea428efe6746338c2ae3471285f35d0e61808bdfa2517365948a3744a2e3e135a7b11cce11abca19e572b65ee2d35564242e664d3b3c2 WHIRLPOOL c3a08c02d435f2c3afb81654cd71b6cb55bac362ad7021a2b07b131b8969d53c6f28612f18e10c806bd7844d0b5456d0b90c7162d0eef9737f806a77973e35b9
-AUX multipath-tools-0.4.8-build.patch 9529 SHA256 e2f81548ff91d53f93dceeb8a4bd5a0f17f206996a797b39380733c0a319b5d8 SHA512 216e92a60435a379f2774d82f14ef2caba1fae7d56ceaf30bf2c1768b615826097493b64ae11d7585fdfa9e4667563afdf359a568e05a1c2b012bfb409105234 WHIRLPOOL 061ee1bd8bb9e37d7aaa0bb195fca8432d2a9c684eb15f538019917db36274e9d40000884b4a184e6d4643b26795c7f9492f02b7c6ea8fb727e5b9c50862535b
AUX multipath-tools-0.4.8-kparted-ext-partitions.patch 1046 SHA256 4cd2e75782dbaba715b85ef1ececdc130e24d7497897ceea9802c779e79c1c73 SHA512 9cce969e9e1a7816356fa2b624cae5f71b4291cd3383ca462a98bf6b68aa9111f8bb42d3105697746eced52a29ed4fb006957ccbda77d04da31a179715c64ff8 WHIRLPOOL 840acca64843add545933ec174b52e6200d0a41ffd07f2a1d0175ea1460210430d781c6a079fc1b8ff8da28a685a9c17770ce5abfa97311444d13ab99c0600a9
-AUX multipath-tools-0.4.8-r1-kpartx.patch 7076 SHA256 0de7a21f1be7eba1ff389203e24c64b28d59be645e752de56c06d00275e0b703 SHA512 f3007a8cc040a698b3ddfef0bd2df55f8761c275ee5534916a40dd19143ffd55f7ac5a5fb427638df309a1d4083d02aeff667f3f5ee2d0a5754df60c7392f353 WHIRLPOOL 0317743594ae2020bf26d66de797c17f91344bc39aa0bb1bf25d2a43335d5212158438dc762b09079661f27e08936bfbffff2bc91fa9f0806b8573abf5d7508d
-AUX multipath-tools-0.4.8-socket-cve-2009-0115.patch 848 SHA256 2ed8234f7d37fbc4cd77dcf77e71de3bdbcca2bef6726e1f1a99d46878ac3a04 SHA512 16607fdd810e41e6333aafb0d393aa0aea4c94dda200fef19128261a8e138fcfb50bb08f899d0dd67ce0ab25eadc1fb8f5928e787b7c732a75d2e217efb3aa3c WHIRLPOOL d4c8f1dbd63eddf7d042a5dcb9b5f21e386830c01ba83f64cf2a45af2fb4f1d85468743195b39aacb6a85986a60826ad24e6b490b51c10054bdb4d47cab6971a
-AUX multipath-tools-0.4.8-udev-scsi_id-changes.patch 4125 SHA256 dca166caf506ea496f7cb883a98d1b5b1c77f5a91afa343e1ddc27d2a89ef0e3 SHA512 473d0e2b85623b4ccd82b6b80fef27a3da5fb7c53090baa78e8524de5040d139a722c69d042c686378346839241047fee2698296ac826d44626b49e70e5d061f WHIRLPOOL 76a76629bad14c8f0d783ada2d7014c8061824c321636ab874ecc5cf381808f87e3c7652390fc53715a396c0a66f447332c9da3e396b7ba2c9ff5bc10e302426
AUX multipath-tools-0.4.9-buffer-overflows.patch 993 SHA256 1f9ca1d26fee69dc7d5c1b65a835d23e1b8dd8de6fd3678faf3e7b499611d15d SHA512 5d17c452868d8e01ea171a4e734aeecc837d959d55a17de051ba006f1980d3b8c84f7d0d0db4f22c1c3f741ed074a1377a5ae8d8534f956e16b904ee1ee382aa WHIRLPOOL 86605d00cfe683a078b0828648dc1d79b4b99bb6b4da6110745466d37de70eeaad89af5979c8c257e69cf5a233cc535b696fff8fb86a15120f621a1e776e903a
AUX multipath-tools-0.4.9-build.patch 5564 SHA256 2a412dad4ce65fa554799fea3dad70fdd0bd26dad850e6890474ea4cd1016d83 SHA512 c26cc0bee065f6ac58c7e780f3a059b94239745edf4c613464722b13280a657523591c145d849a10b43a755513e8820a94c2166bc5fc0f90c90d50133de39bcc WHIRLPOOL e469dd38ceeb9a0318c82f8c2c30061e3acbb03aed7a8fbc220d2062fade86cda5efdd8ee36fdf1fab731fbbc9d82ef6f21a5f513bdea1e3d1db02d6330c4490
AUX multipath-tools-0.4.9-log_enquery_overflow.patch 2452 SHA256 43cedfbfdc1a5636e107bc3d388f0b03185b12761c3abb18424352f516d72b4b SHA512 acbdb4fc901acd8473b3dca2d0fe0b622d240c0ae02f4dda16bbb0d847f1fe05a849ec1916df1916e2c5f398cbf21b9c9f1c7b09429f3ee3ca6ea78d6996e1d3 WHIRLPOOL f9c991b829649196889dd7d30a260fd6ff24f1adaf0aefa04bb9779b474430723608816cf2efc8294c5e146ca339990e4c4702fc9e58206e58d0fa6d1b366d38
AUX multipath.rc 622 SHA256 9b68396afda8114610058d456318dc201a4d8799fb1d0504538e34966a7fd3d8 SHA512 7ccdd4823786a0d876496aeef8282ac1b2c4aadf4bfd6a3aee9221412b5f48c8be1e05c49d7150ecdb1ac03afb3af962d6fa3bc26d198193395e307fb181b5fa WHIRLPOOL de16a6b3002dd24801609dbb9ae44c555d7d8256bff60327bd1fa89faf8512a4801d1cee1c6a0fe8bd34aebeec306ace9378a6e7069e5e9ff4f4b69521683cc9
AUX rc-multipathd 517 SHA256 d96e3d7ca1edbbbc92f1336d4c340f1b516e71c49c85e990e3f4063c1b5db241 SHA512 ba28c81597d9db1f4b0d9d2253f086539745cf0f06b5643d859ffc02d4ad7bd7fc526370987b1f84b028b1523b49cffe904a26a0b122f13e7bc89f9b39771deb WHIRLPOOL d4a8820e2597e5ab5ab534c126b2c153b655d026ef243802859d11ff14eada9ce4413916506385e6654289677dc43be4c9f1a680671b8938f6ea29066b227dcf
-DIST multipath-tools-0.4.8.tar.bz2 160706 SHA256 b76d93d244f51e328969203366939d4336c89bd572e275d6a0d50d0bc8b4cd23 SHA512 eb7c17dedccb4fcfeb17c7941a6edf4b6b127f238c608cf855d97b199bdc0d23c1232ab7cbd2aef254a010bd0dbdadf3f0dac9ec5e4959f9c5388ddde5bb6b2c WHIRLPOOL cbb26d88e4a99bb6dccfa4d181898ba55e483ddf4a66b96b33a3cc6a92012ac2b4ff70bf9174f2605c58a828f42f14faa7fa57deb5328944db52c3c727a1cf55
DIST multipath-tools-0.4.9.tar.bz2 169180 SHA256 8d44c8815144b5589cc3e604cb3fc16c76a028aef08aa1bec334ff70bf9ac712 SHA512 ff4d74951b4ca6f95deb501876e5edec00b6880c98bd3f24452133c142a4118f186a5988e08151ecf5dc7348568eb434be19c31ee5257c5372997f44003eb540 WHIRLPOOL 4c5433fbd34cad0481ac1dd68cacc26b0e7fb503001c00dc9dd2fe4c96624ea55537e90e0834695a7f53b93e578a024576c9a3bf81477e83cb425d20ac1ecf6e
-EBUILD multipath-tools-0.4.8-r1.ebuild 2734 SHA256 750e9f92c0d5dae32b0689f984b639171607bce6985ddd6a7338f9e2bbfd0507 SHA512 fcd0c6cb2bd5da59e26a2cbfbfd30311661207d00122f6d9f1f09baa144e8dbe39e4c9f8c41aa2e000a2f984f2e2f487f6f6fa73b87beeb0714ac57c9ac26c1a WHIRLPOOL 6e8d3d0893207b5180b0e4eb4b944baab8b67a0df8b5f7133085e47e4cc089f03ebf1efbecfb93fd55fefd1d250db98d09ceba0f43e4fb11490ab497400c6227
EBUILD multipath-tools-0.4.9-r5.ebuild 2383 SHA256 3d1176a2df598a6ea2a73ce17a0d239b52e42c394f3c642e8eed21638e1e10f1 SHA512 dc1d0ba659f800c91785da390b31f75e88c24ed7ed4b18757664c464abfcec42496418abd5cf43c44688b65fe0634d20e9f9e6adf80faf96aeb69288368bbad6 WHIRLPOOL 2ab621b625c62c21feb0142acea33f04811449ca30119867c84a017d71f03fce79475342377171990984cdde9dd208cd555413b95cee3ecf70fb410445c78043
-MISC ChangeLog 10445 SHA256 6dada67b3825f8fa5a856d12786cb786829da5aa13b7304a92d0246816ec0390 SHA512 3a161d0f18c98b200adc55f5aa75c11430f338e1e99e8e46fb143a713ee97e6700e14fa8fa9612150b3daced1709134c0891dfe6a6c6d4d203e88c66c8c9400d WHIRLPOOL 3b0be03d1f9e0cbf7b6145caecadb11177d831e09e2aca9ee1c91cece7746c28f94deeceb60e7697348a61f91a2300924c72d4d434fc5a92786af01e6926c043
+MISC ChangeLog 10841 SHA256 0f18997c72e921c5859501474bdaabdba715fff5ba4a487bd8a13d4b05833898 SHA512 4c18451ff74dba5cf2ad1f428058d362e43f715d8b9a42d704e857588a6ec104cfc1fae67662629ce3bc43c5932bda235ddaccc61b2d71cd2b41afe0945c5f9d WHIRLPOOL 693d45d9e62aff7cdaf0f2de779e2543ef2769700453a59500e9ea4b42e1da4ec095c58adf556c2028c5d92c8ca5da6ea5cd3bc3db12a32bbdd418ebea9741fa
MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJRY+mRAAoJEEdUh39IaPFNZVIH/3xltUZVwgipd2vnXpXMNW72
-fl49qhPzb4hKiyjKrEy7xdLTg9pLe4Jima92uqxFmK2HpCajDY4nlIGP+Hgj1Tbt
-y0PoqsDNTV+YWt3eJ1Ue1/hM5At67Eck6hM2Dhov07U8LF0H5GvGmD3If58HKCmW
-xzgFUlLvt71Pu71GIcqdvek2bT/ClbkHaQWK36nEuYjDkDLCFH/Sx5pgGx2J2nNr
-+Xyx/a6i4P3EnS5wymyY9wqeh8ZoQTvyF5MpFbldJxcKGVLKVBjIsTC+Ia68eoqV
-E9kwu6AZRD/hLpxu77RTQPIYjWlbNOK+WueitjtnMREHFU0DN9MQD4wp/mbpHtE=
-=eTpg
+iQEcBAEBCAAGBQJRg+A3AAoJEEdUh39IaPFNlXIH/39iK1s3bUQkQdJLwS1hU6dz
+omTb8BhJiA++0gvW6vm5JHBvSwiPVGGQ74GmDU2y7pRq96YAW4tmusqc6qiJI8yP
+D1iuzQ0PibGgMn7RoZCTI3kkmo4ycRCtq5yenrV60LYv5ZgICpxYaBkOgUFZV/k9
+0REl9QY7mkMXB7aO63VDF9Y2Es/bYVHVEozb51smMcQVCQRUlJ73xiBF8YGXji6n
+op3bUJx5o0UL5szrx3dxEGX3IF/A1UCjcY5vOl39xBdKk4SkutqNG5UrfRM3RdiI
+R9D2HAb4Yh8QyMWQyClSKyJUZi4oHhEZyPbg44VdXm+03emm4jQcchRwb9J7aUI=
+=hpOM
-----END PGP SIGNATURE-----
diff --git a/sys-fs/multipath-tools/files/init.d-multipath-0.4.8-r1 b/sys-fs/multipath-tools/files/init.d-multipath-0.4.8-r1
deleted file mode 100644
index 3ec8d1cc285c..000000000000
--- a/sys-fs/multipath-tools/files/init.d-multipath-0.4.8-r1
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/files/init.d-multipath-0.4.8-r1,v 1.1 2009/10/30 06:50:11 robbat2 Exp $
-
-# Existence of this file means we are on baselayout 2.
-check_bl2_file='/etc/init.d/sysfs'
-
-depend() {
- if [ -e ${check_bl2_file} ]; then
- # on baselayout-1 this causes
- # dependency-cycles with checkroot (before *)
- before checkfs fsck multipathd lvm
- after modules device-mapper
- fi
-}
-
-# Once we are ready to stop baselayout1 support, we can just merge the addons
-# into here.
-run_addon() {
- local f=/lib/rcscripts/addons/$1.sh
- if [ -r "$f" ]; then
- ( . "$f" )
- fi
-}
-
-start() {
- if [ ! -e ${check_bl2_file} ]; then
- eerror "The $SVCNAME init-script is written for baselayout-2!"
- eerror "Please do not use it with baselayout-1!".
- return 1
- fi
-
- run_addon multipath-start
-}
-
-stop() {
- run_addon multipath-stop
-}
-
-# vim:ts=4
diff --git a/sys-fs/multipath-tools/files/multipath-start.sh b/sys-fs/multipath-tools/files/multipath-start.sh
deleted file mode 100644
index b31e4902487e..000000000000
--- a/sys-fs/multipath-tools/files/multipath-start.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-# /lib/rcscripts/addons/multipath-start.sh: Setup multipath devices at boot
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/files/multipath-start.sh,v 1.1 2008/06/20 23:57:19 robbat2 Exp $
-
-dm_in_proc() {
- local retval=0
- for x in devices misc ; do
- grep -qs 'device-mapper' /proc/${x}
- retval=$((${retval} + $?))
- done
- return ${retval}
-}
-
-# NOTE: Add needed modules for RAID, Multipath etc
-# to /etc/modules.autoload if needed
-if [ -z "${CDBOOT}" -a -x /sbin/multipath ] ; then
- if [ -e /proc/modules ] && ! dm_in_proc ; then
- modprobe dm-mod 2>/dev/null
- fi
-
- if dm_in_proc ; then
- ebegin "Activating Multipath devices"
- /sbin/multipath -v0 >/dev/null
- retval=$?
- eend ${retval} "Failed to activate multipath devices"
- fi
-fi
-
-# vim:ts=4
diff --git a/sys-fs/multipath-tools/files/multipath-stop.sh b/sys-fs/multipath-tools/files/multipath-stop.sh
deleted file mode 100755
index 03a25d991d96..000000000000
--- a/sys-fs/multipath-tools/files/multipath-stop.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-# /lib/rcscripts/addons/lvm-stop.sh
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/files/multipath-stop.sh,v 1.1 2008/06/20 23:57:19 robbat2 Exp $
-
-dm_in_proc() {
- local retval=0
- for x in devices misc ; do
- grep -qs 'device-mapper' /proc/${x}
- retval=$((${retval} + $?))
- done
- return ${retval}
-}
-
-# Stop LVM2
-if [ -x /sbin/multipath -a dm_in_proc ]; then
- ebegin "Shutting down Multipath devices"
- /sbin/multipath -v0 -F >/dev/null
- retval=$?
- eend $retval "Failed to shut down Multipath devices"
-fi
-
-# vim:ts=4
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-build.patch b/sys-fs/multipath-tools/files/multipath-tools-0.4.8-build.patch
deleted file mode 100644
index dece81376ab3..000000000000
--- a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-build.patch
+++ /dev/null
@@ -1,243 +0,0 @@
-diff -Nuar multipath-tools-0.4.8.orig/devmap_name/Makefile multipath-tools-0.4.8/devmap_name/Makefile
---- multipath-tools-0.4.8.orig/devmap_name/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/devmap_name/Makefile 2008-06-20 16:20:19.342920167 -0700
-@@ -10,7 +10,7 @@
- ifeq ($(strip $(BUILD)),klibc)
- OBJS += $(libdm)
- else
-- LDFLAGS = -ldevmapper
-+ LDFLAGS += -ldevmapper
- endif
-
- EXEC = devmap_name
-@@ -32,11 +32,11 @@
- install -d $(DESTDIR)$(bindir)
- install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-- rm $(DESTDIR)$(mandir)/$(EXEC).8.gz
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(mandir)/$(EXEC).8
-
- clean:
- rm -f core *.o $(EXEC) *.gz
-diff -Nuar multipath-tools-0.4.8.orig/kpartx/Makefile multipath-tools-0.4.8/kpartx/Makefile
---- multipath-tools-0.4.8.orig/kpartx/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/kpartx/Makefile 2008-06-20 16:30:07.571748249 -0700
-@@ -13,7 +13,7 @@
- lopart.o xstrncpy.o devmapper.o dasd.o mac.o sun.o \
- $(MULTIPATHLIB)-$(BUILD).a $(libdm)
- else
-- LDFLAGS = -ldevmapper
-+ LDFLAGS += -ldevmapper
- OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o sun.o \
- gpt.o mac.o crc32.o lopart.o xstrncpy.o devmapper.o
- endif
-@@ -44,11 +44,12 @@
- install -d $(DESTDIR)/etc/udev/rules.d
-- install -m 644 kpartx.rules $(DESTDIR)/etc/udev/rules.d/
-+ install -m 644 kpartx.rules $(DESTDIR)/etc/udev/rules.d/66-kpartx.rules
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
- uninstall:
- rm -f $(DESTDIR)$(bindir)/$(EXEC)
-- rm -f $(DESTDIR)$(mandir)/$(EXEC).8.gz
-+ rm -f $(DESTDIR)$(mandir)/$(EXEC).8
-+ rm -f $(DESTDIR)/etc/udev/rules.d/66-kpartx.rules
-
- clean:
- rm -f core *.o $(EXEC) *.gz
-diff -Nuar multipath-tools-0.4.8.orig/Makefile.inc multipath-tools-0.4.8/Makefile.inc
---- multipath-tools-0.4.8.orig/Makefile.inc 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/Makefile.inc 2008-06-20 16:18:41.008583279 -0700
-@@ -34,10 +34,10 @@
- CHECKERSLIB = $(checkersdir)/libcheckers
- MULTIPATHLIB = $(multipathdir)/libmultipath
-
--INSTALL_PROGRAM = install -s
-+INSTALL_PROGRAM = install
-
--OPTFLAGS = -pipe -g -Wall -Wunused -Wstrict-prototypes
--CFLAGS = $(OPTFLAGS)
-+OPTFLAGS = -Wall -Wunused -Wstrict-prototypes
-+CFLAGS += $(OPTFLAGS)
-
- %.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
-diff -Nuar multipath-tools-0.4.8.orig/multipath/Makefile multipath-tools-0.4.8/multipath/Makefile
---- multipath-tools-0.4.8.orig/multipath/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/multipath/Makefile 2008-06-20 16:21:17.572126979 -0700
-@@ -42,17 +42,17 @@
- install -d $(DESTDIR)$(bindir)
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
- install -d $(DESTDIR)/etc/udev/rules.d
-- install -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/
-+ install -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/65-multipath.rules
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
- install -d $(DESTDIR)$(man5dir)
-- install -m 644 $(EXEC).conf.5.gz $(DESTDIR)$(man5dir)
-+ install -m 644 $(EXEC).conf.5 $(DESTDIR)$(man5dir)
-
- uninstall:
-- rm $(DESTDIR)/etc/udev/rules.d/multipath.rules
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-- rm $(DESTDIR)$(mandir)/$(EXEC).8.gz
-- rm $(DESTDIR)$(man5dir)/$(EXEC).conf.5.gz
-+ rm -f $(DESTDIR)/etc/udev/rules.d/65-multipath.rules
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(mandir)/$(EXEC).8
-+ rm -f $(DESTDIR)$(man5dir)/$(EXEC).conf.5
-
- clean:
- rm -f core *.o $(EXEC) *.gz
-diff -Nuar multipath-tools-0.4.8.orig/multipathd/Makefile multipath-tools-0.4.8/multipathd/Makefile
---- multipath-tools-0.4.8.orig/multipathd/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/multipathd/Makefile 2008-06-20 16:21:51.421988986 -0700
-@@ -7,7 +7,7 @@
- # basic flags setting
- #
- CFLAGS += -DDAEMON -I$(multipathdir) -I$(checkersdir)
--LDFLAGS = -lpthread -ldevmapper -lreadline -lncurses -laio
-+LDFLAGS += -lpthread -ldevmapper -lreadline -lncurses -laio
-
- #
- # debuging stuff
-@@ -48,12 +48,12 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)
- install -d $(DESTDIR)$(rcdir)
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
- uninstall:
- rm -f $(DESTDIR)$(bindir)/$(EXEC)
- rm -f $(DESTDIR)$(rcdir)/$(EXEC)
-- rm -f $(DESTDIR)$(mandir)/$(EXEC).8.gz
-+ rm -f $(DESTDIR)$(mandir)/$(EXEC).8
-
- clean:
- $(MAKE) -C $(multipathdir) prepare DAEMON=1
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_alua/Makefile multipath-tools-0.4.8/path_priority/pp_alua/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_alua/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_alua/Makefile 2008-06-20 16:24:53.596722793 -0700
-@@ -35,13 +35,13 @@
- klibc: $(OBJS)
- $(CC) -static -o $(EXEC) $(OBJS)
-
--install: $(EXEC) $(EXEC).8.gz
-- $(INSTALL) -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-- $(INSTALL) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)/$(EXEC).8.gz
-+install: $(EXEC) $(EXEC).8
-+ $(INSTALL) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-+ $(INSTALL) -m 644 $(EXEC).8 $(DESTDIR)$(mandir)/$(EXEC).8
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-- rm $(DESTDIR)$(mandir)/$(EXEC).8.gz
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(mandir)/$(EXEC).8
-
- clean:
- rm -f *.o *.gz $(EXEC)
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_balance_units/Makefile multipath-tools-0.4.8/path_priority/pp_balance_units/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_balance_units/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_balance_units/Makefile 2008-06-20 16:29:13.181754556 -0700
-@@ -13,7 +13,7 @@
- OBJS = pp_balance_units.o $(MULTIPATHLIB)-$(BUILD).a
- else
- CFLAGS += -I$(multipathdir) -DDEBUG=$(DEBUG)
-- LDFLAGS = -ldevmapper
-+ LDFLAGS += -ldevmapper
- OBJS = pp_balance_units.o $(MULTIPATHLIB)-$(BUILD).a
- endif
-
-@@ -38,7 +38,7 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-
- clean:
- rm -f core *.o $(EXEC) *.gz
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_emc/Makefile multipath-tools-0.4.8/path_priority/pp_emc/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_emc/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_emc/Makefile 2008-06-20 16:28:57.664254512 -0700
-@@ -17,7 +17,8 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+
- clean:
- rm -f *.o $(EXEC)
-
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_hds_modular/Makefile multipath-tools-0.4.8/path_priority/pp_hds_modular/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_hds_modular/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_hds_modular/Makefile 2008-06-20 16:28:52.897167373 -0700
-@@ -17,6 +17,7 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+
- clean:
- rm -f *.o $(EXEC)
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_hp_sw/Makefile multipath-tools-0.4.8/path_priority/pp_hp_sw/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_hp_sw/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_hp_sw/Makefile 2008-06-20 16:28:48.881865361 -0700
-@@ -17,7 +17,7 @@
- install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
- clean:
- rm -f *.o $(EXEC)
-
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_netapp/Makefile multipath-tools-0.4.8/path_priority/pp_netapp/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_netapp/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_netapp/Makefile 2008-06-20 16:28:45.411765821 -0700
-@@ -17,6 +17,7 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+
- clean:
- rm -f *.o $(EXEC)
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_random/Makefile multipath-tools-0.4.8/path_priority/pp_random/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_random/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_random/Makefile 2008-06-20 16:28:37.139873269 -0700
-@@ -17,6 +17,7 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+
- clean:
- rm -f *.o $(EXEC)
-diff -Nuar multipath-tools-0.4.8.orig/path_priority/pp_rdac/Makefile multipath-tools-0.4.8/path_priority/pp_rdac/Makefile
---- multipath-tools-0.4.8.orig/path_priority/pp_rdac/Makefile 2007-08-02 14:05:37.000000000 -0700
-+++ multipath-tools-0.4.8/path_priority/pp_rdac/Makefile 2008-06-20 16:28:32.708817275 -0700
-@@ -17,6 +17,7 @@
- $(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
- uninstall:
-- rm $(DESTDIR)$(bindir)/$(EXEC)
-+ rm -f $(DESTDIR)$(bindir)/$(EXEC)
-+
- clean:
- rm -f *.o $(EXEC)
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-r1-kpartx.patch b/sys-fs/multipath-tools/files/multipath-tools-0.4.8-r1-kpartx.patch
deleted file mode 100644
index ae2a7fe1c6e9..000000000000
--- a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-r1-kpartx.patch
+++ /dev/null
@@ -1,250 +0,0 @@
-diff --git a/kpartx/devmapper.c b/kpartx/devmapper.c
-index 3e973aa..893d6dd 100644
---- a/kpartx/devmapper.c
-+++ b/kpartx/devmapper.c
-@@ -4,10 +4,12 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
-+#include <stdint.h>
- #include <libdevmapper.h>
- #include <ctype.h>
- #include <linux/kdev_t.h>
- #include <errno.h>
-+#include "devmapper.h"
-
- #define UUID_PREFIX "part%d-"
- #define MAX_PREFIX_LEN 8
-@@ -72,7 +74,7 @@ dm_simplecmd (int task, const char *name) {
-
- extern int
- dm_addmap (int task, const char *name, const char *target,
-- const char *params, unsigned long size, const char *uuid, int part) {
-+ const char *params, uint64_t size, const char *uuid, int part) {
- int r = 0;
- struct dm_task *dmt;
- char *prefixed_uuid = NULL;
-diff --git a/kpartx/devmapper.h b/kpartx/devmapper.h
-index ccdbead..2bd27d2 100644
---- a/kpartx/devmapper.h
-+++ b/kpartx/devmapper.h
-@@ -1,7 +1,7 @@
- int dm_prereq (char *, int, int, int);
- int dm_simplecmd (int, const char *);
--int dm_addmap (int, const char *, const char *, const char *, unsigned long,
-- char *, int);
-+int dm_addmap (int, const char *, const char *, const char *, uint64_t,
-+ const char *, int);
- int dm_map_present (char *);
- char * dm_mapname(int major, int minor);
- dev_t dm_get_first_dep(char *devname);
-diff --git a/kpartx/gpt.c b/kpartx/gpt.c
-index dc846ca..047a829 100644
---- a/kpartx/gpt.c
-+++ b/kpartx/gpt.c
-@@ -36,6 +36,7 @@
- #include <errno.h>
- #include <endian.h>
- #include <byteswap.h>
-+#include <linux/fs.h>
- #include "crc32.h"
-
- #if BYTE_ORDER == LITTLE_ENDIAN
-@@ -50,10 +51,18 @@
- # define __cpu_to_le32(x) bswap_32(x)
- #endif
-
-+#ifndef BLKGETLASTSECT
- #define BLKGETLASTSECT _IO(0x12,108) /* get last sector of block device */
-+#endif
-+#ifndef BLKGETSIZE
- #define BLKGETSIZE _IO(0x12,96) /* return device size */
-+#endif
-+#ifndef BLKSSZGET
- #define BLKSSZGET _IO(0x12,104) /* get block device sector size */
-+#endif
-+#ifndef BLKGETSIZE64
- #define BLKGETSIZE64 _IOR(0x12,114,sizeof(uint64_t)) /* return device size in bytes (u64 *arg) */
-+#endif
-
- struct blkdev_ioctl_param {
- unsigned int block;
-@@ -143,20 +152,14 @@ get_sector_size(int filedes)
- static uint64_t
- _get_num_sectors(int filedes)
- {
-- unsigned long sectors=0;
- int rc;
--#if 0
-- uint64_t bytes=0;
-+ uint64_t bytes=0;
-
-- rc = ioctl(filedes, BLKGETSIZE64, &bytes);
-+ rc = ioctl(filedes, BLKGETSIZE64, &bytes);
- if (!rc)
- return bytes / get_sector_size(filedes);
--#endif
-- rc = ioctl(filedes, BLKGETSIZE, &sectors);
-- if (rc)
-- return 0;
--
-- return sectors;
-+
-+ return 0;
- }
-
- /************************************************************
-@@ -193,7 +196,7 @@ last_lba(int filedes)
- sectors = 1;
- }
-
-- return sectors - 1;
-+ return sectors ? sectors - 1 : 0;
- }
-
-
-@@ -220,17 +223,22 @@ read_lba(int fd, uint64_t lba, void *buffer, size_t bytes)
- {
- int sector_size = get_sector_size(fd);
- off_t offset = lba * sector_size;
-+ uint64_t lastlba;
- ssize_t bytesread;
-
- lseek(fd, offset, SEEK_SET);
- bytesread = read(fd, buffer, bytes);
-
-+ lastlba = last_lba(fd);
-+ if (!lastlba)
-+ return bytesread;
-+
- /* Kludge. This is necessary to read/write the last
- block of an odd-sized disk, until Linux 2.5.x kernel fixes.
- This is only used by gpt.c, and only to read
- one sector, so we don't have to be fancy.
- */
-- if (!bytesread && !(last_lba(fd) & 1) && lba == last_lba(fd)) {
-+ if (!bytesread && !(lastlba & 1) && lba == lastlba) {
- bytesread = read_lastoddsector(fd, lba, buffer, bytes);
- }
- return bytesread;
-@@ -505,7 +513,8 @@ find_valid_gpt(int fd, gpt_header ** gpt, gpt_entry ** ptes)
- if (!gpt || !ptes)
- return 0;
-
-- lastlba = last_lba(fd);
-+ if (!(lastlba = last_lba(fd)))
-+ return 0;
- good_pgpt = is_gpt_valid(fd, GPT_PRIMARY_PARTITION_TABLE_LBA,
- &pgpt, &pptes);
- if (good_pgpt) {
-diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
-index dbe2ee2..72ca81d 100644
---- a/kpartx/kpartx.c
-+++ b/kpartx/kpartx.c
-@@ -25,6 +25,7 @@
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
-+#include <stdint.h>
- #include <sys/stat.h>
- #include <sys/types.h>
- #include <ctype.h>
-@@ -366,16 +367,16 @@ main(int argc, char **argv){
-
- slices[j].minor = m++;
-
-- printf("%s%s%d : 0 %lu %s %lu\n",
-+ printf("%s%s%d : 0 %" PRIu64 " %s %" PRIu64"\n",
- mapname, delim, j+1,
-- (unsigned long) slices[j].size, device,
-- (unsigned long) slices[j].start);
-+ slices[j].size, device,
-+ slices[j].start);
- }
- /* Loop to resolve contained slices */
- d = c;
- while (c) {
- for (j = 0; j < n; j++) {
-- unsigned long start;
-+ uint64_t start;
- int k = slices[j].container - 1;
-
- if (slices[j].size == 0)
-@@ -387,9 +388,9 @@ main(int argc, char **argv){
- slices[j].minor = m++;
-
- start = slices[j].start - slices[k].start;
-- printf("%s%s%d : 0 %lu /dev/dm-%d %lu\n",
-+ printf("%s%s%d : 0 %" PRIu64 " /dev/dm-%d %" PRIu64 "\n",
- mapname, delim, j+1,
-- (unsigned long) slices[j].size,
-+ slices[j].size,
- slices[k].minor, start);
- c--;
- }
-@@ -448,8 +449,8 @@ main(int argc, char **argv){
- }
- strip_slash(partname);
-
-- if (safe_sprintf(params, "%s %lu", device,
-- (unsigned long)slices[j].start)) {
-+ if (safe_sprintf(params, "%s %" PRIu64 ,
-+ device, slices[j].start)) {
- fprintf(stderr, "params too small\n");
- exit(1);
- }
-@@ -468,7 +469,7 @@ main(int argc, char **argv){
- &slices[j].minor);
-
- if (verbose)
-- printf("add map %s (%d:%d): 0 %lu %s %s\n",
-+ printf("add map %s (%d:%d): 0 %" PRIu64 " %s %s\n",
- partname, slices[j].major,
- slices[j].minor, slices[j].size,
- DM_TARGET, params);
-@@ -502,10 +503,10 @@ main(int argc, char **argv){
- }
- strip_slash(partname);
-
-- if (safe_sprintf(params, "%d:%d %lu",
-+ if (safe_sprintf(params, "%d:%d %" PRIu64,
- slices[k].major,
- slices[k].minor,
-- (unsigned long)slices[j].start)) {
-+ slices[j].start)) {
- fprintf(stderr, "params too small\n");
- exit(1);
- }
-@@ -524,7 +525,7 @@ main(int argc, char **argv){
- &slices[j].minor);
-
- if (verbose)
-- printf("add map %s : 0 %lu %s %s\n",
-+ printf("add map %s : 0 %" PRIu64 " %s %s\n",
- partname, slices[j].size,
- DM_TARGET, params);
- c--;
-diff --git a/kpartx/kpartx.h b/kpartx/kpartx.h
-index 9b3aeca..43ae3f8 100644
---- a/kpartx/kpartx.h
-+++ b/kpartx/kpartx.h
-@@ -1,6 +1,8 @@
- #ifndef _KPARTX_H
- #define _KPARTX_H
-
-+#include <stdint.h>
-+
- /*
- * For each partition type there is a routine that takes
- * a block device and a range, and returns the list of
-@@ -20,8 +22,8 @@
- * units: 512 byte sectors
- */
- struct slice {
-- unsigned long start;
-- unsigned long size;
-+ uint64_t start;
-+ uint64_t size;
- int container;
- int major;
- int minor;
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-socket-cve-2009-0115.patch b/sys-fs/multipath-tools/files/multipath-tools-0.4.8-socket-cve-2009-0115.patch
deleted file mode 100644
index deab7620657d..000000000000
--- a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-socket-cve-2009-0115.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Hannes Reinecke <hare@suse.de>
-Date: Wed, 1 Apr 2009 20:31:01 +0000 (+0200)
-Subject: [multipathd] /var/run/multipathd.sock is world-writable
-X-Git-Url: http://git.kernel.org/gitweb.cgi?p=linux%2Fstorage%2Fmultipath-tools%2F.git;a=commitdiff_plain;h=0a0319d381249760c71023edbe0ac9c093bb4a74;hp=15d4bdddcb9b71e0ec6fecc3c37a1b8cae8f51ff
-
-[multipathd] /var/run/multipathd.sock is world-writable
-
-Due to an stray 'umask()' the socket file is in fact world-writable,
-allowing for an easy exploit.
-
-References: 458598
----
-
-diff --git a/multipathd/main.c b/multipathd/main.c
-index 8a1a63d..9957f1f 100644
---- a/multipathd/main.c
-+++ b/multipathd/main.c
-@@ -1454,8 +1454,9 @@ daemonize(void)
-
- close(in_fd);
- close(out_fd);
-- chdir("/");
-- umask(0);
-+ if (chdir("/") < 0)
-+ fprintf(stderr, "cannot chdir to '/', continuing\n");
-+
- return 0;
- }
-
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-udev-scsi_id-changes.patch b/sys-fs/multipath-tools/files/multipath-tools-0.4.8-udev-scsi_id-changes.patch
deleted file mode 100644
index a770a05899a1..000000000000
--- a/sys-fs/multipath-tools/files/multipath-tools-0.4.8-udev-scsi_id-changes.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-diff -Nuar multipath-tools-0.4.8.orig/libmultipath/defaults.h multipath-tools-0.4.8/libmultipath/defaults.h
---- multipath-tools-0.4.8.orig/libmultipath/defaults.h 2007-08-02 21:05:37.000000000 +0000
-+++ multipath-tools-0.4.8/libmultipath/defaults.h 2009-10-30 06:00:21.432553430 +0000
-@@ -1,4 +1,4 @@
--#define DEFAULT_GETUID "/lib/udev/scsi_id -g -u -s /block/%n"
-+#define DEFAULT_GETUID "/lib/udev/scsi_id -g -u -d /dev/%n"
- #define DEFAULT_UDEVDIR "/dev"
- #define DEFAULT_SELECTOR "round-robin 0"
- #define DEFAULT_FEATURES "0"
-diff -Nuar multipath-tools-0.4.8.orig/libmultipath/hwtable.c multipath-tools-0.4.8/libmultipath/hwtable.c
---- multipath-tools-0.4.8.orig/libmultipath/hwtable.c 2007-08-02 21:05:37.000000000 +0000
-+++ multipath-tools-0.4.8/libmultipath/hwtable.c 2009-10-30 06:00:08.087158020 +0000
-@@ -157,7 +157,7 @@
- /* HP Smart Array */
- .vendor = "HP",
- .product = "LOGICAL VOLUME.*",
-- .getuid = "/lib/udev/scsi_id -n -g -u -s /block/%n",
-+ .getuid = "/lib/udev/scsi_id -n -g -u -d /dev/%n",
- .getprio = NULL,
- .features = DEFAULT_FEATURES,
- .hwhandler = DEFAULT_HWHANDLER,
-@@ -199,7 +199,7 @@
- {
- .vendor = "EMC",
- .product = "SYMMETRIX",
-- .getuid = "/lib/udev/scsi_id -g -u -ppre-spc3-83 -s /block/%n",
-+ .getuid = "/lib/udev/scsi_id -g -u -ppre-spc3-83 -d /dev/%n",
- .getprio = NULL,
- .features = DEFAULT_FEATURES,
- .hwhandler = DEFAULT_HWHANDLER,
-diff -Nuar multipath-tools-0.4.8.orig/multipath/multipath.conf.5 multipath-tools-0.4.8/multipath/multipath.conf.5
---- multipath-tools-0.4.8.orig/multipath/multipath.conf.5 2007-08-02 21:05:37.000000000 +0000
-+++ multipath-tools-0.4.8/multipath/multipath.conf.5 2009-10-30 05:59:19.272559733 +0000
-@@ -109,7 +109,7 @@
- The default program and args to callout to obtain a unique path
- identifier. Should be specified with an absolute path. Default value
- is
--.I /lib/udev/scsi_id -g -u -s
-+.I /lib/udev/scsi_id -g -u -d
- .TP
- .B prio_callout
- The default program and args to callout to obtain a path priority
-diff -Nuar multipath-tools-0.4.8.orig/multipath.conf.annotated multipath-tools-0.4.8/multipath.conf.annotated
---- multipath-tools-0.4.8.orig/multipath.conf.annotated 2007-08-02 21:05:37.000000000 +0000
-+++ multipath-tools-0.4.8/multipath.conf.annotated 2009-10-30 05:59:53.002576683 +0000
-@@ -47,9 +47,9 @@
- # # scope : multipath
- # # desc : the default program and args to callout to obtain a unique
- # # path identifier. Absolute path required
--# # default : /lib/udev/scsi_id -g -u -s
-+# # default : /lib/udev/scsi_id -g -u -d
- # #
--# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n"
-+# getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
- #
- # #
- # # name : prio_callout
-@@ -291,9 +291,9 @@
- # # scope : multipath
- # # desc : the program and args to callout to obtain a unique
- # # path identifier. Absolute path required
--# # default : /lib/udev/scsi_id -g -u -s
-+# # default : /lib/udev/scsi_id -g -u -d
- # #
--# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n"
-+# getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
- #
- # #
- # # name : prio_callout
-diff -Nuar multipath-tools-0.4.8.orig/multipath.conf.synthetic multipath-tools-0.4.8/multipath.conf.synthetic
---- multipath-tools-0.4.8.orig/multipath.conf.synthetic 2007-08-02 21:05:37.000000000 +0000
-+++ multipath-tools-0.4.8/multipath.conf.synthetic 2009-10-30 05:59:38.569224508 +0000
-@@ -7,7 +7,7 @@
- # polling_interval 10
- # selector "round-robin 0"
- # path_grouping_policy multibus
--# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n"
-+# getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
- # prio_callout /bin/true
- # path_checker directio
- # rr_min_io 100
-@@ -52,7 +52,7 @@
- # vendor "COMPAQ "
- # product "HSV110 (C)COMPAQ"
- # path_grouping_policy multibus
--# getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n"
-+# getuid_callout "/lib/udev/scsi_id -g -u -d /dev/%n"
- # path_checker directio
- # path_selector "round-robin 0"
- # hardware_handler "0"
diff --git a/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild
deleted file mode 100644
index 75e9a77e1aac..000000000000
--- a/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild,v 1.9 2013/04/09 10:12:33 ssuominen Exp $
-
-EAPI=2
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Device mapper target autoconfig"
-HOMEPAGE="http://christophe.varoqui.free.fr/"
-SRC_URI="http://christophe.varoqui.free.fr/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ppc ppc64 x86"
-IUSE=""
-
-RDEPEND=">=sys-fs/lvm2-2.02.45
- >=virtual/udev-171
- dev-libs/libaio"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.4.8-build.patch
- epatch "${FILESDIR}"/${PN}-0.4.8-udev-scsi_id-changes.patch
- # Patch per upstream tree for 1GiB limit of kpartx
- epatch "${FILESDIR}"/${PN}-0.4.8-r1-kpartx.patch
- # CVE-2009-0115, world writable socket
- epatch "${FILESDIR}"/${PN}-0.4.8-socket-cve-2009-0115.patch
-}
-
-src_compile() {
- # The -j1 is NOT a joke. The 0.4.8-era upstream code rebuilds several object
- # files with different compiler defines. The upstream git, as yet unreleased
- # moves to proper automake, but it's a large jump and is not being
- # backported to 0.4.8.
- emake -j1 CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_install() {
- dodir /sbin /usr/share/man/man8
- make DESTDIR="${D}" install || die "install failed"
-
- insinto /etc
- newins "${S}"/multipath.conf.annotated multipath.conf
- fperms 644 /etc/udev/rules.d/65-multipath.rules
- fperms 644 /etc/udev/rules.d/66-kpartx.rules
- # This is the monitoring daemon
- newinitd "${FILESDIR}"/rc-multipathd multipathd
- # This is the init script that fires the multipath addon for baselayout2
- newinitd "${FILESDIR}"/init.d-multipath-0.4.8-r1 multipath
- # Handle early-boot startup as well as shutdown of multipath devices
- insinto /lib/rcscripts/addons
- doins "${FILESDIR}"/multipath-start.sh
- doins "${FILESDIR}"/multipath-stop.sh
-
- dodoc multipath.conf.*
- dodoc AUTHOR ChangeLog FAQ README TODO
- docinto kpartx; dodoc kpartx/ChangeLog kpartx/README
-}
-
-pkg_preinst() {
- # The dev.d script was previously wrong and is now removed (the udev rules
- # file does the job instead), but it won't be removed from live systems due
- # to cfgprotect.
- # This should help out a little...
- if [[ -e ${ROOT}/etc/dev.d/block/multipath.dev ]] ; then
- mkdir -p "${D}"/etc/dev.d/block
- echo "# Please delete this file. It is obsoleted by /etc/udev/rules.d/65-multipath.rules" \
- > "${D}"/etc/dev.d/block/multipath.dev
- fi
-}
-pkg_postinst() {
- elog "If you need multipath on your system, you should ensure that a"
- elog "'multipath' entry is present in your RC_VOLUME_ORDER variable!"
- elog "If you use baselayout2, you must add 'multipath' into"
- elog "your boot runlevel!"
-}