aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 10:20:10 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:14 +0200
commitee18957745e632b776962fbc80619920751f4eaa (patch)
tree40adc6726d4c3b503aff672f85d64c0bc6b52fb1 /gkbuilds
parentRework --disklabel support (diff)
downloadgenkernel-ee18957745e632b776962fbc80619920751f4eaa.tar.gz
genkernel-ee18957745e632b776962fbc80619920751f4eaa.tar.bz2
genkernel-ee18957745e632b776962fbc80619920751f4eaa.zip
Rework --e2fsprogs support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r--gkbuilds/e2fsprogs.gkbuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/gkbuilds/e2fsprogs.gkbuild b/gkbuilds/e2fsprogs.gkbuild
new file mode 100644
index 00000000..78c71936
--- /dev/null
+++ b/gkbuilds/e2fsprogs.gkbuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+src_configure() {
+ append-ldflags -static
+
+ export VARTEXFONTS="${T}/fonts"
+
+ local myconf=(
+ --bindir=/bin
+ --with-root-prefix=""
+ --disable-nls
+ --disable-libblkid
+ --disable-libuuid
+ --disable-fsck
+ --disable-uuidd
+ --disable-debugfs
+ --disable-imager
+ --disable-resizer
+ --disable-defrag
+ )
+
+ gkconf "${myconf[@]}"
+}
+
+src_install() {
+ mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!"
+
+ local file=
+ for file in \
+ e2fsck/e2fsck \
+ misc/mke2fs \
+ ; do
+ cp -a "${S}"/${file} "${D}"/sbin/ \
+ || die "Failed to copy '${S}/${file}' to '${D}/sbin/'!"
+
+ local filename=$(basename "${file}")
+ "${STRIP}" --strip-all "${D}"/sbin/${filename} \
+ || die "Failed to strip '${D}/sbin/${file}'!"
+ done
+}