1 |
vapier 09/12/26 17:14:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: busybox-1.15.3.ebuild |
5 |
Log: |
6 |
Version bump #297112 by Peter Fry. |
7 |
(Portage version: 2.2_rc60/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.236 sys-apps/busybox/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/busybox/ChangeLog?rev=1.236&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/busybox/ChangeLog?rev=1.236&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/busybox/ChangeLog?r1=1.235&r2=1.236 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v |
19 |
retrieving revision 1.235 |
20 |
retrieving revision 1.236 |
21 |
diff -u -r1.235 -r1.236 |
22 |
--- ChangeLog 17 Nov 2009 19:57:04 -0000 1.235 |
23 |
+++ ChangeLog 26 Dec 2009 17:14:22 -0000 1.236 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sys-apps/busybox |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.235 2009/11/17 19:57:04 ranger Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.236 2009/12/26 17:14:22 vapier Exp $ |
29 |
+ |
30 |
+*busybox-1.15.3 (26 Dec 2009) |
31 |
+ |
32 |
+ 26 Dec 2009; Mike Frysinger <vapier@g.o> +busybox-1.15.3.ebuild: |
33 |
+ Version bump #297112 by Peter Fry. |
34 |
|
35 |
17 Nov 2009; Brent Baude <ranger@g.o> busybox-1.14.2.ebuild: |
36 |
Marking busybox-1.14.2 ppc64 for bug 291931 |
37 |
|
38 |
|
39 |
|
40 |
1.1 sys-apps/busybox/busybox-1.15.3.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/busybox/busybox-1.15.3.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/busybox/busybox-1.15.3.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: busybox-1.15.3.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.15.3.ebuild,v 1.1 2009/12/26 17:14:22 vapier Exp $ |
50 |
|
51 |
inherit eutils flag-o-matic savedconfig toolchain-funcs |
52 |
|
53 |
################################################################################ |
54 |
# BUSYBOX ALTERNATE CONFIG MINI-HOWTO |
55 |
# |
56 |
# Busybox can be modified in many different ways. Here's a few ways to do it: |
57 |
# |
58 |
# (1) Emerge busybox with FEATURES=keepwork so the work directory won't |
59 |
# get erased afterwards. Add a definition like ROOT=/my/root/path to the |
60 |
# start of the line if you're installing to somewhere else than the root |
61 |
# directory. This command will save the default configuration to |
62 |
# ${PORTAGE_CONFIGROOT} (or ${ROOT} if ${PORTAGE_CONFIGROOT} is not |
63 |
# defined), and it will tell you that it has done this. Note the location |
64 |
# where the config file was saved. |
65 |
# |
66 |
# FEATURES=keepwork USE=savedconfig emerge busybox |
67 |
# |
68 |
# (2) Go to the work directory and change the configuration of busybox using its |
69 |
# menuconfig feature. |
70 |
# |
71 |
# cd /var/tmp/portage/busybox*/work/busybox-* |
72 |
# make menuconfig |
73 |
# |
74 |
# (3) Save your configuration to the default location and copy it to the |
75 |
# one of the locations listed in /usr/portage/eclass/savedconfig.eclass |
76 |
# |
77 |
# (4) Emerge busybox with USE=savedconfig to use the configuration file you |
78 |
# just generated. |
79 |
# |
80 |
################################################################################ |
81 |
# |
82 |
# (1) Alternatively skip the above steps and simply emerge busybox without |
83 |
# USE=savedconfig. |
84 |
# |
85 |
# (2) Edit the file it saves by hand. ${ROOT}"/etc/portage/savedconfig/${CATEGORY}/${PF} |
86 |
# |
87 |
# (3) Remerge busybox as using USE=savedconfig. |
88 |
# |
89 |
################################################################################ |
90 |
|
91 |
#SNAPSHOT=20040726 |
92 |
SNAPSHOT="" |
93 |
|
94 |
DESCRIPTION="Utilities for rescue and embedded systems" |
95 |
HOMEPAGE="http://www.busybox.net/" |
96 |
if [[ -n ${SNAPSHOT} ]] ; then |
97 |
MY_P=${PN} |
98 |
SRC_URI="http://www.busybox.net/downloads/snapshots/${PN}-${SNAPSHOT}.tar.bz2" |
99 |
else |
100 |
MY_P=${PN}-${PV/_/-} |
101 |
SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" |
102 |
fi |
103 |
LICENSE="GPL-2" |
104 |
SLOT="0" |
105 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
106 |
IUSE="debug make-symlinks pam selinux static" |
107 |
RESTRICT="test" |
108 |
|
109 |
DEPEND="selinux? ( sys-libs/libselinux ) |
110 |
pam? ( sys-libs/pam )" |
111 |
|
112 |
S=${WORKDIR}/${MY_P} |
113 |
|
114 |
busybox_config_option() { |
115 |
case $1 in |
116 |
y) sed -i -e "s:.*CONFIG_$2.*set:CONFIG_$2=y:g" .config;; |
117 |
n) sed -i -e "s:CONFIG_$2=y:# CONFIG_$2 is not set:g" .config;; |
118 |
*) use $1 \ |
119 |
&& busybox_config_option y $2 \ |
120 |
|| busybox_config_option n $2 |
121 |
return 0 |
122 |
;; |
123 |
esac |
124 |
einfo $(grep "CONFIG_$2[= ]" .config || echo Could not find CONFIG_$2 ...) |
125 |
} |
126 |
|
127 |
src_unpack() { |
128 |
unset KBUILD_OUTPUT #88088 |
129 |
|
130 |
unpack ${MY_P}.tar.bz2 |
131 |
cd "${S}" |
132 |
|
133 |
# patches go here! |
134 |
epatch "${FILESDIR}"/busybox-1.15.2-bb.patch |
135 |
#epatch "${FILESDIR}"/busybox-${PV}-*.patch |
136 |
|
137 |
# work around broken ass powerpc compilers |
138 |
use ppc64 && append-flags -mminimal-toc |
139 |
# flag cleanup |
140 |
sed -i -r \ |
141 |
-e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ |
142 |
Makefile.flags || die |
143 |
#sed -i '/bbsh/s:^//::' include/applets.h |
144 |
sed -i '/^#error Aborting compilation./d' applets/applets.c || die |
145 |
use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile |
146 |
sed -i \ |
147 |
-e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ |
148 |
-e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ |
149 |
Makefile || die |
150 |
|
151 |
# check for a busybox config before making one of our own. |
152 |
# if one exist lets return and use it. |
153 |
|
154 |
restore_config .config |
155 |
if [ -f .config ]; then |
156 |
yes "" | emake -j1 oldconfig > /dev/null |
157 |
return 0 |
158 |
else |
159 |
ewarn "Could not locate user configfile, so we will save a default one" |
160 |
fi |
161 |
|
162 |
# setup the config file |
163 |
emake -j1 allyesconfig > /dev/null |
164 |
busybox_config_option n DMALLOC |
165 |
busybox_config_option n FEATURE_SUID_CONFIG |
166 |
busybox_config_option n BUILD_AT_ONCE |
167 |
busybox_config_option n BUILD_LIBBUSYBOX |
168 |
busybox_config_option n NOMMU |
169 |
busybox_config_option n MONOTONIC_SYSCALL |
170 |
|
171 |
# If these are not set and we are using a uclibc/busybox setup |
172 |
# all calls to system() will fail. |
173 |
busybox_config_option y FEATURE_SH_IS_ASH |
174 |
busybox_config_option n FEATURE_SH_IS_NONE |
175 |
|
176 |
if use static && use pam ; then |
177 |
ewarn "You cannot have USE='static pam'. Assuming static is more important." |
178 |
fi |
179 |
use static \ |
180 |
&& busybox_config_option n PAM \ |
181 |
|| busybox_config_option pam PAM |
182 |
busybox_config_option static STATIC |
183 |
busybox_config_option debug DEBUG |
184 |
use debug \ |
185 |
&& busybox_config_option y NO_DEBUG_LIB \ |
186 |
&& busybox_config_option n DMALLOC \ |
187 |
&& busybox_config_option n EFENCE |
188 |
|
189 |
busybox_config_option selinux SELINUX |
190 |
|
191 |
# default a bunch of uncommon options to off |
192 |
local opt |
193 |
for opt in \ |
194 |
CRONTAB \ |
195 |
DC DEVFSD DNSD DPKG \ |
196 |
FAKEIDENTD FBSPLASH FOLD FTP{GET,PUT} \ |
197 |
HOSTID HUSH \ |
198 |
INETD INOTIFYD IPCALC \ |
199 |
LASH LOCALE_SUPPORT LOGNAME LPD \ |
200 |
MSH \ |
201 |
OD \ |
202 |
SLATTACH SULOGIN \ |
203 |
TASKSET TCPSVD \ |
204 |
RPM RPM2CPIO \ |
205 |
UDPSVD UUDECODE UUENCODE |
206 |
do |
207 |
busybox_config_option n ${opt} |
208 |
done |
209 |
|
210 |
emake -j1 oldconfig > /dev/null |
211 |
} |
212 |
|
213 |
src_compile() { |
214 |
unset KBUILD_OUTPUT #88088 |
215 |
export SKIP_STRIP=y |
216 |
|
217 |
emake busybox || die "build failed" |
218 |
if ! use static && ! use pam ; then |
219 |
mv busybox_unstripped{,.bak} |
220 |
emake CONFIG_STATIC=y busybox || die "static build failed" |
221 |
mv busybox_unstripped bb |
222 |
mv busybox_unstripped{.bak,} |
223 |
fi |
224 |
} |
225 |
|
226 |
src_install() { |
227 |
unset KBUILD_OUTPUT #88088 |
228 |
save_config .config |
229 |
|
230 |
into / |
231 |
newbin busybox_unstripped busybox || die |
232 |
if use static || use pam ; then |
233 |
dosym busybox /bin/bb || die |
234 |
dosym bb /bin/busybox.static || die |
235 |
else |
236 |
dobin bb || die |
237 |
fi |
238 |
|
239 |
insinto /$(get_libdir)/rcscripts/addons |
240 |
doins "${FILESDIR}"/mdev-start.sh || die |
241 |
|
242 |
# bundle up the symlink files for use later |
243 |
emake install || die |
244 |
rm _install/bin/busybox |
245 |
tar cf busybox-links.tar -C _install . || : #;die |
246 |
insinto /usr/share/${PN} |
247 |
doins busybox-links.tar || die |
248 |
newins .config ${PF}.config || die |
249 |
|
250 |
dodoc AUTHORS README TODO |
251 |
|
252 |
cd docs || die |
253 |
docinto txt |
254 |
dodoc *.txt |
255 |
docinto pod |
256 |
dodoc *.pod |
257 |
dohtml *.html *.sgml |
258 |
|
259 |
cd ../examples || die |
260 |
docinto examples |
261 |
dodoc inittab depmod.pl *.conf *.script undeb unrpm |
262 |
|
263 |
cd bootfloppy || die |
264 |
docinto bootfloppy |
265 |
dodoc $(find . -type f) |
266 |
} |
267 |
|
268 |
pkg_preinst() { |
269 |
if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then |
270 |
ewarn "setting USE=make-symlinks and emerging to / is very dangerous." |
271 |
ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." |
272 |
ewarn "If you are creating a binary only and not merging this is probably ok." |
273 |
ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is realy what you want." |
274 |
die "silly options will destroy your system" |
275 |
fi |
276 |
|
277 |
if use make-symlinks ; then |
278 |
mv "${D}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die |
279 |
fi |
280 |
} |
281 |
|
282 |
pkg_postinst() { |
283 |
if use make-symlinks ; then |
284 |
cd "${T}" || die |
285 |
mkdir _install |
286 |
tar xf busybox-links.tar -C _install || die |
287 |
cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" |
288 |
fi |
289 |
|
290 |
echo |
291 |
einfo "This ebuild has support for user defined configs" |
292 |
einfo "Please read this ebuild for more details and re-emerge as needed" |
293 |
einfo "if you want to add or remove functionality for ${PN}" |
294 |
echo |
295 |
} |