Some more updates and such...
-Erik
This commit is contained in:
parent
1d1d95051a
commit
e90f4045af
7
Makefile
7
Makefile
@ -19,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PROG := busybox
|
PROG := busybox
|
||||||
VERSION := 0.43
|
VERSION := 0.44
|
||||||
BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z")
|
BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z")
|
||||||
export VERSION
|
export VERSION
|
||||||
|
|
||||||
@ -31,8 +31,9 @@ DODEBUG = false
|
|||||||
# If you want a static binary, turn this on.
|
# If you want a static binary, turn this on.
|
||||||
DOSTATIC = false
|
DOSTATIC = false
|
||||||
|
|
||||||
# This will choke on a non-debian system
|
# Figure out what arch we are on (not used at the moment)
|
||||||
ARCH =`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'`
|
ARCH := $(shell uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/')
|
||||||
|
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
|
@ -231,6 +231,12 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
//
|
//
|
||||||
|
#ifdef BB_INIT
|
||||||
|
#ifndef BB_FEATURE_REMOUNT
|
||||||
|
#define BB_FEATURE_REMOUNT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
//
|
||||||
#ifdef BB_FEATURE_LINUXRC
|
#ifdef BB_FEATURE_LINUXRC
|
||||||
#ifndef BB_INIT
|
#ifndef BB_INIT
|
||||||
#define BB_INIT
|
#define BB_INIT
|
||||||
|
15
busybox.spec
15
busybox.spec
@ -1,5 +1,5 @@
|
|||||||
Name: busybox
|
Name: busybox
|
||||||
Version: 0.43
|
Version: 0.44
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: System/Utilities
|
Group: System/Utilities
|
||||||
Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary.
|
Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary.
|
||||||
@ -10,12 +10,13 @@ Buildroot: /tmp/%{Name}-%{Version}
|
|||||||
Source: %{Name}-%{Version}.tar.gz
|
Source: %{Name}-%{Version}.tar.gz
|
||||||
|
|
||||||
%Description
|
%Description
|
||||||
BusyBox is a suite of "tiny" Unix utilities in a multi-call binary. It
|
BusyBox combines tiny versions of many common UNIX utilities into a single
|
||||||
provides a pretty complete POSIX environment in a very small package.
|
small executable. It provides minimalist replacements for most of the utilities
|
||||||
Just add a kernel, "ash" (Keith Almquists tiny Bourne shell clone), and
|
you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
|
||||||
an editor such as "elvis-tiny" or "ae", and you have a full system. This
|
tar, etc. BusyBox provides a fairly complete POSIX environment for any small
|
||||||
is makes an excellent environment for a "rescue" disk or any small or
|
or emdedded system. The utilities in BusyBox generally have fewer options then
|
||||||
embedded system.
|
their full featured GNU cousins; however, the options that are provided behave
|
||||||
|
very much like their GNU counterparts.
|
||||||
|
|
||||||
%Prep
|
%Prep
|
||||||
%setup -q -n %{Name}-%{Version}
|
%setup -q -n %{Name}-%{Version}
|
||||||
|
@ -16,9 +16,9 @@ BusyBox combines tiny versions of many common UNIX utilities into a single
|
|||||||
small executable. It provides minimalist replacements for most of the utilities
|
small executable. It provides minimalist replacements for most of the utilities
|
||||||
you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
|
you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
|
||||||
tar, etc. BusyBox provides a fairly complete POSIX environment for any small
|
tar, etc. BusyBox provides a fairly complete POSIX environment for any small
|
||||||
or emdedded system. While the number of options for the utilities BusyBox
|
or emdedded system. The utilities in BusyBox generally have fewer options then
|
||||||
provides have generally been reduced, the provided options behave very much
|
their full featured GNU cousins; however, the options that are included provide
|
||||||
like they do in their full featured GNU cousins.
|
the expected functionality and behave very much like their GNU counterparts.
|
||||||
|
|
||||||
BusyBox has been written with size-optimization and limited resources in mind.
|
BusyBox has been written with size-optimization and limited resources in mind.
|
||||||
It is also extremely modular so you can easily include or exclude commands (or
|
It is also extremely modular so you can easily include or exclude commands (or
|
||||||
@ -1816,4 +1816,4 @@ Enrique Zanardi <ezanardi@ull.es>
|
|||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
# $Id: busybox.pod,v 1.20 2000/04/21 01:23:36 erik Exp $
|
# $Id: busybox.pod,v 1.21 2000/04/21 21:53:58 erik Exp $
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Name: busybox
|
Name: busybox
|
||||||
Version: 0.43
|
Version: 0.44
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: System/Utilities
|
Group: System/Utilities
|
||||||
Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary.
|
Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary.
|
||||||
@ -10,12 +10,13 @@ Buildroot: /tmp/%{Name}-%{Version}
|
|||||||
Source: %{Name}-%{Version}.tar.gz
|
Source: %{Name}-%{Version}.tar.gz
|
||||||
|
|
||||||
%Description
|
%Description
|
||||||
BusyBox is a suite of "tiny" Unix utilities in a multi-call binary. It
|
BusyBox combines tiny versions of many common UNIX utilities into a single
|
||||||
provides a pretty complete POSIX environment in a very small package.
|
small executable. It provides minimalist replacements for most of the utilities
|
||||||
Just add a kernel, "ash" (Keith Almquists tiny Bourne shell clone), and
|
you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
|
||||||
an editor such as "elvis-tiny" or "ae", and you have a full system. This
|
tar, etc. BusyBox provides a fairly complete POSIX environment for any small
|
||||||
is makes an excellent environment for a "rescue" disk or any small or
|
or emdedded system. The utilities in BusyBox generally have fewer options then
|
||||||
embedded system.
|
their full featured GNU cousins; however, the options that are provided behave
|
||||||
|
very much like their GNU counterparts.
|
||||||
|
|
||||||
%Prep
|
%Prep
|
||||||
%setup -q -n %{Name}-%{Version}
|
%setup -q -n %{Name}-%{Version}
|
||||||
|
2
more.c
2
more.c
@ -109,6 +109,8 @@ extern int more_main(int argc, char **argv)
|
|||||||
cin = fopen("/dev/console", "r");
|
cin = fopen("/dev/console", "r");
|
||||||
getTermSettings(fileno(cin), &initial_settings);
|
getTermSettings(fileno(cin), &initial_settings);
|
||||||
new_settings = initial_settings;
|
new_settings = initial_settings;
|
||||||
|
new_settings.c_cc[VMIN] = 1;
|
||||||
|
new_settings.c_cc[VTIME] = 0;
|
||||||
new_settings.c_lflag &= ~ICANON;
|
new_settings.c_lflag &= ~ICANON;
|
||||||
new_settings.c_lflag &= ~ECHO;
|
new_settings.c_lflag &= ~ECHO;
|
||||||
setTermSettings(fileno(cin), &new_settings);
|
setTermSettings(fileno(cin), &new_settings);
|
||||||
|
@ -20,12 +20,14 @@ cp_tests: cp_clean cp
|
|||||||
@echo "Some tests might show timestamp differences that are Ok.";
|
@echo "Some tests might show timestamp differences that are Ok.";
|
||||||
|
|
||||||
@echo;
|
@echo;
|
||||||
${BCP} || true;
|
@echo Verify that busybox cp exists;
|
||||||
|
@echo ------------------------------;
|
||||||
|
[ -x ${BCP} ] || exit 0
|
||||||
|
|
||||||
@echo;
|
@echo;
|
||||||
mkdir cp_tests;
|
mkdir cp_tests;
|
||||||
|
|
||||||
# Copy a file to a copy of the file
|
@echo Copy a file to a copy of the file;
|
||||||
@echo ------------------------------;
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
echo A file > afile; \
|
echo A file > afile; \
|
||||||
@ -50,8 +52,8 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/*;
|
rm -rf cp_tests/*;
|
||||||
|
|
||||||
# Copy a file pointed to by a symlink
|
@echo; echo Copy a file pointed to by a symlink;
|
||||||
@echo; echo ------------------------------;
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
mkdir here there; \
|
mkdir here there; \
|
||||||
echo A file > afile; \
|
echo A file > afile; \
|
||||||
@ -82,21 +84,21 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/*
|
rm -rf cp_tests/*
|
||||||
|
|
||||||
# Copy a symlink, useing the -a switch.
|
@echo; echo Copy a symlink, useing the -a switch.;
|
||||||
@echo; echo ------------------------------;
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
echo A file > afile; \
|
echo A file > afile; \
|
||||||
mkdir here there; \
|
mkdir here there; \
|
||||||
cd here; \
|
cd here; \
|
||||||
ln -s ../afile .
|
ln -s ../afile .
|
||||||
|
|
||||||
cd cp_test; \
|
cd cp_tests; \
|
||||||
ls -lR . > ../cp_a_symlink.gnu; \
|
ls -lR . > ../cp_a_symlink.gnu; \
|
||||||
${GCP} -a here/afile there; \
|
${GCP} -a here/afile there; \
|
||||||
ls -lR . >> ../cp_a_symlink.gnu;
|
ls -lR . >> ../cp_a_symlink.gnu;
|
||||||
|
|
||||||
@echo;
|
@echo;
|
||||||
rm -f cp_tests/there/*;
|
rm -rf cp_tests/there/*;
|
||||||
|
|
||||||
sleep 1;
|
sleep 1;
|
||||||
|
|
||||||
@ -111,10 +113,10 @@ cp_tests: cp_clean cp
|
|||||||
diff -u cp_a_symlink.gnu cp_a_symlink.bb;
|
diff -u cp_a_symlink.gnu cp_a_symlink.bb;
|
||||||
|
|
||||||
@echo;
|
@echo;
|
||||||
rm -f cp_tests/*;
|
rm -rf cp_tests/*;
|
||||||
|
|
||||||
# Copy a directory into another directory with the -a switch
|
@echo; echo Copy a directory into another directory with the -a switch;
|
||||||
@echo; echo ------------------------------;
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
mkdir here there; \
|
mkdir here there; \
|
||||||
echo A file > here/afile; \
|
echo A file > here/afile; \
|
||||||
@ -145,8 +147,9 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/*;
|
rm -rf cp_tests/*;
|
||||||
|
|
||||||
# Copy a set of files to a directory.
|
# Copy a set of files to a directory.
|
||||||
@echo; echo ------------------------------;
|
@echo; echo Copy a set of files to a directory.;
|
||||||
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
echo A file number one > afile1; \
|
echo A file number one > afile1; \
|
||||||
echo A file number two, blah. > afile2; \
|
echo A file number two, blah. > afile2; \
|
||||||
@ -171,8 +174,9 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/*;
|
rm -rf cp_tests/*;
|
||||||
|
|
||||||
# Copy a set of files to a directory with the -d switch.
|
# Copy a set of files to a directory with the -d switch.
|
||||||
@echo; echo ------------------------------;
|
@echo; echo Copy a set of files to a directory with the -d switch.;
|
||||||
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
echo A file number one > afile1; \
|
echo A file number one > afile1; \
|
||||||
echo A file number two, blah. > afile2; \
|
echo A file number two, blah. > afile2; \
|
||||||
@ -199,8 +203,9 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/{afile{1,2},symlink1,there1};
|
rm -rf cp_tests/{afile{1,2},symlink1,there1};
|
||||||
|
|
||||||
# Copy a set of files to a directory with the -p switch.
|
# Copy a set of files to a directory with the -p switch.
|
||||||
@echo; echo ------------------------------;
|
@echo; echo Copy a set of files to a directory with the -p switch.;
|
||||||
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
echo A file number one > afile1; \
|
echo A file number one > afile1; \
|
||||||
echo A file number two, blah. > afile2; \
|
echo A file number two, blah. > afile2; \
|
||||||
@ -229,8 +234,8 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/{afile{1,2},symlink1,there1};
|
rm -rf cp_tests/{afile{1,2},symlink1,there1};
|
||||||
|
|
||||||
# Copy a set of files to a directory with -p and -d switches.
|
@echo; echo Copy a set of files to a directory with -p and -d switches.
|
||||||
@echo; echo ------------------------------;
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
echo A file number one > afile1; \
|
echo A file number one > afile1; \
|
||||||
echo A file number two, blah. > afile2; \
|
echo A file number two, blah. > afile2; \
|
||||||
@ -259,8 +264,8 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/{afile{1,2},symlink1,there1};
|
rm -rf cp_tests/{afile{1,2},symlink1,there1};
|
||||||
|
|
||||||
# Copy a directory into another directory with the -a switch.
|
@echo; echo Copy a directory into another directory with the -a switch.
|
||||||
@echo; echo ------------------------------;
|
@echo ------------------------------;
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
mkdir dir{a,b}; \
|
mkdir dir{a,b}; \
|
||||||
echo A file > dira/afile; \
|
echo A file > dira/afile; \
|
||||||
@ -293,8 +298,9 @@ cp_tests: cp_clean cp
|
|||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests/dir{a,b};
|
rm -rf cp_tests/dir{a,b};
|
||||||
|
|
||||||
# Copy a directory to another directory, without the -a switch.
|
# Copy a directory to another directory, without the -a switch.
|
||||||
@echo; echo ------------------------------;
|
@echo; echo Copy a directory to another directory, without the -a switch.
|
||||||
|
@echo ------------------------------;
|
||||||
@echo There should be an error message about cannot cp a dir to a subdir of itself.
|
@echo There should be an error message about cannot cp a dir to a subdir of itself.
|
||||||
cd cp_tests; \
|
cd cp_tests; \
|
||||||
touch a b c; \
|
touch a b c; \
|
||||||
@ -314,7 +320,8 @@ cp_tests: cp_clean cp
|
|||||||
|
|
||||||
@echo;
|
@echo;
|
||||||
diff -u cp_a_star_adir.gnu cp_a_star_adir.bb;
|
diff -u cp_a_star_adir.gnu cp_a_star_adir.bb;
|
||||||
|
|
||||||
|
# Done
|
||||||
@echo;
|
@echo;
|
||||||
rm -rf cp_tests;
|
rm -rf cp_tests;
|
||||||
@echo; echo Done.
|
@echo; echo Done.
|
||||||
|
@ -109,6 +109,8 @@ extern int more_main(int argc, char **argv)
|
|||||||
cin = fopen("/dev/console", "r");
|
cin = fopen("/dev/console", "r");
|
||||||
getTermSettings(fileno(cin), &initial_settings);
|
getTermSettings(fileno(cin), &initial_settings);
|
||||||
new_settings = initial_settings;
|
new_settings = initial_settings;
|
||||||
|
new_settings.c_cc[VMIN] = 1;
|
||||||
|
new_settings.c_cc[VTIME] = 0;
|
||||||
new_settings.c_lflag &= ~ICANON;
|
new_settings.c_lflag &= ~ICANON;
|
||||||
new_settings.c_lflag &= ~ECHO;
|
new_settings.c_lflag &= ~ECHO;
|
||||||
setTermSettings(fileno(cin), &new_settings);
|
setTermSettings(fileno(cin), &new_settings);
|
||||||
|
Loading…
Reference in New Issue
Block a user