Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 485218
Collapse All | Expand All

(-)dracut-033-r1.ebuild (-4 / +10 lines)
Lines 4-10 Link Here
4
4
5
EAPI=4
5
EAPI=4
6
6
7
inherit bash-completion-r1 eutils linux-info multilib systemd
7
inherit bash-completion-r1 eutils linux-info systemd
8
8
9
add_req_use_for() {
9
add_req_use_for() {
10
	local dep="$1"; shift
10
	local dep="$1"; shift
Lines 112-117 Link Here
112
112
113
DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules
113
DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules
114
	README.testsuite TODO )
114
	README.testsuite TODO )
115
MY_LIBDIR="/usr/lib"
115
116
116
#
117
#
117
# Helper functions
118
# Helper functions
Lines 171-177 Link Here
171
}
172
}
172
173
173
src_configure() {
174
src_configure() {
174
	local myconf="--libdir='/usr/$(get_libdir)'"
175
	local myconf="--libdir='${MY_LIBDIR}'"
175
	myconf+=" --bashcompletiondir=$(get_bashcompdir)"
176
	myconf+=" --bashcompletiondir=$(get_bashcompdir)"
176
177
177
	if use dracut_modules_systemd; then
178
	if use dracut_modules_systemd; then
Lines 189-196 Link Here
189
src_install() {
190
src_install() {
190
	default
191
	default
191
192
192
	local my_libdir="/usr/$(get_libdir)"
193
	local dracutlibdir="${MY_LIBDIR#/}/dracut"
193
	local dracutlibdir="${my_libdir#/}/dracut"
194
195
	# fix multilib-strict properly (non-symlinked /usr/lib should not contain
196
	# executable binaries) 
197
	exeinto /usr/sbin
198
	doexe install/dracut-install
199
	rm -f ${D%/}/${dracutlibdir}/dracut-install
194
200
195
	echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh"
201
	echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh"
196
202

Return to bug 485218