diff --git a/debian/patches/008-device_id.dpatch b/debian/patches/008-device_id.dpatch new file mode 100755 index 0000000..7a6074a --- /dev/null +++ b/debian/patches/008-device_id.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 008-device_id.dpatch by Mario Fetka (geos_one) +## +## DP: add device_id to output +## DP: thx. to gentoo devs + +@DPATCH@ +--- megactl/src/adapter.c.orig 2017-04-22 17:15:55.068000000 +0200 ++++ megactl/src/adapter.c 2017-04-22 17:17:17.624000000 +0200 +@@ -193,9 +193,9 @@ + d->id = info->slot; + + if (d->channel == DISK_NOENC) +- snprintf (d->name, sizeof (d->name), "%se*s%u", a->name, d->id); ++ snprintf (d->name, sizeof (d->name), "d%u%se*s%u", info->device_id, a->name, d->id); + else +- snprintf (d->name, sizeof (d->name), "%se%us%u", a->name, d->channel, d->id); ++ snprintf (d->name, sizeof (d->name), "d%u%se%us%u", info->device_id, a->name, d->channel, d->id); + + d->inquiry = info->inquiry.inq; + strncpy (d->vendor, d->inquiry.vendor_info, sizeof (d->vendor) - 1); diff --git a/debian/patches/00list b/debian/patches/00list index bf3c2e6..7597b38 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -5,3 +5,4 @@ 005-Makefile.dpatch 006-gcc-fixes.dpatch 007-tracefix.dpatch +008-device_id.dpatch