1 |
blueness 15/02/02 17:00:22 |
2 |
|
3 |
Modified: busybox-9999.ebuild ChangeLog |
4 |
Added: busybox-1.23.1.ebuild |
5 |
Log: |
6 |
Version bump, bug #537978 |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.17 sys-apps/busybox/busybox-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/busybox-9999.ebuild?rev=1.17&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/busybox-9999.ebuild?rev=1.17&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/busybox-9999.ebuild?r1=1.16&r2=1.17 |
16 |
|
17 |
Index: busybox-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-9999.ebuild,v |
20 |
retrieving revision 1.16 |
21 |
retrieving revision 1.17 |
22 |
diff -u -r1.16 -r1.17 |
23 |
--- busybox-9999.ebuild 23 Jan 2015 01:32:41 -0000 1.16 |
24 |
+++ busybox-9999.ebuild 2 Feb 2015 17:00:22 -0000 1.17 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2015 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-9999.ebuild,v 1.16 2015/01/23 01:32:41 williamh Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-9999.ebuild,v 1.17 2015/02/02 17:00:22 blueness Exp $ |
30 |
|
31 |
# See `man savedconfig.eclass` for info on how to use USE=savedconfig. |
32 |
|
33 |
@@ -16,7 +16,7 @@ |
34 |
else |
35 |
MY_P=${PN}-${PV/_/-} |
36 |
SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" |
37 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
38 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
39 |
fi |
40 |
|
41 |
LICENSE="GPL-2" |
42 |
|
43 |
|
44 |
|
45 |
1.381 sys-apps/busybox/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/ChangeLog?rev=1.381&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/ChangeLog?rev=1.381&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/ChangeLog?r1=1.380&r2=1.381 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v |
54 |
retrieving revision 1.380 |
55 |
retrieving revision 1.381 |
56 |
diff -u -r1.380 -r1.381 |
57 |
--- ChangeLog 23 Jan 2015 01:35:08 -0000 1.380 |
58 |
+++ ChangeLog 2 Feb 2015 17:00:22 -0000 1.381 |
59 |
@@ -1,6 +1,12 @@ |
60 |
# ChangeLog for sys-apps/busybox |
61 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.380 2015/01/23 01:35:08 williamh Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/ChangeLog,v 1.381 2015/02/02 17:00:22 blueness Exp $ |
64 |
+ |
65 |
+*busybox-1.23.1 (02 Feb 2015) |
66 |
+ |
67 |
+ 02 Feb 2015; Anthony G. Basile <blueness@g.o> +busybox-1.23.1.ebuild, |
68 |
+ busybox-9999.ebuild: |
69 |
+ Version bump, bug #537978 |
70 |
|
71 |
23 Jan 2015; William Hubbs <williamh@g.o> -busybox-1.23.0.ebuild: |
72 |
remove broken 1.23.0 version |
73 |
|
74 |
|
75 |
|
76 |
1.1 sys-apps/busybox/busybox-1.23.1.ebuild |
77 |
|
78 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/busybox-1.23.1.ebuild?rev=1.1&view=markup |
79 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/busybox/busybox-1.23.1.ebuild?rev=1.1&content-type=text/plain |
80 |
|
81 |
Index: busybox-1.23.1.ebuild |
82 |
=================================================================== |
83 |
# Copyright 1999-2015 Gentoo Foundation |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.23.1.ebuild,v 1.1 2015/02/02 17:00:22 blueness Exp $ |
86 |
|
87 |
# See `man savedconfig.eclass` for info on how to use USE=savedconfig. |
88 |
|
89 |
EAPI="4" |
90 |
inherit eutils flag-o-matic savedconfig toolchain-funcs multilib |
91 |
|
92 |
DESCRIPTION="Utilities for rescue and embedded systems" |
93 |
HOMEPAGE="http://www.busybox.net/" |
94 |
if [[ ${PV} == "9999" ]] ; then |
95 |
MY_P=${PN} |
96 |
EGIT_REPO_URI="git://busybox.net/busybox.git" |
97 |
inherit git-2 |
98 |
else |
99 |
MY_P=${PN}-${PV/_/-} |
100 |
SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2" |
101 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux" |
102 |
fi |
103 |
|
104 |
LICENSE="GPL-2" |
105 |
SLOT="0" |
106 |
IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd" |
107 |
RESTRICT="test" |
108 |
|
109 |
COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) ) |
110 |
pam? ( sys-libs/pam )" |
111 |
DEPEND="${COMMON_DEPEND} |
112 |
static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) ) |
113 |
>=sys-kernel/linux-headers-2.6.39" |
114 |
RDEPEND="${COMMON_DEPEND} |
115 |
mdev? ( !<sys-apps/openrc-0.13 )" |
116 |
|
117 |
S=${WORKDIR}/${MY_P} |
118 |
|
119 |
busybox_config_option() { |
120 |
local flag=$1 ; shift |
121 |
if [[ ${flag} != [yn] ]] ; then |
122 |
busybox_config_option $(usex ${flag} y n) "$@" |
123 |
return |
124 |
fi |
125 |
while [[ $# -gt 0 ]] ; do |
126 |
if [[ ${flag} == "y" ]] ; then |
127 |
sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config |
128 |
else |
129 |
sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config |
130 |
fi |
131 |
einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...) |
132 |
shift |
133 |
done |
134 |
} |
135 |
|
136 |
busybox_config_enabled() { |
137 |
local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config) |
138 |
case ${val} in |
139 |
"") return 1 ;; |
140 |
y) return 0 ;; |
141 |
*) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;; |
142 |
esac |
143 |
} |
144 |
|
145 |
src_prepare() { |
146 |
unset KBUILD_OUTPUT #88088 |
147 |
append-flags -fno-strict-aliasing #310413 |
148 |
use ppc64 && append-flags -mminimal-toc #130943 |
149 |
|
150 |
# patches go here! |
151 |
epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch |
152 |
# epatch "${FILESDIR}"/${P}-*.patch |
153 |
cp "${FILESDIR}"/ginit.c init/ || die |
154 |
|
155 |
# flag cleanup |
156 |
sed -i -r \ |
157 |
-e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \ |
158 |
Makefile.flags || die |
159 |
#sed -i '/bbsh/s:^//::' include/applets.h |
160 |
sed -i '/^#error Aborting compilation./d' applets/applets.c || die |
161 |
use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile |
162 |
sed -i \ |
163 |
-e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \ |
164 |
-e "/^AR\>/s:=.*:= $(tc-getAR):" \ |
165 |
-e "/^CC\>/s:=.*:= $(tc-getCC):" \ |
166 |
-e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \ |
167 |
-e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \ |
168 |
Makefile || die |
169 |
sed -i \ |
170 |
-e 's:-static-libgcc::' \ |
171 |
Makefile.flags || die |
172 |
} |
173 |
|
174 |
src_configure() { |
175 |
# check for a busybox config before making one of our own. |
176 |
# if one exist lets return and use it. |
177 |
|
178 |
restore_config .config |
179 |
if [ -f .config ]; then |
180 |
yes "" | emake -j1 -s oldconfig >/dev/null |
181 |
return 0 |
182 |
else |
183 |
ewarn "Could not locate user configfile, so we will save a default one" |
184 |
fi |
185 |
|
186 |
# setup the config file |
187 |
emake -j1 -s allyesconfig >/dev/null |
188 |
# nommu forces a bunch of things off which we want on #387555 |
189 |
busybox_config_option n NOMMU |
190 |
sed -i '/^#/d' .config |
191 |
yes "" | emake -j1 -s oldconfig >/dev/null |
192 |
|
193 |
# now turn off stuff we really don't want |
194 |
busybox_config_option n DMALLOC |
195 |
busybox_config_option n FEATURE_SUID_CONFIG |
196 |
busybox_config_option n BUILD_AT_ONCE |
197 |
busybox_config_option n BUILD_LIBBUSYBOX |
198 |
busybox_config_option n FEATURE_CLEAN_UP |
199 |
busybox_config_option n MONOTONIC_SYSCALL |
200 |
busybox_config_option n USE_PORTABLE_CODE |
201 |
busybox_config_option n WERROR |
202 |
|
203 |
# If these are not set and we are using a uclibc/busybox setup |
204 |
# all calls to system() will fail. |
205 |
busybox_config_option y ASH |
206 |
busybox_config_option n HUSH |
207 |
|
208 |
# disable ipv6 applets |
209 |
if ! use ipv6; then |
210 |
busybox_config_option n FEATURE_IPV6 |
211 |
busybox_config_option n TRACEROUTE6 |
212 |
busybox_config_option n PING6 |
213 |
busybox_config_option n UDHCPC6 |
214 |
fi |
215 |
|
216 |
if use static && use pam ; then |
217 |
ewarn "You cannot have USE='static pam'. Assuming static is more important." |
218 |
fi |
219 |
busybox_config_option $(usex static n pam) PAM |
220 |
busybox_config_option static STATIC |
221 |
busybox_config_option syslog {K,SYS}LOGD LOGGER |
222 |
busybox_config_option systemd FEATURE_SYSTEMD |
223 |
busybox_config_option math FEATURE_AWK_LIBM |
224 |
|
225 |
# all the debug options are compiler related, so punt them |
226 |
busybox_config_option n DEBUG |
227 |
busybox_config_option y NO_DEBUG_LIB |
228 |
busybox_config_option n DMALLOC |
229 |
busybox_config_option n EFENCE |
230 |
busybox_config_option $(usex debug y n) TFTP_DEBUG |
231 |
|
232 |
busybox_config_option selinux SELINUX |
233 |
|
234 |
# this opt only controls mounting with <linux-2.6.23 |
235 |
busybox_config_option n FEATURE_MOUNT_NFS |
236 |
|
237 |
# default a bunch of uncommon options to off |
238 |
local opt |
239 |
for opt in \ |
240 |
ADD_SHELL \ |
241 |
BEEP BOOTCHARTD \ |
242 |
CRONTAB \ |
243 |
DC DEVFSD DNSD DPKG{,_DEB} \ |
244 |
FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \ |
245 |
FEATURE_DEVFS \ |
246 |
HOSTID HUSH \ |
247 |
INETD INOTIFYD IPCALC \ |
248 |
LOCALE_SUPPORT LOGNAME LPD \ |
249 |
MAKEMIME MKFS_MINIX MSH \ |
250 |
OD \ |
251 |
RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS RUNSV{,DIR} \ |
252 |
SLATTACH SMEMCAP SULOGIN SV{,LOGD} \ |
253 |
TASKSET TCPSVD \ |
254 |
RPM RPM2CPIO \ |
255 |
UDPSVD UUDECODE UUENCODE |
256 |
do |
257 |
busybox_config_option n ${opt} |
258 |
done |
259 |
|
260 |
emake -j1 oldconfig > /dev/null |
261 |
} |
262 |
|
263 |
src_compile() { |
264 |
unset KBUILD_OUTPUT #88088 |
265 |
export SKIP_STRIP=y |
266 |
|
267 |
emake V=1 busybox |
268 |
} |
269 |
|
270 |
src_install() { |
271 |
unset KBUILD_OUTPUT #88088 |
272 |
save_config .config |
273 |
|
274 |
into / |
275 |
dodir /bin |
276 |
if use sep-usr ; then |
277 |
# install /ginit to take care of mounting stuff |
278 |
exeinto / |
279 |
newexe busybox_unstripped ginit |
280 |
dosym /ginit /bin/bb |
281 |
dosym bb /bin/busybox |
282 |
else |
283 |
newbin busybox_unstripped busybox |
284 |
dosym busybox /bin/bb |
285 |
fi |
286 |
if use mdev ; then |
287 |
dodir /$(get_libdir)/mdev/ |
288 |
use make-symlinks || dosym /bin/bb /sbin/mdev |
289 |
cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf |
290 |
|
291 |
exeinto /$(get_libdir)/mdev/ |
292 |
doexe "${FILESDIR}"/mdev/* |
293 |
|
294 |
newinitd "${FILESDIR}"/mdev.initd mdev |
295 |
fi |
296 |
if use livecd ; then |
297 |
dosym busybox /bin/vi |
298 |
fi |
299 |
|
300 |
# add busybox daemon's, bug #444718 |
301 |
if busybox_config_enabled FEATURE_NTPD_SERVER; then |
302 |
newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd" |
303 |
newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd" |
304 |
fi |
305 |
if busybox_config_enabled SYSLOGD; then |
306 |
newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd" |
307 |
newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd" |
308 |
fi |
309 |
if busybox_config_enabled KLOGD; then |
310 |
newconfd "${FILESDIR}/klogd.confd" "busybox-klogd" |
311 |
newinitd "${FILESDIR}/klogd.initd" "busybox-klogd" |
312 |
fi |
313 |
if busybox_config_enabled WATCHDOG; then |
314 |
newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog" |
315 |
newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog" |
316 |
fi |
317 |
if busybox_config_enabled UDHCPC; then |
318 |
local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT) |
319 |
exeinto "${path%/*}" |
320 |
newexe examples/udhcp/simple.script "${path##*/}" |
321 |
fi |
322 |
if busybox_config_enabled UDHCPD; then |
323 |
insinto /etc |
324 |
doins examples/udhcp/udhcpd.conf |
325 |
fi |
326 |
|
327 |
# bundle up the symlink files for use later |
328 |
emake DESTDIR="${ED}" install |
329 |
rm _install/bin/busybox |
330 |
# for compatibility, provide /usr/bin/env |
331 |
mkdir -p _install/usr/bin |
332 |
ln -s /bin/env _install/usr/bin/env |
333 |
tar cf busybox-links.tar -C _install . || : #;die |
334 |
insinto /usr/share/${PN} |
335 |
use make-symlinks && doins busybox-links.tar |
336 |
|
337 |
dodoc AUTHORS README TODO |
338 |
|
339 |
cd docs |
340 |
docinto txt |
341 |
dodoc *.txt |
342 |
docinto pod |
343 |
dodoc *.pod |
344 |
dohtml *.html |
345 |
|
346 |
cd ../examples |
347 |
docinto examples |
348 |
dodoc inittab depmod.pl *.conf *.script undeb unrpm |
349 |
} |
350 |
|
351 |
pkg_preinst() { |
352 |
if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then |
353 |
ewarn "setting USE=make-symlinks and emerging to / is very dangerous." |
354 |
ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)." |
355 |
ewarn "If you are creating a binary only and not merging this is probably ok." |
356 |
ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want." |
357 |
die "silly options will destroy your system" |
358 |
fi |
359 |
|
360 |
if use make-symlinks ; then |
361 |
mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die |
362 |
fi |
363 |
} |
364 |
|
365 |
pkg_postinst() { |
366 |
savedconfig_pkg_postinst |
367 |
|
368 |
if use make-symlinks ; then |
369 |
cd "${T}" || die |
370 |
mkdir _install |
371 |
tar xf busybox-links.tar -C _install || die |
372 |
cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed" |
373 |
fi |
374 |
|
375 |
if use sep-usr ; then |
376 |
elog "In order to use the sep-usr support, you have to update your" |
377 |
elog "kernel command line. Add the option:" |
378 |
elog " init=/ginit" |
379 |
elog "To launch a different init than /sbin/init, use:" |
380 |
elog " init=/ginit /sbin/yourinit" |
381 |
elog "To get a rescue shell, you may boot with:" |
382 |
elog " init=/ginit bb" |
383 |
fi |
384 |
} |