base-busybox: renamed to base-system-live-busybox, disable grep, find, xargs and blkid.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
libm.so.6
|
||||
libc.so.6
|
||||
1013
srcpkgs/base-system-live-busybox/files/dotconfig
Normal file
1013
srcpkgs/base-system-live-busybox/files/dotconfig
Normal file
File diff suppressed because it is too large
Load Diff
39
srcpkgs/base-system-live-busybox/files/udhcpc-default.script
Normal file
39
srcpkgs/base-system-live-busybox/files/udhcpc-default.script
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
|
||||
# udhcpc script edited by Tim Riker <Tim@Rikers.org>
|
||||
|
||||
[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1
|
||||
|
||||
RESOLV_CONF="/etc/resolv.conf"
|
||||
[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
|
||||
[ -n "$subnet" ] && NETMASK="netmask $subnet"
|
||||
|
||||
case "$1" in
|
||||
deconfig)
|
||||
/sbin/ifconfig $interface 0.0.0.0
|
||||
;;
|
||||
|
||||
renew|bound)
|
||||
/sbin/ifconfig $interface $ip $BROADCAST $NETMASK
|
||||
|
||||
if [ -n "$router" ] ; then
|
||||
echo "deleting routers"
|
||||
while route del default gw 0.0.0.0 dev $interface ; do
|
||||
:
|
||||
done
|
||||
|
||||
for i in $router ; do
|
||||
route add default gw $i dev $interface
|
||||
done
|
||||
fi
|
||||
|
||||
echo -n > $RESOLV_CONF
|
||||
[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF
|
||||
for i in $dns ; do
|
||||
echo adding dns $i
|
||||
echo nameserver $i >> $RESOLV_CONF
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
10
srcpkgs/base-system-live-busybox/files/udhcpc@.service
Normal file
10
srcpkgs/base-system-live-busybox/files/udhcpc@.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Micro DHCP client on %I
|
||||
Wants=network.target
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/sbin/udhcpc -t 10 -p /var/run/udhcpc-%I.pid -R -f -n -i %I
|
||||
|
||||
[Install]
|
||||
Alias=multi-user.target.wants/udhcpc@eth0.service
|
||||
33
srcpkgs/base-system-live-busybox/template
Normal file
33
srcpkgs/base-system-live-busybox/template
Normal file
@@ -0,0 +1,33 @@
|
||||
# Build template for 'base-system-live-busybox'.
|
||||
pkgname=base-system-live-busybox
|
||||
version=1.19.3
|
||||
wrksrc="busybox-${version}"
|
||||
homepage="http://www.busybox.net"
|
||||
distfiles="${homepage}/downloads/busybox-$version.tar.bz2"
|
||||
short_desc="The Swiss Army Knife of Embedded Linux - for base system"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2"
|
||||
checksum=a1a9a35732c719ef384f02b6e357c324d8be25bc154af91a48c4264b1e6038f0
|
||||
long_desc="
|
||||
BusyBox combines tiny versions of many common UNIX utilities into a single
|
||||
small executable. It provides replacements for most of the utilities you
|
||||
usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox
|
||||
generally have fewer options than their full-featured GNU cousins; however,
|
||||
the options that are included provide the expected functionality and behave
|
||||
very much like their GNU counterparts. BusyBox provides a fairly complete
|
||||
environment for any small or embedded system."
|
||||
|
||||
replaces="base-busybox>=0"
|
||||
Add_dependency build perl ">=0"
|
||||
|
||||
do_build() {
|
||||
cp -f ${FILESDIR}/dotconfig .config
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make CONFIG_PREFIX=${DESTDIR} install
|
||||
vinstall ${FILESDIR}/udhcpc@.service 644 lib/systemd/system
|
||||
vinstall ${FILESDIR}/udhcpc-default.script 755 \
|
||||
usr/share/udhcpc default.script
|
||||
}
|
||||
Reference in New Issue
Block a user