blob: 5addbb1dd77e7ace46d9ba697da76f9c030fbada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
src_prepare() {
default
# Build static switch_root
sed -i \
-e '/^switch_root_SOURCES =.*/a switch_root_LDFLAGS = -all-static' \
sys-utils/Makemodule.am \
|| die
gkautoreconf
}
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
--without-python
--disable-pylibmount
--enable-switch_root
--enable-static-programs=blkid
)
gkconf "${myconf[@]}"
}
src_install() {
local MYMAKEOPTS=( "V=1" )
MYMAKEOPTS+=( "DESTDIR=${D}" )
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'!"
install_exe 'blkid.static' "${D}"/sbin/blkid
install_exe 'switch_root' "${D}"/sbin/switch_root
local sbin
for sbin in \
"${D}/sbin/blkid" \
"${D}/sbin/switch_root" \
; do
"${STRIP}" --strip-all "${sbin}" \
|| die "Failed to strip '${sbin}'!"
done
}
|