Lines 150-155
pkg_preinst() {
Link Here
|
150 |
} |
150 |
} |
151 |
|
151 |
|
152 |
src_prepare() { |
152 |
src_prepare() { |
|
|
153 |
if use prefix; then |
154 |
sed -i -r\ |
155 |
-e "/PATH=/!s:/(etc|usr/bin|bin):\"${EPREFIX}\"/\1:g" \ |
156 |
-e "/PATH=/s|([:\"])/|\1${EPREFIX}/|g" \ |
157 |
-e "/PATH=.*\/sbin/s|\"$|:/usr/sbin:/sbin\"|" \ |
158 |
-e "/PATH=.*\/bin/s|\"$|:/usr/bin:/bin\"|" \ |
159 |
etc/profile || die |
160 |
sed -i -r \ |
161 |
-e "s:/(etc/env.d|opt|usr):${EPREFIX}/\1:g" \ |
162 |
-e "/^PATH=/s|\"$|:${EPREFIX}/usr/sbin:${EPREFIX}/sbin\"|" \ |
163 |
etc/env.d/00basic || die |
164 |
sed -i "s:/bin:${EPREFIX}/bin:" etc/shells || die |
165 |
sed -i -r \ |
166 |
-e "s,:/(root|bin|sbin|var|),:${EPREFIX}/\1,g" \ |
167 |
share.Linux/passwd || die |
168 |
fi |
169 |
|
153 |
# handle multilib paths. do it here because we want this behavior |
170 |
# handle multilib paths. do it here because we want this behavior |
154 |
# regardless of the C library that you're using. we do explicitly |
171 |
# regardless of the C library that you're using. we do explicitly |
155 |
# list paths which the native ldconfig searches, but this isn't |
172 |
# list paths which the native ldconfig searches, but this isn't |