Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-apps/busybox/files/mdev/, sys-apps/busybox/files/, sys-apps/busybox/
Date: Wed, 07 Feb 2018 12:19:47
Message-Id: 1518005962.0231b9924a87b9a0718002ffd5779d7a9502712f.blueness@gentoo
1 commit: 0231b9924a87b9a0718002ffd5779d7a9502712f
2 Author: stefson <herrtimson <AT> yahoo <DOT> de>
3 AuthorDate: Tue Feb 6 09:41:42 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 7 12:19:22 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=0231b992
7
8 sys-apps/busybox: in tree works
9
10 sys-apps/busybox/Manifest | 3 -
11 sys-apps/busybox/busybox-1.25.1.ebuild | 309 --------------------
12 sys-apps/busybox/busybox-1.26.2-r1.ebuild | 317 ---------------------
13 sys-apps/busybox/busybox-1.27.2.ebuild | 317 ---------------------
14 sys-apps/busybox/files/busybox-1.19.0-bb.patch | 22 --
15 .../busybox/files/busybox-1.25.1-setfiles.patch | 34 ---
16 sys-apps/busybox/files/busybox-1.26.2-bb.patch | 55 ----
17 sys-apps/busybox/files/ginit.c | 124 --------
18 sys-apps/busybox/files/klogd.confd | 9 -
19 sys-apps/busybox/files/klogd.initd | 11 -
20 sys-apps/busybox/files/mdev.initd | 52 ----
21 sys-apps/busybox/files/mdev/dvbdev | 18 --
22 sys-apps/busybox/files/mdev/ide_links | 23 --
23 sys-apps/busybox/files/mdev/usbdev | 62 ----
24 sys-apps/busybox/files/mdev/usbdisk_link | 34 ---
25 sys-apps/busybox/files/ntpd.confd | 6 -
26 sys-apps/busybox/files/ntpd.initd | 12 -
27 sys-apps/busybox/files/syslogd.confd | 9 -
28 sys-apps/busybox/files/syslogd.initd | 12 -
29 sys-apps/busybox/files/watchdog.confd | 9 -
30 sys-apps/busybox/files/watchdog.initd | 7 -
31 sys-apps/busybox/metadata.xml | 19 --
32 22 files changed, 1464 deletions(-)
33
34 diff --git a/sys-apps/busybox/Manifest b/sys-apps/busybox/Manifest
35 deleted file mode 100644
36 index d9f2bbb..0000000
37 --- a/sys-apps/busybox/Manifest
38 +++ /dev/null
39 @@ -1,3 +0,0 @@
40 -DIST busybox-1.25.1.tar.bz2 2103070 SHA256 27667e0f2328fdbd79cfd622e4453e5c57e58f781c5da97c9be337d93aa2a02e SHA512 9648877ed11e5a55213cd14fd64f6fc64dbd17013fbfaa4e67f4fd433f59e9231ed78a88e6e8100a4794d833f1d9863bb86f75faae093418866770804bf873cb WHIRLPOOL 4b7bc6d3a88559812797feb4574975b9fdeb6eac6ac7a0fe51e4750a3b05a614ecb8bd9d58547047cdf1e0b66d9bcd189c8a4193fc2f3b491a6268bc06761ad1
41 -DIST busybox-1.26.2.tar.bz2 2120931 SHA256 da3e44913fc1a9c9b7c5337ea5292da518683cbff32be630777f565d6036af16 SHA512 9926d211d0b4f34b513d934d7b111ebbf933c2dc31206bdd80426a62d47d5b1475b70bec5aaa14a26b94a202ab1465d994062a002750a312dcb8167096eb3719 WHIRLPOOL 64fdbd3ede8e382d0237b1576000555f563c4ca93d58cfbb72f71374b662e3201863110a069f0e4a27dab7c0a6102d98ccfd4d57f1dfe44c9b12a17c6a30128a
42 -DIST busybox-1.27.2.tar.bz2 2216527 SHA256 9d4be516b61e6480f156b11eb42577a13529f75d3383850bb75c50c285de63df SHA512 d99e86b652562ebe1a5d50e1ba3877a1d1612997c17cb8d8e4212da181211a9b741a881cb051f14cb3ee8aea40226cf2cde80a076baed265d3bc0a4e96a5031c WHIRLPOOL 56002a144710aa00ee17c46e3ac471537f58bee6b9d4da6cefc0afb4f75cf13dcaaadf1e6610d0e10c7b808b0c33c24743e21c683c478582eb0eb149a869f9a7
43
44 diff --git a/sys-apps/busybox/busybox-1.25.1.ebuild b/sys-apps/busybox/busybox-1.25.1.ebuild
45 deleted file mode 100644
46 index f67dfad..0000000
47 --- a/sys-apps/busybox/busybox-1.25.1.ebuild
48 +++ /dev/null
49 @@ -1,309 +0,0 @@
50 -# Copyright 1999-2016 Gentoo Foundation
51 -# Distributed under the terms of the GNU General Public License v2
52 -
53 -# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
54 -
55 -EAPI="5"
56 -inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
57 -
58 -DESCRIPTION="Utilities for rescue and embedded systems"
59 -HOMEPAGE="https://www.busybox.net/"
60 -if [[ ${PV} == "9999" ]] ; then
61 - MY_P=${PN}
62 - EGIT_REPO_URI="git://busybox.net/busybox.git"
63 - inherit git-2
64 -else
65 - MY_P=${PN}-${PV/_/-}
66 - SRC_URI="https://www.busybox.net/downloads/${MY_P}.tar.bz2"
67 - KEYWORDS="amd64 arm ~mips ppc x86"
68 -fi
69 -
70 -LICENSE="GPL-2" # GPL-2 only
71 -SLOT="0"
72 -IUSE="debug ipv6 livecd make-symlinks math mdev pam selinux sep-usr static syslog systemd"
73 -REQUIRED_USE="pam? ( !static )"
74 -RESTRICT="test"
75 -
76 -COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
77 - pam? ( sys-libs/pam )"
78 -DEPEND="${COMMON_DEPEND}
79 - static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
80 - >=sys-kernel/linux-headers-2.6.39"
81 -RDEPEND="${COMMON_DEPEND}
82 - mdev? ( !<sys-apps/openrc-0.13 )"
83 -
84 -S=${WORKDIR}/${MY_P}
85 -
86 -busybox_config_option() {
87 - local flag=$1 ; shift
88 - if [[ ${flag} != [yn] ]] ; then
89 - busybox_config_option $(usex ${flag} y n) "$@"
90 - return
91 - fi
92 - while [[ $# -gt 0 ]] ; do
93 - if [[ ${flag} == "y" ]] ; then
94 - sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config
95 - else
96 - sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" .config
97 - fi
98 - einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find CONFIG_$1 ...)
99 - shift
100 - done
101 -}
102 -
103 -busybox_config_enabled() {
104 - local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
105 - case ${val} in
106 - "") return 1 ;;
107 - y) return 0 ;;
108 - *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
109 - esac
110 -}
111 -
112 -src_prepare() {
113 - unset KBUILD_OUTPUT #88088
114 - append-flags -fno-strict-aliasing #310413
115 - use ppc64 && append-flags -mminimal-toc #130943
116 -
117 - # patches go here!
118 - epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
119 - epatch "${FILESDIR}"/${P}-*.patch
120 - cp "${FILESDIR}"/ginit.c init/ || die
121 -
122 - # flag cleanup
123 - sed -i -r \
124 - -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \
125 - Makefile.flags || die
126 - #sed -i '/bbsh/s:^//::' include/applets.h
127 - sed -i '/^#error Aborting compilation./d' applets/applets.c || die
128 - use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
129 - sed -i \
130 - -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
131 - -e "/^AR\>/s:=.*:= $(tc-getAR):" \
132 - -e "/^CC\>/s:=.*:= $(tc-getCC):" \
133 - -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
134 - -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
135 - Makefile || die
136 - sed -i \
137 - -e 's:-static-libgcc::' \
138 - Makefile.flags || die
139 -}
140 -
141 -src_configure() {
142 - # check for a busybox config before making one of our own.
143 - # if one exist lets return and use it.
144 -
145 - restore_config .config
146 - if [ -f .config ]; then
147 - yes "" | emake -j1 -s oldconfig >/dev/null
148 - return 0
149 - else
150 - ewarn "Could not locate user configfile, so we will save a default one"
151 - fi
152 -
153 - # setup the config file
154 - emake -j1 -s allyesconfig >/dev/null
155 - # nommu forces a bunch of things off which we want on #387555
156 - busybox_config_option n NOMMU
157 - sed -i '/^#/d' .config
158 - yes "" | emake -j1 -s oldconfig >/dev/null
159 -
160 - # now turn off stuff we really don't want
161 - busybox_config_option n DMALLOC
162 - busybox_config_option n FEATURE_SUID_CONFIG
163 - busybox_config_option n BUILD_AT_ONCE
164 - busybox_config_option n BUILD_LIBBUSYBOX
165 - busybox_config_option n FEATURE_CLEAN_UP
166 - busybox_config_option n MONOTONIC_SYSCALL
167 - busybox_config_option n USE_PORTABLE_CODE
168 - busybox_config_option n WERROR
169 - # triming the BSS size may be dangerous
170 - busybox_config_option n FEATURE_USE_BSS_TAIL
171 -
172 - # These cause trouble with musl. Since we don't really
173 - # depend on busybox for most of the musl work, we'll lazily
174 - # just turn them off.
175 - busybox_config_option n FEATURE_UTMP
176 - busybox_config_option n EXTRA_COMPAT
177 - busybox_config_option n FEATURE_VI_REGEX_SEARCH
178 -
179 - # If these are not set and we are using a uclibc/busybox setup
180 - # all calls to system() will fail.
181 - busybox_config_option y ASH
182 - busybox_config_option n HUSH
183 -
184 - # disable ipv6 applets
185 - if ! use ipv6; then
186 - busybox_config_option n FEATURE_IPV6
187 - busybox_config_option n TRACEROUTE6
188 - busybox_config_option n PING6
189 - busybox_config_option n UDHCPC6
190 - fi
191 -
192 - busybox_config_option pam PAM
193 - busybox_config_option static STATIC
194 - busybox_config_option syslog {K,SYS}LOGD LOGGER
195 - busybox_config_option systemd FEATURE_SYSTEMD
196 - busybox_config_option math FEATURE_AWK_LIBM
197 -
198 - # all the debug options are compiler related, so punt them
199 - busybox_config_option n DEBUG_SANITIZE
200 - busybox_config_option n DEBUG
201 - busybox_config_option y NO_DEBUG_LIB
202 - busybox_config_option n DMALLOC
203 - busybox_config_option n EFENCE
204 - busybox_config_option $(usex debug y n) TFTP_DEBUG
205 -
206 - busybox_config_option selinux SELINUX
207 -
208 - # this opt only controls mounting with <linux-2.6.23
209 - busybox_config_option n FEATURE_MOUNT_NFS
210 -
211 - # default a bunch of uncommon options to off
212 - local opt
213 - for opt in \
214 - ADD_SHELL \
215 - BEEP BOOTCHARTD \
216 - CRONTAB \
217 - DC DEVFSD DNSD DPKG{,_DEB} \
218 - FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
219 - FEATURE_DEVFS \
220 - HOSTID HUSH \
221 - INETD INOTIFYD IPCALC \
222 - LOCALE_SUPPORT LOGNAME LPD \
223 - MAKEMIME MKFS_MINIX MSH \
224 - OD \
225 - RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS RUNSV{,DIR} \
226 - SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
227 - TASKSET TCPSVD \
228 - RPM RPM2CPIO \
229 - UDPSVD UUDECODE UUENCODE
230 - do
231 - busybox_config_option n ${opt}
232 - done
233 -
234 - emake -j1 oldconfig > /dev/null
235 -}
236 -
237 -src_compile() {
238 - unset KBUILD_OUTPUT #88088
239 - export SKIP_STRIP=y
240 -
241 - emake V=1 busybox
242 -}
243 -
244 -src_install() {
245 - unset KBUILD_OUTPUT #88088
246 - save_config .config
247 -
248 - into /
249 - dodir /bin
250 - if use sep-usr ; then
251 - # install /ginit to take care of mounting stuff
252 - exeinto /
253 - newexe busybox_unstripped ginit
254 - dosym /ginit /bin/bb
255 - dosym bb /bin/busybox
256 - else
257 - newbin busybox_unstripped busybox
258 - dosym busybox /bin/bb
259 - fi
260 - if use mdev ; then
261 - dodir /$(get_libdir)/mdev/
262 - use make-symlinks || dosym /bin/bb /sbin/mdev
263 - cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
264 -
265 - exeinto /$(get_libdir)/mdev/
266 - doexe "${FILESDIR}"/mdev/*
267 -
268 - newinitd "${FILESDIR}"/mdev.initd mdev
269 - fi
270 - if use livecd ; then
271 - dosym busybox /bin/vi
272 - fi
273 -
274 - # add busybox daemon's, bug #444718
275 - if busybox_config_enabled FEATURE_NTPD_SERVER; then
276 - newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
277 - newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
278 - fi
279 - if busybox_config_enabled SYSLOGD; then
280 - newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
281 - newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
282 - fi
283 - if busybox_config_enabled KLOGD; then
284 - newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
285 - newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
286 - fi
287 - if busybox_config_enabled WATCHDOG; then
288 - newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
289 - newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
290 - fi
291 - if busybox_config_enabled UDHCPC; then
292 - local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
293 - exeinto "${path%/*}"
294 - newexe examples/udhcp/simple.script "${path##*/}"
295 - fi
296 - if busybox_config_enabled UDHCPD; then
297 - insinto /etc
298 - doins examples/udhcp/udhcpd.conf
299 - fi
300 -
301 - # bundle up the symlink files for use later
302 - emake DESTDIR="${ED}" install
303 - rm _install/bin/busybox
304 - # for compatibility, provide /usr/bin/env
305 - mkdir -p _install/usr/bin
306 - ln -s /bin/env _install/usr/bin/env
307 - tar cf busybox-links.tar -C _install . || : #;die
308 - insinto /usr/share/${PN}
309 - use make-symlinks && doins busybox-links.tar
310 -
311 - dodoc AUTHORS README TODO
312 -
313 - cd docs
314 - docinto txt
315 - dodoc *.txt
316 - docinto pod
317 - dodoc *.pod
318 - dohtml *.html
319 -
320 - cd ../examples
321 - docinto examples
322 - dodoc inittab depmod.pl *.conf *.script undeb unrpm
323 -}
324 -
325 -pkg_preinst() {
326 - if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then
327 - ewarn "setting USE=make-symlinks and emerging to / is very dangerous."
328 - ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)."
329 - ewarn "If you are creating a binary only and not merging this is probably ok."
330 - ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want."
331 - die "silly options will destroy your system"
332 - fi
333 -
334 - if use make-symlinks ; then
335 - mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
336 - fi
337 -}
338 -
339 -pkg_postinst() {
340 - savedconfig_pkg_postinst
341 -
342 - if use make-symlinks ; then
343 - cd "${T}" || die
344 - mkdir _install
345 - tar xf busybox-links.tar -C _install || die
346 - cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed"
347 - fi
348 -
349 - if use sep-usr ; then
350 - elog "In order to use the sep-usr support, you have to update your"
351 - elog "kernel command line. Add the option:"
352 - elog " init=/ginit"
353 - elog "To launch a different init than /sbin/init, use:"
354 - elog " init=/ginit /sbin/yourinit"
355 - elog "To get a rescue shell, you may boot with:"
356 - elog " init=/ginit bb"
357 - fi
358 -}
359
360 diff --git a/sys-apps/busybox/busybox-1.26.2-r1.ebuild b/sys-apps/busybox/busybox-1.26.2-r1.ebuild
361 deleted file mode 100644
362 index 4e59232..0000000
363 --- a/sys-apps/busybox/busybox-1.26.2-r1.ebuild
364 +++ /dev/null
365 @@ -1,317 +0,0 @@
366 -# Copyright 1999-2017 Gentoo Foundation
367 -# Distributed under the terms of the GNU General Public License v2
368 -
369 -# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
370 -
371 -EAPI="5"
372 -inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
373 -
374 -DESCRIPTION="Utilities for rescue and embedded systems"
375 -HOMEPAGE="https://www.busybox.net/"
376 -if [[ ${PV} == "9999" ]] ; then
377 - MY_P=${PN}
378 - EGIT_REPO_URI="git://busybox.net/busybox.git"
379 - inherit git-2
380 -else
381 - MY_P=${PN}-${PV/_/-}
382 - SRC_URI="https://www.busybox.net/downloads/${MY_P}.tar.bz2"
383 - KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
384 -fi
385 -
386 -LICENSE="GPL-2" # GPL-2 only
387 -SLOT="0"
388 -IUSE="debug ipv6 livecd make-symlinks math mdev pam selinux sep-usr static syslog systemd"
389 -REQUIRED_USE="pam? ( !static )"
390 -RESTRICT="test"
391 -
392 -COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
393 - pam? ( sys-libs/pam )"
394 -DEPEND="${COMMON_DEPEND}
395 - static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
396 - >=sys-kernel/linux-headers-2.6.39"
397 -RDEPEND="${COMMON_DEPEND}
398 - mdev? ( !<sys-apps/openrc-0.13 )"
399 -
400 -S=${WORKDIR}/${MY_P}
401 -
402 -busybox_config_option() {
403 - local flag=$1 ; shift
404 - if [[ ${flag} != [yn] && ${flag} != \"* ]] ; then
405 - busybox_config_option $(usex ${flag} y n) "$@"
406 - return
407 - fi
408 - local expr
409 - while [[ $# -gt 0 ]] ; do
410 - case ${flag} in
411 - y) expr="s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" ;;
412 - n) expr="s:CONFIG_$1=y:# CONFIG_$1 is not set:g" ;;
413 - *) expr="s:.*\<CONFIG_$1\>.*:CONFIG_$1=${flag}:g" ;;
414 - esac
415 - sed -i -e "${expr}" .config || die
416 - einfo "$(grep "CONFIG_$1[= ]" .config || echo "Could not find CONFIG_$1 ...")"
417 - shift
418 - done
419 -}
420 -
421 -busybox_config_enabled() {
422 - local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
423 - case ${val} in
424 - "") return 1 ;;
425 - y) return 0 ;;
426 - *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
427 - esac
428 -}
429 -
430 -src_prepare() {
431 - unset KBUILD_OUTPUT #88088
432 - append-flags -fno-strict-aliasing #310413
433 - use ppc64 && append-flags -mminimal-toc #130943
434 -
435 - # patches go here!
436 - epatch "${FILESDIR}"/${PN}-1.26.2-bb.patch
437 -# epatch "${FILESDIR}"/${P}-*.patch
438 - cp "${FILESDIR}"/ginit.c init/ || die
439 -
440 - # flag cleanup
441 - sed -i -r \
442 - -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \
443 - Makefile.flags || die
444 - #sed -i '/bbsh/s:^//::' include/applets.h
445 - sed -i '/^#error Aborting compilation./d' applets/applets.c || die
446 - use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
447 - sed -i \
448 - -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
449 - -e "/^AR\>/s:=.*:= $(tc-getAR):" \
450 - -e "/^CC\>/s:=.*:= $(tc-getCC):" \
451 - -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
452 - -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
453 - Makefile || die
454 - sed -i \
455 - -e 's:-static-libgcc::' \
456 - Makefile.flags || die
457 -}
458 -
459 -src_configure() {
460 - # check for a busybox config before making one of our own.
461 - # if one exist lets return and use it.
462 -
463 - restore_config .config
464 - if [ -f .config ]; then
465 - yes "" | emake -j1 -s oldconfig >/dev/null
466 - return 0
467 - else
468 - ewarn "Could not locate user configfile, so we will save a default one"
469 - fi
470 -
471 - # setup the config file
472 - emake -j1 -s allyesconfig >/dev/null
473 - # nommu forces a bunch of things off which we want on #387555
474 - busybox_config_option n NOMMU
475 - sed -i '/^#/d' .config
476 - yes "" | emake -j1 -s oldconfig >/dev/null
477 -
478 - # now turn off stuff we really don't want
479 - busybox_config_option n DMALLOC
480 - busybox_config_option n FEATURE_2_4_MODULES #607548
481 - busybox_config_option n FEATURE_SUID_CONFIG
482 - busybox_config_option n BUILD_AT_ONCE
483 - busybox_config_option n BUILD_LIBBUSYBOX
484 - busybox_config_option n FEATURE_CLEAN_UP
485 - busybox_config_option n MONOTONIC_SYSCALL
486 - busybox_config_option n USE_PORTABLE_CODE
487 - busybox_config_option n WERROR
488 - # triming the BSS size may be dangerous
489 - busybox_config_option n FEATURE_USE_BSS_TAIL
490 -
491 - # These cause trouble with musl. Since we don't really
492 - # depend on busybox for most of the musl work, we'll lazily
493 - # just turn them off.
494 - busybox_config_option n FEATURE_UTMP
495 - busybox_config_option n EXTRA_COMPAT
496 - busybox_config_option n FEATURE_VI_REGEX_SEARCH
497 -
498 - # If these are not set and we are using a uclibc/busybox setup
499 - # all calls to system() will fail.
500 - busybox_config_option y ASH
501 - busybox_config_option y SH_IS_ASH
502 - busybox_config_option n HUSH
503 - busybox_config_option n SH_IS_HUSH
504 -
505 - busybox_config_option '"/run"' PID_FILE_PATH
506 - busybox_config_option '"/run/ifstate"' IFUPDOWN_IFSTATE_PATH
507 -
508 - # disable ipv6 applets
509 - if ! use ipv6; then
510 - busybox_config_option n FEATURE_IPV6
511 - busybox_config_option n TRACEROUTE6
512 - busybox_config_option n PING6
513 - busybox_config_option n UDHCPC6
514 - fi
515 -
516 - busybox_config_option pam PAM
517 - busybox_config_option static STATIC
518 - busybox_config_option syslog {K,SYS}LOGD LOGGER
519 - busybox_config_option systemd FEATURE_SYSTEMD
520 - busybox_config_option math FEATURE_AWK_LIBM
521 -
522 - # all the debug options are compiler related, so punt them
523 - busybox_config_option n DEBUG_SANITIZE
524 - busybox_config_option n DEBUG
525 - busybox_config_option y NO_DEBUG_LIB
526 - busybox_config_option n DMALLOC
527 - busybox_config_option n EFENCE
528 - busybox_config_option $(usex debug y n) TFTP_DEBUG
529 -
530 - busybox_config_option selinux SELINUX
531 -
532 - # this opt only controls mounting with <linux-2.6.23
533 - busybox_config_option n FEATURE_MOUNT_NFS
534 -
535 - # default a bunch of uncommon options to off
536 - local opt
537 - for opt in \
538 - ADD_SHELL \
539 - BEEP BOOTCHARTD \
540 - CRONTAB \
541 - DC DEVFSD DNSD DPKG{,_DEB} \
542 - FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
543 - FEATURE_DEVFS \
544 - HOSTID HUSH \
545 - INETD INOTIFYD IPCALC \
546 - LOCALE_SUPPORT LOGNAME LPD \
547 - MAKEMIME MKFS_MINIX MSH \
548 - OD \
549 - RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS RUNSV{,DIR} \
550 - SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
551 - TASKSET TCPSVD \
552 - RPM RPM2CPIO \
553 - UDPSVD UUDECODE UUENCODE
554 - do
555 - busybox_config_option n ${opt}
556 - done
557 -
558 - emake -j1 oldconfig > /dev/null
559 -}
560 -
561 -src_compile() {
562 - unset KBUILD_OUTPUT #88088
563 - export SKIP_STRIP=y
564 -
565 - emake V=1 busybox
566 -}
567 -
568 -src_install() {
569 - unset KBUILD_OUTPUT #88088
570 - save_config .config
571 -
572 - into /
573 - dodir /bin
574 - if use sep-usr ; then
575 - # install /ginit to take care of mounting stuff
576 - exeinto /
577 - newexe busybox_unstripped ginit
578 - dosym /ginit /bin/bb
579 - dosym bb /bin/busybox
580 - else
581 - newbin busybox_unstripped busybox
582 - dosym busybox /bin/bb
583 - fi
584 - if use mdev ; then
585 - dodir /$(get_libdir)/mdev/
586 - use make-symlinks || dosym /bin/bb /sbin/mdev
587 - cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
588 -
589 - exeinto /$(get_libdir)/mdev/
590 - doexe "${FILESDIR}"/mdev/*
591 -
592 - newinitd "${FILESDIR}"/mdev.initd mdev
593 - fi
594 - if use livecd ; then
595 - dosym busybox /bin/vi
596 - fi
597 -
598 - # add busybox daemon's, bug #444718
599 - if busybox_config_enabled FEATURE_NTPD_SERVER; then
600 - newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
601 - newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
602 - fi
603 - if busybox_config_enabled SYSLOGD; then
604 - newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
605 - newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
606 - fi
607 - if busybox_config_enabled KLOGD; then
608 - newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
609 - newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
610 - fi
611 - if busybox_config_enabled WATCHDOG; then
612 - newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
613 - newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
614 - fi
615 - if busybox_config_enabled UDHCPC; then
616 - local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
617 - exeinto "${path%/*}"
618 - newexe examples/udhcp/simple.script "${path##*/}"
619 - fi
620 - if busybox_config_enabled UDHCPD; then
621 - insinto /etc
622 - doins examples/udhcp/udhcpd.conf
623 - fi
624 -
625 - # bundle up the symlink files for use later
626 - emake DESTDIR="${ED}" install
627 - rm _install/bin/busybox
628 - # for compatibility, provide /usr/bin/env
629 - mkdir -p _install/usr/bin
630 - ln -s /bin/env _install/usr/bin/env
631 - tar cf busybox-links.tar -C _install . || : #;die
632 - insinto /usr/share/${PN}
633 - use make-symlinks && doins busybox-links.tar
634 -
635 - dodoc AUTHORS README TODO
636 -
637 - cd docs
638 - docinto txt
639 - dodoc *.txt
640 - docinto pod
641 - dodoc *.pod
642 - dohtml *.html
643 -
644 - cd ../examples
645 - docinto examples
646 - dodoc inittab depmod.pl *.conf *.script undeb unrpm
647 -}
648 -
649 -pkg_preinst() {
650 - if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then
651 - ewarn "setting USE=make-symlinks and emerging to / is very dangerous."
652 - ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)."
653 - ewarn "If you are creating a binary only and not merging this is probably ok."
654 - ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want."
655 - die "silly options will destroy your system"
656 - fi
657 -
658 - if use make-symlinks ; then
659 - mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
660 - fi
661 -}
662 -
663 -pkg_postinst() {
664 - savedconfig_pkg_postinst
665 -
666 - if use make-symlinks ; then
667 - cd "${T}" || die
668 - mkdir _install
669 - tar xf busybox-links.tar -C _install || die
670 - cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed"
671 - fi
672 -
673 - if use sep-usr ; then
674 - elog "In order to use the sep-usr support, you have to update your"
675 - elog "kernel command line. Add the option:"
676 - elog " init=/ginit"
677 - elog "To launch a different init than /sbin/init, use:"
678 - elog " init=/ginit /sbin/yourinit"
679 - elog "To get a rescue shell, you may boot with:"
680 - elog " init=/ginit bb"
681 - fi
682 -}
683
684 diff --git a/sys-apps/busybox/busybox-1.27.2.ebuild b/sys-apps/busybox/busybox-1.27.2.ebuild
685 deleted file mode 100644
686 index 2f99e1a..0000000
687 --- a/sys-apps/busybox/busybox-1.27.2.ebuild
688 +++ /dev/null
689 @@ -1,317 +0,0 @@
690 -# Copyright 1999-2017 Gentoo Foundation
691 -# Distributed under the terms of the GNU General Public License v2
692 -
693 -# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
694 -
695 -EAPI="5"
696 -inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
697 -
698 -DESCRIPTION="Utilities for rescue and embedded systems"
699 -HOMEPAGE="https://www.busybox.net/"
700 -if [[ ${PV} == "9999" ]] ; then
701 - MY_P=${P}
702 - EGIT_REPO_URI="git://busybox.net/busybox.git"
703 - inherit git-r3
704 -else
705 - MY_P=${PN}-${PV/_/-}
706 - SRC_URI="https://www.busybox.net/downloads/${MY_P}.tar.bz2"
707 - KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
708 -fi
709 -
710 -LICENSE="GPL-2" # GPL-2 only
711 -SLOT="0"
712 -IUSE="debug ipv6 livecd make-symlinks math mdev pam selinux sep-usr static syslog systemd"
713 -REQUIRED_USE="pam? ( !static )"
714 -RESTRICT="test"
715 -
716 -COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
717 - pam? ( sys-libs/pam )"
718 -DEPEND="${COMMON_DEPEND}
719 - static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
720 - >=sys-kernel/linux-headers-2.6.39"
721 -RDEPEND="${COMMON_DEPEND}
722 - mdev? ( !<sys-apps/openrc-0.13 )"
723 -
724 -S=${WORKDIR}/${MY_P}
725 -
726 -busybox_config_option() {
727 - local flag=$1 ; shift
728 - if [[ ${flag} != [yn] && ${flag} != \"* ]] ; then
729 - busybox_config_option $(usex ${flag} y n) "$@"
730 - return
731 - fi
732 - local expr
733 - while [[ $# -gt 0 ]] ; do
734 - case ${flag} in
735 - y) expr="s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" ;;
736 - n) expr="s:CONFIG_$1=y:# CONFIG_$1 is not set:g" ;;
737 - *) expr="s:.*\<CONFIG_$1\>.*:CONFIG_$1=${flag}:g" ;;
738 - esac
739 - sed -i -e "${expr}" .config || die
740 - einfo "$(grep "CONFIG_$1[= ]" .config || echo "Could not find CONFIG_$1 ...")"
741 - shift
742 - done
743 -}
744 -
745 -busybox_config_enabled() {
746 - local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
747 - case ${val} in
748 - "") return 1 ;;
749 - y) return 0 ;;
750 - *) echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
751 - esac
752 -}
753 -
754 -src_prepare() {
755 - unset KBUILD_OUTPUT #88088
756 - append-flags -fno-strict-aliasing #310413
757 - use ppc64 && append-flags -mminimal-toc #130943
758 -
759 - # patches go here!
760 - epatch "${FILESDIR}"/${PN}-1.26.2-bb.patch
761 -# epatch "${FILESDIR}"/${P}-*.patch
762 - cp "${FILESDIR}"/ginit.c init/ || die
763 -
764 - # flag cleanup
765 - sed -i -r \
766 - -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g' \
767 - Makefile.flags || die
768 - #sed -i '/bbsh/s:^//::' include/applets.h
769 - sed -i '/^#error Aborting compilation./d' applets/applets.c || die
770 - use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
771 - sed -i \
772 - -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
773 - -e "/^AR\>/s:=.*:= $(tc-getAR):" \
774 - -e "/^CC\>/s:=.*:= $(tc-getCC):" \
775 - -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
776 - -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
777 - Makefile || die
778 - sed -i \
779 - -e 's:-static-libgcc::' \
780 - Makefile.flags || die
781 -}
782 -
783 -src_configure() {
784 - # check for a busybox config before making one of our own.
785 - # if one exist lets return and use it.
786 -
787 - restore_config .config
788 - if [ -f .config ]; then
789 - yes "" | emake -j1 -s oldconfig >/dev/null
790 - return 0
791 - else
792 - ewarn "Could not locate user configfile, so we will save a default one"
793 - fi
794 -
795 - # setup the config file
796 - emake -j1 -s allyesconfig >/dev/null
797 - # nommu forces a bunch of things off which we want on #387555
798 - busybox_config_option n NOMMU
799 - sed -i '/^#/d' .config
800 - yes "" | emake -j1 -s oldconfig >/dev/null
801 -
802 - # now turn off stuff we really don't want
803 - busybox_config_option n DMALLOC
804 - busybox_config_option n FEATURE_2_4_MODULES #607548
805 - busybox_config_option n FEATURE_SUID_CONFIG
806 - busybox_config_option n BUILD_AT_ONCE
807 - busybox_config_option n BUILD_LIBBUSYBOX
808 - busybox_config_option n FEATURE_CLEAN_UP
809 - busybox_config_option n MONOTONIC_SYSCALL
810 - busybox_config_option n USE_PORTABLE_CODE
811 - busybox_config_option n WERROR
812 - # triming the BSS size may be dangerous
813 - busybox_config_option n FEATURE_USE_BSS_TAIL
814 -
815 - # These cause trouble with musl. Since we don't really
816 - # depend on busybox for most of the musl work, we'll lazily
817 - # just turn them off.
818 - busybox_config_option n FEATURE_UTMP
819 - busybox_config_option n EXTRA_COMPAT
820 - busybox_config_option n FEATURE_VI_REGEX_SEARCH
821 -
822 - # If these are not set and we are using a uclibc/busybox setup
823 - # all calls to system() will fail.
824 - busybox_config_option y ASH
825 - busybox_config_option y SH_IS_ASH
826 - busybox_config_option n HUSH
827 - busybox_config_option n SH_IS_HUSH
828 -
829 - busybox_config_option '"/run"' PID_FILE_PATH
830 - busybox_config_option '"/run/ifstate"' IFUPDOWN_IFSTATE_PATH
831 -
832 - # disable ipv6 applets
833 - if ! use ipv6; then
834 - busybox_config_option n FEATURE_IPV6
835 - busybox_config_option n TRACEROUTE6
836 - busybox_config_option n PING6
837 - busybox_config_option n UDHCPC6
838 - fi
839 -
840 - busybox_config_option pam PAM
841 - busybox_config_option static STATIC
842 - busybox_config_option syslog {K,SYS}LOGD LOGGER
843 - busybox_config_option systemd FEATURE_SYSTEMD
844 - busybox_config_option math FEATURE_AWK_LIBM
845 -
846 - # all the debug options are compiler related, so punt them
847 - busybox_config_option n DEBUG_SANITIZE
848 - busybox_config_option n DEBUG
849 - busybox_config_option y NO_DEBUG_LIB
850 - busybox_config_option n DMALLOC
851 - busybox_config_option n EFENCE
852 - busybox_config_option $(usex debug y n) TFTP_DEBUG
853 -
854 - busybox_config_option selinux SELINUX
855 -
856 - # this opt only controls mounting with <linux-2.6.23
857 - busybox_config_option n FEATURE_MOUNT_NFS
858 -
859 - # default a bunch of uncommon options to off
860 - local opt
861 - for opt in \
862 - ADD_SHELL \
863 - BEEP BOOTCHARTD \
864 - CRONTAB \
865 - DC DEVFSD DNSD DPKG{,_DEB} \
866 - FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
867 - FEATURE_DEVFS \
868 - HOSTID HUSH \
869 - INETD INOTIFYD IPCALC \
870 - LOCALE_SUPPORT LOGNAME LPD \
871 - MAKEMIME MKFS_MINIX MSH \
872 - OD \
873 - RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS RUNSV{,DIR} \
874 - SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
875 - TASKSET TCPSVD \
876 - RPM RPM2CPIO \
877 - UDPSVD UUDECODE UUENCODE
878 - do
879 - busybox_config_option n ${opt}
880 - done
881 -
882 - emake -j1 oldconfig > /dev/null
883 -}
884 -
885 -src_compile() {
886 - unset KBUILD_OUTPUT #88088
887 - export SKIP_STRIP=y
888 -
889 - emake V=1 busybox
890 -}
891 -
892 -src_install() {
893 - unset KBUILD_OUTPUT #88088
894 - save_config .config
895 -
896 - into /
897 - dodir /bin
898 - if use sep-usr ; then
899 - # install /ginit to take care of mounting stuff
900 - exeinto /
901 - newexe busybox_unstripped ginit
902 - dosym /ginit /bin/bb
903 - dosym bb /bin/busybox
904 - else
905 - newbin busybox_unstripped busybox
906 - dosym busybox /bin/bb
907 - fi
908 - if use mdev ; then
909 - dodir /$(get_libdir)/mdev/
910 - use make-symlinks || dosym /bin/bb /sbin/mdev
911 - cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
912 -
913 - exeinto /$(get_libdir)/mdev/
914 - doexe "${FILESDIR}"/mdev/*
915 -
916 - newinitd "${FILESDIR}"/mdev.initd mdev
917 - fi
918 - if use livecd ; then
919 - dosym busybox /bin/vi
920 - fi
921 -
922 - # add busybox daemon's, bug #444718
923 - if busybox_config_enabled FEATURE_NTPD_SERVER; then
924 - newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
925 - newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
926 - fi
927 - if busybox_config_enabled SYSLOGD; then
928 - newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
929 - newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
930 - fi
931 - if busybox_config_enabled KLOGD; then
932 - newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
933 - newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
934 - fi
935 - if busybox_config_enabled WATCHDOG; then
936 - newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
937 - newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
938 - fi
939 - if busybox_config_enabled UDHCPC; then
940 - local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
941 - exeinto "${path%/*}"
942 - newexe examples/udhcp/simple.script "${path##*/}"
943 - fi
944 - if busybox_config_enabled UDHCPD; then
945 - insinto /etc
946 - doins examples/udhcp/udhcpd.conf
947 - fi
948 -
949 - # bundle up the symlink files for use later
950 - emake DESTDIR="${ED}" install
951 - rm _install/bin/busybox
952 - # for compatibility, provide /usr/bin/env
953 - mkdir -p _install/usr/bin
954 - ln -s /bin/env _install/usr/bin/env
955 - tar cf busybox-links.tar -C _install . || : #;die
956 - insinto /usr/share/${PN}
957 - use make-symlinks && doins busybox-links.tar
958 -
959 - dodoc AUTHORS README TODO
960 -
961 - cd docs
962 - docinto txt
963 - dodoc *.txt
964 - docinto pod
965 - dodoc *.pod
966 - dohtml *.html
967 -
968 - cd ../examples
969 - docinto examples
970 - dodoc inittab depmod.pl *.conf *.script undeb unrpm
971 -}
972 -
973 -pkg_preinst() {
974 - if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && [[ ${ROOT} == "/" ]] ; then
975 - ewarn "setting USE=make-symlinks and emerging to / is very dangerous."
976 - ewarn "it WILL overwrite lots of system programs like: ls bash awk grep (bug 60805 for full list)."
977 - ewarn "If you are creating a binary only and not merging this is probably ok."
978 - ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really what you want."
979 - die "silly options will destroy your system"
980 - fi
981 -
982 - if use make-symlinks ; then
983 - mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
984 - fi
985 -}
986 -
987 -pkg_postinst() {
988 - savedconfig_pkg_postinst
989 -
990 - if use make-symlinks ; then
991 - cd "${T}" || die
992 - mkdir _install
993 - tar xf busybox-links.tar -C _install || die
994 - cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} failed"
995 - fi
996 -
997 - if use sep-usr ; then
998 - elog "In order to use the sep-usr support, you have to update your"
999 - elog "kernel command line. Add the option:"
1000 - elog " init=/ginit"
1001 - elog "To launch a different init than /sbin/init, use:"
1002 - elog " init=/ginit /sbin/yourinit"
1003 - elog "To get a rescue shell, you may boot with:"
1004 - elog " init=/ginit bb"
1005 - fi
1006 -}
1007
1008 diff --git a/sys-apps/busybox/files/busybox-1.19.0-bb.patch b/sys-apps/busybox/files/busybox-1.19.0-bb.patch
1009 deleted file mode 100644
1010 index a66b45a..0000000
1011 --- a/sys-apps/busybox/files/busybox-1.19.0-bb.patch
1012 +++ /dev/null
1013 @@ -1,22 +0,0 @@
1014 ---- a/shell/ash.c
1015 -+++ b/shell/ash.c
1016 -@@ -75,6 +75,8 @@
1017 - //applet:IF_ASH(APPLET(ash, BB_DIR_BIN, BB_SUID_DROP))
1018 - //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, BB_DIR_BIN, BB_SUID_DROP, sh))
1019 - //applet:IF_FEATURE_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, BB_DIR_BIN, BB_SUID_DROP, bash))
1020 -+//applet:IF_ASH(APPLET_ODDNAME(bb, ash, BB_DIR_BIN, BB_SUID_DROP, ash))
1021 -+//applet:IF_ASH(APPLET_ODDNAME(bbsh, ash, BB_DIR_BIN, BB_SUID_DROP, ash))
1022 -
1023 - //kbuild:lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o shell_common.o
1024 - //kbuild:lib-$(CONFIG_ASH_RANDOM_SUPPORT) += random.o
1025 ---- a/shell/ash.c
1026 -+++ b/shell/ash.c
1027 -@@ -7255,6 +7255,8 @@
1028 - }
1029 - /* re-exec ourselves with the new arguments */
1030 - execve(bb_busybox_exec_path, argv, envp);
1031 -+ execve("/bin/busybox.static", argv, envp);
1032 -+ execve("/bin/busybox", argv, envp);
1033 - /* If they called chroot or otherwise made the binary no longer
1034 - * executable, fall through */
1035 - }
1036
1037 diff --git a/sys-apps/busybox/files/busybox-1.25.1-setfiles.patch b/sys-apps/busybox/files/busybox-1.25.1-setfiles.patch
1038 deleted file mode 100644
1039 index 3a5f5ed..0000000
1040 --- a/sys-apps/busybox/files/busybox-1.25.1-setfiles.patch
1041 +++ /dev/null
1042 @@ -1,34 +0,0 @@
1043 -From c1704a34745f8e49373eb2cbe1c83199ab2d0091 Mon Sep 17 00:00:00 2001
1044 -From: Mike Frysinger <vapier@g.o>
1045 -Date: Fri, 9 Dec 2016 18:14:12 -0500
1046 -Subject: [PATCH] setfiles: fix build failure after common_bufsiz change
1047 -
1048 -Commit 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 ("*: add most of the
1049 -required setup_common_bufsiz() calls") switched this tool over to use
1050 -the common_bufsiz logic but missed including the header leading to a
1051 -build failure when enabled:
1052 -selinux/setfiles.c:80:30: error: 'bb_common_bufsiz1' undeclared (first use in this function)
1053 -
1054 -URL: https://bugs.gentoo.org/600106
1055 -Reported-by: Jonas Jelten <jj@××××××.net>
1056 -Signed-off-by: Mike Frysinger <vapier@g.o>
1057 -(cherry picked from commit 1cda8790803a6fb072375c8fa53273333d2d4607)
1058 ----
1059 - selinux/setfiles.c | 1 +
1060 - 1 file changed, 1 insertion(+)
1061 -
1062 -diff --git a/selinux/setfiles.c b/selinux/setfiles.c
1063 -index 51a7e63bd741..d8083d4fd580 100644
1064 ---- a/selinux/setfiles.c
1065 -+++ b/selinux/setfiles.c
1066 -@@ -46,6 +46,7 @@
1067 - //usage: "\n if it has changed"
1068 -
1069 - #include "libbb.h"
1070 -+#include "common_bufsiz.h"
1071 - #if ENABLE_FEATURE_SETFILES_CHECK_OPTION
1072 - #include <sepol/sepol.h>
1073 - #endif
1074 ---
1075 -2.11.0.rc2
1076 -
1077
1078 diff --git a/sys-apps/busybox/files/busybox-1.26.2-bb.patch b/sys-apps/busybox/files/busybox-1.26.2-bb.patch
1079 deleted file mode 100644
1080 index 5e2405c..0000000
1081 --- a/sys-apps/busybox/files/busybox-1.26.2-bb.patch
1082 +++ /dev/null
1083 @@ -1,55 +0,0 @@
1084 -add `bb` and `bbsh` shortcuts as aliases to the main shell so we can install
1085 -symlinks in Gentoo at /bin/bb as our recovery shell.
1086 -
1087 -we also add fallbacks to /bin/busybox and /bin/busybox.static in case /proc
1088 -is not yet mounted during early boot.
1089 -
1090 ---- a/shell/ash.c
1091 -+++ b/shell/ash.c
1092 -@@ -144,6 +144,8 @@
1093 - //applet:IF_ASH(APPLET(ash, BB_DIR_BIN, BB_SUID_DROP))
1094 - //applet:IF_SH_IS_ASH(APPLET_ODDNAME(sh, ash, BB_DIR_BIN, BB_SUID_DROP, ash))
1095 - //applet:IF_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, BB_DIR_BIN, BB_SUID_DROP, ash))
1096 -+//applet:IF_ASH(APPLET_ODDNAME(bb, ash, BB_DIR_BIN, BB_SUID_DROP, ash))
1097 -+//applet:IF_ASH(APPLET_ODDNAME(bbsh, ash, BB_DIR_BIN, BB_SUID_DROP, ash))
1098 -
1099 - //kbuild:lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o shell_common.o
1100 - //kbuild:lib-$(CONFIG_SH_IS_ASH) += ash.o ash_ptr_hack.o shell_common.o
1101 -@@ -7572,6 +7574,8 @@
1102 - }
1103 - /* re-exec ourselves with the new arguments */
1104 - execve(bb_busybox_exec_path, argv, envp);
1105 -+ execve("/bin/busybox.static", argv, envp);
1106 -+ execve("/bin/busybox", argv, envp);
1107 - /* If they called chroot or otherwise made the binary no longer
1108 - * executable, fall through */
1109 - }
1110 ---- a/shell/hush.c
1111 -+++ b/shell/hush.c
1112 -@@ -221,6 +221,8 @@
1113 - //applet:IF_MSH(APPLET_ODDNAME(msh, hush, BB_DIR_BIN, BB_SUID_DROP, hush))
1114 - //applet:IF_SH_IS_HUSH(APPLET_ODDNAME(sh, hush, BB_DIR_BIN, BB_SUID_DROP, hush))
1115 - //applet:IF_BASH_IS_HUSH(APPLET_ODDNAME(bash, hush, BB_DIR_BIN, BB_SUID_DROP, hush))
1116 -+//applet:IF_HUSH(APPLET_ODDNAME(bb, hush, BB_DIR_BIN, BB_SUID_DROP, hush))
1117 -+//applet:IF_HUSH(APPLET_ODDNAME(bbsh, hush, BB_DIR_BIN, BB_SUID_DROP, hush))
1118 -
1119 - //kbuild:lib-$(CONFIG_HUSH) += hush.o match.o shell_common.o
1120 - //kbuild:lib-$(CONFIG_SH_IS_HUSH) += hush.o match.o shell_common.o
1121 -@@ -6073,6 +6075,8 @@
1122 - if (SPECIAL_JOBSTOP_SIGS != 0)
1123 - switch_off_special_sigs(G.special_sig_mask & SPECIAL_JOBSTOP_SIGS);
1124 - execve(bb_busybox_exec_path, argv, pp);
1125 -+ execve("/bin/busybox.static", argv, pp);
1126 -+ execve("/bin/busybox", argv, pp);
1127 - /* Fallback. Useful for init=/bin/hush usage etc */
1128 - if (argv[0][0] == '/')
1129 - execve(argv[0], argv, pp);
1130 -@@ -6931,6 +6931,8 @@
1131 - if (SPECIAL_JOBSTOP_SIGS != 0)
1132 - switch_off_special_sigs(G.special_sig_mask & SPECIAL_JOBSTOP_SIGS);
1133 - execv(bb_busybox_exec_path, argv);
1134 -+ execv("/bin/busybox.static", argv);
1135 -+ execv("/bin/busybox", argv);
1136 - /* If they called chroot or otherwise made the binary no longer
1137 - * executable, fall through */
1138 - }
1139
1140 diff --git a/sys-apps/busybox/files/ginit.c b/sys-apps/busybox/files/ginit.c
1141 deleted file mode 100644
1142 index de98e4a..0000000
1143 --- a/sys-apps/busybox/files/ginit.c
1144 +++ /dev/null
1145 @@ -1,124 +0,0 @@
1146 -/*
1147 - * simple init to bootstrap sep-/usr
1148 - *
1149 - * Copyright (C) 2012-2013 Mike Frysinger <vapier@g.o>
1150 - *
1151 - * Licensed under GPLv2 or later
1152 - */
1153 -
1154 -//applet:IF_GINIT(APPLET(ginit, BB_DIR_SBIN, BB_SUID_DROP))
1155 -
1156 -//kbuild:lib-$(CONFIG_GINIT) += ginit.o
1157 -
1158 -//config:config GINIT
1159 -//config: bool "ginit"
1160 -//config: default y
1161 -//config: select MKDIR
1162 -//config: select MDEV
1163 -//config: select MOUNT
1164 -//config: select MOUNTPOINT
1165 -//config: help
1166 -//config: sep-/usr bootstrapper
1167 -
1168 -//usage:#define ginit_trivial_usage NOUSAGE_STR
1169 -//usage:#define ginit_full_usage ""
1170 -
1171 -#include "libbb.h"
1172 -
1173 -#define eprintf(fmt, args...) printf("%s" fmt, "sep-usr init: ", ## args)
1174 -
1175 -static void process_args(char **args)
1176 -{
1177 - size_t i;
1178 -
1179 - eprintf("running: ");
1180 - for (i = 0; args[i]; ++i) {
1181 - /* String needs to be writable, so dupe it */
1182 - args[i] = xstrdup(args[i]);
1183 - printf("'%s' ", args[i]);
1184 - }
1185 - printf("\n");
1186 -}
1187 -
1188 -int ginit_main(int argc UNUSED_PARAM, char **argv) MAIN_EXTERNALLY_VISIBLE;
1189 -int ginit_main(int argc UNUSED_PARAM, char **argv)
1190 -{
1191 - FILE *mntlist;
1192 - bool ismnted_dev, ismnted_sys, ismnted_usr;
1193 - struct mntent *mntent;
1194 -
1195 - /*
1196 - int fd = open("/dev/console", O_RDWR);
1197 - if (fd >= 0) {
1198 - dup2(fd, 0);
1199 - dup2(fd, 1);
1200 - dup2(fd, 2);
1201 - }
1202 - */
1203 -
1204 - /* If given an argv[] with an applet name, run it instead.
1205 - * Makes recovering simple by doing: init=/ginit bb
1206 - */
1207 - if (argv[1] && argv[1][0] != '/') {
1208 - eprintf("running user requested applet %s\n", argv[1]);
1209 - return spawn_and_wait(argv+1);
1210 - }
1211 -
1212 -#define saw(argv...) \
1213 - ({ \
1214 - static const char *args[] = { argv, NULL }; \
1215 - /* These casts are fine -- see process_args for mem setup */ \
1216 - process_args((void *)args); \
1217 - spawn_and_wait((void *)args); \
1218 - })
1219 -
1220 - /* First setup basic /dev */
1221 - if (saw("mountpoint", "-q", "/dev") != 0) {
1222 - /* Try /etc/fstab */
1223 - if (saw("mount", "-n", "/dev"))
1224 - /* Then devtmpfs */
1225 - if (saw("mount", "-n", "-t", "devtmpfs", "devtmpfs", "/dev"))
1226 - /* Finally normal tmpfs */
1227 - saw("mount", "-n", "-t", "tmpfs", "dev", "/dev");
1228 - } else {
1229 - eprintf("%s appears to be mounted; skipping its setup\n", "/dev");
1230 - }
1231 -
1232 - /* If /dev is empty (e.g. tmpfs), run mdev to seed things */
1233 - if (access("/dev/console", F_OK) != 0) {
1234 - if (saw("mountpoint", "-q", "/sys") != 0) {
1235 - if (saw("mount", "-n", "/sys"))
1236 - saw("mount", "-n", "-t", "sysfs", "sysfs", "/sys");
1237 - } else {
1238 - eprintf("%s appears to be mounted; skipping its setup\n", "/sys");
1239 - }
1240 -
1241 - /* Mount /proc as mdev will fork+exec /proc/self/exe */
1242 - if (saw("mountpoint", "-q", "/proc") != 0) {
1243 - /* Try /etc/fstab */
1244 - if (saw("mount", "-n", "/proc"))
1245 - saw("mount", "-n", "-t", "proc", "proc", "/proc");
1246 - }
1247 -
1248 - saw("mdev", "-s");
1249 - }
1250 -
1251 - /* Then seed the stuff we care about */
1252 - saw("mkdir", "-p", "/dev/pts", "/dev/shm");
1253 -
1254 - /* Then mount /usr */
1255 - if (saw("mountpoint", "-q", "/usr") != 0) {
1256 - saw("mount", "-n", "/usr", "-o", "ro");
1257 - } else {
1258 - eprintf("%s appears to be mounted; skipping its setup\n", "/usr");
1259 - }
1260 -
1261 - /* Now that we're all done, exec the real init */
1262 - if (!argv[1]) {
1263 - argv[0] = (void *)"/sbin/init";
1264 - argv[1] = NULL;
1265 - } else
1266 - ++argv;
1267 - process_args(argv);
1268 - return execv(argv[0], argv);
1269 -}
1270
1271 diff --git a/sys-apps/busybox/files/klogd.confd b/sys-apps/busybox/files/klogd.confd
1272 deleted file mode 100644
1273 index 4c16096..0000000
1274 --- a/sys-apps/busybox/files/klogd.confd
1275 +++ /dev/null
1276 @@ -1,9 +0,0 @@
1277 -# Config file for /etc/init.d/busybox-sysklogd
1278 -
1279 -# run "/sbin/klogd --help" to see all possible options.
1280 -
1281 -# activate if you need remote logging
1282 -#rc_need="net"
1283 -
1284 -# send warnings and above to the console
1285 -KLOGD_OPTS="-c 3"
1286
1287 diff --git a/sys-apps/busybox/files/klogd.initd b/sys-apps/busybox/files/klogd.initd
1288 deleted file mode 100644
1289 index 95d5eb0..0000000
1290 --- a/sys-apps/busybox/files/klogd.initd
1291 +++ /dev/null
1292 @@ -1,11 +0,0 @@
1293 -#!/sbin/openrc-run
1294 -# Copyright 1999-2015 Gentoo Foundation
1295 -# Distributed under the terms of the GNU General Public License v2
1296 -
1297 -command="/bin/busybox klogd"
1298 -command_args="${KLOGD_OPTS}"
1299 -pidfile="/run/klogd.pid"
1300 -
1301 -depend() {
1302 - need clock hostname
1303 -}
1304
1305 diff --git a/sys-apps/busybox/files/mdev.initd b/sys-apps/busybox/files/mdev.initd
1306 deleted file mode 100644
1307 index 1145707..0000000
1308 --- a/sys-apps/busybox/files/mdev.initd
1309 +++ /dev/null
1310 @@ -1,52 +0,0 @@
1311 -#!/sbin/openrc-run
1312 -# Copyright 1999-2015 Gentoo Foundation
1313 -# Distributed under the terms of the GNU General Public License v2
1314 -
1315 -depend()
1316 -{
1317 - provide dev
1318 - need dev-mount sysfs
1319 -}
1320 -
1321 -find_mdev()
1322 -{
1323 - if [ -x /sbin/mdev ] ; then
1324 - echo "/sbin/mdev"
1325 - else
1326 - echo "/bin/busybox mdev"
1327 - fi
1328 -}
1329 -
1330 -populate_mdev()
1331 -{
1332 - ebegin "Populating /dev with existing devices with mdev -s"
1333 - $(find_mdev) -s
1334 - eend $?
1335 - return 0
1336 -}
1337 -
1338 -seed_dev()
1339 -{
1340 - # copy over any persistent things
1341 - if [ -d /lib/mdev/devices ] ; then
1342 - cp -RPp /lib/mdev/devices/* /dev 2>/dev/null
1343 - fi
1344 -}
1345 -
1346 -start()
1347 -{
1348 - seed_dev
1349 -
1350 - # Setup hotplugging (if possible)
1351 - if [ -e /proc/sys/kernel/hotplug ] ; then
1352 - ebegin "Setting up mdev as hotplug agent"
1353 - echo $(find_mdev) > /proc/sys/kernel/hotplug
1354 - eend 0
1355 - fi
1356 -
1357 - if get_bootparam "nocoldplug" ; then
1358 - ewarn "Skipping mdev coldplug as requested in kernel cmdline"
1359 - else
1360 - populate_mdev
1361 - fi
1362 -}
1363
1364 diff --git a/sys-apps/busybox/files/mdev/dvbdev b/sys-apps/busybox/files/mdev/dvbdev
1365 deleted file mode 100644
1366 index f0186c1..0000000
1367 --- a/sys-apps/busybox/files/mdev/dvbdev
1368 +++ /dev/null
1369 @@ -1,18 +0,0 @@
1370 -#!/bin/sh
1371 -
1372 -# MDEV=dvb0.demux1 -> ADAPTER=dvb0 -> N=0
1373 -ADAPTER=${MDEV%.*}
1374 -N=${ADAPTER#dvb}
1375 -# MDEV=dvb0.demux1 -> DEVB_DEV=demux1
1376 -DVB_DEV=${MDEV#*.}
1377 -
1378 -case "$ACTION" in
1379 - add|"")
1380 - mkdir -p dvb/adapter${N}
1381 - mv ${MDEV} dvb/adapter${N}/${DVB_DEV}
1382 - ;;
1383 - remove)
1384 - rm -f dvb/adapter${N}/${DVB_DEV}
1385 - rmdir dvb/adapter${N} 2>/dev/null
1386 - rmdir dvb/ 2>/dev/null
1387 -esac
1388
1389 diff --git a/sys-apps/busybox/files/mdev/ide_links b/sys-apps/busybox/files/mdev/ide_links
1390 deleted file mode 100644
1391 index be0c95a..0000000
1392 --- a/sys-apps/busybox/files/mdev/ide_links
1393 +++ /dev/null
1394 @@ -1,23 +0,0 @@
1395 -#!/bin/sh
1396 -
1397 -[ -f /proc/ide/$MDEV/media ] || exit
1398 -
1399 -media=`cat /proc/ide/$MDEV/media`
1400 -for i in $media $media[0-9]* ; do
1401 - if [ "`readlink $i 2>/dev/null`" = $MDEV ] ; then
1402 - LINK=$i
1403 - break
1404 - fi
1405 -done
1406 -
1407 -# link exist, remove if necessary and exit
1408 -if [ "$LINK" ] ; then
1409 - [ "$ACTION" = remove ] && rm $LINK
1410 - exit
1411 -fi
1412 -
1413 -# create a link
1414 -num=`ls $media[0-9]* 2>/dev/null | wc -l`
1415 -ln -sf $MDEV "$media`echo $num`"
1416 -[ -e "$media" ] || ln -sf $MDEV "$media"
1417 -
1418
1419 diff --git a/sys-apps/busybox/files/mdev/usbdev b/sys-apps/busybox/files/mdev/usbdev
1420 deleted file mode 100644
1421 index ea5b915..0000000
1422 --- a/sys-apps/busybox/files/mdev/usbdev
1423 +++ /dev/null
1424 @@ -1,62 +0,0 @@
1425 -#!/bin/sh
1426 -
1427 -# script is buggy; until patched just do exit 0
1428 -#exit 0
1429 -
1430 -# add zeros to device or bus
1431 -add_zeros () {
1432 - case "$(echo $1 | wc -L)" in
1433 - 1) echo "00$1" ;;
1434 - 2) echo "0$1" ;;
1435 - *) echo "$1"
1436 - esac
1437 - exit 0
1438 -}
1439 -
1440 -
1441 -# bus and device dirs in /sys
1442 -USB_PATH=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).[0-9]/usb\1/')
1443 -USB_PATH=$(find /sys/devices -type d -name "$USB_PATH")
1444 -USB_DEV_DIR=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).\([0-9]\)/\1-\2/')
1445 -
1446 -# dir names in /dev
1447 -BUS=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev\([0-9]\).[0-9]/\1/'))
1448 -USB_DEV=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev[0-9].\([0-9]\)/\1/'))
1449 -
1450 -
1451 -# try to load the proper driver for usb devices
1452 -case "$ACTION" in
1453 - add|"")
1454 - # load usb bus driver
1455 - for i in $USB_PATH/*/modalias ; do
1456 - modprobe `cat $i` 2>/dev/null
1457 - done
1458 - # load usb device driver if existent
1459 - if [ -d $USB_PATH/$USB_DEV_DIR ]; then
1460 - for i in $USB_PATH/$USB_DEV_DIR/*/modalias ; do
1461 - modprobe `cat $i` 2>/dev/null
1462 - done
1463 - fi
1464 - # move usb device file
1465 - mkdir -p bus/usb/$BUS
1466 - mv $MDEV bus/usb/$BUS/$USB_DEV
1467 - ;;
1468 - remove)
1469 - # unload device driver, if device dir is existent
1470 - if [ -d $USB_PATH/$USB_DEV_DIR ]; then
1471 - for i in $USB_PATH/$USB_DEV_DIR/*/modalias ; do
1472 - modprobe -r `cat $i` 2>/dev/null
1473 - done
1474 - fi
1475 - # unload usb bus driver. Does this make sense?
1476 - # what happens, if two usb devices are plugged in
1477 - # and one is removed?
1478 - for i in $USB_PATH/*/modalias ; do
1479 - modprobe -r `cat $i` 2>/dev/null
1480 - done
1481 - # remove device file and possible empty dirs
1482 - rm -f bus/usb/$BUS/$USB_DEV
1483 - rmdir bus/usb/$BUS/ 2>/dev/null
1484 - rmdir bus/usb/ 2>/dev/null
1485 - rmdir bus/ 2>/dev/null
1486 -esac
1487
1488 diff --git a/sys-apps/busybox/files/mdev/usbdisk_link b/sys-apps/busybox/files/mdev/usbdisk_link
1489 deleted file mode 100644
1490 index 6bb0692..0000000
1491 --- a/sys-apps/busybox/files/mdev/usbdisk_link
1492 +++ /dev/null
1493 @@ -1,34 +0,0 @@
1494 -#!/bin/sh
1495 -
1496 -# NOTE: since mdev -s only provide $MDEV, don't depend on any hotplug vars.
1497 -
1498 -current=$(readlink usbdisk)
1499 -
1500 -if [ "$current" = "$MDEV" ] && [ "$ACTION" = "remove" ]; then
1501 - rm -f usbdisk usba1
1502 -fi
1503 -[ -n "$current" ] && exit
1504 -
1505 -if [ -e /sys/block/$MDEV ]; then
1506 - SYSDEV=$(readlink -f /sys/block/$MDEV/device)
1507 - # if /sys device path contains '/usb[0-9]' then we assume its usb
1508 - # also, if it's a usb without partitions we require FAT
1509 - if [ "${SYSDEV##*/usb[0-9]}" != "$SYSDEV" ]; then
1510 - # do not create link if there is not FAT
1511 - dd if=/dev/$MDEV bs=512 count=1 2>/dev/null | strings | grep FAT >/dev/null || exit 0
1512 -
1513 - ln -sf $MDEV usbdisk
1514 - # keep this for compat. people have it in fstab
1515 - ln -sf $MDEV usba1
1516 - fi
1517 -
1518 -elif [ -e /sys/block/*/$MDEV ] ; then
1519 - PARENT=$(dirname /sys/block/*/$MDEV)
1520 - SYSDEV=$(readlink -f $PARENT/device)
1521 - if [ "${SYSDEV##*/usb[0-9]}" != "$SYSDEV" ]; then
1522 - ln -sf $MDEV usbdisk
1523 - # keep this for compat. people have it in fstab
1524 - ln -sf $MDEV usba1
1525 - fi
1526 -fi
1527 -
1528
1529 diff --git a/sys-apps/busybox/files/ntpd.confd b/sys-apps/busybox/files/ntpd.confd
1530 deleted file mode 100644
1531 index f50d4c2..0000000
1532 --- a/sys-apps/busybox/files/ntpd.confd
1533 +++ /dev/null
1534 @@ -1,6 +0,0 @@
1535 -# Config file for /etc/init.d/busybox-ntpd
1536 -
1537 -# run "/sbin/ntpd --help" to see all possible options.
1538 -
1539 -# Get time from specified server and run in background
1540 -NTPD_OPTS="-N -p pool.ntp.org"
1541
1542 diff --git a/sys-apps/busybox/files/ntpd.initd b/sys-apps/busybox/files/ntpd.initd
1543 deleted file mode 100644
1544 index dffea3b..0000000
1545 --- a/sys-apps/busybox/files/ntpd.initd
1546 +++ /dev/null
1547 @@ -1,12 +0,0 @@
1548 -#!/sbin/openrc-run
1549 -# Copyright 1999-2012 Gentoo Foundation
1550 -# Distributed under the terms of the GNU General Public License v2
1551 -
1552 -command="/bin/busybox ntpd"
1553 -command_args="${NTPD_OPTS}"
1554 -pidfile="/run/ntpd.pid"
1555 -
1556 -depend() {
1557 - use net dns logger
1558 - after ntp-client
1559 -}
1560
1561 diff --git a/sys-apps/busybox/files/syslogd.confd b/sys-apps/busybox/files/syslogd.confd
1562 deleted file mode 100644
1563 index 7df6885..0000000
1564 --- a/sys-apps/busybox/files/syslogd.confd
1565 +++ /dev/null
1566 @@ -1,9 +0,0 @@
1567 -# Config file for /etc/init.d/busybox-sysklogd
1568 -
1569 -# run "/sbin/syslogd --help" to see all possible options.
1570 -
1571 -# activate if you need remote logging
1572 -#rc_need="net"
1573 -
1574 -# Log to shared mem buffer (use logread to read it)
1575 -SYSLOGD_OPTS="-C128"
1576
1577 diff --git a/sys-apps/busybox/files/syslogd.initd b/sys-apps/busybox/files/syslogd.initd
1578 deleted file mode 100644
1579 index b2ac5ac..0000000
1580 --- a/sys-apps/busybox/files/syslogd.initd
1581 +++ /dev/null
1582 @@ -1,12 +0,0 @@
1583 -#!/sbin/openrc-run
1584 -# Copyright 1999-2012 Gentoo Foundation
1585 -# Distributed under the terms of the GNU General Public License v2
1586 -
1587 -command="/bin/busybox syslogd"
1588 -command_args="${SYSLOGD_OPTS}"
1589 -pidfile="/run/syslogd.pid"
1590 -
1591 -depend() {
1592 - need clock hostname
1593 - provide logger
1594 -}
1595
1596 diff --git a/sys-apps/busybox/files/watchdog.confd b/sys-apps/busybox/files/watchdog.confd
1597 deleted file mode 100644
1598 index bd6aec0..0000000
1599 --- a/sys-apps/busybox/files/watchdog.confd
1600 +++ /dev/null
1601 @@ -1,9 +0,0 @@
1602 -# Config file for /etc/init.d/busybox-watchdog
1603 -
1604 -# run "/sbin/watchdog --help" to see all possible options.
1605 -
1606 -# Periodically write to watchdog device
1607 -WATCHDOG_OPTS="/dev/watchdog"
1608 -
1609 -# optionally set the nice-level
1610 -#SSD_NICELEVEL="-20"
1611
1612 diff --git a/sys-apps/busybox/files/watchdog.initd b/sys-apps/busybox/files/watchdog.initd
1613 deleted file mode 100644
1614 index 8904373..0000000
1615 --- a/sys-apps/busybox/files/watchdog.initd
1616 +++ /dev/null
1617 @@ -1,7 +0,0 @@
1618 -#!/sbin/openrc-run
1619 -# Copyright 1999-2013 Gentoo Foundation
1620 -# Distributed under the terms of the GNU General Public License v2
1621 -
1622 -command="/bin/busybox watchdog"
1623 -command_args="${WATCHDOG_OPTS}"
1624 -pidfile="/run/watchdog.pid"
1625
1626 diff --git a/sys-apps/busybox/metadata.xml b/sys-apps/busybox/metadata.xml
1627 deleted file mode 100644
1628 index 66da662..0000000
1629 --- a/sys-apps/busybox/metadata.xml
1630 +++ /dev/null
1631 @@ -1,19 +0,0 @@
1632 -<?xml version="1.0" encoding="UTF-8"?>
1633 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1634 -<pkgmetadata>
1635 -<maintainer type="project">
1636 -<email>embedded@g.o</email>
1637 -<name>Embedded Gentoo</name>
1638 -</maintainer>
1639 -<use>
1640 -<flag name="make-symlinks">Create all the appropriate symlinks in /bin and /sbin.</flag>
1641 -<flag name="math">Enable math support in gawk (requires libm)</flag>
1642 -<flag name="mdev">Create the appropriate symlink in /sbin and install mdev.conf and support files</flag>
1643 -<flag name="sep-usr">Support a separate /usr without needing an initramfs by booting with init=/ginit</flag>
1644 -<flag name="static">Make the system rescue shell (/bin/bb) static so you can recover even when glibc is broken</flag>
1645 -<flag name="systemd">Support systemd</flag>
1646 -</use>
1647 -<upstream>
1648 -<remote-id type="cpe">cpe:/a:busybox:busybox</remote-id>
1649 -</upstream>
1650 -</pkgmetadata>