Merge branch 'svn-2.2' into 2.2

This commit is contained in:
Simone Rota 2006-10-21 22:00:27 +02:00
commit 383902cca1
432 changed files with 29372 additions and 0 deletions

66
autoconf/.footprint Normal file
View File

@ -0,0 +1,66 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/autoconf
-rwxr-xr-x root/root usr/bin/autoheader
-rwxr-xr-x root/root usr/bin/autom4te
-rwxr-xr-x root/root usr/bin/autoreconf
-rwxr-xr-x root/root usr/bin/autoscan
-rwxr-xr-x root/root usr/bin/autoupdate
-rwxr-xr-x root/root usr/bin/ifnames
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/autoconf.1.gz
-rw-r--r-- root/root usr/man/man1/autoheader.1.gz
-rw-r--r-- root/root usr/man/man1/autom4te.1.gz
-rw-r--r-- root/root usr/man/man1/autoreconf.1.gz
-rw-r--r-- root/root usr/man/man1/autoscan.1.gz
-rw-r--r-- root/root usr/man/man1/autoupdate.1.gz
-rw-r--r-- root/root usr/man/man1/config.guess.1.gz
-rw-r--r-- root/root usr/man/man1/config.sub.1.gz
-rw-r--r-- root/root usr/man/man1/ifnames.1.gz
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/autoconf/
drwxr-xr-x root/root usr/share/autoconf/Autom4te/
-rw-r--r-- root/root usr/share/autoconf/Autom4te/C4che.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/ChannelDefs.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/Channels.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/Configure_ac.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/FileUtils.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/General.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/Request.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/Struct.pm
-rw-r--r-- root/root usr/share/autoconf/Autom4te/XFile.pm
-rw-r--r-- root/root usr/share/autoconf/INSTALL
drwxr-xr-x root/root usr/share/autoconf/autoconf/
-rw-r--r-- root/root usr/share/autoconf/autoconf/autoconf.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/autoconf.m4f
-rw-r--r-- root/root usr/share/autoconf/autoconf/autoheader.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/autoscan.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/autotest.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/autoupdate.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/c.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/erlang.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/fortran.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/functions.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/general.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/headers.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/lang.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/libs.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/oldnames.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/programs.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/specific.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/status.m4
-rw-r--r-- root/root usr/share/autoconf/autoconf/types.m4
-rw-r--r-- root/root usr/share/autoconf/autom4te.cfg
drwxr-xr-x root/root usr/share/autoconf/autoscan/
-rw-r--r-- root/root usr/share/autoconf/autoscan/autoscan.list
drwxr-xr-x root/root usr/share/autoconf/autotest/
-rw-r--r-- root/root usr/share/autoconf/autotest/autotest.m4
-rw-r--r-- root/root usr/share/autoconf/autotest/autotest.m4f
-rw-r--r-- root/root usr/share/autoconf/autotest/general.m4
drwxr-xr-x root/root usr/share/autoconf/m4sugar/
-rw-r--r-- root/root usr/share/autoconf/m4sugar/m4sh.m4
-rw-r--r-- root/root usr/share/autoconf/m4sugar/m4sh.m4f
-rw-r--r-- root/root usr/share/autoconf/m4sugar/m4sugar.m4
-rw-r--r-- root/root usr/share/autoconf/m4sugar/m4sugar.m4f
-rw-r--r-- root/root usr/share/autoconf/m4sugar/version.m4

1
autoconf/.md5sum Normal file
View File

@ -0,0 +1 @@
019609c29d0cbd9110c38480304aafc8 autoconf-2.60.tar.bz2

16
autoconf/Pkgfile Normal file
View File

@ -0,0 +1,16 @@
# Description: A package of M4 macros to produce scripts to automatically configure sourcecode
# URL: http://www.gnu.org/software/autoconf
# Maintainer: Per Lidén, core-ports at crux dot nu
name=autoconf
version=2.60
release=3
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build () {
cd $name-$version
./configure --prefix=/usr --mandir=$PKG/usr/man
make
make prefix=$PKG/usr install
rm -rf $PKG/usr/share/info $PKG/usr/share/emacs
}

118
automake/.footprint Normal file
View File

@ -0,0 +1,118 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/aclocal
-rwxr-xr-x root/root usr/bin/automake
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/aclocal-1.9/
-rw-r--r-- root/root usr/share/aclocal-1.9/amversion.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/as.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/auxdir.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/ccstdc.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/cond.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/depend.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/depout.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/dmalloc.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/gcj.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/header.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/init.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/install-sh.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/lead-dot.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/lex.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/lispdir.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/maintainer.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/make.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/minuso.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/missing.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/mkdirp.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/multi.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/obsol-gt.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/obsol-lt.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/obsolete.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/options.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/protos.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/python.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/regex.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/runlog.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/sanity.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/strip.m4
-rw-r--r-- root/root usr/share/aclocal-1.9/tar.m4
drwxr-xr-x root/root usr/share/automake-1.9/
drwxr-xr-x root/root usr/share/automake-1.9/Automake/
-rw-r--r-- root/root usr/share/automake-1.9/Automake/ChannelDefs.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Channels.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Condition.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Config.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Configure_ac.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/DisjConditions.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/FileUtils.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/General.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Item.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/ItemDef.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Location.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Options.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Rule.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/RuleDef.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Struct.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/VarDef.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Variable.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Version.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/Wrap.pm
-rw-r--r-- root/root usr/share/automake-1.9/Automake/XFile.pm
-rw-r--r-- root/root usr/share/automake-1.9/COPYING
-rw-r--r-- root/root usr/share/automake-1.9/INSTALL
-rwxr-xr-x root/root usr/share/automake-1.9/acinstall
drwxr-xr-x root/root usr/share/automake-1.9/am/
-rw-r--r-- root/root usr/share/automake-1.9/am/ansi2knr.am
-rw-r--r-- root/root usr/share/automake-1.9/am/check.am
-rw-r--r-- root/root usr/share/automake-1.9/am/clean-hdr.am
-rw-r--r-- root/root usr/share/automake-1.9/am/clean.am
-rw-r--r-- root/root usr/share/automake-1.9/am/compile.am
-rw-r--r-- root/root usr/share/automake-1.9/am/configure.am
-rw-r--r-- root/root usr/share/automake-1.9/am/data.am
-rw-r--r-- root/root usr/share/automake-1.9/am/dejagnu.am
-rw-r--r-- root/root usr/share/automake-1.9/am/depend.am
-rw-r--r-- root/root usr/share/automake-1.9/am/depend2.am
-rw-r--r-- root/root usr/share/automake-1.9/am/distdir.am
-rw-r--r-- root/root usr/share/automake-1.9/am/footer.am
-rw-r--r-- root/root usr/share/automake-1.9/am/header-vars.am
-rw-r--r-- root/root usr/share/automake-1.9/am/header.am
-rw-r--r-- root/root usr/share/automake-1.9/am/inst-vars.am
-rw-r--r-- root/root usr/share/automake-1.9/am/install.am
-rw-r--r-- root/root usr/share/automake-1.9/am/java.am
-rw-r--r-- root/root usr/share/automake-1.9/am/lang-compile.am
-rw-r--r-- root/root usr/share/automake-1.9/am/lex.am
-rw-r--r-- root/root usr/share/automake-1.9/am/library.am
-rw-r--r-- root/root usr/share/automake-1.9/am/libs.am
-rw-r--r-- root/root usr/share/automake-1.9/am/libtool.am
-rw-r--r-- root/root usr/share/automake-1.9/am/lisp.am
-rw-r--r-- root/root usr/share/automake-1.9/am/ltlib.am
-rw-r--r-- root/root usr/share/automake-1.9/am/ltlibrary.am
-rw-r--r-- root/root usr/share/automake-1.9/am/mans-vars.am
-rw-r--r-- root/root usr/share/automake-1.9/am/mans.am
-rw-r--r-- root/root usr/share/automake-1.9/am/multilib.am
-rw-r--r-- root/root usr/share/automake-1.9/am/program.am
-rw-r--r-- root/root usr/share/automake-1.9/am/progs.am
-rw-r--r-- root/root usr/share/automake-1.9/am/python.am
-rw-r--r-- root/root usr/share/automake-1.9/am/remake-hdr.am
-rw-r--r-- root/root usr/share/automake-1.9/am/scripts.am
-rw-r--r-- root/root usr/share/automake-1.9/am/subdirs.am
-rw-r--r-- root/root usr/share/automake-1.9/am/tags.am
-rw-r--r-- root/root usr/share/automake-1.9/am/texi-vers.am
-rw-r--r-- root/root usr/share/automake-1.9/am/texibuild.am
-rw-r--r-- root/root usr/share/automake-1.9/am/texinfos.am
-rw-r--r-- root/root usr/share/automake-1.9/am/yacc.am
-rw-r--r-- root/root usr/share/automake-1.9/ansi2knr.1
-rw-r--r-- root/root usr/share/automake-1.9/ansi2knr.c
-rwxr-xr-x root/root usr/share/automake-1.9/compile
-rw-r--r-- root/root usr/share/automake-1.9/config-ml.in
-rwxr-xr-x root/root usr/share/automake-1.9/config.guess
-rwxr-xr-x root/root usr/share/automake-1.9/config.sub
-rwxr-xr-x root/root usr/share/automake-1.9/depcomp
-rwxr-xr-x root/root usr/share/automake-1.9/elisp-comp
-rwxr-xr-x root/root usr/share/automake-1.9/install-sh
-rwxr-xr-x root/root usr/share/automake-1.9/mdate-sh
-rwxr-xr-x root/root usr/share/automake-1.9/missing
-rwxr-xr-x root/root usr/share/automake-1.9/mkinstalldirs
-rwxr-xr-x root/root usr/share/automake-1.9/py-compile
-rwxr-xr-x root/root usr/share/automake-1.9/symlink-tree
-rwxr-xr-x root/root usr/share/automake-1.9/ylwrap

1
automake/.md5sum Normal file
View File

@ -0,0 +1 @@
c11b8100bb311492d8220378fd8bf9e0 automake-1.9.6.tar.bz2

19
automake/Pkgfile Normal file
View File

@ -0,0 +1,19 @@
# Description: A tool for automatically generating Makefiles
# URL: http://www.gnu.org/software/automake/
# Maintainer: Per Lidén, core-ports at crux dot nu
# Depends on: gawk, perl, autoconf
name=automake
version=1.9.6
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build () {
cd $name-$version
./configure --prefix=/usr
make
make prefix=$PKG/usr install
rm -rf $PKG/usr/bin/{automake-*,aclocal-*} \
$PKG/usr/share/info \
$PKG/usr/share/automake-*/texinfo.tex
}

10
bash/.footprint Normal file
View File

@ -0,0 +1,10 @@
drwxr-xr-x root/root bin/
-rwxr-xr-x root/root bin/bash
lrwxrwxrwx root/root bin/sh -> bash
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/profile
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/bash.1.gz
lrwxrwxrwx root/root usr/man/man1/sh.1.gz -> bash.1.gz

4
bash/.md5sum Normal file
View File

@ -0,0 +1,4 @@
bc337045fa4c5839babf0306cc9df6d0 bash-3.1-001-017.patch
46d32222ea0ee4b92d9cad3130498e30 bash-3.1-doc.patch
ef5304c4b22aaa5088972c792ed45d72 bash-3.1.tar.gz
7b57ddfc0866bfe6ee5eb714723d69b7 profile

27
bash/Pkgfile Normal file
View File

@ -0,0 +1,27 @@
# Description: An sh-compatible command language interpreter.
# URL: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
# Maintainer: Per Lidén, core-ports at crux dot nu
# Depends on: ncurses
name=bash
version=3.1.17
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-3.1.tar.gz \
bash-3.1-001-017.patch \
$name-3.1-doc.patch \
profile)
build() {
cd $name-3.1
patch -p1 < ../$name-3.1-001-017.patch
patch -p1 < ../$name-3.1-doc.patch
./configure --prefix=/usr \
--exec-prefix= \
--disable-nls
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info $PKG/bin/bashbug $PKG/usr/man/man1/bashbug.1
install -D -m 644 ../profile $PKG/etc/profile
ln -sf bash $PKG/bin/sh
ln -sf bash.1 $PKG/usr/man/man1/sh.1
}

723
bash/bash-3.1-001-017.patch Normal file
View File

@ -0,0 +1,723 @@
Submitted By: Jeremy Huntwork (jhuntwork at linuxfromscratch dot org)
Date: 2006-04-11
Initial Package Version: 3.1
Origin: http://ftp.gnu.org/gnu/bash/bash-3.1-patches/
Upstream Status: From Upstream
Description: Contains patches 001-017 from upstream
diff -Naur bash-3.1.orig/arrayfunc.c bash-3.1/arrayfunc.c
--- bash-3.1.orig/arrayfunc.c 2005-07-04 17:25:58.000000000 -0700
+++ bash-3.1/arrayfunc.c 2006-04-19 15:59:29.000000000 -0700
@@ -592,11 +592,7 @@
exp = (char *)xmalloc (len);
strncpy (exp, s, len - 1);
exp[len - 1] = '\0';
-#if 0
- t = expand_string_to_string (exp, 0);
-#else
- t = expand_string_to_string (exp, Q_DOUBLE_QUOTES);
-#endif
+ t = expand_arith_string (exp, 0);
this_command_name = (char *)NULL;
val = evalexp (t, &expok);
free (t);
diff -Naur bash-3.1.orig/doc/bash.1 bash-3.1/doc/bash.1
--- bash-3.1.orig/doc/bash.1 2005-10-12 08:40:52.000000000 -0700
+++ bash-3.1/doc/bash.1 2006-04-19 15:58:34.000000000 -0700
@@ -6,12 +6,12 @@
.\" Case Western Reserve University
.\" chet@po.cwru.edu
.\"
-.\" Last Change: Sat Aug 27 13:28:44 EDT 2005
+.\" Last Change: Wed Dec 28 19:58:45 EST 2005
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
-.TH BASH 1 "2005 Aug 27" "GNU Bash-3.1-beta1"
+.TH BASH 1 "2005 Dec 28" "GNU Bash-3.1"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -677,8 +677,8 @@
.B nocasematch
is enabled, the match is performed without regard to the case
of alphabetic characters.
-The return value is 0 if the string matches or does not match
-the pattern, respectively, and 1 otherwise.
+The return value is 0 if the string matches (\fB==\fP) or does not match
+(\fB!=\fP) the pattern, and 1 otherwise.
Any part of the pattern may be quoted to force it to be matched as a
string.
.if t .sp 0.5
@@ -807,6 +807,12 @@
as for pathname expansion (see
.B Pathname Expansion
below).
+The \fIword\fP is expanded using tilde
+expansion, parameter and variable expansion, arithmetic substituion,
+command substitution, process substitution and quote removal.
+Each \fIpattern\fP examined is expanded using tilde
+expansion, parameter and variable expansion, arithmetic substituion,
+command substitution, and process substitution.
If the shell option
.B nocasematch
is enabled, the match is performed without regard to the case
@@ -8484,7 +8490,7 @@
returns true if any of the arguments are found, false if
none are found.
.TP
-\fBulimit\fP [\fB\-SHacdflmnpstuv\fP [\fIlimit\fP]]
+\fBulimit\fP [\fB\-SHacdfilmnpqstuvx\fP [\fIlimit\fP]]
Provides control over the resources available to the shell and to
processes started by it, on systems that allow such control.
The \fB\-H\fP and \fB\-S\fP options specify that the hard or soft limit is
@@ -8523,6 +8529,9 @@
.B \-f
The maximum size of files created by the shell
.TP
+.B \-i
+The maximum number of pending signals
+.TP
.B \-l
The maximum size that may be locked into memory
.TP
@@ -8536,6 +8545,9 @@
.B \-p
The pipe size in 512-byte blocks (this may not be set)
.TP
+.B \-q
+The maximum number of bytes in POSIX message queues
+.TP
.B \-s
The maximum stack size
.TP
@@ -8547,6 +8559,9 @@
.TP
.B \-v
The maximum amount of virtual memory available to the shell
+.TP
+.B \-x
+The maximum number of file locks
.PD
.PP
If
diff -Naur bash-3.1.orig/doc/bashref.texi bash-3.1/doc/bashref.texi
--- bash-3.1.orig/doc/bashref.texi 2005-10-03 12:07:21.000000000 -0700
+++ bash-3.1/doc/bashref.texi 2006-04-19 15:58:34.000000000 -0700
@@ -961,8 +961,8 @@
(see the description of @code{shopt} in @ref{Bash Builtins})
is enabled, the match is performed without regard to the case
of alphabetic characters.
-The return value is 0 if the string matches or does not match
-the pattern, respectively, and 1 otherwise.
+The return value is 0 if the string matches (@samp{==}) or does not
+match (@samp{!=})the pattern, and 1 otherwise.
Any part of the pattern may be quoted to force it to be matched as a
string.
@@ -2598,7 +2598,7 @@
Builtin commands are necessary to implement functionality impossible
or inconvenient to obtain with separate utilities.
-This section briefly the builtins which Bash inherits from
+This section briefly describes the builtins which Bash inherits from
the Bourne Shell, as well as the builtin commands which are unique
to or have been extended in Bash.
@@ -3833,7 +3833,7 @@
@item ulimit
@btindex ulimit
@example
-ulimit [-acdflmnpstuvSH] [@var{limit}]
+ulimit [-acdfilmnpqstuvxSH] [@var{limit}]
@end example
@code{ulimit} provides control over the resources available to processes
started by the shell, on systems that allow such control. If an
@@ -3857,6 +3857,9 @@
@item -f
The maximum size of files created by the shell.
+@item -i
+The maximum number of pending signals.
+
@item -l
The maximum size that may be locked into memory.
@@ -3869,6 +3872,9 @@
@item -p
The pipe buffer size.
+@item -q
+The maximum number of bytes in POSIX message queues.
+
@item -s
The maximum stack size.
@@ -3881,6 +3887,9 @@
@item -v
The maximum amount of virtual memory available to the process.
+@item -x
+The maximum number of file locks.
+
@end table
If @var{limit} is given, it is the new value of the specified resource;
@@ -4089,8 +4098,8 @@
Print shell input lines as they are read.
@item -x
-Print a trace of simple commands, \fBfor\fP commands, \fBcase\fP
-commands, \fBselect\fP commands, and arithmetic \fBfor\fP commands
+Print a trace of simple commands, @code{for} commands, @code{case}
+commands, @code{select} commands, and arithmetic @code{for} commands
and their arguments or associated word lists after they are
expanded and before they are executed. The value of the @env{PS4}
variable is expanded and the resultant value is printed before
diff -Naur bash-3.1.orig/doc/version.texi bash-3.1/doc/version.texi
--- bash-3.1.orig/doc/version.texi 2005-09-20 11:52:56.000000000 -0700
+++ bash-3.1/doc/version.texi 2006-04-19 15:58:34.000000000 -0700
@@ -2,9 +2,9 @@
Copyright (C) 1988-2005 Free Software Foundation, Inc.
@end ignore
-@set LASTCHANGE Mon Sep 5 11:47:04 EDT 2005
+@set LASTCHANGE Fri Dec 30 10:50:51 EST 2005
-@set EDITION 3.1-beta1
-@set VERSION 3.1-beta1
-@set UPDATED 5 September 2005
-@set UPDATED-MONTH September 2005
+@set EDITION 3.1
+@set VERSION 3.1
+@set UPDATED 30 December 2005
+@set UPDATED-MONTH December 2005
diff -Naur bash-3.1.orig/jobs.c bash-3.1/jobs.c
--- bash-3.1.orig/jobs.c 2005-11-11 20:13:27.000000000 -0800
+++ bash-3.1/jobs.c 2006-04-19 15:58:34.000000000 -0700
@@ -619,8 +619,11 @@
* once in the parent and once in each child. This is where
* the parent gives it away.
*
+ * Don't give the terminal away if this shell is an asynchronous
+ * subshell.
+ *
*/
- if (job_control && newjob->pgrp)
+ if (job_control && newjob->pgrp && (subshell_environment&SUBSHELL_ASYNC) == 0)
give_terminal_to (newjob->pgrp, 0);
}
}
@@ -844,9 +847,10 @@
realloc_jobs_list ()
{
sigset_t set, oset;
- int nsize, i, j;
+ int nsize, i, j, ncur, nprev;
JOB **nlist;
+ ncur = nprev = NO_JOB;
nsize = ((js.j_njobs + JOB_SLOTS - 1) / JOB_SLOTS);
nsize *= JOB_SLOTS;
i = js.j_njobs % JOB_SLOTS;
@@ -854,17 +858,51 @@
nsize += JOB_SLOTS;
BLOCK_CHILD (set, oset);
- nlist = (JOB **) xmalloc (nsize * sizeof (JOB *));
+ nlist = (js.j_jobslots == nsize) ? jobs : (JOB **) xmalloc (nsize * sizeof (JOB *));
+
for (i = j = 0; i < js.j_jobslots; i++)
if (jobs[i])
- nlist[j++] = jobs[i];
+ {
+ if (i == js.j_current)
+ ncur = j;
+ if (i == js.j_previous)
+ nprev = j;
+ nlist[j++] = jobs[i];
+ }
+
+#if defined (DEBUG)
+ itrace ("realloc_jobs_list: resize jobs list from %d to %d", js.j_jobslots, nsize);
+ itrace ("realloc_jobs_list: j_lastj changed from %d to %d", js.j_lastj, (j > 0) ? j - 1 : 0);
+ itrace ("realloc_jobs_list: j_njobs changed from %d to %d", js.j_njobs, (j > 0) ? j - 1 : 0);
+#endif
js.j_firstj = 0;
- js.j_lastj = (j > 0) ? j - 1: 0;
+ js.j_lastj = (j > 0) ? j - 1 : 0;
+ js.j_njobs = j;
js.j_jobslots = nsize;
- free (jobs);
- jobs = nlist;
+ /* Zero out remaining slots in new jobs list */
+ for ( ; j < nsize; j++)
+ nlist[j] = (JOB *)NULL;
+
+ if (jobs != nlist)
+ {
+ free (jobs);
+ jobs = nlist;
+ }
+
+ if (ncur != NO_JOB)
+ js.j_current = ncur;
+ if (nprev != NO_JOB)
+ js.j_previous = nprev;
+
+ /* Need to reset these */
+ if (js.j_current == NO_JOB || js.j_previous == NO_JOB || js.j_current > js.j_lastj || js.j_previous > js.j_lastj)
+ reset_current ();
+
+#ifdef DEBUG
+ itrace ("realloc_jobs_list: reset js.j_current (%d) and js.j_previous (%d)", js.j_current, js.j_previous);
+#endif
UNBLOCK_CHILD (oset);
}
@@ -1655,7 +1693,7 @@
In this case, we don't want to give the terminal to the
shell's process group (we could be in the middle of a
pipeline, for example). */
- if (async_p == 0 && pipeline_pgrp != shell_pgrp)
+ if (async_p == 0 && pipeline_pgrp != shell_pgrp && ((subshell_environment&SUBSHELL_ASYNC) == 0))
give_terminal_to (pipeline_pgrp, 0);
#if defined (PGRP_PIPE)
@@ -2198,7 +2236,11 @@
/* This is possibly a race condition -- should it go in stop_pipeline? */
wait_sigint_received = 0;
if (job_control == 0)
- old_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler);
+ {
+ old_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler);
+ if (old_sigint_handler == SIG_IGN)
+ set_signal_handler (SIGINT, old_sigint_handler);
+ }
termination_state = last_command_exit_value;
diff -Naur bash-3.1.orig/lib/glob/glob.c bash-3.1/lib/glob/glob.c
--- bash-3.1.orig/lib/glob/glob.c 2005-03-24 09:42:27.000000000 -0800
+++ bash-3.1/lib/glob/glob.c 2006-04-19 15:58:34.000000000 -0700
@@ -360,6 +360,7 @@
count = lose = skip = 0;
firstmalloc = 0;
+ nalloca = 0;
/* If PAT is empty, skip the loop, but return one (empty) filename. */
if (pat == 0 || *pat == '\0')
@@ -546,6 +547,8 @@
firstmalloc = 0;
tmplink = lastlink;
}
+ else
+ tmplink = 0;
free (lastlink->name);
lastlink = lastlink->next;
FREE (tmplink);
diff -Naur bash-3.1.orig/lib/glob/sm_loop.c bash-3.1/lib/glob/sm_loop.c
--- bash-3.1.orig/lib/glob/sm_loop.c 2005-10-16 18:21:04.000000000 -0700
+++ bash-3.1/lib/glob/sm_loop.c 2006-04-19 15:58:34.000000000 -0700
@@ -638,12 +638,13 @@
CHAR *psub; /* pointer to sub-pattern */
CHAR *pnext; /* pointer to next sub-pattern */
CHAR *srest; /* pointer to rest of string */
- int m1, m2;
+ int m1, m2, xflags; /* xflags = flags passed to recursive matches */
#if DEBUG_MATCHING
fprintf(stderr, "extmatch: xc = %c\n", xc);
fprintf(stderr, "extmatch: s = %s; se = %s\n", s, se);
fprintf(stderr, "extmatch: p = %s; pe = %s\n", p, pe);
+fprintf(stderr, "extmatch: flags = %d\n", flags);
#endif
prest = PATSCAN (p + (*p == L('(')), pe, 0); /* ) */
@@ -677,8 +678,12 @@
string matches the rest of the pattern. Also handle
multiple matches of the pattern. */
if (m1)
- m2 = (GMATCH (srest, se, prest, pe, flags) == 0) ||
- (s != srest && GMATCH (srest, se, p - 1, pe, flags) == 0);
+ {
+ /* if srest > s, we are not at start of string */
+ xflags = (srest > s) ? (flags & ~FNM_PERIOD) : flags;
+ m2 = (GMATCH (srest, se, prest, pe, xflags) == 0) ||
+ (s != srest && GMATCH (srest, se, p - 1, pe, xflags) == 0);
+ }
if (m1 && m2)
return (0);
}
@@ -704,8 +709,10 @@
srest = (prest == pe) ? se : s;
for ( ; srest <= se; srest++)
{
+ /* if srest > s, we are not at start of string */
+ xflags = (srest > s) ? (flags & ~FNM_PERIOD) : flags;
if (GMATCH (s, srest, psub, pnext - 1, flags) == 0 &&
- GMATCH (srest, se, prest, pe, flags) == 0)
+ GMATCH (srest, se, prest, pe, xflags) == 0)
return (0);
}
if (pnext == prest)
@@ -726,7 +733,9 @@
if (pnext == prest)
break;
}
- if (m1 == 0 && GMATCH (srest, se, prest, pe, flags) == 0)
+ /* if srest > s, we are not at start of string */
+ xflags = (srest > s) ? (flags & ~FNM_PERIOD) : flags;
+ if (m1 == 0 && GMATCH (srest, se, prest, pe, xflags) == 0)
return (0);
}
return (FNM_NOMATCH);
diff -Naur bash-3.1.orig/lib/readline/display.c bash-3.1/lib/readline/display.c
--- bash-3.1.orig/lib/readline/display.c 2005-11-30 11:05:02.000000000 -0800
+++ bash-3.1/lib/readline/display.c 2006-04-19 15:58:34.000000000 -0700
@@ -1983,11 +1983,15 @@
int pchar;
{
int len;
- char *pmt;
+ char *pmt, *p;
rl_save_prompt ();
- if (saved_local_prompt == 0)
+ /* We've saved the prompt, and can do anything with the various prompt
+ strings we need before they're restored. We want the unexpanded
+ portion of the prompt string after any final newline. */
+ p = rl_prompt ? strrchr (rl_prompt, '\n') : 0;
+ if (p == 0)
{
len = (rl_prompt && *rl_prompt) ? strlen (rl_prompt) : 0;
pmt = (char *)xmalloc (len + 2);
@@ -1998,19 +2002,17 @@
}
else
{
- len = *saved_local_prompt ? strlen (saved_local_prompt) : 0;
+ p++;
+ len = strlen (p);
pmt = (char *)xmalloc (len + 2);
if (len)
- strcpy (pmt, saved_local_prompt);
+ strcpy (pmt, p);
pmt[len] = pchar;
pmt[len+1] = '\0';
- local_prompt = savestring (pmt);
- prompt_last_invisible = saved_last_invisible;
- prompt_visible_length = saved_visible_length + 1;
- }
+ }
+ /* will be overwritten by expand_prompt, called from rl_message */
prompt_physical_chars = saved_physical_chars + 1;
-
return pmt;
}
diff -Naur bash-3.1.orig/lib/readline/readline.c bash-3.1/lib/readline/readline.c
--- bash-3.1.orig/lib/readline/readline.c 2005-07-04 19:29:35.000000000 -0700
+++ bash-3.1/lib/readline/readline.c 2006-04-19 15:58:34.000000000 -0700
@@ -282,6 +282,7 @@
{
FREE (rl_prompt);
rl_prompt = prompt ? savestring (prompt) : (char *)NULL;
+ rl_display_prompt = rl_prompt ? rl_prompt : "";
rl_visible_prompt_length = rl_expand_prompt (rl_prompt);
return 0;
diff -Naur bash-3.1.orig/lib/readline/terminal.c bash-3.1/lib/readline/terminal.c
--- bash-3.1.orig/lib/readline/terminal.c 2005-11-12 17:46:54.000000000 -0800
+++ bash-3.1/lib/readline/terminal.c 2006-04-19 15:58:34.000000000 -0700
@@ -122,7 +122,7 @@
static char *_rl_visible_bell;
/* Non-zero means the terminal can auto-wrap lines. */
-int _rl_term_autowrap;
+int _rl_term_autowrap = -1;
/* Non-zero means that this terminal has a meta key. */
static int term_has_meta;
@@ -274,6 +274,9 @@
_rl_set_screen_size (rows, cols)
int rows, cols;
{
+ if (_rl_term_autowrap == -1)
+ _rl_init_terminal_io (rl_terminal_name);
+
if (rows > 0)
_rl_screenheight = rows;
if (cols > 0)
diff -Naur bash-3.1.orig/parse.y bash-3.1/parse.y
--- bash-3.1.orig/parse.y 2005-11-11 20:14:18.000000000 -0800
+++ bash-3.1/parse.y 2006-04-19 15:58:34.000000000 -0700
@@ -2716,6 +2716,7 @@
#define P_ALLOWESC 0x02
#define P_DQUOTE 0x04
#define P_COMMAND 0x08 /* parsing a command, so look for comments */
+#define P_BACKQUOTE 0x10 /* parsing a backquoted command substitution */
static char matched_pair_error;
static char *
@@ -2725,12 +2726,12 @@
int *lenp, flags;
{
int count, ch, was_dollar, in_comment, check_comment;
- int pass_next_character, nestlen, ttranslen, start_lineno;
+ int pass_next_character, backq_backslash, nestlen, ttranslen, start_lineno;
char *ret, *nestret, *ttrans;
int retind, retsize, rflags;
count = 1;
- pass_next_character = was_dollar = in_comment = 0;
+ pass_next_character = backq_backslash = was_dollar = in_comment = 0;
check_comment = (flags & P_COMMAND) && qc != '\'' && qc != '"' && (flags & P_DQUOTE) == 0;
/* RFLAGS is the set of flags we want to pass to recursive calls. */
@@ -2742,11 +2743,8 @@
start_lineno = line_number;
while (count)
{
-#if 0
- ch = shell_getc ((qc != '\'' || (flags & P_ALLOWESC)) && pass_next_character == 0);
-#else
- ch = shell_getc (qc != '\'' && pass_next_character == 0);
-#endif
+ ch = shell_getc (qc != '\'' && pass_next_character == 0 && backq_backslash == 0);
+
if (ch == EOF)
{
free (ret);
@@ -2771,9 +2769,16 @@
continue;
}
/* Not exactly right yet */
- else if (check_comment && in_comment == 0 && ch == '#' && (retind == 0 || ret[retind-1] == '\n' || whitespace (ret[retind -1])))
+ else if MBTEST(check_comment && in_comment == 0 && ch == '#' && (retind == 0 || ret[retind-1] == '\n' || whitespace (ret[retind - 1])))
in_comment = 1;
+ /* last char was backslash inside backquoted command substitution */
+ if (backq_backslash)
+ {
+ backq_backslash = 0;
+ /* Placeholder for adding special characters */
+ }
+
if (pass_next_character) /* last char was backslash */
{
pass_next_character = 0;
@@ -2814,6 +2819,8 @@
{
if MBTEST((flags & P_ALLOWESC) && ch == '\\')
pass_next_character++;
+ else if MBTEST((flags & P_BACKQUOTE) && ch == '\\')
+ backq_backslash++;
continue;
}
@@ -2898,7 +2905,11 @@
}
else if MBTEST(qc == '`' && (ch == '"' || ch == '\'') && in_comment == 0)
{
- nestret = parse_matched_pair (0, ch, ch, &nestlen, rflags);
+ /* Add P_BACKQUOTE so backslash quotes the next character and
+ shell_getc does the right thing with \<newline>. We do this for
+ a measure of backwards compatibility -- it's not strictly the
+ right POSIX thing. */
+ nestret = parse_matched_pair (0, ch, ch, &nestlen, rflags|P_BACKQUOTE);
goto add_nestret;
}
else if MBTEST(was_dollar && (ch == '(' || ch == '{' || ch == '[')) /* ) } ] */
@@ -2907,7 +2918,7 @@
if (open == ch) /* undo previous increment */
count--;
if (ch == '(') /* ) */
- nestret = parse_matched_pair (0, '(', ')', &nestlen, rflags);
+ nestret = parse_matched_pair (0, '(', ')', &nestlen, rflags & ~P_DQUOTE);
else if (ch == '{') /* } */
nestret = parse_matched_pair (0, '{', '}', &nestlen, P_FIRSTCLOSE|rflags);
else if (ch == '[') /* ] */
@@ -3578,7 +3589,7 @@
FREE (ttok);
all_digit_token = 0;
compound_assignment = 1;
-#if 0
+#if 1
goto next_character;
#else
goto got_token; /* ksh93 seems to do this */
@@ -3695,7 +3706,9 @@
struct builtin *b;
b = builtin_address_internal (token, 0);
if (b && (b->flags & ASSIGNMENT_BUILTIN))
- parser_state |= PST_ASSIGNOK;
+ parser_state |= PST_ASSIGNOK;
+ else if (STREQ (token, "eval") || STREQ (token, "let"))
+ parser_state |= PST_ASSIGNOK;
}
yylval.word = the_word;
@@ -4686,18 +4699,21 @@
int *retlenp;
{
WORD_LIST *wl, *rl;
- int tok, orig_line_number, orig_token_size;
+ int tok, orig_line_number, orig_token_size, orig_last_token, assignok;
char *saved_token, *ret;
saved_token = token;
orig_token_size = token_buffer_size;
orig_line_number = line_number;
+ orig_last_token = last_read_token;
last_read_token = WORD; /* WORD to allow reserved words here */
token = (char *)NULL;
token_buffer_size = 0;
+ assignok = parser_state&PST_ASSIGNOK; /* XXX */
+
wl = (WORD_LIST *)NULL; /* ( */
parser_state |= PST_COMPASSIGN;
@@ -4740,7 +4756,7 @@
jump_to_top_level (DISCARD);
}
- last_read_token = WORD;
+ last_read_token = orig_last_token; /* XXX - was WORD? */
if (wl)
{
rl = REVERSE_LIST (wl, WORD_LIST *);
@@ -4752,6 +4768,10 @@
if (retlenp)
*retlenp = (ret && *ret) ? strlen (ret) : 0;
+
+ if (assignok)
+ parser_state |= PST_ASSIGNOK;
+
return ret;
}
diff -Naur bash-3.1.orig/patchlevel.h bash-3.1/patchlevel.h
--- bash-3.1.orig/patchlevel.h 2005-07-20 10:58:20.000000000 -0700
+++ bash-3.1/patchlevel.h 2006-04-19 15:59:29.000000000 -0700
@@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
-#define PATCHLEVEL 0
+#define PATCHLEVEL 17
#endif /* _PATCHLEVEL_H_ */
diff -Naur bash-3.1.orig/subst.c bash-3.1/subst.c
--- bash-3.1.orig/subst.c 2005-10-24 06:51:13.000000000 -0700
+++ bash-3.1/subst.c 2006-04-19 15:59:29.000000000 -0700
@@ -2187,7 +2187,7 @@
if (mklocal && variable_context)
{
v = find_variable (name);
- if (v == 0 || array_p (v) == 0)
+ if (v == 0 || array_p (v) == 0 || v->context != variable_context)
v = make_local_array_variable (name);
v = assign_array_var_from_string (v, value, flags);
}
@@ -2575,6 +2575,13 @@
return (expand_string_to_string_internal (string, quoted, expand_string_assignment));
}
+char *
+expand_arith_string (string, quoted)
+ char *string;
+{
+ return (expand_string_if_necessary (string, quoted, expand_string));
+}
+
#if defined (COND_COMMAND)
/* Just remove backslashes in STRING. Returns a new string. */
char *
@@ -5248,7 +5255,7 @@
else
t = (char *)0;
- temp1 = expand_string_if_necessary (substr, Q_DOUBLE_QUOTES, expand_string);
+ temp1 = expand_arith_string (substr, Q_DOUBLE_QUOTES);
*e1p = evalexp (temp1, &expok);
free (temp1);
if (expok == 0)
@@ -5293,7 +5300,7 @@
{
t++;
temp2 = savestring (t);
- temp1 = expand_string_if_necessary (temp2, Q_DOUBLE_QUOTES, expand_string);
+ temp1 = expand_arith_string (temp2, Q_DOUBLE_QUOTES);
free (temp2);
t[-1] = ':';
*e2p = evalexp (temp1, &expok);
@@ -6435,7 +6442,7 @@
temp2[t_index] = '\0';
/* Expand variables found inside the expression. */
- temp1 = expand_string_if_necessary (temp2, Q_DOUBLE_QUOTES, expand_string);
+ temp1 = expand_arith_string (temp2, Q_DOUBLE_QUOTES);
free (temp2);
arithsub:
@@ -6477,7 +6484,7 @@
zindex = t_index;
/* Do initial variable expansion. */
- temp1 = expand_string_if_necessary (temp, Q_DOUBLE_QUOTES, expand_string);
+ temp1 = expand_arith_string (temp, Q_DOUBLE_QUOTES);
goto arithsub;
@@ -6795,6 +6802,12 @@
if (temp && *temp && t_index > 0)
{
temp1 = bash_tilde_expand (temp, tflag);
+ if (temp1 && *temp1 == '~' && STREQ (temp, temp1))
+ {
+ FREE (temp);
+ FREE (temp1);
+ goto add_character; /* tilde expansion failed */
+ }
free (temp);
temp = temp1;
sindex += t_index;
diff -Naur bash-3.1.orig/subst.h bash-3.1/subst.h
--- bash-3.1.orig/subst.h 2004-11-07 12:12:28.000000000 -0800
+++ bash-3.1/subst.h 2006-04-19 15:59:29.000000000 -0700
@@ -151,6 +151,9 @@
extern char *expand_string_unsplit_to_string __P((char *, int));
extern char *expand_assignment_string_to_string __P((char *, int));
+/* Expand an arithmetic expression string */
+extern char *expand_arith_string __P((char *, int));
+
/* De-quoted quoted characters in STRING. */
extern char *dequote_string __P((char *));
diff -Naur bash-3.1.orig/variables.c bash-3.1/variables.c
--- bash-3.1.orig/variables.c 2005-11-12 18:22:37.000000000 -0800
+++ bash-3.1/variables.c 2006-04-19 15:58:34.000000000 -0700
@@ -860,9 +860,11 @@
{
char val[INT_STRLEN_BOUND(int) + 1], *v;
+#if defined (READLINE)
/* If we are currently assigning to LINES or COLUMNS, don't do anything. */
if (winsize_assignment)
return;
+#endif
v = inttostr (lines, val, sizeof (val));
bind_variable ("LINES", v, 0);

35
bash/bash-3.1-doc.patch Normal file
View File

@ -0,0 +1,35 @@
diff -Nru bash-3.0/doc/Makefile.in bash-3.0-new/doc/Makefile.in
--- bash-3.0/doc/Makefile.in 2004-07-27 14:57:48.000000000 +0200
+++ bash-3.0-new/doc/Makefile.in 2005-02-02 23:29:13.401509336 +0100
@@ -141,7 +141,7 @@
${RM} $@
-${DVIPS} $<
-all: ps info dvi text html
+all:
nodvi: ps info text html
PSFILES = bash.ps bashbug.ps article.ps builtins.ps rbash.ps
@@ -220,21 +220,9 @@
$(SHELL) $(SUPPORT_SRCDIR)/mkinstalldirs $(DESTDIR)$(htmldir) ; \
fi
-install: info installdirs bash.info
+install: installdirs
-$(INSTALL_DATA) $(srcdir)/bash.1 $(DESTDIR)$(man1dir)/bash${man1ext}
-$(INSTALL_DATA) $(srcdir)/bashbug.1 $(DESTDIR)$(man1dir)/bashbug${man1ext}
-# uncomment the next line to install the builtins man page
-# -$(INSTALL_DATA) $(srcdir)/builtins.1 $(DESTDIR)$(man1dir)/bash_builtins${man1ext}
- -$(INSTALL_DATA) $(srcdir)/bash.info $(DESTDIR)$(infodir)/bash.info
-# run install-info if it is present to update the info directory
- if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
- install-info --dir-file=$(DESTDIR)$(infodir)/dir $(DESTDIR)$(infodir)/bash.info; \
- else true; fi
-# if htmldir is set, install the html files into that directory
- -if test -n "${htmldir}" ; then \
- $(INSTALL_DATA) $(srcdir)/bash.html $(DESTDIR)$(htmldir) ; \
- $(INSTALL_DATA) $(srcdir)/bashref.html $(DESTDIR)$(htmldir) ; \
- fi
uninstall:
-$(RM) $(DESTDIR)$(man1dir)/bash${man1ext} $(DESTDIR)$(man1dir)/bashbug${man1ext}

23
bash/profile Normal file
View File

@ -0,0 +1,23 @@
#
# /etc/profile: system-wide defaults for bash(1) login shells
#
if [ "$UID" = "0" ]; then
export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/opt/bin"
else
export PATH="/bin:/usr/bin:/usr/X11R6/bin:/opt/bin"
fi
if [ ! -f ~/.inputrc ]; then
export INPUTRC="/etc/inputrc"
fi
export LESSCHARSET="latin1"
export LESS="-R"
export CHARSET="ISO-8859-1"
export PS1="\[\033[1m\]\\$ \[\033[0m\]"
export PS2="\[\033[1m\]> \[\033[0m\]"
umask 022
# End of file

8
bc/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/bc
-rwxr-xr-x root/root usr/bin/dc
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/bc.1.gz
-rw-r--r-- root/root usr/man/man1/dc.1.gz

3
bc/.md5sum Normal file
View File

@ -0,0 +1,3 @@
b19042e2bbfaa17cd45f20ebdf6706f0 bc-1.06-compile_fixes.patch
4df5b02cb0696403ef847b35aab498ba bc-1.06-fixes-1.patch
d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz

21
bc/Pkgfile Normal file
View File

@ -0,0 +1,21 @@
# Description: An arbitrary precision calculator language
# URL: http://www.gnu.org/software/bc/bc.html
# Maintainer: Per Lidén, core-ports at crux dot nu
# Depends on: ncurses, readline
name=bc
version=1.06
release=3
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz \
$name-$version-compile_fixes.patch $name-$version-fixes-1.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version-compile_fixes.patch
patch -p1 < ../$name-$version-fixes-1.patch
./configure --prefix=/usr --with-readline
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info
}

View File

@ -0,0 +1,46 @@
diff -ru bc-1.06/bc/load.c bc-1.06-new/bc/load.c
--- bc-1.06/bc/load.c 2000-09-13 20:22:38.000000000 +0200
+++ bc-1.06-new/bc/load.c 2004-05-01 14:25:08.164146592 +0200
@@ -34,7 +34,7 @@
/* Load variables. */
-program_counter load_adr;
+static program_counter load_adr;
char load_str;
char load_const;
diff -ru bc-1.06/bc/scan.l bc-1.06-new/bc/scan.l
--- bc-1.06/bc/scan.l 2000-09-13 20:25:47.000000000 +0200
+++ bc-1.06-new/bc/scan.l 2004-05-01 14:21:02.765452864 +0200
@@ -143,7 +143,6 @@
/* Definitions for readline access. */
extern FILE *rl_instream;
-_PROTOTYPE(char *readline, (char *));
/* rl_input puts upto MAX characters into BUF with the number put in
BUF placed in *RESULT. If the yy input file is the same as
diff -ru bc-1.06/configure bc-1.06-new/configure
--- bc-1.06/configure 2000-10-03 20:34:24.000000000 +0200
+++ bc-1.06-new/configure 2004-05-01 14:21:27.159744368 +0200
@@ -2245,7 +2245,7 @@
if test "$LEX" = "flex" ; then
- LEX="flex -I8"
+ LEX="flex -I"
else
if test "$bcrl" = "y" ; then
echo "configure: warning: readline works only with flex." 1>&2
diff -ru bc-1.06/lib/number.c bc-1.06-new/lib/number.c
--- bc-1.06/lib/number.c 2000-10-03 20:34:25.000000000 +0200
+++ bc-1.06-new/lib/number.c 2004-05-01 14:24:41.028271872 +0200
@@ -30,6 +30,7 @@
*************************************************************************/
#include <stdio.h>
+#include <string.h>
#include <config.h>
#include <number.h>
#include <assert.h>

27
bc/bc-1.06-fixes-1.patch Normal file
View File

@ -0,0 +1,27 @@
Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
Date: 2003-09-26
Initial Package Version: 1.06
Origin: Mandrake CVS
Description: Fixes a few typos
--- bc-1.06/lib/number.c.orig 2003-09-26 21:14:02.000000000 +0000
+++ bc-1.06/lib/number.c 2003-09-26 21:14:26.000000000 +0000
@@ -34,6 +34,7 @@
#include <number.h>
#include <assert.h>
#include <stdlib.h>
+#include <string.h>
#include <ctype.h>/* Prototypes needed for external utility routines. */
#define bc_rt_warn rt_warn
--- bc-1.06/bc/load.c.orig 2003-09-26 21:14:14.000000000 +0000
+++ bc-1.06/bc/load.c 2003-09-26 21:14:26.000000000 +0000
@@ -156,7 +156,7 @@
long label_no;
long vaf_name; /* variable, array or function number. */
long func;
- program_counter save_adr;
+ static program_counter save_adr;
/* Initialize. */
str = code;

13
bin86/.footprint Normal file
View File

@ -0,0 +1,13 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/as86
-rwxr-xr-x root/root usr/bin/as86_encap
-rwxr-xr-x root/root usr/bin/ld86
lrwxrwxrwx root/root usr/bin/nm86 -> objdump86
-rwxr-xr-x root/root usr/bin/objdump86
lrwxrwxrwx root/root usr/bin/size86 -> objdump86
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/as86.1.gz
lrwxrwxrwx root/root usr/man/man1/as86_encap.1.gz -> as86.1.gz
-rw-r--r-- root/root usr/man/man1/ld86.1.gz

1
bin86/.md5sum Normal file
View File

@ -0,0 +1 @@
9f999e38dbd6bbdd79701853c44737cb bin86-0.16.0.tar.gz

16
bin86/Pkgfile Normal file
View File

@ -0,0 +1,16 @@
# Description: 8086 assembler and loader which can generate 32-bit code for the 386+ processors
# URL: http://www.cix.co.uk/~mayday/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=bin86
version=0.16.0
release=1
source=(http://homepage.ntlworld.com/robert.debath/dev86/$name-$version.tar.gz)
build() {
cd $name-$version
make CFLAGS="$CFLAGS -D_POSIX_SOURCE" PREFIX=/usr
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/man/man1
make PREFIX=$PKG/usr install
}

8
bindutils/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/dig
-rwxr-xr-x root/root usr/bin/host
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/dig.1.gz
-rw-r--r-- root/root usr/man/man1/host.1.gz

1
bindutils/.md5sum Normal file
View File

@ -0,0 +1 @@
55e709501a7780233c36e25ccd15ece2 bind-9.3.2.tar.gz

20
bindutils/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: Bind tools
# URL: http://www.isc.org/index.pl?/sw/bind/
# Maintainer: Per Lidén, core-ports at crux dot nu
# Depends on: openssl
name=bindutils
version=9.3.2
release=1
source=(ftp://ftp.isc.org/isc/bind9/$version/bind-$version.tar.gz)
build() {
cd bind-$version
./configure --prefix=/usr
make -C lib
make -C bin/dig
install -D -m 755 bin/dig/host $PKG/usr/bin/host
install -D -m 644 bin/dig/host.1 $PKG/usr/man/man1/host.1
install -D -m 755 bin/dig/dig $PKG/usr/bin/dig
install -D -m 644 bin/dig/dig.1 $PKG/usr/man/man1/dig.1
}

71
binutils/.footprint Normal file
View File

@ -0,0 +1,71 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/addr2line
-rwxr-xr-x root/root usr/bin/ar
-rwxr-xr-x root/root usr/bin/as
-rwxr-xr-x root/root usr/bin/c++filt
-rwxr-xr-x root/root usr/bin/gprof
-rwxr-xr-x root/root usr/bin/ld
-rwxr-xr-x root/root usr/bin/nm
-rwxr-xr-x root/root usr/bin/objcopy
-rwxr-xr-x root/root usr/bin/objdump
-rwxr-xr-x root/root usr/bin/ranlib
-rwxr-xr-x root/root usr/bin/readelf
-rwxr-xr-x root/root usr/bin/size
-rwxr-xr-x root/root usr/bin/strings
-rwxr-xr-x root/root usr/bin/strip
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/ansidecl.h
-rw-r--r-- root/root usr/include/bfd.h
-rw-r--r-- root/root usr/include/bfdlink.h
-rw-r--r-- root/root usr/include/dis-asm.h
-rw-r--r-- root/root usr/include/libiberty.h
-rw-r--r-- root/root usr/include/symcat.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/ldscripts/
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.x
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xbn
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xc
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xd
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xdc
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xdw
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xn
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xr
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xs
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xsc
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xsw
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xu
-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xw
-rw-r--r-- root/root usr/lib/ldscripts/i386linux.x
-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xbn
-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xn
-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xr
-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xu
-rwxr-xr-x root/root usr/lib/libbfd-2.17.so
-rw-r--r-- root/root usr/lib/libbfd.a
-rwxr-xr-x root/root usr/lib/libbfd.la
lrwxrwxrwx root/root usr/lib/libbfd.so -> libbfd-2.17.so
-rw-r--r-- root/root usr/lib/libiberty.a
-rwxr-xr-x root/root usr/lib/libopcodes-2.17.so
-rw-r--r-- root/root usr/lib/libopcodes.a
-rwxr-xr-x root/root usr/lib/libopcodes.la
lrwxrwxrwx root/root usr/lib/libopcodes.so -> libopcodes-2.17.so
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/addr2line.1.gz
-rw-r--r-- root/root usr/man/man1/ar.1.gz
-rw-r--r-- root/root usr/man/man1/as.1.gz
-rw-r--r-- root/root usr/man/man1/c++filt.1.gz
-rw-r--r-- root/root usr/man/man1/dlltool.1.gz
-rw-r--r-- root/root usr/man/man1/gprof.1.gz
-rw-r--r-- root/root usr/man/man1/ld.1.gz
-rw-r--r-- root/root usr/man/man1/nlmconv.1.gz
-rw-r--r-- root/root usr/man/man1/nm.1.gz
-rw-r--r-- root/root usr/man/man1/objcopy.1.gz
-rw-r--r-- root/root usr/man/man1/objdump.1.gz
-rw-r--r-- root/root usr/man/man1/ranlib.1.gz
-rw-r--r-- root/root usr/man/man1/readelf.1.gz
-rw-r--r-- root/root usr/man/man1/size.1.gz
-rw-r--r-- root/root usr/man/man1/strings.1.gz
-rw-r--r-- root/root usr/man/man1/strip.1.gz
-rw-r--r-- root/root usr/man/man1/windres.1.gz

1
binutils/.md5sum Normal file
View File

@ -0,0 +1 @@
e26e2e06b6e4bf3acf1dc8688a94c0d1 binutils-2.17.tar.bz2

22
binutils/Pkgfile Normal file
View File

@ -0,0 +1,22 @@
# Description: The GNU Binutils are a collection of binary tools
# URL: http://sources.redhat.com/binutils/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=binutils
version=2.17
release=1
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build() {
mkdir build
cd build
../$name-$version/configure --prefix=/usr \
--enable-shared \
--disable-nls
make tooldir=/usr
make check
make tooldir=/usr DESTDIR=$PKG install
cp ../$name-$version/include/libiberty.h $PKG/usr/include
rm -rf $PKG/usr/info
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
}

22
bison/.footprint Normal file
View File

@ -0,0 +1,22 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/bison
-rwxr-xr-x root/root usr/bin/yacc
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/liby.a
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/bison.1.gz
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/aclocal/
-rw-r--r-- root/root usr/share/aclocal/bison-i18n.m4
drwxr-xr-x root/root usr/share/bison/
-rw-r--r-- root/root usr/share/bison/c++.m4
-rw-r--r-- root/root usr/share/bison/c.m4
-rw-r--r-- root/root usr/share/bison/glr.c
-rw-r--r-- root/root usr/share/bison/glr.cc
-rw-r--r-- root/root usr/share/bison/lalr1.cc
-rw-r--r-- root/root usr/share/bison/location.cc
drwxr-xr-x root/root usr/share/bison/m4sugar/
-rw-r--r-- root/root usr/share/bison/m4sugar/m4sugar.m4
-rw-r--r-- root/root usr/share/bison/yacc.c

1
bison/.md5sum Normal file
View File

@ -0,0 +1 @@
c18640c6ec31a169d351e3117ecce3ec bison-2.3.tar.bz2

18
bison/Pkgfile Normal file
View File

@ -0,0 +1,18 @@
# Description: The GNU Project parser generator
# URL: http://www.gnu.org/software/bison/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=bison
version=2.3
release=2
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure --prefix=/usr \
--disable-nls
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info
rm $PKG/usr/share/bison/README
}

32
bzip2/.footprint Normal file
View File

@ -0,0 +1,32 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
lrwxrwxrwx root/root usr/bin/bunzip2 -> bzip2
lrwxrwxrwx root/root usr/bin/bzcat -> bzip2
lrwxrwxrwx root/root usr/bin/bzcmp -> bzdiff
-rwxr-xr-x root/root usr/bin/bzdiff
lrwxrwxrwx root/root usr/bin/bzegrep -> bzgrep
lrwxrwxrwx root/root usr/bin/bzfgrep -> bzgrep
-rwxr-xr-x root/root usr/bin/bzgrep
-rwxr-xr-x root/root usr/bin/bzip2
-rwxr-xr-x root/root usr/bin/bzip2recover
lrwxrwxrwx root/root usr/bin/bzless -> bzmore
-rwxr-xr-x root/root usr/bin/bzmore
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/bzlib.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libbz2.a
lrwxrwxrwx root/root usr/lib/libbz2.so.1.0 -> libbz2.so.1.0.3
-rwxr-xr-x root/root usr/lib/libbz2.so.1.0.3
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
lrwxrwxrwx root/root usr/man/man1/bunzip2.1.gz -> bzip2.1.gz
lrwxrwxrwx root/root usr/man/man1/bzcat.1.gz -> bzip2.1.gz
lrwxrwxrwx root/root usr/man/man1/bzcmp.1.gz -> bzdiff.1.gz
-rw-r--r-- root/root usr/man/man1/bzdiff.1.gz
lrwxrwxrwx root/root usr/man/man1/bzegrep.1.gz -> bzgrep.1.gz
lrwxrwxrwx root/root usr/man/man1/bzfgrep.1.gz -> bzgrep.1.gz
-rw-r--r-- root/root usr/man/man1/bzgrep.1.gz
-rw-r--r-- root/root usr/man/man1/bzip2.1.gz
lrwxrwxrwx root/root usr/man/man1/bzip2recover.1.gz -> bzip2.1.gz
lrwxrwxrwx root/root usr/man/man1/bzless.1.gz -> bzmore.1.gz
-rw-r--r-- root/root usr/man/man1/bzmore.1.gz

2
bzip2/.md5sum Normal file
View File

@ -0,0 +1,2 @@
14bd083396fccc32b3cb5e9726e4fffe bzip2-1.0.3.patch
8a716bebecb6e647d2e8a29ea5d8447f bzip2-1.0.3.tar.gz

21
bzip2/Pkgfile Normal file
View File

@ -0,0 +1,21 @@
# Description: Very high-quality data compression program
# URL: http://www.bzip.org/
# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
name=bzip2
version=1.0.3
release=2
source=(http://www.bzip.org/$version/$name-$version.tar.gz \
$name-$version.patch)
build() {
cd $name-$version
patch -Np1 -i $SRC/$name-$version.patch
make
make PREFIX=$PKG/usr install
make -f Makefile-libbz2_so
make -f Makefile-libbz2_so PREFIX=$PKG/usr install
}

116
bzip2/bzip2-1.0.3.patch Normal file
View File

@ -0,0 +1,116 @@
diff -aur bzip2-1.0.3.orig/Makefile bzip2-1.0.3/Makefile
--- bzip2-1.0.3.orig/Makefile 2005-02-17 12:28:24.000000000 +0100
+++ bzip2-1.0.3/Makefile 2006-04-06 18:23:10.000000000 +0200
@@ -8,7 +8,7 @@
LDFLAGS=
BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS=-Wall -Winline -O -g $(BIGFILES)
+CFLAGS+=-Wall -Winline $(BIGFILES)
# Where you want it installed when you do 'make install'
PREFIX=/usr
@@ -57,43 +57,36 @@
@cat words3
install: bzip2 bzip2recover
- if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
- if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
- if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
- cp -f bzip2 $(PREFIX)/bin/bzip2
- cp -f bzip2 $(PREFIX)/bin/bunzip2
- cp -f bzip2 $(PREFIX)/bin/bzcat
- cp -f bzip2recover $(PREFIX)/bin/bzip2recover
- chmod a+x $(PREFIX)/bin/bzip2
- chmod a+x $(PREFIX)/bin/bunzip2
- chmod a+x $(PREFIX)/bin/bzcat
- chmod a+x $(PREFIX)/bin/bzip2recover
- cp -f bzip2.1 $(PREFIX)/man/man1
- chmod a+r $(PREFIX)/man/man1/bzip2.1
- cp -f bzlib.h $(PREFIX)/include
- chmod a+r $(PREFIX)/include/bzlib.h
- cp -f libbz2.a $(PREFIX)/lib
- chmod a+r $(PREFIX)/lib/libbz2.a
- cp -f bzgrep $(PREFIX)/bin/bzgrep
- ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
- ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
- chmod a+x $(PREFIX)/bin/bzgrep
- cp -f bzmore $(PREFIX)/bin/bzmore
- ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
- chmod a+x $(PREFIX)/bin/bzmore
- cp -f bzdiff $(PREFIX)/bin/bzdiff
- ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
- chmod a+x $(PREFIX)/bin/bzdiff
- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
- chmod a+r $(PREFIX)/man/man1/bzgrep.1
- chmod a+r $(PREFIX)/man/man1/bzmore.1
- chmod a+r $(PREFIX)/man/man1/bzdiff.1
- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
+ install -d $(PREFIX)/bin \
+ $(PREFIX)/lib \
+ $(PREFIX)/man/man1 \
+ $(PREFIX)/include
+ install -m 755 bzip2 \
+ bzip2recover \
+ bzgrep \
+ bzmore \
+ bzdiff \
+ $(PREFIX)/bin
+ install -m 644 bzlib.h $(PREFIX)/include
+ install -m 644 libbz2.a $(PREFIX)/lib
+ ln -sf bzip2 $(PREFIX)/bin/bunzip2
+ ln -sf bzip2 $(PREFIX)/bin/bzcat
+ ln -sf bzgrep $(PREFIX)/bin/bzegrep
+ ln -sf bzgrep $(PREFIX)/bin/bzfgrep
+ ln -sf bzmore $(PREFIX)/bin/bzless
+ ln -sf bzdiff $(PREFIX)/bin/bzcmp
+ install -m 644 bzip2.1 \
+ bzgrep.1 \
+ bzmore.1 \
+ bzdiff.1 \
+ $(PREFIX)/man/man1
+ ln -sf bzgrep.1 $(PREFIX)/man/man1/bzegrep.1
+ ln -sf bzgrep.1 $(PREFIX)/man/man1/bzfgrep.1
+ ln -sf bzmore.1 $(PREFIX)/man/man1/bzless.1
+ ln -sf bzdiff.1 $(PREFIX)/man/man1/bzcmp.1
+ ln -sf bzip2.1 $(PREFIX)/man/man1/bunzip2.1
+ ln -sf bzip2.1 $(PREFIX)/man/man1/bzcat.1
+ ln -sf bzip2.1 $(PREFIX)/man/man1/bzip2recover.1
clean:
rm -f *.o libbz2.a bzip2 bzip2recover \
diff -aur bzip2-1.0.3.orig/Makefile-libbz2_so bzip2-1.0.3/Makefile-libbz2_so
--- bzip2-1.0.3.orig/Makefile-libbz2_so 2004-10-17 19:32:13.000000000 +0200
+++ bzip2-1.0.3/Makefile-libbz2_so 2006-04-06 18:10:21.000000000 +0200
@@ -9,7 +9,7 @@
SHELL=/bin/sh
CC=gcc
BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS=-fpic -fPIC -Wall -Winline -O -g
+CFLAGS+=-fpic -fPIC -Wall -Winline
OBJS= blocksort.o \
huffman.o \
@@ -22,11 +22,14 @@
all: $(OBJS)
$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.3 $(OBJS)
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.3
- rm -f libbz2.so.1.0
- ln -s libbz2.so.1.0.3 libbz2.so.1.0
+
+install:
+ install -d $(PREFIX)/lib
+ install -m 755 libbz2.so.1.0.3 $(PREFIX)/lib
+ ln -sf libbz2.so.1.0.3 $(PREFIX)/lib/libbz2.so.1.0
clean:
- rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared
+ rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 bzip2-shared
blocksort.o: blocksort.c
$(CC) $(CFLAGS) -c blocksort.c

186
coreutils/.footprint Normal file
View File

@ -0,0 +1,186 @@
drwxr-xr-x root/root bin/
-rwxr-xr-x root/root bin/cat
-rwxr-xr-x root/root bin/chgrp
-rwxr-xr-x root/root bin/chmod
-rwxr-xr-x root/root bin/chown
-rwxr-xr-x root/root bin/cp
-rwxr-xr-x root/root bin/date
-rwxr-xr-x root/root bin/dd
-rwxr-xr-x root/root bin/df
-rwxr-xr-x root/root bin/echo
-rwxr-xr-x root/root bin/false
-rwxr-xr-x root/root bin/ln
-rwxr-xr-x root/root bin/ls
-rwxr-xr-x root/root bin/mkdir
-rwxr-xr-x root/root bin/mknod
-rwxr-xr-x root/root bin/mv
-rwxr-xr-x root/root bin/pwd
-rwxr-xr-x root/root bin/readlink
-rwxr-xr-x root/root bin/rm
-rwxr-xr-x root/root bin/rmdir
-rwxr-xr-x root/root bin/stty
-rwxr-xr-x root/root bin/sync
-rwxr-xr-x root/root bin/touch
-rwxr-xr-x root/root bin/true
-rwxr-xr-x root/root bin/uname
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/[
-rwxr-xr-x root/root usr/bin/base64
-rwxr-xr-x root/root usr/bin/basename
-rwxr-xr-x root/root usr/bin/chroot
-rwxr-xr-x root/root usr/bin/cksum
-rwxr-xr-x root/root usr/bin/comm
-rwxr-xr-x root/root usr/bin/csplit
-rwxr-xr-x root/root usr/bin/cut
-rwxr-xr-x root/root usr/bin/dir
-rwxr-xr-x root/root usr/bin/dircolors
-rwxr-xr-x root/root usr/bin/dirname
-rwxr-xr-x root/root usr/bin/du
-rwxr-xr-x root/root usr/bin/env
-rwxr-xr-x root/root usr/bin/expand
-rwxr-xr-x root/root usr/bin/expr
-rwxr-xr-x root/root usr/bin/factor
-rwxr-xr-x root/root usr/bin/fmt
-rwxr-xr-x root/root usr/bin/fold
-rwxr-xr-x root/root usr/bin/head
-rwxr-xr-x root/root usr/bin/hostid
-rwxr-xr-x root/root usr/bin/id
-rwxr-xr-x root/root usr/bin/install
-rwxr-xr-x root/root usr/bin/join
-rwxr-xr-x root/root usr/bin/link
-rwxr-xr-x root/root usr/bin/logname
-rwxr-xr-x root/root usr/bin/md5sum
-rwxr-xr-x root/root usr/bin/mkfifo
-rwxr-xr-x root/root usr/bin/nice
-rwxr-xr-x root/root usr/bin/nl
-rwxr-xr-x root/root usr/bin/nohup
-rwxr-xr-x root/root usr/bin/od
-rwxr-xr-x root/root usr/bin/paste
-rwxr-xr-x root/root usr/bin/pathchk
-rwxr-xr-x root/root usr/bin/pinky
-rwxr-xr-x root/root usr/bin/pr
-rwxr-xr-x root/root usr/bin/printenv
-rwxr-xr-x root/root usr/bin/printf
-rwxr-xr-x root/root usr/bin/ptx
-rwxr-xr-x root/root usr/bin/seq
-rwxr-xr-x root/root usr/bin/sha1sum
-rwxr-xr-x root/root usr/bin/sha224sum
-rwxr-xr-x root/root usr/bin/sha256sum
-rwxr-xr-x root/root usr/bin/sha384sum
-rwxr-xr-x root/root usr/bin/sha512sum
-rwxr-xr-x root/root usr/bin/shred
-rwxr-xr-x root/root usr/bin/shuf
-rwxr-xr-x root/root usr/bin/sleep
-rwxr-xr-x root/root usr/bin/sort
-rwxr-xr-x root/root usr/bin/split
-rwxr-xr-x root/root usr/bin/stat
-rwxr-xr-x root/root usr/bin/sum
-rwxr-xr-x root/root usr/bin/tac
-rwxr-xr-x root/root usr/bin/tail
-rwxr-xr-x root/root usr/bin/tee
-rwxr-xr-x root/root usr/bin/test
-rwxr-xr-x root/root usr/bin/tr
-rwxr-xr-x root/root usr/bin/tsort
-rwxr-xr-x root/root usr/bin/tty
-rwxr-xr-x root/root usr/bin/unexpand
-rwxr-xr-x root/root usr/bin/uniq
-rwxr-xr-x root/root usr/bin/unlink
-rwxr-xr-x root/root usr/bin/users
-rwxr-xr-x root/root usr/bin/vdir
-rwxr-xr-x root/root usr/bin/wc
-rwxr-xr-x root/root usr/bin/who
-rwxr-xr-x root/root usr/bin/whoami
-rwxr-xr-x root/root usr/bin/yes
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/base64.1.gz
-rw-r--r-- root/root usr/man/man1/basename.1.gz
-rw-r--r-- root/root usr/man/man1/cat.1.gz
-rw-r--r-- root/root usr/man/man1/chgrp.1.gz
-rw-r--r-- root/root usr/man/man1/chmod.1.gz
-rw-r--r-- root/root usr/man/man1/chown.1.gz
-rw-r--r-- root/root usr/man/man1/chroot.1.gz
-rw-r--r-- root/root usr/man/man1/cksum.1.gz
-rw-r--r-- root/root usr/man/man1/comm.1.gz
-rw-r--r-- root/root usr/man/man1/cp.1.gz
-rw-r--r-- root/root usr/man/man1/csplit.1.gz
-rw-r--r-- root/root usr/man/man1/cut.1.gz
-rw-r--r-- root/root usr/man/man1/date.1.gz
-rw-r--r-- root/root usr/man/man1/dd.1.gz
-rw-r--r-- root/root usr/man/man1/df.1.gz
-rw-r--r-- root/root usr/man/man1/dir.1.gz
-rw-r--r-- root/root usr/man/man1/dircolors.1.gz
-rw-r--r-- root/root usr/man/man1/dirname.1.gz
-rw-r--r-- root/root usr/man/man1/du.1.gz
-rw-r--r-- root/root usr/man/man1/echo.1.gz
-rw-r--r-- root/root usr/man/man1/env.1.gz
-rw-r--r-- root/root usr/man/man1/expand.1.gz
-rw-r--r-- root/root usr/man/man1/expr.1.gz
-rw-r--r-- root/root usr/man/man1/factor.1.gz
-rw-r--r-- root/root usr/man/man1/false.1.gz
-rw-r--r-- root/root usr/man/man1/fmt.1.gz
-rw-r--r-- root/root usr/man/man1/fold.1.gz
-rw-r--r-- root/root usr/man/man1/head.1.gz
-rw-r--r-- root/root usr/man/man1/hostid.1.gz
-rw-r--r-- root/root usr/man/man1/id.1.gz
-rw-r--r-- root/root usr/man/man1/install.1.gz
-rw-r--r-- root/root usr/man/man1/join.1.gz
-rw-r--r-- root/root usr/man/man1/link.1.gz
-rw-r--r-- root/root usr/man/man1/ln.1.gz
-rw-r--r-- root/root usr/man/man1/logname.1.gz
-rw-r--r-- root/root usr/man/man1/ls.1.gz
-rw-r--r-- root/root usr/man/man1/md5sum.1.gz
-rw-r--r-- root/root usr/man/man1/mkdir.1.gz
-rw-r--r-- root/root usr/man/man1/mkfifo.1.gz
-rw-r--r-- root/root usr/man/man1/mknod.1.gz
-rw-r--r-- root/root usr/man/man1/mv.1.gz
-rw-r--r-- root/root usr/man/man1/nice.1.gz
-rw-r--r-- root/root usr/man/man1/nl.1.gz
-rw-r--r-- root/root usr/man/man1/nohup.1.gz
-rw-r--r-- root/root usr/man/man1/od.1.gz
-rw-r--r-- root/root usr/man/man1/paste.1.gz
-rw-r--r-- root/root usr/man/man1/pathchk.1.gz
-rw-r--r-- root/root usr/man/man1/pinky.1.gz
-rw-r--r-- root/root usr/man/man1/pr.1.gz
-rw-r--r-- root/root usr/man/man1/printenv.1.gz
-rw-r--r-- root/root usr/man/man1/printf.1.gz
-rw-r--r-- root/root usr/man/man1/ptx.1.gz
-rw-r--r-- root/root usr/man/man1/pwd.1.gz
-rw-r--r-- root/root usr/man/man1/readlink.1.gz
-rw-r--r-- root/root usr/man/man1/rm.1.gz
-rw-r--r-- root/root usr/man/man1/rmdir.1.gz
-rw-r--r-- root/root usr/man/man1/seq.1.gz
-rw-r--r-- root/root usr/man/man1/sha1sum.1.gz
-rw-r--r-- root/root usr/man/man1/sha224sum.1.gz
-rw-r--r-- root/root usr/man/man1/sha256sum.1.gz
-rw-r--r-- root/root usr/man/man1/sha384sum.1.gz
-rw-r--r-- root/root usr/man/man1/sha512sum.1.gz
-rw-r--r-- root/root usr/man/man1/shred.1.gz
-rw-r--r-- root/root usr/man/man1/shuf.1.gz
-rw-r--r-- root/root usr/man/man1/sleep.1.gz
-rw-r--r-- root/root usr/man/man1/sort.1.gz
-rw-r--r-- root/root usr/man/man1/split.1.gz
-rw-r--r-- root/root usr/man/man1/stat.1.gz
-rw-r--r-- root/root usr/man/man1/stty.1.gz
-rw-r--r-- root/root usr/man/man1/sum.1.gz
-rw-r--r-- root/root usr/man/man1/sync.1.gz
-rw-r--r-- root/root usr/man/man1/tac.1.gz
-rw-r--r-- root/root usr/man/man1/tail.1.gz
-rw-r--r-- root/root usr/man/man1/tee.1.gz
-rw-r--r-- root/root usr/man/man1/test.1.gz
-rw-r--r-- root/root usr/man/man1/touch.1.gz
-rw-r--r-- root/root usr/man/man1/tr.1.gz
-rw-r--r-- root/root usr/man/man1/true.1.gz
-rw-r--r-- root/root usr/man/man1/tsort.1.gz
-rw-r--r-- root/root usr/man/man1/tty.1.gz
-rw-r--r-- root/root usr/man/man1/uname.1.gz
-rw-r--r-- root/root usr/man/man1/unexpand.1.gz
-rw-r--r-- root/root usr/man/man1/uniq.1.gz
-rw-r--r-- root/root usr/man/man1/unlink.1.gz
-rw-r--r-- root/root usr/man/man1/users.1.gz
-rw-r--r-- root/root usr/man/man1/vdir.1.gz
-rw-r--r-- root/root usr/man/man1/wc.1.gz
-rw-r--r-- root/root usr/man/man1/who.1.gz
-rw-r--r-- root/root usr/man/man1/whoami.1.gz
-rw-r--r-- root/root usr/man/man1/yes.1.gz

2
coreutils/.md5sum Normal file
View File

@ -0,0 +1,2 @@
065e9662c5aa2694693910ca9e6c9ec8 coreutils-6.3.tar.bz2
c05b735710fbd62239588c07084852a0 coreutils-uname.patch

30
coreutils/Pkgfile Normal file
View File

@ -0,0 +1,30 @@
# Description: A collection of core GNU utilities
# URL: http://www.gnu.org/software/coreutils/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=coreutils
version=6.3
release=1
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.bz2 \
$name-uname.patch)
build() {
cd $name-$version
patch -p1 < ../$name-uname.patch
DEFAULT_POSIX2_VERSION=199209 \
./configure --prefix=/usr \
--mandir=/usr/man \
--disable-nls \
--disable-assert
make
make DESTDIR=$PKG install
mkdir $PKG/bin
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir} $PKG/bin
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
rm $PKG/usr/bin/hostname $PKG/usr/man/man1/hostname.1 # conflicts with net-tools
rm $PKG/usr/bin/uptime $PKG/usr/man/man1/uptime.1 # conflicts with procps
rm $PKG/usr/bin/su $PKG/usr/man/man1/su.1 # conflicts with shadow
rm $PKG/usr/bin/groups $PKG/usr/man/man1/groups.1 # conflicts with shadow
rm $PKG/usr/bin/kill $PKG/usr/man/man1/kill.1 # conflicts with util-linux
rm -rf $PKG/usr/share $PKG/usr/lib
}

View File

@ -0,0 +1,182 @@
Submitted By: Matthew Burgess <matthew at linuxfromscratch dot org>
Date: 2005-10-23
Initial Package Version: 5.92
Upstream Status: pending
Origin: Scot McPherson
Description: Fix the output of uname once and for all.
$ uname -m # This always worked.
i686
$ uname -i # Used to report 'unknown'.
i386
$ uname -p # Likewise.
athlon-4
diff -Naur coreutils-5.92.orig/src/uname.c coreutils-5.92/src/uname.c
--- coreutils-5.92.orig/src/uname.c 2005-09-15 20:34:42.000000000 +0000
+++ coreutils-5.92/src/uname.c 2005-10-23 10:14:06.000000000 +0000
@@ -29,6 +29,12 @@
# include <sys/systeminfo.h>
#endif
+#ifdef linux
+#define cpuid(in,a,b,c,d)\
+ asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in));
+int has_sse( void );
+#endif
+
#if HAVE_SYS_SYSCTL_H
# if HAVE_SYS_PARAM_H
# include <sys/param.h> /* needed for OpenBSD 3.0 */
@@ -256,6 +262,96 @@
if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor))
element = processor;
}
+#else
+ {
+ struct utsname u;
+ uname (&u);
+ element = u.machine;
+#ifdef linux
+/******************************************************************************
+ *
+ * Hello, major hack. I shouldn't have to do this. struct utsname should
+ * have another element with this info in it. There's probably a struct
+ * somewhere that has this info, I just don't know where it is.
+ *
+ *****************************************************************************/
+
+ if( !strcmp( element, "i586" ) || !strcmp( element, "i686" ) ) {
+ int eax, ebx, ecx, edx, unused;
+ int model, family, sse;
+
+ cpuid(0,unused,ebx,ecx,edx);
+ cpuid(1,eax,unused,unused,unused);
+ model = (eax >> 4) & 0xf;
+ family = (eax >> 8) & 0xf;
+
+ switch(ebx) {
+ case 0x756e6547: // Intel
+ switch( family ) {
+ case 5: // Pentium
+ if( model <= 3 )
+ element="pentium";
+ if( model > 3 )
+ element="pentium-mmx";
+ break;
+ case 6: // PentiumPro - Pentium III
+ if( model == 1 ) // Pentium Pro
+ element="pentiumpro";
+ if( ( model == 3 ) || ( model == 5 ) ||
+ ( model == 6 ) ) // Pentium II
+ element="pentium2";
+ if( ( model == 7 ) || ( model == 8 ) ||
+ ( model == 10 ) || ( model == 11 ) ) // These are all Pentium III
+ element="pentium3";
+ break;
+ case 15: // Pentium4
+ element="pentium4";
+ break;
+ default:
+ break;
+ } // end switch( family )
+ break;
+ case 0x68747541: // AMD
+ switch(family) {
+ case 5:
+ if( ( model == 0 ) || ( model == 1 ) ||
+ ( model == 2 ) || ( model == 3 ) ) // K5
+ element="i586";
+ if( ( model == 6 ) || ( model == 7 ) ) // K6
+ element="k6";
+ if( model == 8 ) // K6-2
+ element="k6-2";
+ if( model == 9 ) // K6-3
+ element="k6-3";
+ break;
+ case 6:
+ if( model <= 4 )
+ element="athlon";
+ if( model > 4 ) {
+ sse = has_sse();
+ if( sse == 0 )
+ element="athlon";
+ if( sse == 1 )
+ element="athlon-4";
+ }
+ break;
+ case 15:
+ element="athlon-4";
+ break;
+ default:
+ break;
+ } // end switch( family )
+ break;
+ case 0x69727943: // Cyrix
+ element="i386"; // who knows what cyrix supports, lets be safe
+ break;
+ default:
+ break;
+ } // end switch(ebx)
+ }
+
+#endif
+ }
#endif
#ifdef UNAME_PROCESSOR
if (element == unknown)
@@ -293,7 +389,7 @@
if (toprint & PRINT_HARDWARE_PLATFORM)
{
- char const *element = unknown;
+ char *element = unknown;
#if HAVE_SYSINFO && defined SI_PLATFORM
{
static char hardware_platform[257];
@@ -301,6 +397,15 @@
hardware_platform, sizeof hardware_platform))
element = hardware_platform;
}
+#else
+ {
+ struct utsname u;
+ uname (&u);
+ element = u.machine;
+ if (strlen (element) == 4 && element[0] == 'i' && element[2] == '8'
+ && element[3] == '6')
+ element[1] = '3';
+ }
#endif
#ifdef UNAME_HARDWARE_PLATFORM
if (element == unknown)
@@ -323,3 +428,29 @@
exit (EXIT_SUCCESS);
}
+
+#ifdef linux
+
+/******************************************************************************
+ *
+ * int has_sse( void )
+ * Checks Athlon CPU's to see if they support SSE.
+ *
+ *****************************************************************************/
+
+int has_sse( void )
+{
+ unsigned long edx, unused;
+ int sse;
+ cpuid(1,unused,unused,unused,edx);
+ // I think, I need this tested on a Duron with SSE
+ // and one without it.
+ sse = edx & 0x2000000;
+ if( sse == 0 ) {
+ return 0;
+ } else {
+ return 1;
+ }
+
+}
+#endif

6
cpio/.footprint Normal file
View File

@ -0,0 +1,6 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/cpio
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/cpio.1.gz

2
cpio/.md5sum Normal file
View File

@ -0,0 +1,2 @@
7fcfa25a86d655602da8b0bc293d46a5 cpio-2.6.patch
25e0e8725bc60ed3460c9cde92752674 cpio-2.6.tar.bz2

21
cpio/Pkgfile Normal file
View File

@ -0,0 +1,21 @@
# Description: A tool to copy files into or out of a cpio or tar archive
# URL: http://www.gnu.org/software/cpio/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=cpio
version=2.6
release=4
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \
$name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.patch
./configure --prefix=/usr \
--mandir=/usr/man
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/{share,info,libexec} \
$PKG/usr/bin/mt \
$PKG/usr/man/man1/mt.1
}

77
cpio/cpio-2.6.patch Normal file
View File

@ -0,0 +1,77 @@
Description: Fix for not allowing a malicious cpio file to extract to an arbitrary directory. Added missing checks for setlocale() and lstat(). The latter fixes a symlink handling problem.
Origin: http://lwn.net/Articles/143418/
http://www.xs4all.nl/~hanb/software/crux/han/cpio/cpio.patch
http://www.linuxfromscratch.org/blfs/view/6.1/general/cpio.html
Upstream status: Unknown (2005-07-21)
diff -aur cpio-2.6.orig/configure.ac cpio-2.6/configure.ac
--- cpio-2.6.orig/configure.ac 2004-12-20 11:46:30.000000000 +0100
+++ cpio-2.6/configure.ac 2006-05-20 20:13:46.832935750 +0200
@@ -92,10 +92,10 @@
AC_CONFIG_LINKS(src/fnmatch.h:headers/fnmatch.h)
fi
-AC_CHECK_FUNCS(lchown endpwent endgrent)
+AC_CHECK_FUNCS(setlocale lstat lchown endpwent endgrent)
AC_FUNC_VPRINTF
AC_FUNC_ALLOCA
-AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"])
+dnl AC_CHECK_LIB(nsl, gethostname, [LIBS="$LIBS -lnsl"])
AC_CHECK_LIB(socket, setsockopt, [LIBS="$LIBS -lsocket"])
# Gettext.
diff -Nru cpio-2.6/src/copyout.c cpio-2.6-new/src/copyout.c
--- cpio-2.6/src/copyout.c 2004-10-14 11:14:03.000000000 +0200
+++ cpio-2.6-new/src/copyout.c 2005-07-21 16:07:42.000000000 +0200
@@ -305,7 +305,7 @@
else
magic_string = "070701";
sprintf (ascii_header,
- "%6s%08lx%08lx%08lx%08lx%08lx%08lx%08lx%08lx%08lx%08lx%08lx%08lx%08lx",
+ "%6s%08lx%08lx%08lx%08lx%08lx%08x%08lx%08lx%08lx%08lx%08lx%08lx%08lx",
magic_string,
file_hdr->c_ino, file_hdr->c_mode, file_hdr->c_uid,
file_hdr->c_gid, file_hdr->c_nlink, file_hdr->c_mtime,
diff -Nru cpio-2.6/src/extern.h cpio-2.6-new/src/extern.h
--- cpio-2.6/src/extern.h 2004-09-08 12:49:57.000000000 +0200
+++ cpio-2.6-new/src/extern.h 2005-07-21 16:07:42.000000000 +0200
@@ -91,6 +91,7 @@
extern char input_is_seekable;
extern char output_is_seekable;
extern char *program_name;
+extern mode_t sys_umask;
extern int (*xstat) ();
extern void (*copy_function) ();
diff -Nru cpio-2.6/src/global.c cpio-2.6-new/src/global.c
--- cpio-2.6/src/global.c 2004-09-08 12:23:44.000000000 +0200
+++ cpio-2.6-new/src/global.c 2005-07-21 16:07:42.000000000 +0200
@@ -195,6 +195,9 @@
/* The name this program was run with. */
char *program_name;
+/* Debian hack to make the -d option honor the umask. */
+mode_t sys_umask;
+
/* A pointer to either lstat or stat, depending on whether
dereferencing of symlinks is done for input files. */
int (*xstat) ();
diff -Nru cpio-2.6/src/main.c cpio-2.6-new/src/main.c
--- cpio-2.6/src/main.c 2004-11-23 01:42:18.000000000 +0100
+++ cpio-2.6-new/src/main.c 2005-07-21 16:07:42.000000000 +0200
@@ -740,7 +740,6 @@
textdomain (PACKAGE);
program_name = argv[0];
- umask (0);
#ifdef __TURBOC__
_fmode = O_BINARY; /* Put stdin and stdout in binary mode. */
@@ -751,6 +750,7 @@
#endif
process_args (argc, argv);
+ sys_umask = umask (0);
initialize_buffers ();

78
curl/.footprint Normal file
View File

@ -0,0 +1,78 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/curl
-rwxr-xr-x root/root usr/bin/curl-config
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/curl/
-rw-r--r-- root/root usr/include/curl/curl.h
-rw-r--r-- root/root usr/include/curl/curlver.h
-rw-r--r-- root/root usr/include/curl/easy.h
-rw-r--r-- root/root usr/include/curl/mprintf.h
-rw-r--r-- root/root usr/include/curl/multi.h
-rw-r--r-- root/root usr/include/curl/stdcheaders.h
-rw-r--r-- root/root usr/include/curl/types.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libcurl.a
-rwxr-xr-x root/root usr/lib/libcurl.la
lrwxrwxrwx root/root usr/lib/libcurl.so -> libcurl.so.3.0.0
lrwxrwxrwx root/root usr/lib/libcurl.so.3 -> libcurl.so.3.0.0
-rwxr-xr-x root/root usr/lib/libcurl.so.3.0.0
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libcurl.pc
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/curl-config.1.gz
-rw-r--r-- root/root usr/man/man1/curl.1.gz
drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/curl_easy_cleanup.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_duphandle.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_escape.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_getinfo.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_init.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_perform.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_reset.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_setopt.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_strerror.3.gz
-rw-r--r-- root/root usr/man/man3/curl_easy_unescape.3.gz
-rw-r--r-- root/root usr/man/man3/curl_escape.3.gz
-rw-r--r-- root/root usr/man/man3/curl_formadd.3.gz
-rw-r--r-- root/root usr/man/man3/curl_formfree.3.gz
-rw-r--r-- root/root usr/man/man3/curl_formget.3.gz
-rw-r--r-- root/root usr/man/man3/curl_free.3.gz
-rw-r--r-- root/root usr/man/man3/curl_getdate.3.gz
-rw-r--r-- root/root usr/man/man3/curl_getenv.3.gz
-rw-r--r-- root/root usr/man/man3/curl_global_cleanup.3.gz
-rw-r--r-- root/root usr/man/man3/curl_global_init.3.gz
-rw-r--r-- root/root usr/man/man3/curl_global_init_mem.3.gz
-rw-r--r-- root/root usr/man/man3/curl_mprintf.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_add_handle.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_assign.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_cleanup.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_fdset.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_info_read.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_init.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_perform.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_remove_handle.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_setopt.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_socket.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_strerror.3.gz
-rw-r--r-- root/root usr/man/man3/curl_multi_timeout.3.gz
-rw-r--r-- root/root usr/man/man3/curl_share_cleanup.3.gz
-rw-r--r-- root/root usr/man/man3/curl_share_init.3.gz
-rw-r--r-- root/root usr/man/man3/curl_share_setopt.3.gz
-rw-r--r-- root/root usr/man/man3/curl_share_strerror.3.gz
-rw-r--r-- root/root usr/man/man3/curl_slist_append.3.gz
-rw-r--r-- root/root usr/man/man3/curl_slist_free_all.3.gz
-rw-r--r-- root/root usr/man/man3/curl_strequal.3.gz
-rw-r--r-- root/root usr/man/man3/curl_unescape.3.gz
-rw-r--r-- root/root usr/man/man3/curl_version.3.gz
-rw-r--r-- root/root usr/man/man3/curl_version_info.3.gz
-rw-r--r-- root/root usr/man/man3/libcurl-easy.3.gz
-rw-r--r-- root/root usr/man/man3/libcurl-errors.3.gz
-rw-r--r-- root/root usr/man/man3/libcurl-multi.3.gz
-rw-r--r-- root/root usr/man/man3/libcurl-share.3.gz
-rw-r--r-- root/root usr/man/man3/libcurl-tutorial.3.gz
-rw-r--r-- root/root usr/man/man3/libcurl.3.gz
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/curl/
-rw-r--r-- root/root usr/share/curl/curl-ca-bundle.crt

1
curl/.md5sum Normal file
View File

@ -0,0 +1 @@
594142c7d53bbdd988e8cef6354eeeff curl-7.15.5.tar.bz2

19
curl/Pkgfile Normal file
View File

@ -0,0 +1,19 @@
# Description: A tool for transfering files with URL syntax
# Maintainer: Johannes Winkelmann, jw at tks6 dot net
# URL: http://curl.haxx.se
# Depends: openssl
name=curl
version=7.15.5
release=1
source=(http://curl.haxx.se/download/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure --prefix=/usr \
--enable-ipv6 \
--mandir=/usr/man
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info
}

30
db/.footprint Normal file
View File

@ -0,0 +1,30 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/db_archive
-rwxr-xr-x root/root usr/bin/db_checkpoint
-rwxr-xr-x root/root usr/bin/db_deadlock
-rwxr-xr-x root/root usr/bin/db_dump
-rwxr-xr-x root/root usr/bin/db_hotbackup
-rwxr-xr-x root/root usr/bin/db_load
-rwxr-xr-x root/root usr/bin/db_printlog
-rwxr-xr-x root/root usr/bin/db_recover
-rwxr-xr-x root/root usr/bin/db_stat
-rwxr-xr-x root/root usr/bin/db_upgrade
-rwxr-xr-x root/root usr/bin/db_verify
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/db.h
-rw-r--r-- root/root usr/include/db_185.h
-rw-r--r-- root/root usr/include/db_cxx.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libdb-4.4.a
-rw-r--r-- root/root usr/lib/libdb-4.4.la
-rwxr-xr-x root/root usr/lib/libdb-4.4.so
lrwxrwxrwx root/root usr/lib/libdb-4.so -> libdb-4.4.so
-rw-r--r-- root/root usr/lib/libdb.a
lrwxrwxrwx root/root usr/lib/libdb.so -> libdb-4.4.so
-rw-r--r-- root/root usr/lib/libdb_cxx-4.4.a
-rw-r--r-- root/root usr/lib/libdb_cxx-4.4.la
-rwxr-xr-x root/root usr/lib/libdb_cxx-4.4.so
lrwxrwxrwx root/root usr/lib/libdb_cxx-4.so -> libdb_cxx-4.4.so
-rw-r--r-- root/root usr/lib/libdb_cxx.a
lrwxrwxrwx root/root usr/lib/libdb_cxx.so -> libdb_cxx-4.4.so

5
db/.md5sum Normal file
View File

@ -0,0 +1,5 @@
d84dff288a19186b136b0daf7067ade3 db-4.4.20.tar.gz
66584d621355df055b6e05b4a02e9c3e patch.4.4.20.1
85df93a0867f6cace3501671cdeb6ed1 patch.4.4.20.2
88ee91889ebf5498b22b2e7bed945d41 patch.4.4.20.3
c2ef7b3e59460c35950fab5f2faa3fc0 patch.4.4.20.4

25
db/Pkgfile Normal file
View File

@ -0,0 +1,25 @@
# Description: Berkeley DB
# URL: http://www.sleepycat.com/products/db.shtml
# Maintainer: Per Lidén, core-ports at crux dot nu
name=db
version=4.4.20
release=2
source=(http://download.oracle.com/berkeley-db/$name-$version.tar.gz \
http://www.oracle.com/technology/products/berkeley-db/db/update/4.4.20/patch.4.4.20.{1,2,3,4})
build() {
cd $name-$version
cat $SRC/patch.4.4.20.{1,2,3,4} | patch -p0
cd build_unix
LDFLAGS="-lpthread" \
../dist/configure --prefix=/usr \
--enable-compat185 \
--enable-shared \
--enable-static \
--enable-cxx
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/docs
chmod -R +w $PKG
}

26
dcron/.footprint Normal file
View File

@ -0,0 +1,26 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/cron/
drwxr-xr-x root/root etc/cron/daily/
drwxr-xr-x root/root etc/cron/monthly/
drwxr-xr-x root/root etc/cron/weekly/
lrwxrwxrwx root/root etc/crontab -> ../var/spool/cron/crontabs/root
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/crond
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwsr-xr-x root/root usr/bin/crontab
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/crontab.1.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/crond.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/crond
-rwxr-xr-x root/root usr/sbin/runjobs
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/log/
-rw-r--r-- root/root var/log/cron (EMPTY)
drwxr-xr-x root/root var/spool/
drwxr-xr-x root/root var/spool/cron/
drwx------ root/root var/spool/cron/crontabs/
-rw------- root/root var/spool/cron/crontabs/root

5
dcron/.md5sum Normal file
View File

@ -0,0 +1,5 @@
3540f192c0d50dbc566211ac7052f39e crond
3e71eb70863bea6491bf4b3ac291a7b0 crontab
d0d819a48773b4f3f9f2f8322ca64097 dcron-2.3.3.patch
537cda2dff7dfaf87660fee91b2cf78f dcron-2.3.3.tar.gz
d80b27b1b9532890136c14d30e2a0d2b runjobs

23
dcron/Pkgfile Normal file
View File

@ -0,0 +1,23 @@
# Description: Multi-user cron daemon
# URL: http://freshmeat.net/projects/dcron/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=dcron
version=2.3.3
release=10
source=(http://www.ibiblio.org/pub/linux/system/daemons/cron/$name-$version.tar.gz \
crontab runjobs crond $name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.patch
make
make DESTDIR=$PKG install
mkdir -p $PKG/var/{spool,log} $PKG/etc/cron/{daily,weekly,monthly}
install -D -m 600 ../crontab $PKG/var/spool/cron/crontabs/root
install -D -m 755 ../crond $PKG/etc/rc.d/crond
install -D -m 755 ../runjobs $PKG/usr/sbin/runjobs
chmod 0700 $PKG/var/spool/cron/crontabs
ln -s ../var/spool/cron/crontabs/root $PKG/etc/crontab
touch $PKG/var/log/cron
}

23
dcron/crond Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# /etc/rc.d/crond: start/stop cron daemon
#
case $1 in
start)
/usr/sbin/crond &> /var/log/cron
;;
stop)
killall -q /usr/sbin/crond
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file

11
dcron/crontab Normal file
View File

@ -0,0 +1,11 @@
#
# /etc/crontab: crond(8) configuration
#
# The format of this file:
# Min Hour Day Month DayOfWeek Command
00 20 * * * /usr/sbin/runjobs /etc/cron/daily
05 20 * * mon /usr/sbin/runjobs /etc/cron/weekly
10 20 1 * * /usr/sbin/runjobs /etc/cron/monthly
# End of file

91
dcron/dcron-2.3.3.patch Normal file
View File

@ -0,0 +1,91 @@
diff -ru dcron-2.3.3/Makefile dcron-2.3.3-new/Makefile
--- dcron-2.3.3/Makefile Fri Sep 5 21:42:44 1997
+++ dcron-2.3.3-new/Makefile Thu Aug 9 22:23:34 2001
@@ -1,8 +1,9 @@
# Makefile for dillon's cron and crontab
#
+DESTDIR =
CC = gcc
-CFLAGS = -O2 -Wall -Wstrict-prototypes
+CFLAGS += -Wall -Wstrict-prototypes
LIB =
SRCS = main.c subs.c database.c job.c
OBJS = main.o subs.o database.o job.o
@@ -13,12 +14,10 @@
all: ${PROTOS} crond crontab
crond: ${OBJS}
- ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB}
- strip crond
+ ${CC} ${CFLAGS} -o crond ${OBJS} ${LIB} ${LDFLAGS}
crontab: ${D_OBJS}
- ${CC} ${CFLAGS} -o crontab ${D_OBJS}
- strip crontab
+ ${CC} ${CFLAGS} -o crontab ${D_OBJS} ${LDFLAGS}
protos.h: ${SRCS} ${D_SRCS}
fgrep -h Prototype ${SRCS} ${D_SRCS} >protos.h
@@ -30,10 +29,10 @@
rm -f *.o dcron.tgz $(PROTOS)
install: crond crontab
- install -o root -g root -m 0755 crond /usr/sbin
- install -o root -g root -m 4755 crontab /usr/bin
- install -o root -g root crontab.1 /usr/man/man1
- install -o root -g root crond.8 /usr/man/man8
+ install -o root -g root -m 0755 -D crond $(DESTDIR)/usr/sbin/crond
+ install -o root -g root -m 4755 -D crontab $(DESTDIR)/usr/bin/crontab
+ install -o root -g root -m 0644 -D crontab.1 $(DESTDIR)/usr/man/man1/crontab.1
+ install -o root -g root -m 0644 -D crond.8 $(DESTDIR)/usr/man/man8/crond.8
tar: cleano
(cd ..; tar cvf - dcron | gzip -9 >dcron.tgz.tmp)
diff -ru dcron-2.3.3/defs.h dcron-2.3.3-new/defs.h
--- dcron-2.3.3/defs.h Fri Sep 5 21:44:32 1997
+++ dcron-2.3.3-new/defs.h Thu Aug 9 22:23:53 2001
@@ -35,7 +35,7 @@
#define OPEN_MAX 256
#endif
#ifndef SENDMAIL
-#define SENDMAIL "/usr/lib/sendmail"
+#define SENDMAIL "/usr/sbin/sendmail"
#endif
#ifndef SENDMAIL_ARGS
#define SENDMAIL_ARGS "-t", "-oem", "-i"
diff -ru dcron-2.3.3/subs.c dcron-2.3.3-new/subs.c
--- dcron-2.3.3/subs.c Mon Feb 16 20:35:10 1998
+++ dcron-2.3.3-new/subs.c Thu Aug 9 22:23:34 2001
@@ -15,7 +15,7 @@
Prototype int ChangeUser(const char *user, short dochdir);
Prototype void vlog(int level, int fd, const char *ctl, va_list va);
Prototype int slog(char *buf, size_t sz, const char *ctl, va_list va, short useDate);
-Prototype char *strdup(const char *);
+/*Prototype char *strdup(const char *);*/
void
log9(const char *ctl, ...)
@@ -80,7 +80,7 @@
buf[0] = 0;
if (useDate)
- strftime(buf, 128, "%d-%b-%y %H:%M ", tp);
+ strftime(buf, 128, "%d-%b-%Y %H:%M ", tp);
vsnprintf(buf + strlen(buf), sz - strlen(buf), ctl, va);
return(strlen(buf));
}
@@ -131,6 +131,7 @@
return(pas->pw_uid);
}
+/*
char *
strdup(const char *str)
{
@@ -140,4 +141,4 @@
strcpy(ptr, str);
return(ptr);
}
-
+*/

19
dcron/runjobs Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
#
# /usr/sbin/runjobs: run all executables in specified directory
#
if [ "$1" = "" ]; then
echo "usage: $0 <dir>"
exit 1
fi
cd $1 || exit 1
for file in ./*; do
if [ -f $file ] && [ -x $file ]; then
nice -n 19 $file
fi
done
# End of file

8
dhcpcd/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/dhcpc/
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/dhcpcd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/dhcpcd.8.gz

2
dhcpcd/.md5sum Normal file
View File

@ -0,0 +1,2 @@
29459aa3d9eac62b2df14b9ecb0d9eb8 dhcpcd-1.3.22-pl4.patch
dd627a121e43835bead3ffef5b1a72fd dhcpcd-1.3.22-pl4.tar.gz

17
dhcpcd/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# Description: An RFC2131-, RFC2132-, and RFC1541-compliant DHCP client daemon
# URL: http://www.phystech.com/download/dhcpcd.html
# Maintainer: Per Lidén, core-ports at crux dot nu
name=dhcpcd
version=1.3.22-pl4
release=2
source=(ftp://ftp.phystech.com/pub/$name-$version.tar.gz \
$name-$version.patch)
build () {
cd $name-$version
patch -p1 < ../$name-$version.patch
./configure --prefix=/
make
make DESTDIR=$PKG install
}

View File

@ -0,0 +1,53 @@
diff -ru dhcpcd-1.3.22-pl4/dhcpcd.c dhcpcd-1.3.22-pl4-new/dhcpcd.c
--- dhcpcd-1.3.22-pl4/dhcpcd.c 2003-01-01 02:26:32.000000000 +0100
+++ dhcpcd-1.3.22-pl4-new/dhcpcd.c 2003-01-12 22:06:34.000000000 +0100
@@ -88,7 +88,7 @@
{
int o;
char pidfile[64];
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
o=open(pidfile,O_RDONLY);
if ( o == -1 ) return;
close(o);
diff -ru dhcpcd-1.3.22-pl4/pathnames.h dhcpcd-1.3.22-pl4-new/pathnames.h
--- dhcpcd-1.3.22-pl4/pathnames.h 2002-09-29 17:55:31.000000000 +0200
+++ dhcpcd-1.3.22-pl4-new/pathnames.h 2003-01-12 22:05:40.000000000 +0100
@@ -37,6 +37,7 @@
#define NIS_CONF "/etc/config/yp.conf"
#define NTP_CONF "/etc/config/ntp.conf"
#else
+#define PID_DIR "/var/run"
#define CONFIG_DIR "/etc/dhcpc"
#define RESOLV_CONF "/etc/resolv.conf"
#define NIS_CONF "/etc/yp.conf"
diff -ru dhcpcd-1.3.22-pl4/signals.c dhcpcd-1.3.22-pl4-new/signals.c
--- dhcpcd-1.3.22-pl4/signals.c 2002-01-20 23:51:46.000000000 +0100
+++ dhcpcd-1.3.22-pl4-new/signals.c 2003-01-12 22:07:10.000000000 +0100
@@ -44,7 +44,7 @@
FILE *fp;
pid_t pid;
char pidfile[64];
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
fp=fopen(pidfile,"r");
if ( fp == NULL ) goto ntrn;
fscanf(fp,"%u",&pid);
@@ -63,7 +63,7 @@
{
FILE *fp;
char pidfile[64];
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
fp=fopen(pidfile,"w");
if ( fp == NULL )
{
@@ -77,7 +77,7 @@
void deletePidFile()
{
char pidfile[64];
- snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt);
+ snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,PID_DIR,IfNameExt);
unlink(pidfile);
}
/*****************************************************************************/

12
diffutils/.footprint Normal file
View File

@ -0,0 +1,12 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/cmp
-rwxr-xr-x root/root usr/bin/diff
-rwxr-xr-x root/root usr/bin/diff3
-rwxr-xr-x root/root usr/bin/sdiff
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/cmp.1.gz
-rw-r--r-- root/root usr/man/man1/diff.1.gz
-rw-r--r-- root/root usr/man/man1/diff3.1.gz
-rw-r--r-- root/root usr/man/man1/sdiff.1.gz

1
diffutils/.md5sum Normal file
View File

@ -0,0 +1 @@
71f9c5ae19b60608f6c7f162da86a428 diffutils-2.8.1.tar.gz

16
diffutils/Pkgfile Normal file
View File

@ -0,0 +1,16 @@
# Description: Package with the GNU diff, diff3, sdiff, and cmp utilities
# URL: http://www.gnu.org/software/diffutils/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=diffutils
version=2.8.1
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make prefix=$PKG/usr install
rm -rf $PKG/usr/info
}

131
e2fsprogs/.footprint Normal file
View File

@ -0,0 +1,131 @@
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/mke2fs.conf
drwxr-xr-x root/root lib/
lrwxrwxrwx root/root lib/libblkid.so.1 -> libblkid.so.1.0
-rwxr-xr-x root/root lib/libblkid.so.1.0
lrwxrwxrwx root/root lib/libcom_err.so.2 -> libcom_err.so.2.1
-rwxr-xr-x root/root lib/libcom_err.so.2.1
lrwxrwxrwx root/root lib/libe2p.so.2 -> libe2p.so.2.3
-rwxr-xr-x root/root lib/libe2p.so.2.3
lrwxrwxrwx root/root lib/libext2fs.so.2 -> libext2fs.so.2.4
-rwxr-xr-x root/root lib/libext2fs.so.2.4
lrwxrwxrwx root/root lib/libss.so.2 -> libss.so.2.0
-rwxr-xr-x root/root lib/libss.so.2.0
lrwxrwxrwx root/root lib/libuuid.so.1 -> libuuid.so.1.2
-rwxr-xr-x root/root lib/libuuid.so.1.2
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/badblocks
-rwxr-xr-x root/root sbin/blkid
-rwxr-xr-x root/root sbin/dumpe2fs
-rwxr-xr-x root/root sbin/e2fsck
lrwxrwxrwx root/root sbin/e2label -> tune2fs
lrwxrwxrwx root/root sbin/findfs -> tune2fs
-rwxr-xr-x root/root sbin/fsck
lrwxrwxrwx root/root sbin/fsck.ext2 -> e2fsck
lrwxrwxrwx root/root sbin/fsck.ext3 -> e2fsck
-rwxr-xr-x root/root sbin/logsave
-rwxr-xr-x root/root sbin/mke2fs
lrwxrwxrwx root/root sbin/mkfs.ext2 -> mke2fs
lrwxrwxrwx root/root sbin/mkfs.ext3 -> mke2fs
-rwxr-xr-x root/root sbin/resize2fs
-rwxr-xr-x root/root sbin/tune2fs
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/chattr
-rwxr-xr-x root/root usr/bin/compile_et
-rwxr-xr-x root/root usr/bin/lsattr
-rwxr-xr-x root/root usr/bin/mk_cmds
-rwxr-xr-x root/root usr/bin/uuidgen
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/blkid/
-rw-r--r-- root/root usr/include/blkid/blkid.h
-rw-r--r-- root/root usr/include/blkid/blkid_types.h
drwxr-xr-x root/root usr/include/e2p/
-rw-r--r-- root/root usr/include/e2p/e2p.h
drwxr-xr-x root/root usr/include/et/
-rw-r--r-- root/root usr/include/et/com_err.h
drwxr-xr-x root/root usr/include/ext2fs/
-rw-r--r-- root/root usr/include/ext2fs/bitops.h
-rw-r--r-- root/root usr/include/ext2fs/ext2_err.h
-rw-r--r-- root/root usr/include/ext2fs/ext2_ext_attr.h
-rw-r--r-- root/root usr/include/ext2fs/ext2_fs.h
-rw-r--r-- root/root usr/include/ext2fs/ext2_io.h
-rw-r--r-- root/root usr/include/ext2fs/ext2_types.h
-rw-r--r-- root/root usr/include/ext2fs/ext2fs.h
drwxr-xr-x root/root usr/include/ss/
-rw-r--r-- root/root usr/include/ss/ss.h
-rw-r--r-- root/root usr/include/ss/ss_err.h
drwxr-xr-x root/root usr/include/uuid/
-rw-r--r-- root/root usr/include/uuid/uuid.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libblkid.a
lrwxrwxrwx root/root usr/lib/libblkid.so -> /lib/libblkid.so.1
-rw-r--r-- root/root usr/lib/libcom_err.a
lrwxrwxrwx root/root usr/lib/libcom_err.so -> /lib/libcom_err.so.2
-rw-r--r-- root/root usr/lib/libe2p.a
lrwxrwxrwx root/root usr/lib/libe2p.so -> /lib/libe2p.so.2
-rw-r--r-- root/root usr/lib/libext2fs.a
lrwxrwxrwx root/root usr/lib/libext2fs.so -> /lib/libext2fs.so.2
-rw-r--r-- root/root usr/lib/libss.a
lrwxrwxrwx root/root usr/lib/libss.so -> /lib/libss.so.2
-rw-r--r-- root/root usr/lib/libuuid.a
lrwxrwxrwx root/root usr/lib/libuuid.so -> /lib/libuuid.so.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/blkid.pc
-rw-r--r-- root/root usr/lib/pkgconfig/com_err.pc
-rw-r--r-- root/root usr/lib/pkgconfig/e2p.pc
-rw-r--r-- root/root usr/lib/pkgconfig/ext2fs.pc
-rw-r--r-- root/root usr/lib/pkgconfig/ss.pc
-rw-r--r-- root/root usr/lib/pkgconfig/uuid.pc
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/chattr.1.gz
-rw-r--r-- root/root usr/man/man1/compile_et.1.gz
-rw-r--r-- root/root usr/man/man1/lsattr.1.gz
-rw-r--r-- root/root usr/man/man1/mk_cmds.1.gz
-rw-r--r-- root/root usr/man/man1/uuidgen.1.gz
drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/com_err.3.gz
-rw-r--r-- root/root usr/man/man3/libblkid.3.gz
-rw-r--r-- root/root usr/man/man3/uuid.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_clear.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_compare.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_copy.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_generate.3.gz
lrwxrwxrwx root/root usr/man/man3/uuid_generate_random.3.gz -> uuid_generate.3.gz
lrwxrwxrwx root/root usr/man/man3/uuid_generate_time.3.gz -> uuid_generate.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_is_null.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_parse.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_time.3.gz
-rw-r--r-- root/root usr/man/man3/uuid_unparse.3.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/e2fsck.conf.5.gz
-rw-r--r-- root/root usr/man/man5/mke2fs.conf.5.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/badblocks.8.gz
-rw-r--r-- root/root usr/man/man8/blkid.8.gz
-rw-r--r-- root/root usr/man/man8/dumpe2fs.8.gz
-rw-r--r-- root/root usr/man/man8/e2fsck.8.gz
-rw-r--r-- root/root usr/man/man8/e2label.8.gz
-rw-r--r-- root/root usr/man/man8/filefrag.8.gz
-rw-r--r-- root/root usr/man/man8/findfs.8.gz
-rw-r--r-- root/root usr/man/man8/fsck.8.gz
lrwxrwxrwx root/root usr/man/man8/fsck.ext2.8.gz -> e2fsck.8.gz
lrwxrwxrwx root/root usr/man/man8/fsck.ext3.8.gz -> e2fsck.8.gz
-rw-r--r-- root/root usr/man/man8/logsave.8.gz
-rw-r--r-- root/root usr/man/man8/mke2fs.8.gz
lrwxrwxrwx root/root usr/man/man8/mkfs.ext2.8.gz -> mke2fs.8.gz
lrwxrwxrwx root/root usr/man/man8/mkfs.ext3.8.gz -> mke2fs.8.gz
-rw-r--r-- root/root usr/man/man8/mklost+found.8.gz
-rw-r--r-- root/root usr/man/man8/resize2fs.8.gz
-rw-r--r-- root/root usr/man/man8/tune2fs.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/filefrag
-rwxr-xr-x root/root usr/sbin/mklost+found
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/et/
-rw-r--r-- root/root usr/share/et/et_c.awk
-rw-r--r-- root/root usr/share/et/et_h.awk
drwxr-xr-x root/root usr/share/ss/
-rw-r--r-- root/root usr/share/ss/ct_c.awk
-rw-r--r-- root/root usr/share/ss/ct_c.sed

2
e2fsprogs/.md5sum Normal file
View File

@ -0,0 +1,2 @@
06f7806782e357797fad1d34b7ced0c6 e2fsprogs-1.39.tar.gz
c4364cbf604bdc4e5773e551409d8478 e2fsprogs-symlink.patch

28
e2fsprogs/Pkgfile Normal file
View File

@ -0,0 +1,28 @@
# Description: Ext2 Filesystem Utilities
# URL: http://e2fsprogs.sourceforge.net/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=e2fsprogs
version=1.39
release=1
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz \
$name-symlink.patch)
build() {
cd $name-$version
patch -p1 < ../$name-symlink.patch
mkdir build
cd build
../configure --prefix=/usr \
--with-root-prefix= \
--enable-elf-shlibs \
--disable-debugfs \
--disable-imager \
--disable-e2initrd-helper \
--disable-evms \
--disable-nls
make
make DESTDIR=$PKG install install-libs
rm -rf $PKG/usr/info
chmod +w -R $PKG
}

View File

@ -0,0 +1,81 @@
diff -Nru e2fsprogs-1.39.orig/e2fsck/Makefile.in e2fsprogs-1.39/e2fsck/Makefile.in
--- e2fsprogs-1.39.orig/e2fsck/Makefile.in 2006-06-17 10:57:49.000000000 +0200
+++ e2fsprogs-1.39/e2fsck/Makefile.in 2006-06-17 10:58:08.000000000 +0200
@@ -182,10 +182,10 @@
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(root_sbindir)/$$i; \
done
@echo " LINK $(root_sbindir)/fsck.ext2"
- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
+ @$(LN_S) -f e2fsck \
$(DESTDIR)$(root_sbindir)/fsck.ext2
@echo " LINK $(root_sbindir)/fsck.ext3"
- @$(LN) -f $(DESTDIR)$(root_sbindir)/e2fsck \
+ @$(LN_S) -f e2fsck \
$(DESTDIR)$(root_sbindir)/fsck.ext3
@for i in $(MANPAGES); do \
for j in $(COMPRESS_EXT); do \
@@ -202,10 +202,10 @@
$(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
done
@echo " LINK $(man8dir)/fsck.ext2.8"
- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
+ @$(LN_S) -f e2fsck.8 \
$(DESTDIR)$(man8dir)/fsck.ext2.8
@echo " LINK $(man8dir)/fsck.ext3.8"
- @$(LN) -f $(DESTDIR)$(man8dir)/e2fsck.8 \
+ @$(LN_S) -f e2fsck.8 \
$(DESTDIR)$(man8dir)/fsck.ext3.8
install-strip: install
diff -Nru e2fsprogs-1.39.orig/lib/uuid/Makefile.in e2fsprogs-1.39/lib/uuid/Makefile.in
--- e2fsprogs-1.39.orig/lib/uuid/Makefile.in 2006-06-17 10:57:49.000000000 +0200
+++ e2fsprogs-1.39/lib/uuid/Makefile.in 2006-06-17 10:58:08.000000000 +0200
@@ -146,9 +146,9 @@
@$(RM) -f $(DESTDIR)$(man3dir)/uuid_generate_random.3.gz \
$(DESTDIR)$(man3dir)/uuid_generate_time.3.gz
@echo " LINK $(man3dir)/uuid_generate_random.3"
- @$(LN) -f $(DESTDIR)$(man3dir)/uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_random.3
+ @$(LN_S) -f uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_random.3
@echo " LINK $(man3dir)/uuid_generate_time.3"
- @$(LN) -f $(DESTDIR)$(man3dir)/uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_time.3
+ @$(LN_S) -f uuid_generate.3 $(DESTDIR)$(man3dir)/uuid_generate_time.3
@echo " INSTALL_DATA $(libdir)/pkgconfig/uuid.pc"
@$(INSTALL_DATA) uuid.pc $(DESTDIR)$(libdir)/pkgconfig/uuid.pc
diff -Nru e2fsprogs-1.39.orig/misc/Makefile.in e2fsprogs-1.39/misc/Makefile.in
--- e2fsprogs-1.39.orig/misc/Makefile.in 2006-06-17 10:57:49.000000000 +0200
+++ e2fsprogs-1.39/misc/Makefile.in 2006-06-17 10:58:08.000000000 +0200
@@ -240,16 +240,16 @@
$(INSTALL_PROGRAM) $$i $(DESTDIR)$(sbindir)/$$i; \
done
@echo " LINK $(root_sbindir)/mkfs.ext2"
- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
+ @$(LN_S) -f mke2fs \
$(DESTDIR)$(root_sbindir)/mkfs.ext2
@echo " LINK $(root_sbindir)/mkfs.ext3"
- @$(LN) -f $(DESTDIR)$(root_sbindir)/mke2fs \
+ @$(LN_S) -f mke2fs \
$(DESTDIR)$(root_sbindir)/mkfs.ext3
@echo " LINK $(root_sbindir)/e2label"
- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
+ @$(LN_S) -f tune2fs \
$(DESTDIR)$(root_sbindir)/e2label
@echo " LINK $(root_sbindir)/findfs"
- @$(LN) -f $(DESTDIR)$(root_sbindir)/tune2fs \
+ @$(LN_S) -f tune2fs \
$(DESTDIR)$(root_sbindir)/findfs
@for i in $(UPROGS); do \
echo " INSTALL $(bindir)/$$i"; \
@@ -269,10 +269,10 @@
@$(RM) -f $(DESTDIR)$(man8dir)/mkfs.ext2.8.gz \
$(DESTDIR)$(man8dir)/mkfs.ext3.8.gz
@echo " LINK mkfs.ext2.8"
- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
+ @$(LN_S) -f mke2fs.8 \
$(DESTDIR)$(man8dir)/mkfs.ext2.8
@echo " LINK mkfs.ext3.8"
- @$(LN) -f $(DESTDIR)$(man8dir)/mke2fs.8 \
+ @$(LN_S) -f mke2fs.8 \
$(DESTDIR)$(man8dir)/mkfs.ext3.8
@for i in $(UMANPAGES); do \
for j in $(COMPRESS_EXT); do \

8
ed/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root bin/
-rwxr-xr-x root/root bin/ed
lrwxrwxrwx root/root bin/red -> ed
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/ed.1.gz
lrwxrwxrwx root/root usr/man/man1/red.1.gz -> ed.1.gz

2
ed/.md5sum Normal file
View File

@ -0,0 +1,2 @@
869cc429fd71bcb5ab0b316c36863020 ed-0.2.patch
ddd57463774cae9b50e70cd51221281b ed-0.2.tar.gz

18
ed/Pkgfile Normal file
View File

@ -0,0 +1,18 @@
# Description: An 8-bit clean, POSIX-compliant line editor
# URL: http://www.gnu.org/software/ed/ed.html
# Maintainer: Per Lidén, core-ports at crux dot nu
name=ed
version=0.2
release=2
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz $name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.patch
./configure --prefix=/usr
make
make prefix=$PKG/usr install
mv $PKG/usr/bin $PKG
rm -rf $PKG/usr/info
}

51
ed/ed-0.2.patch Normal file
View File

@ -0,0 +1,51 @@
--- ed-0.2/buf.c.chmou Sat Nov 19 13:37:59 1994
+++ ed-0.2/buf.c Mon Nov 27 11:46:54 2000
@@ -194,21 +194,17 @@
extern int newline_added;
-char sfn[15] = ""; /* scratch file name */
-
/* open_sbuf: open scratch file */
int
open_sbuf ()
{
- char *mktemp ();
int u;
isbinary = newline_added = 0;
u = umask(077);
- strcpy (sfn, "/tmp/ed.XXXXXX");
- if (mktemp (sfn) == NULL || (sfp = fopen (sfn, "w+")) == NULL)
+ if ((sfp = tmpfile()) == NULL)
{
- fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
+ fprintf (stderr, "%s\n", strerror (errno));
sprintf (errmsg, "Cannot open temp file");
umask(u);
return ERR;
@@ -226,14 +222,14 @@
{
if (fclose (sfp) < 0)
{
- fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
+ fprintf (stderr, "Cannot close temp file: %s\n", strerror (errno));
sprintf (errmsg, "Cannot close temp file");
return ERR;
}
sfp = NULL;
- unlink (sfn);
}
sfseek = seek_write = 0;
+
return 0;
}
@@ -246,7 +242,6 @@
if (sfp)
{
fclose (sfp);
- unlink (sfn);
}
exit (n);
}

15
expat/.footprint Normal file
View File

@ -0,0 +1,15 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/xmlwf
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/expat.h
-rw-r--r-- root/root usr/include/expat_external.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libexpat.a
-rwxr-xr-x root/root usr/lib/libexpat.la
lrwxrwxrwx root/root usr/lib/libexpat.so -> libexpat.so.0.5.0
lrwxrwxrwx root/root usr/lib/libexpat.so.0 -> libexpat.so.0.5.0
-rwxr-xr-x root/root usr/lib/libexpat.so.0.5.0
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/xmlwf.1.gz

1
expat/.md5sum Normal file
View File

@ -0,0 +1 @@
aff487543845a82fe262e6e2922b4c8e expat-1.95.8.tar.gz

15
expat/Pkgfile Normal file
View File

@ -0,0 +1,15 @@
# Description: A fast, non-validating, stream-oriented XML parsing library
# URL: http://expat.sourceforge.net/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=expat
version=1.95.8
release=1
source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr
make
make prefix=$PKG/usr install
}

24
file/.footprint Normal file
View File

@ -0,0 +1,24 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/file
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/magic.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libmagic.a
-rwxr-xr-x root/root usr/lib/libmagic.la
lrwxrwxrwx root/root usr/lib/libmagic.so -> libmagic.so.1.0.0
lrwxrwxrwx root/root usr/lib/libmagic.so.1 -> libmagic.so.1.0.0
-rwxr-xr-x root/root usr/lib/libmagic.so.1.0.0
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/file.1.gz
drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/libmagic.3.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/magic.5.gz
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/file/
-rw-r--r-- root/root usr/share/file/magic
-rw-r--r-- root/root usr/share/file/magic.mgc
-rw-r--r-- root/root usr/share/file/magic.mime
-rw-r--r-- root/root usr/share/file/magic.mime.mgc

1
file/.md5sum Normal file
View File

@ -0,0 +1 @@
50919c65e0181423d66bb25d7fe7b0fd file-4.17.tar.gz

18
file/Pkgfile Normal file
View File

@ -0,0 +1,18 @@
# Description: File type identification utility
# URL: ftp://ftp.fu-berlin.de/unix/tools/file/
# Maintainer: Per Lidén, core-ports at crux dot nu
# Packager: Per Lidén, per at fukt dot bth dot se
# Depends on: zlib
name=file
version=4.17
release=1
source=(ftp://ftp.astron.com/pub/file/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr --enable-fsect-man5
make
make DESTDIR=$PKG install
rmdir $PKG/usr/man/man4
}

60
filesystem/.footprint Normal file
View File

@ -0,0 +1,60 @@
drwxr-xr-x root/root bin/
drwxr-xr-x root/root boot/
drwxr-xr-x root/root dev/
crw------- root/root dev/console (5, 1)
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/fstab
-rw-r--r-- root/root etc/group
-rw-r--r-- root/root etc/issue
-rw-r--r-- root/root etc/mime.types
-rw-r--r-- root/root etc/motd (EMPTY)
-rw-r--r-- root/root etc/mtab (EMPTY)
-rw-r--r-- root/root etc/passwd
-rw-r--r-- root/root etc/securetty
-rw-r----- root/root etc/shadow
-rw-r--r-- root/root etc/shells
drwxr-xr-x root/root home/
drwxr-xr-x root/root lib/
drwxr-xr-x root/root lib/modules/
drwxr-xr-x root/root mnt/
drwxr-xr-x root/root opt/
drwxr-xr-x root/root opt/bin/
drwxr-xr-x root/root proc/
drwxr-x--- root/root root/
drwxr-xr-x root/root sbin/
drwxr-xr-x root/root sys/
drwxrwxrwt root/root tmp/
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/crux
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
drwxr-xr-x root/root usr/man/man2/
drwxr-xr-x root/root usr/man/man3/
drwxr-xr-x root/root usr/man/man4/
drwxr-xr-x root/root usr/man/man5/
drwxr-xr-x root/root usr/man/man6/
drwxr-xr-x root/root usr/man/man7/
drwxr-xr-x root/root usr/man/man8/
drwxr-xr-x root/root usr/sbin/
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/src/
lrwxrwxrwx root/root usr/var -> ../var
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/cache/
drwxr-xr-x root/root var/empty/
drwxr-xr-x root/root var/ftp/
drwxr-xr-x root/root var/lib/
drwxr-xr-x root/root var/lib/pkg/
drwxrwxrwt root/root var/lock/
drwxr-xr-x root/root var/log/
drwxr-xr-x root/root var/log/old/
lrwxrwxrwx root/root var/mail -> spool/mail
drwxr-xr-x root/root var/run/
-rw-r--r-- root/root var/run/utmp (EMPTY)
drwxr-xr-x root/root var/spool/
drwxrwxrwt root/root var/spool/mail/
drwxrwxrwt root/root var/tmp/
drwxr-xr-x root/root var/www/

9
filesystem/.md5sum Normal file
View File

@ -0,0 +1,9 @@
0ddfec662cbd2cc3b53f61cb9a5a72a0 fstab
3ebcb005449f69c2ef58fd54b23125ba group
6cef6f5ab23244460cdf13c98e68b010 issue
346ede8d637940e2898cd29c56a37d30 mime.types
d41d8cd98f00b204e9800998ecf8427e motd
aa183b009b52291616573c8071db792a passwd
4faaa4e1ba24038f8638a0cae5046cfb securetty
0034d284ea9b44efb750535ab3f15837 shadow
87f6864e24d24c8fb8718ed70269309c shells

80
filesystem/Pkgfile Normal file
View File

@ -0,0 +1,80 @@
# Description: Root filesystem package
# URL: http://crux.nu
# Maintainer: Per Lidén, core-ports at crux dot nu
name=filesystem
version=2.2
release=2
source=(issue motd shells group passwd shadow securetty fstab mime.types)
build() {
# Directory structure
mkdir $PKG/bin
mkdir $PKG/sbin
mkdir $PKG/boot
mkdir $PKG/dev
mkdir $PKG/proc
mkdir $PKG/sys
mkdir $PKG/etc
mkdir $PKG/tmp
mkdir $PKG/mnt
mkdir $PKG/root
mkdir $PKG/lib
mkdir $PKG/lib/modules
mkdir $PKG/opt
mkdir $PKG/opt/bin
mkdir $PKG/usr
mkdir $PKG/usr/{bin,include,lib,sbin,share,src,man}
mkdir $PKG/usr/man/man{1,2,3,4,5,6,7,8}
ln -s ../var $PKG/usr/var
mkdir $PKG/var
mkdir $PKG/var/cache
mkdir $PKG/var/lib
mkdir $PKG/var/lib/pkg
mkdir $PKG/var/lock
mkdir $PKG/var/log
mkdir $PKG/var/log/old
mkdir $PKG/var/run
touch $PKG/var/run/utmp
mkdir $PKG/var/spool
mkdir $PKG/var/spool/mail
mkdir $PKG/var/tmp
mkdir $PKG/var/ftp
mkdir $PKG/var/www
mkdir $PKG/var/empty
ln -s spool/mail $PKG/var/mail
mkdir $PKG/home
chmod 1777 $PKG/var/spool/mail
chmod 1777 $PKG/tmp
chmod 1777 $PKG/var/lock
chmod 1777 $PKG/var/tmp
chmod 0750 $PKG/root
# /dev
mknod $PKG/dev/console c 5 1
chmod 0600 $PKG/dev/console
# /etc
cp issue $PKG/etc
cp motd $PKG/etc
cp shells $PKG/etc
cp group $PKG/etc
cp passwd $PKG/etc
cp shadow $PKG/etc
cp securetty $PKG/etc
cp fstab $PKG/etc
cp mime.types $PKG/etc
touch $PKG/etc/mtab
chmod 640 $PKG/etc/shadow
# /usr/bin/crux
cat > $PKG/usr/bin/crux << EOF
#!/bin/sh
echo "CRUX version $version"
# End of file
EOF
chmod 755 $PKG/usr/bin/crux
}

25
filesystem/fstab Normal file
View File

@ -0,0 +1,25 @@
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
#/dev/#REISERFS_ROOT# / reiserfs defaults 0 0
#/dev/#EXT3FS_ROOT# / ext3 defaults 0 1
#/dev/#JFS_ROOT# / jfs defaults 1 1
#/dev/#XFS_ROOT# / xfs defaults 0 0
#/dev/#SWAP# swap swap defaults 0 0
#/dev/#REISERFS_HOME# /home reiserfs defaults 0 0
#/dev/#EXT3FS_HOME# /home ext3 defaults 0 2
#/dev/#JFS_HOME# /home jfs defaults 1 2
#/dev/#XFS_HOME# /home xfs defaults 0 0
#/dev/cdrom /cdrom iso9660 ro,user,noauto,unhide 0 0
#/dev/dvd /dvd udf ro,user,noauto,unhide 0 0
#/dev/floppy/0 /floppy vfat user,noauto,unhide 0 0
devpts /dev/pts devpts defaults 0 0
none /sys sysfs defaults 0 0
none /proc proc defaults 0 0
#tmp /tmp tmpfs defaults 0 0
#shm /dev/shm tmpfs defaults 0 0
#usb /proc/bus/usb usbfs defaults 0 0
# End of file

16
filesystem/group Normal file
View File

@ -0,0 +1,16 @@
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon
mem::8:
kmem::9:
wheel::10:root
ftp::11:
mail::12:
slocate::13:
nobody::99:
users::100:

3
filesystem/issue Normal file
View File

@ -0,0 +1,3 @@
CRUX (\n) (\l)

84
filesystem/mime.types Normal file
View File

@ -0,0 +1,84 @@
#
# /etc/mime.types: mime types
#
application/andrew-inset ez
application/excel xls
application/octet-stream bin
application/oda oda
application/pdf pdf
application/pgp pgp
application/postscript ps PS eps
application/rtf rtf
application/x-arj-compressed arj
application/x-bcpio bcpio
application/x-chess-pgn pgn
application/x-cpio cpio
application/x-csh csh
application/x-debian-package deb
application/x-msdos-program com exe bat
application/x-dvi dvi
application/x-gtar gtar
application/x-gunzip gz
application/x-hdf hdf
application/x-latex latex
application/x-mif mif
application/x-netcdf cdf nc
application/x-perl pl pm
application/x-rar-compressed rar
application/x-sh sh
application/x-shar shar
application/x-sv4cpio sv4cpio
application/x-sv4crc sv4crc
application/x-tar tar
application/x-tar-gz tgz tar.gz
application/x-tcl tcl
application/x-tex tex
application/x-texinfo texi texinfo
application/x-troff t tr roff
application/x-troff-man man
application/x-troff-me me
application/x-troff-ms ms
application/x-ustar ustar
application/x-wais-source src
application/x-zip-compressed zip
audio/basic snd
audio/midi mid midi
audio/ulaw au
audio/x-aiff aif aifc aiff
audio/x-wav wav
image/gif gif
image/ief ief
image/jpeg jpe jpeg jpg
image/png png
image/tiff tif tiff
image/x-cmu-raster ras
image/x-portable-anymap pnm
image/x-portable-bitmap pbm
image/x-portable-graymap pgm
image/x-portable-pixmap ppm
image/x-rgb rgb
image/x-xbitmap xbm
image/x-xpixmap xpm
image/x-xwindowdump xwd
text/html html htm
text/plain asc txt
text/css css
text/richtext rtx
text/tab-separated-values tsv
text/x-setext etx
video/dl dl
video/fli fli
video/gl gl
video/mpeg mp2 mpe mpeg mpg
video/quicktime mov qt
video/x-msvideo avi
video/x-sgi-movie movie
x-world/x-vrml vrm vrml wrl
# End of file

0
filesystem/motd Normal file
View File

6
filesystem/passwd Normal file
View File

@ -0,0 +1,6 @@
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
mail:x:8:12:mail:/var/spool/mail:
ftp:x:14:11:ftp:/var/ftp:
nobody:x:99:99:nobody:/:

14
filesystem/securetty Normal file
View File

@ -0,0 +1,14 @@
#
# /etc/securetty: defines which devices root can log in on
#
console
ttyS0
tty1
tty2
tty3
tty4
tty5
tty6
# End of file

6
filesystem/shadow Normal file
View File

@ -0,0 +1,6 @@
root::0::::::
bin:x:0::::::
daemon:x:0::::::
mail:x:0::::::
ftp:x:0::::::
nobody:x:0::::::

9
filesystem/shells Normal file
View File

@ -0,0 +1,9 @@
#
# /etc/shells: defines valid login shells
#
/bin/sh
/bin/bash
/bin/tcsh
# End of file

8
findutils/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/find
-rwxr-xr-x root/root usr/bin/xargs
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/find.1.gz
-rw-r--r-- root/root usr/man/man1/xargs.1.gz

1
findutils/.md5sum Normal file
View File

@ -0,0 +1 @@
f5fb3349354ee3d94fceb81dab5c71fd findutils-4.2.28.tar.gz

20
findutils/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# Description: Basic directory searching utilities
# URL: http://www.gnu.org/software/findutils/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=findutils
version=4.2.28
release=1
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr \
--disable-nls --mandir=/usr/man
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/bin/{updatedb,locate} \
$PKG/usr/man/man1/{updatedb.1,locate.1} \
$PKG/usr/man/man5 $PKG/usr/libexec \
$PKG/usr/share $PKG/usr/var
}

12
flex/.footprint Normal file
View File

@ -0,0 +1,12 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/flex
lrwxrwxrwx root/root usr/bin/lex -> flex
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/FlexLexer.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libfl.a
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/flex.1.gz
lrwxrwxrwx root/root usr/man/man1/lex.1.gz -> flex.1.gz

1
flex/.md5sum Normal file
View File

@ -0,0 +1 @@
343374a00b38d9e39d1158b71af37150 flex-2.5.33.tar.bz2

18
flex/Pkgfile Normal file
View File

@ -0,0 +1,18 @@
# Description: Fast Lexical Analyzer Generator
# URL: http://flex.sourceforge.net/
# Maintainer: Per Lidén, core-ports at crux dot nu
name=flex
version=2.5.33
release=1
source=(http://dl.sourceforge.net/sourceforge/flex/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
ln -sf flex $PKG/usr/bin/lex
ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
rm -rf $PKG/usr/info
}

8
gawk/.footprint Normal file
View File

@ -0,0 +1,8 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
lrwxrwxrwx root/root usr/bin/awk -> gawk
-rwxr-xr-x root/root usr/bin/gawk
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
lrwxrwxrwx root/root usr/man/man1/awk.1.gz -> gawk.1.gz
-rw-r--r-- root/root usr/man/man1/gawk.1.gz

1
gawk/.md5sum Normal file
View File

@ -0,0 +1 @@
4760325489479cac17fe0114b8f62f30 gawk-3.1.5.tar.gz

19
gawk/Pkgfile Normal file
View File

@ -0,0 +1,19 @@
# Description: A pattern scanning and processing language
# URL: http://www.gnu.org/software/gawk/gawk.html
# Maintainer: Per Lidén, core-ports at crux dot nu
name=gawk
version=3.1.5
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr --disable-nls
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info $PKG/usr/share $PKG/usr/libexec
rm $PKG/usr/bin/gawk-$version $PKG/usr/bin/pgawk-$version \
$PKG/usr/bin/{p,i}gawk $PKG/usr/man/man1/{p,i}gawk.1
ln -sf gawk.1.gz $PKG/usr/man/man1/awk.1.gz
}

342
gcc/.footprint Normal file
View File

@ -0,0 +1,342 @@
drwxr-xr-x root/root lib/
lrwxrwxrwx root/root lib/cpp -> ../usr/bin/cpp
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
lrwxrwxrwx root/root usr/bin/c++ -> g++
lrwxrwxrwx root/root usr/bin/cc -> gcc
-rwxr-xr-x root/root usr/bin/cpp
-rwxr-xr-x root/root usr/bin/g++
-rwxr-xr-x root/root usr/bin/gcc
-rwxr-xr-x root/root usr/bin/gccbug
-rwxr-xr-x root/root usr/bin/gcov
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/c++/
drwxr-xr-x root/root usr/include/c++/4.0.3/
-rw-r--r-- root/root usr/include/c++/4.0.3/algorithm
drwxr-xr-x root/root usr/include/c++/4.0.3/backward/
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/algo.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/algobase.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/alloc.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/backward_warning.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/bvector.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/complex.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/defalloc.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/deque.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/fstream.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/function.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/hash_map.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/hash_set.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/hashtable.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/heap.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/iomanip.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/iostream.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/istream.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/iterator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/list.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/map.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/multimap.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/multiset.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/new.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/ostream.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/pair.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/queue.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/rope.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/set.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/slist.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/stack.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/stream.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/streambuf.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/strstream
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/tempbuf.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/tree.h
-rw-r--r-- root/root usr/include/c++/4.0.3/backward/vector.h
drwxr-xr-x root/root usr/include/c++/4.0.3/bits/
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/atomicity.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/basic_ios.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/basic_ios.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/basic_string.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/basic_string.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/boost_concept_check.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/char_traits.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/cmath.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/codecvt.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/concept_check.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/concurrence.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/cpp_type_traits.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/deque.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/fstream.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/functexcept.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/gslice.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/gslice_array.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/indirect_array.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/ios_base.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/istream.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/list.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/locale_classes.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/locale_facets.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/locale_facets.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/localefwd.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/mask_array.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/ostream.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/postypes.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/slice_array.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/sstream.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_algo.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_algobase.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_bvector.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_construct.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_deque.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_function.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_heap.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_iterator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_iterator_base_funcs.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_iterator_base_types.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_list.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_map.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_multimap.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_multiset.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_numeric.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_pair.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_queue.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_raw_storage_iter.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_relops.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_set.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_stack.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_tempbuf.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_tree.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_uninitialized.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stl_vector.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stream_iterator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/streambuf.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/streambuf_iterator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/stringfwd.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/valarray_after.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/valarray_array.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/valarray_array.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/valarray_before.h
-rw-r--r-- root/root usr/include/c++/4.0.3/bits/vector.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/bitset
-rw-r--r-- root/root usr/include/c++/4.0.3/cassert
-rw-r--r-- root/root usr/include/c++/4.0.3/cctype
-rw-r--r-- root/root usr/include/c++/4.0.3/cerrno
-rw-r--r-- root/root usr/include/c++/4.0.3/cfloat
-rw-r--r-- root/root usr/include/c++/4.0.3/ciso646
-rw-r--r-- root/root usr/include/c++/4.0.3/climits
-rw-r--r-- root/root usr/include/c++/4.0.3/clocale
-rw-r--r-- root/root usr/include/c++/4.0.3/cmath
-rw-r--r-- root/root usr/include/c++/4.0.3/complex
-rw-r--r-- root/root usr/include/c++/4.0.3/csetjmp
-rw-r--r-- root/root usr/include/c++/4.0.3/csignal
-rw-r--r-- root/root usr/include/c++/4.0.3/cstdarg
-rw-r--r-- root/root usr/include/c++/4.0.3/cstddef
-rw-r--r-- root/root usr/include/c++/4.0.3/cstdio
-rw-r--r-- root/root usr/include/c++/4.0.3/cstdlib
-rw-r--r-- root/root usr/include/c++/4.0.3/cstring
-rw-r--r-- root/root usr/include/c++/4.0.3/ctime
-rw-r--r-- root/root usr/include/c++/4.0.3/cwchar
-rw-r--r-- root/root usr/include/c++/4.0.3/cwctype
-rw-r--r-- root/root usr/include/c++/4.0.3/cxxabi.h
drwxr-xr-x root/root usr/include/c++/4.0.3/debug/
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/bitset
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/debug.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/deque
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/formatter.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/hash_map
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/hash_map.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/hash_multimap.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/hash_multiset.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/hash_set
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/hash_set.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/list
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/map
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/map.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/multimap.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/multiset.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/safe_base.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/safe_iterator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/safe_iterator.tcc
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/safe_sequence.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/set
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/set.h
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/string
-rw-r--r-- root/root usr/include/c++/4.0.3/debug/vector
-rw-r--r-- root/root usr/include/c++/4.0.3/deque
-rw-r--r-- root/root usr/include/c++/4.0.3/exception
-rw-r--r-- root/root usr/include/c++/4.0.3/exception_defines.h
drwxr-xr-x root/root usr/include/c++/4.0.3/ext/
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/algorithm
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/array_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/bitmap_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/codecvt_specializations.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/debug_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/functional
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/hash_fun.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/hash_map
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/hash_set
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/hashtable.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/iterator
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/malloc_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/memory
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/mt_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/new_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/numeric
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/pod_char_traits.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/pool_allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/rb_tree
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/rope
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/ropeimpl.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/slist
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/stdio_filebuf.h
-rw-r--r-- root/root usr/include/c++/4.0.3/ext/stdio_sync_filebuf.h
-rw-r--r-- root/root usr/include/c++/4.0.3/fstream
-rw-r--r-- root/root usr/include/c++/4.0.3/functional
drwxr-xr-x root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/
drwxr-xr-x root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/atomic_word.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/basic_file.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/c++allocator.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/c++config.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/c++io.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/c++locale.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/ctype_base.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/ctype_inline.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/ctype_noninline.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/cxxabi_tweaks.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/gthr-default.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/gthr-posix.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/gthr-single.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/gthr-tpf.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/gthr.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/messages_members.h
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/os_defines.h
drwxr-xr-x root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/stdc++.h.gch/
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/stdc++.h.gch/O0g.gch
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/stdc++.h.gch/O2g.gch
-rw-r--r-- root/root usr/include/c++/4.0.3/i686-pc-linux-gnu/bits/time_members.h
-rw-r--r-- root/root usr/include/c++/4.0.3/iomanip
-rw-r--r-- root/root usr/include/c++/4.0.3/ios
-rw-r--r-- root/root usr/include/c++/4.0.3/iosfwd
-rw-r--r-- root/root usr/include/c++/4.0.3/iostream
-rw-r--r-- root/root usr/include/c++/4.0.3/istream
-rw-r--r-- root/root usr/include/c++/4.0.3/iterator
-rw-r--r-- root/root usr/include/c++/4.0.3/limits
-rw-r--r-- root/root usr/include/c++/4.0.3/list
-rw-r--r-- root/root usr/include/c++/4.0.3/locale
-rw-r--r-- root/root usr/include/c++/4.0.3/map
-rw-r--r-- root/root usr/include/c++/4.0.3/memory
-rw-r--r-- root/root usr/include/c++/4.0.3/new
-rw-r--r-- root/root usr/include/c++/4.0.3/numeric
-rw-r--r-- root/root usr/include/c++/4.0.3/ostream
-rw-r--r-- root/root usr/include/c++/4.0.3/queue
-rw-r--r-- root/root usr/include/c++/4.0.3/set
-rw-r--r-- root/root usr/include/c++/4.0.3/sstream
-rw-r--r-- root/root usr/include/c++/4.0.3/stack
-rw-r--r-- root/root usr/include/c++/4.0.3/stdexcept
-rw-r--r-- root/root usr/include/c++/4.0.3/streambuf
-rw-r--r-- root/root usr/include/c++/4.0.3/string
drwxr-xr-x root/root usr/include/c++/4.0.3/tr1/
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/array
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/bind_iterate.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/bind_repeat.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/boost_shared_ptr.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/functional
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/functional_iterate.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/hashtable
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/memory
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/mu_iterate.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/ref_fwd.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/ref_wrap_iterate.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/repeat.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/tuple
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/tuple_iterate.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/type_traits
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/type_traits_fwd.h
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/unordered_map
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/unordered_set
-rw-r--r-- root/root usr/include/c++/4.0.3/tr1/utility
-rw-r--r-- root/root usr/include/c++/4.0.3/typeinfo
-rw-r--r-- root/root usr/include/c++/4.0.3/utility
-rw-r--r-- root/root usr/include/c++/4.0.3/valarray
-rw-r--r-- root/root usr/include/c++/4.0.3/vector
-rw-r--r-- root/root usr/include/mf-runtime.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/gcc/
drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/
drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/
-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1
-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1obj
-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1plus
-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/collect2
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/crtbegin.o
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/crtbeginS.o
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/crtbeginT.o
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/crtend.o
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/crtendS.o
drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/emmintrin.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/float.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/iso646.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/limits.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/mm3dnow.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/mm_malloc.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/mmintrin.h
drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/NXConstStr.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/Object.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/Protocol.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/encoding.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/hash.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/objc-api.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/objc-decls.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/objc-list.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/objc.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/sarray.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/thr.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/objc/typedstream.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/pmmintrin.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stdarg.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stdbool.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/stddef.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/syslimits.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/unwind.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/varargs.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/include/xmmintrin.h
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libgcc.a
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libgcc_eh.a
-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/libgcov.a
lrwxrwxrwx root/root usr/lib/libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- root/root usr/lib/libgcc_s.so.1
-rw-r--r-- root/root usr/lib/libmudflap.a
-rwxr-xr-x root/root usr/lib/libmudflap.la
lrwxrwxrwx root/root usr/lib/libmudflap.so -> libmudflap.so.0.0.0
lrwxrwxrwx root/root usr/lib/libmudflap.so.0 -> libmudflap.so.0.0.0
-rwxr-xr-x root/root usr/lib/libmudflap.so.0.0.0
-rw-r--r-- root/root usr/lib/libmudflapth.a
-rwxr-xr-x root/root usr/lib/libmudflapth.la
lrwxrwxrwx root/root usr/lib/libmudflapth.so -> libmudflapth.so.0.0.0
lrwxrwxrwx root/root usr/lib/libmudflapth.so.0 -> libmudflapth.so.0.0.0
-rwxr-xr-x root/root usr/lib/libmudflapth.so.0.0.0
-rw-r--r-- root/root usr/lib/libobjc.a
-rwxr-xr-x root/root usr/lib/libobjc.la
lrwxrwxrwx root/root usr/lib/libobjc.so -> libobjc.so.1.0.0
lrwxrwxrwx root/root usr/lib/libobjc.so.1 -> libobjc.so.1.0.0
-rwxr-xr-x root/root usr/lib/libobjc.so.1.0.0
-rw-r--r-- root/root usr/lib/libstdc++.a
-rwxr-xr-x root/root usr/lib/libstdc++.la
lrwxrwxrwx root/root usr/lib/libstdc++.so -> libstdc++.so.6.0.7
lrwxrwxrwx root/root usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.7
-rwxr-xr-x root/root usr/lib/libstdc++.so.6.0.7
-rw-r--r-- root/root usr/lib/libsupc++.a
-rwxr-xr-x root/root usr/lib/libsupc++.la
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/cpp.1.gz
-rw-r--r-- root/root usr/man/man1/g++.1.gz
-rw-r--r-- root/root usr/man/man1/gcc.1.gz
-rw-r--r-- root/root usr/man/man1/gcov.1.gz
drwxr-xr-x root/root usr/man/man7/
-rw-r--r-- root/root usr/man/man7/fsf-funding.7.gz
-rw-r--r-- root/root usr/man/man7/gfdl.7.gz
-rw-r--r-- root/root usr/man/man7/gpl.7.gz
drwxr-xr-x root/root usr/share/

7
gcc/.md5sum Normal file
View File

@ -0,0 +1,7 @@
3e39f8fe9e3a36813f4c2370cd457de5 gcc-4.0.3-fixinc.patch
31e541f9ac2c8613bc92b91db453f0a9 gcc-4.0.3-latentbug-addrefvars.patch
36fb6ec15a5f2a6572da0b02a3cf9d66 gcc-4.0.3-nocheck-fixincludes.patch
e35acd0ee75799f0a82b6e9c7e330073 gcc-4.0.3-version.patch
347231730fb44b609b69226c3e432d80 gcc-core-4.0.3.tar.bz2
0ed89562540b392c87ef2bd140be5d58 gcc-g++-4.0.3.tar.bz2
5c074296b473e219c992fe78d2a3a093 gcc-objc-4.0.3.tar.bz2

44
gcc/Pkgfile Normal file
View File

@ -0,0 +1,44 @@
# Description: The GNU Compiler Collection
# URL: http://gcc.gnu.org
# Maintainer: Per Lidén, core-ports at crux dot nu
name=gcc
version=4.0.3
release=2
source=(ftp://sources.redhat.com/pub/gcc/releases/$name-$version/$name-{core,g++,objc}-$version.tar.bz2 \
$name-$version-latentbug-addrefvars.patch \
$name-$version-nocheck-fixincludes.patch \
$name-$version-version.patch \
$name-$version-fixinc.patch)
build() {
patch -d $name-$version -p1 < $SRC/$name-$version-latentbug-addrefvars.patch
patch -d $name-$version -p1 < $SRC/$name-$version-nocheck-fixincludes.patch
patch -d $name-$version -p1 < $SRC/$name-$version-version.patch
patch -d $name-$version -p1 < $SRC/$name-$version-fixinc.patch
mkdir build
cd build
../$name-$version/configure --prefix=/usr \
--libexecdir=/usr/lib \
--enable-languages=c,c++,objc \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-shared \
--disable-nls \
--with-x=no
make bootstrap
make check
make DESTDIR=$PKG install
mkdir $PKG/lib
ln -sf ../usr/bin/cpp $PKG/lib/cpp
ln -sf gcc $PKG/usr/bin/cc
ln -sf g++ $PKG/usr/bin/c++
rm -rf $PKG/usr/info $PKG/usr/lib/libiberty.a \
$PKG/usr/bin/*-linux-gnu-* \
$PKG/usr/lib/gcc/*/$version/install-tools \
$PKG/usr/lib/gcc/*/$version/include/README
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/{libstdc++.la,libsupc++.la}
}

View File

@ -0,0 +1,14 @@
diff -Nru gcc-4.0.3-old/gcc/Makefile.in gcc-4.0.3/gcc/Makefile.in
--- gcc-4.0.3-old/gcc/Makefile.in 2006-03-14 02:13:18.000000000 +0100
+++ gcc-4.0.3/gcc/Makefile.in 2006-03-14 02:16:09.000000000 +0100
@@ -2854,9 +2854,7 @@
(TARGET_MACHINE='$(target)'; srcdir=`cd $(srcdir); ${PWD_COMMAND}`; \
SHELL='$(SHELL)'; MACRO_LIST=`${PWD_COMMAND}`/macro_list ; \
export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
- cd ../$(build_subdir)/fixincludes && \
- $(SHELL) ./fixinc.sh ../../gcc/include \
- $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) )
+ cd ../$(build_subdir)/fixincludes)
rm -f include/syslimits.h
if [ -f include/limits.h ]; then \
mv include/limits.h include/syslimits.h; \

Some files were not shown because too many files have changed in this diff Show More