aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 11:49:51 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:17 +0200
commit7ce2716d901d834c375b5a24c928a7ce33ba0653 (patch)
treed50e50ccf9ae71a2c77d2c73c02f12936885956c /gkbuilds/eudev.gkbuild
parentgen_initramfs.sh: Refactor append_modules() (diff)
downloadgenkernel-7ce2716d901d834c375b5a24c928a7ce33ba0653.tar.gz
genkernel-7ce2716d901d834c375b5a24c928a7ce33ba0653.tar.bz2
genkernel-7ce2716d901d834c375b5a24c928a7ce33ba0653.zip
Rework --multipath support
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds/eudev.gkbuild')
-rw-r--r--gkbuilds/eudev.gkbuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/gkbuilds/eudev.gkbuild b/gkbuilds/eudev.gkbuild
new file mode 100644
index 0000000..26dc8b2
--- /dev/null
+++ b/gkbuilds/eudev.gkbuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e 's/scsi_id_LDADD = \\/scsi_id_LDADD = -all-static \\/' \
+ src/scsi_id/Makefile.in \
+ || die "Failed to add '-all-static' for scsi_id program!"
+}
+
+src_configure() {
+ export cc_cv_CFLAGS__flto=no
+
+ local myconf=(
+ ac_cv_search_cap_init=
+ ac_cv_header_sys_capability_h=yes
+ DBUS_CFLAGS=' '
+ DBUS_LIBS=' '
+ --enable-split-usr
+ --disable-manpages
+ --disable-hwdb
+ --enable-static
+ --disable-introspection
+ --disable-kmod
+ --disable-selinux
+ --disable-rule-generator
+ )
+
+ gkconf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ "${STRIP}" --strip-all "${D}"/usr/lib/udev/*_id \
+ || die "Failed to strip '${D}/usr/lib/udev/*_id' programs!"
+
+ rm -rf \
+ "${D}"/etc \
+ "${D}"/sbin \
+ "${D}"/usr/bin \
+ "${D}"/usr/sbin \
+ "${D}"/usr/share
+}