base-system-live-busybox: renamed to base-system-busybox, provides/conflicts procps.

This commit is contained in:
Juan RP
2012-09-17 15:50:27 +02:00
parent 61e1f080ae
commit 18631b5529
7 changed files with 7 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
libpam_misc.so.0
libpam.so.0
libm.so.6
libc.so.6

File diff suppressed because it is too large Load Diff

View 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

View 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

View File

@@ -0,0 +1,10 @@
--- include/libbb.h.orig 2012-07-09 15:18:29.296170184 +0200
+++ include/libbb.h 2012-07-09 15:18:41.374877927 +0200
@@ -40,6 +40,7 @@
#include <sys/poll.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
+#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>

View File

@@ -0,0 +1,22 @@
Add support for strictatime mount option.
https://bugs.busybox.net/show_bug.cgi?id=5474
--- util-linux/mount.c.orig 2012-08-29 16:30:19.164282575 +0200
+++ util-linux/mount.c 2012-08-29 16:30:03.088660739 +0200
@@ -235,6 +235,7 @@ static const int32_t mount_options[] = {
/* "noatime" */ MS_NOATIME,
/* "diratime" */ ~MS_NODIRATIME,
/* "nodiratime" */ MS_NODIRATIME,
+ /* "strictatime" */ MS_STRICTATIME,
/* "mand" */ MS_MANDLOCK,
/* "nomand" */ ~MS_MANDLOCK,
/* "relatime" */ MS_RELATIME,
@@ -291,6 +292,7 @@ static const char mount_option_str[] =
"noatime\0"
"diratime\0"
"nodiratime\0"
+ "strictatime\0"
"mand\0"
"nomand\0"
"relatime\0"

View File

@@ -0,0 +1,48 @@
# Build template for 'base-system-live-busybox'.
pkgname=base-system-busybox
version=1.20.2
revision=4
wrksrc="busybox-${version}"
homepage="http://www.busybox.net"
distfiles="${homepage}/downloads/busybox-$version.tar.bz2"
makedepends="perl pam-devel"
replaces="base-busybox>=0 base-system-live-busybox>=0"
conflicts="base-system>=0 run-parts>=0 coreutils>=0 util-linux>=0
dosfstools>=0 grep>=0 findutils>=0 sed>=0 procps>=0"
provides="coreutils-${version} util-linux-${version} run-parts-${version}
dosfstools-${version} grep-${version} findutils-${version} sed-${version}
procps-${version}"
short_desc="The Swiss Army Knife of Embedded Linux - for base-system-live"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
checksum=eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882
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.
This package is only meant to be installed by void-mklive utility and shall
not be installed into a running system."
do_build() {
cp -f ${FILESDIR}/dotconfig .config
make ${makejobs}
}
do_install() {
make CONFIG_PREFIX=${DESTDIR} install
vmkdir usr/bin
vmkdir usr/sbin
vmove "bin/*" usr/bin
vmove "sbin/*" usr/sbin
chmod 4755 ${DESTDIR}/usr/bin/busybox
vinstall ${FILESDIR}/udhcpc@.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/udhcpc-default.script 755 usr/share/udhcpc default.script
}