commit:     ec43af22117f4a55ee206d2a28394b55d3f836f1
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 28 16:02:40 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 28 16:35:59 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=ec43af22

gkbuilds/xfsprogs: Build xfs_growfs

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gkbuilds/xfsprogs.gkbuild | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gkbuilds/xfsprogs.gkbuild b/gkbuilds/xfsprogs.gkbuild
index 9884687..c0b2d33 100644
--- a/gkbuilds/xfsprogs.gkbuild
+++ b/gkbuilds/xfsprogs.gkbuild
@@ -32,15 +32,24 @@ src_configure() {
 }
 
 src_compile() {
-       gkmake V=1 headers repair
+       gkmake V=1 headers growfs repair
 }
 
 src_install() {
        mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!"
 
+       cp growfs/xfs_growfs "${D}"/sbin \
+               || die "Failed to copy '${S}/repair/xfs_growfs' to 
'${D}/sbin/'!"
+
        cp repair/xfs_repair "${D}"/sbin \
                || die "Failed to copy '${S}/repair/xfs_repair' to 
'${D}/sbin/'!"
 
-       "${STRIP}" --strip-all "${D}"/sbin/xfs_repair \
-               || die "Failed to strip '${D}/sbin/xfs_repair'!"
+       local sbin
+       for sbin in \
+               "${D}/sbin/xfs_growfs" \
+               "${D}/sbin/xfs_repair" \
+       ; do
+               "${STRIP}" --strip-all "${sbin}" \
+                       || die "Failed to strip '${sbin}'!"
+       done
 }

Reply via email to