sys-fs/dosfstools: always install fsck.vfat and mkfs.vfat
authorMike Gilbert <floppym@gentoo.org>
Sat, 4 Jun 2016 19:12:32 +0000 (15:12 -0400)
committerLars Wendler <polynomial-c@gentoo.org>
Sat, 4 Jun 2016 20:23:21 +0000 (22:23 +0200)
Bug: https://bugs.gentoo.org/584980

sys-fs/dosfstools/dosfstools-4.0-r1.ebuild [moved from sys-fs/dosfstools/dosfstools-4.0.ebuild with 83% similarity]

similarity index 83%
rename from sys-fs/dosfstools/dosfstools-4.0.ebuild
rename to sys-fs/dosfstools/dosfstools-4.0-r1.ebuild
index 660994e53bc2ffa012f692d7642606dbad319267..fce6ebff1b3baaef8fa1a080036e89d48e93ac25 100644 (file)
@@ -37,3 +37,12 @@ src_configure() {
                $(use_enable compat compat-symlinks) \
                $(use_with udev)
 }
+
+src_install() {
+       default
+       if ! use compat; then
+               # Keep fsck -t vfat and mkfs -t vfat working, bug 584980.
+               dosym fsck.fat /usr/sbin/fsck.vfat
+               dosym mkfs.fat /usr/sbin/mkfs.vfat
+       fi
+}