1 |
hollow 07/12/28 11:09:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: baselayout-2.0.0_rc6-r1.ebuild |
5 |
Log: |
6 |
fix #199749 |
7 |
(Portage version: 2.1.4_rc11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.449 sys-apps/baselayout/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/baselayout/ChangeLog?rev=1.449&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/baselayout/ChangeLog?rev=1.449&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/baselayout/ChangeLog?r1=1.448&r2=1.449 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v |
19 |
retrieving revision 1.448 |
20 |
retrieving revision 1.449 |
21 |
diff -u -r1.448 -r1.449 |
22 |
--- ChangeLog 24 Dec 2007 16:40:31 -0000 1.448 |
23 |
+++ ChangeLog 28 Dec 2007 11:09:07 -0000 1.449 |
24 |
@@ -1,10 +1,17 @@ |
25 |
# ChangeLog for sys-apps/baselayout |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.448 2007/12/24 16:40:31 ranger Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.449 2007/12/28 11:09:07 hollow Exp $ |
29 |
|
30 |
# See the rc-scripts ChangeLog in subversion for release info: |
31 |
# http://sources.gentoo.org/viewcvs.py/*checkout*/baselayout/trunk/ChangeLog |
32 |
|
33 |
+*baselayout-2.0.0_rc6-r1 (28 Dec 2007) |
34 |
+ |
35 |
+ 28 Dec 2007; Benedikt Böhm <hollow@g.o> |
36 |
+ +files/baselayout-2.0.0_rc6-ssd-path.patch, |
37 |
+ +baselayout-2.0.0_rc6-r1.ebuild: |
38 |
+ fix #199749 |
39 |
+ |
40 |
24 Dec 2007; Brent Baude <ranger@g.o> baselayout-1.12.10-r5.ebuild: |
41 |
Marking baselayout-1.12.10-r5 ppc64 for bug 202791 |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-apps/baselayout/baselayout-2.0.0_rc6-r1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0_rc6-r1.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0_rc6-r1.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: baselayout-2.0.0_rc6-r1.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2007 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0_rc6-r1.ebuild,v 1.1 2007/12/28 11:09:07 hollow Exp $ |
56 |
|
57 |
inherit flag-o-matic eutils toolchain-funcs multilib |
58 |
|
59 |
DESCRIPTION="Filesystem baselayout and init scripts" |
60 |
HOMEPAGE="http://www.gentoo.org/" |
61 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
62 |
http://dev.gentoo.org/~uberlord/baselayout/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
67 |
IUSE="bootstrap build pam static unicode kernel_linux kernel_FreeBSD" |
68 |
|
69 |
RDEPEND="virtual/init |
70 |
!build? ( |
71 |
!bootstrap? ( |
72 |
kernel_linux? ( >=sys-apps/coreutils-5.2.1 ) |
73 |
kernel_FreeBSD? ( sys-process/fuser-bsd ) |
74 |
) |
75 |
) |
76 |
pam? ( virtual/pam ) |
77 |
!<net-misc/dhcpcd-2.0.0" |
78 |
DEPEND="virtual/os-headers" |
79 |
PDEPEND="virtual/init |
80 |
!build? ( !bootstrap? ( |
81 |
kernel_linux? ( >=sys-apps/module-init-tools-3.2.2-r2 sys-apps/makedev ) |
82 |
) )" |
83 |
|
84 |
PROVIDE="virtual/baselayout" |
85 |
|
86 |
src_unpack() { |
87 |
unpack ${A} |
88 |
cd "${S}" |
89 |
|
90 |
epatch "${FILESDIR}"/${P}-ssd-path.patch |
91 |
|
92 |
# Setup unicode defaults for silly unicode users |
93 |
if use unicode ; then |
94 |
sed -i -e '/^UNICODE=/s:no:yes:' etc/rc.conf |
95 |
fi |
96 |
} |
97 |
|
98 |
make_opts() { |
99 |
local libdir="lib" |
100 |
[ "${SYMLINK_LIB}" = "yes" ] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}") |
101 |
local opts="${opts} LIB=${libdir}" |
102 |
|
103 |
if use kernel_linux; then |
104 |
opts="${opts} OS=Linux" |
105 |
else |
106 |
opts="${opts} OS=BSD" |
107 |
fi |
108 |
use pam && opts="${opts} PAM=pam" |
109 |
|
110 |
echo "${opts}" |
111 |
} |
112 |
|
113 |
src_compile() { |
114 |
use static && append-ldflags -static |
115 |
emake $(make_opts) ARCH=$(tc-arch) CC=$(tc-getCC) || die |
116 |
} |
117 |
|
118 |
pkg_preinst() { |
119 |
# Move our makefiles to a temporay location |
120 |
mv "${D}"/usr/share/baselayout/{Makefile,default.mk,runlevels}* "${T}" |
121 |
|
122 |
# We need to install directories and maybe some dev nodes when building |
123 |
# stages, but they cannot be in CONTENTS. |
124 |
# Also, we cannot reference $S as binpkg will break so we do this. |
125 |
if use build || use bootstrap ; then |
126 |
local libdirs="$(get_all_libdirs)" dir= |
127 |
# Create our multilib dirs - the Makefile has no knowledge of this |
128 |
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... |
129 |
for dir in ${libdirs}; do |
130 |
mkdir -p "${ROOT}${dir}" |
131 |
touch "${ROOT}${dir}"/.keep |
132 |
mkdir -p "${ROOT}usr/${dir}" |
133 |
touch "${ROOT}usr/${dir}"/.keep |
134 |
mkdir -p "${ROOT}usr/local/${dir}" |
135 |
touch "${ROOT}usr/local/${dir}"/.keep |
136 |
done |
137 |
|
138 |
# Ugly compatibility with stupid ebuilds and old profiles symlinks |
139 |
if [ "${SYMLINK_LIB}" = "yes" ] ; then |
140 |
rm -r "${ROOT}"/{lib,usr/lib,usr/local/lib} 2>/dev/null |
141 |
local lib=$(get_abi_LIBDIR ${DEFAULT_ABI}) |
142 |
ln -s "${lib}" "${ROOT}lib" |
143 |
ln -s "${lib}" "${ROOT}usr/lib" |
144 |
ln -s "${lib}" "${ROOT}usr/local/lib" |
145 |
fi |
146 |
|
147 |
emake -C "${T}" $(make_opts) DESTDIR="${ROOT}" layout || die "failed to layout filesystem" |
148 |
fi |
149 |
} |
150 |
|
151 |
src_install() { |
152 |
emake $(make_opts) DESTDIR="${D}" install || die |
153 |
dodoc ChangeLog COPYRIGHT |
154 |
|
155 |
# Should this belong in another ebuild? Like say binutils? |
156 |
# List all the multilib libdirs in /etc/env/04multilib (only if they're |
157 |
# actually different from the normal |
158 |
if has_multilib_profile || [ $(get_libdir) != "lib" -o -n "${CONF_MULTILIBDIR}" ]; then |
159 |
local libdirs="$(get_all_libdirs)" libdirs_env= dir= |
160 |
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass... |
161 |
for dir in ${libdirs}; do |
162 |
libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir} |
163 |
done |
164 |
|
165 |
# Special-case uglyness... For people updating from lib32 -> lib amd64 |
166 |
# profiles, keep lib32 in the search path while it's around |
167 |
if has_multilib_profile && [ -d "${ROOT}"lib32 -o -d "${ROOT}"lib32 ] && ! hasq lib32 ${libdirs}; then |
168 |
libdirs_env="${libdirs_env}:/lib32:/usr/lib32:/usr/local/lib32" |
169 |
fi |
170 |
echo "LDPATH=\"${libdirs_env}\"" > "${T}"/04multilib |
171 |
doenvd "${T}"/04multilib |
172 |
fi |
173 |
|
174 |
# rc-scripts version for testing of features that *should* be present |
175 |
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release |
176 |
|
177 |
# Remove the installed runlevels, as we don't know about $ROOT yet |
178 |
rm -rf "${D}/etc/runlevels" |
179 |
|
180 |
# Copy the make files to /usr/share/baselayout so we can re-use them in |
181 |
# postinst, otherwise binpkg will break. |
182 |
insinto /usr/share/baselayout |
183 |
doins -r Makefile default.mk runlevels* |
184 |
|
185 |
gen_usr_ldscript libeinfo.so librc.so |
186 |
} |
187 |
|
188 |
pkg_postinst() { |
189 |
# Make our runlevels if they don't exist |
190 |
if [ ! -e "${ROOT}"etc/runlevels ]; then |
191 |
einfo "Making default runlevels" |
192 |
make -C "${T}" $(make_opts) DESTDIR="${ROOT}" runlevels_install >/dev/null |
193 |
fi |
194 |
|
195 |
# We installed some files to /usr/share/baselayout instead of /etc to stop |
196 |
# (1) overwriting the user's settings |
197 |
# (2) screwing things up when attempting to merge files |
198 |
# (3) accidentally packaging up personal files with quickpkg |
199 |
# If they don't exist then we install them |
200 |
for x in master.passwd passwd shadow group fstab ; do |
201 |
[ -e "${ROOT}etc/${x}" ] && continue |
202 |
[ -e "${ROOT}usr/share/baselayout/${x}" ] || continue |
203 |
cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc |
204 |
done |
205 |
|
206 |
# We need to copy svcdir if upgrading |
207 |
if has_version "<sys-apps/${PN}-1.13.0_alpha" ; then |
208 |
( |
209 |
. "${ROOT}etc/conf.d/rc" |
210 |
svcdir="${svcdir:-/var/lib/init.d}" |
211 |
einfo "Moving state from ${ROOT}${svcdir} to ${ROOT}lib/rc/init.d" |
212 |
cp -RPp "${ROOT}${svcdir}"/* "${ROOT}"lib/rc/init.d |
213 |
rm -rf "${ROOT}"lib/rc/init.d/daemons \ |
214 |
"${ROOT}"lib/rc/init.d/console |
215 |
umount "${ROOT}${svcdir}" 2>/dev/null |
216 |
rm -rf "${ROOT}${svcdir}" |
217 |
) |
218 |
elif has_version "<sys-apps/${PN}-2.0.0_rc5" ; then |
219 |
if [ -d "${ROOT}"lib/rcscripts/init.d ] ; then |
220 |
einfo "Moving state from ${ROOT}lib/rcscripts/init.d to ${ROOT}lib/rc/init.d" |
221 |
cp -RPp "${ROOT}"lib/rcscripts/init.d/* "${ROOT}"lib/rc/init.d |
222 |
umount "${ROOT}lib/rcscripts/init.d" 2>/dev/null |
223 |
rm -rf "${ROOT}"lib/rcscripts/init.d |
224 |
[ -d "${ROOT}"lib/rcscripts/console ] && \ |
225 |
mv "${ROOT}"lib/rcscripts/console "${ROOT}"lib/rc |
226 |
fi |
227 |
fi |
228 |
|
229 |
if [ "${ROOT}" = / ] && ! use build && ! use bootstrap; then |
230 |
/$(get_libdir)/rc/bin/rc-depend --update |
231 |
fi |
232 |
|
233 |
# This is also written in src_install (so it's in CONTENTS), but |
234 |
# write it here so that the new version is immediately in the file |
235 |
# (without waiting for the user to do etc-update) |
236 |
rm -f "${ROOT}"/etc/._cfg????_gentoo-release |
237 |
local release="${PV}" |
238 |
[ "${PR}" != r0 ] && release="${release}-${PR}" |
239 |
echo "Gentoo Base System release ${release}" > "${ROOT}"/etc/gentoo-release |
240 |
|
241 |
echo |
242 |
einfo "Please be sure to update all pending '._cfg*' files in /etc," |
243 |
einfo "else things might break at your next reboot! You can use 'etc-update'" |
244 |
einfo "to accomplish this:" |
245 |
einfo |
246 |
einfo " # etc-update" |
247 |
|
248 |
echo |
249 |
ewarn "WARNING: The way we contruct posix shell arrays has changed in rc6" |
250 |
elog "You are advised to read the new method in /etc/conf.d/net.example" |
251 |
|
252 |
local lo="net.lo0" |
253 |
use kernel_linux && lo="net.lo" |
254 |
for f in "${ROOT}"etc/init.d/net.*; do |
255 |
[ -L "${f}" -o "${f}" = "${ROOT}etc/init.d/${lo}" ] && continue |
256 |
echo |
257 |
einfo "WARNING: You have older net.* files in ${ROOT}etc/init.d/" |
258 |
einfo "They need to be converted to symlinks to ${lo}. If you haven't" |
259 |
einfo "made personal changes to those files, you can update with the" |
260 |
einfo "following command:" |
261 |
einfo |
262 |
einfo " /bin/ls ${ROOT}etc/init.d/net.* | grep -v '/${lo}$' | xargs -n1 ln -sfvn ${lo}" |
263 |
break |
264 |
done |
265 |
|
266 |
# whine about users that lack passwords #193541 |
267 |
if [ -e "${ROOT}"/etc/shadow ]; then |
268 |
local bad_users=$(sed -n '/^[^:]*::/s|^\([^:]*\)::.*|\1|p' "${ROOT}"/etc/shadow) |
269 |
if [ -n "${bad_users}" ] ; then |
270 |
echo |
271 |
ewarn "The following users lack passwords!" |
272 |
ewarn ${bad_users} |
273 |
fi |
274 |
fi |
275 |
} |
276 |
|
277 |
# Handle our downgraders |
278 |
# We should remove this when <1.13 has been removed from the tree |
279 |
pkg_postrm() { |
280 |
# Remove dir if downgrading |
281 |
if has_version "<sys-apps/${PN}-1.13.0_alpha" ; then |
282 |
( |
283 |
. "${ROOT}etc/conf.d/rc" |
284 |
svcdir="${svcdir:-/var/lib/init.d}" |
285 |
einfo "Moving state from ${ROOT}lib/rc/init.d to ${ROOT}${svcdir}" |
286 |
mkdir -p "${ROOT}${svcdir}" |
287 |
cp -RPp "${ROOT}lib/rc/init.d"/* "${ROOT}${svcdir}" |
288 |
rm -rf "${ROOT}${svcdir}"/daemons |
289 |
umount "${ROOT}lib/rc/init.d" 2>/dev/null |
290 |
rm -rf "${ROOT}lib/rc/init.d" "${ROOT}lib/rc/console" |
291 |
rmdir "${ROOT}lib/rc" 2>/dev/null |
292 |
) |
293 |
elif has_version "<sys-apps/${PN}-2.0.0_rc5" ; then |
294 |
einfo "Moving state from ${ROOT}lib/rc/init.d to ${ROOT}lib/rcscripts/init.d" |
295 |
mkdir -p "${ROOT}"lib/rcscripts/init.d |
296 |
cp -RPp "${ROOT}"lib/rc/init.d/* "${ROOT}"lib/rcscripts/init.d |
297 |
umount "${ROOT}"lib/rc/init.d 2>/dev/null |
298 |
rm -rf "${ROOT}"lib/rc/init.d |
299 |
[ -d "${ROOT}"/lib/rc/console ] && \ |
300 |
mv "${ROOT}"lib/rc/console "${ROOT}"lib/rcscripts |
301 |
rmdir "${ROOT}"lib/rc 2>/dev/null |
302 |
fi |
303 |
} |
304 |
|
305 |
|
306 |
|
307 |
-- |
308 |
gentoo-commits@g.o mailing list |