aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 10:19:21 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:14 +0200
commit56e0f09f1dcfce1e87d0659d220bc109d82a9e62 (patch)
tree8de12bac28a31e741327e1b879ffdfd2ffe16910 /gkbuilds/util-linux.gkbuild
parentRework --unionfs support (diff)
downloadgenkernel-56e0f09f1dcfce1e87d0659d220bc109d82a9e62.tar.gz
genkernel-56e0f09f1dcfce1e87d0659d220bc109d82a9e62.tar.bz2
genkernel-56e0f09f1dcfce1e87d0659d220bc109d82a9e62.zip
Rework --disklabel support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds/util-linux.gkbuild')
-rw-r--r--gkbuilds/util-linux.gkbuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/gkbuilds/util-linux.gkbuild b/gkbuilds/util-linux.gkbuild
new file mode 100644
index 0000000..da09225
--- /dev/null
+++ b/gkbuilds/util-linux.gkbuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+src_configure() {
+ export ac_cv_header_security_pam_misc_h=no
+ export ac_cv_header_security_pam_appl_h=no
+
+ local myconf=(
+ --disable-libtool-lock
+ --enable-libmount
+ --disable-libsmartcols
+ --disable-libfdisk
+ --enable-libuuid
+ --without-ncursesw
+ --without-ncurses
+ --disable-widechar
+ --disable-pylibmount
+ --enable-static-programs=blkid
+ )
+
+ gkconf "${myconf[@]}"
+}
+
+src_install() {
+ local MYMAKEOPTS=( "V=1" )
+ MYMAKEOPTS+=( "DESTDIR=${DESTDIR}" )
+ MYMAKEOPTS+=( "install-pkgconfigDATA" )
+ MYMAKEOPTS+=( "install-nodist_blkidincHEADERS" )
+ MYMAKEOPTS+=( "install-nodist_mountincHEADERS" )
+ MYMAKEOPTS+=( "install-usrlib_execLTLIBRARIES" )
+ MYMAKEOPTS+=( "install-uuidincHEADERS" )
+ gkmake "${MYMAKEOPTS[@]}"
+
+ mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!"
+
+ cp -a blkid.static "${DESTDIR}"/sbin/blkid \
+ || die "Failed to copy '${S}/blkid.static' to '${DESTDIR}/sbin/blkid'!"
+
+ "${STRIP}" --strip-all "${DESTDIR}"/sbin/blkid \
+ || die "Failed to strip '${DESTDIR}/sbin/blkid'!"
+}