Lines 1-10
Link Here
|
1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-027-r1.ebuild,v 1.1 2013/04/18 13:37:10 aidecoe Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit bash-completion-r1 eutils linux-info |
7 |
inherit 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 162-174
Link Here
|
162 |
epatch "${FILESDIR}/${PV}-0004-plymouth-plymouth-pretrigger.sh-fixup-.patch" |
162 |
epatch "${FILESDIR}/${PV}-0004-plymouth-plymouth-pretrigger.sh-fixup-.patch" |
163 |
|
163 |
|
164 |
if use dracut_modules_systemd; then |
164 |
if use dracut_modules_systemd; then |
165 |
local systemdutildir="$($(tc-getPKG_CONFIG) systemd \ |
165 |
local systemdutildir=$(systemd_get_utildir) |
166 |
--variable=systemdutildir)" |
166 |
local systemdsystemunitdir=$(systemd_get_unitdir) |
167 |
local systemdsystemunitdir="$($(tc-getPKG_CONFIG) systemd \ |
|
|
168 |
--variable=systemdsystemunitdir)" |
169 |
[[ ${systemdutildir} ]] || die "Couldn't detect systemdutildir" |
170 |
[[ ${systemdsystemunitdir} ]] \ |
171 |
|| die "Couldn't detect systemdsystemunitdir" |
172 |
einfo "Setting systemdutildir to ${systemdutildir} and ..." |
167 |
einfo "Setting systemdutildir to ${systemdutildir} and ..." |
173 |
sed -e "4asystemdutildir=\"${systemdutildir}\"" \ |
168 |
sed -e "4asystemdutildir=\"${systemdutildir}\"" \ |
174 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
169 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
Lines 179-185
Link Here
|
179 |
} |
174 |
} |
180 |
|
175 |
|
181 |
src_configure() { |
176 |
src_configure() { |
182 |
econf --libdir="${MY_LIBDIR}" |
177 |
local bashcompletiondir |
|
|
178 |
local myconf |
179 |
|
180 |
if $(tc-getPKG_CONFIG) bash-completion --exists; then |
181 |
bashcompletiondir="$($(tc-getPKG_CONFIG) bash-completion \ |
182 |
--variable=completionsdir)" |
183 |
else |
184 |
bashcompletiondir=/usr/share/bash-completion |
185 |
fi |
186 |
|
187 |
if use dracut_modules_systemd; then |
188 |
local systemdsystemunitdir=$(systemd_get_unitdir) |
189 |
myconf="--systemdsystemunitdir=\"${systemdsystemunitdir}\"" |
190 |
fi |
191 |
|
192 |
econf \ |
193 |
--libdir="${MY_LIBDIR}" \ |
194 |
--bashcompletiondir="${bashcompletiondir}" \ |
195 |
${myconf} |
183 |
} |
196 |
} |
184 |
|
197 |
|
185 |
src_compile() { |
198 |
src_compile() { |
Lines 195-202
Link Here
|
195 |
src_install() { |
208 |
src_install() { |
196 |
default |
209 |
default |
197 |
|
210 |
|
198 |
newbashcomp "${PN}-bash-completion.sh" "${PN}" |
|
|
199 |
|
200 |
local dracutlibdir="${MY_LIBDIR#/}/dracut" |
211 |
local dracutlibdir="${MY_LIBDIR#/}/dracut" |
201 |
|
212 |
|
202 |
echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" |
213 |
echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" |