create branch for 2.2

This commit is contained in:
Johannes Winkelmann 2006-02-23 15:26:10 +00:00
commit e3afe2298e
501 changed files with 43879 additions and 0 deletions

37
atk/.footprint Normal file
View File

@ -0,0 +1,37 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/atk-1.0/
drwxr-xr-x root/root usr/include/atk-1.0/atk/
-rw-r--r-- root/root usr/include/atk-1.0/atk/atk-enum-types.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atk.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkaction.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkcomponent.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkdocument.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkeditabletext.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkgobjectaccessible.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkhyperlink.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkhypertext.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkimage.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atknoopobject.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atknoopobjectfactory.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkobject.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkobjectfactory.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkregistry.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkrelation.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkrelationset.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkrelationtype.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkselection.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkstate.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkstateset.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkstreamablecontent.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atktable.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atktext.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkutil.h
-rw-r--r-- root/root usr/include/atk-1.0/atk/atkvalue.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libatk-1.0.la
lrwxrwxrwx root/root usr/lib/libatk-1.0.so -> libatk-1.0.so.0.1010.3
lrwxrwxrwx root/root usr/lib/libatk-1.0.so.0 -> libatk-1.0.so.0.1010.3
-rwxr-xr-x root/root usr/lib/libatk-1.0.so.0.1010.3
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/atk.pc

1
atk/.md5sum Normal file
View File

@ -0,0 +1 @@
c84a01fea567b365c0d44b227fead948 atk-1.10.3.tar.bz2

17
atk/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# Description: A set of interfaces for accessibility
# URL: http://www.gtk.org/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: glib
name=atk
version=1.10.3
release=1
source=(ftp://ftp.gtk.org/pub/gtk/v2.8/$name-$version.tar.bz2)
build () {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
}

65
autoconf/.footprint Normal file
View File

@ -0,0 +1,65 @@
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/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 @@
1ee40f7a676b3cfdc0e3f7cd81551b5f autoconf-2.59.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 <per@fukt.bth.se>
name=autoconf
version=2.59
release=1
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.bz2)
build () {
cd $name-$version
./configure --prefix=/usr
make
make prefix=$PKG/usr install
rm -rf $PKG/usr/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 <per@fukt.bth.se>
# Depends on: gawk, perl, autoconf
name=automake
version=1.9.6
release=1
source=(http://mirrors.sunsite.dk/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

5
bash/.md5sum Normal file
View File

@ -0,0 +1,5 @@
a55d4bc5f60e8a527fc7b76739ca2ec0 bash-3.0-001-016.patch
46d32222ea0ee4b92d9cad3130498e30 bash-3.0-doc.patch
93eb380f4dd903ee25e47c7950894578 bash-3.0-wcontinued.patch
26c4d642e29b3533d8d754995bc277b3 bash-3.0.tar.gz
7b57ddfc0866bfe6ee5eb714723d69b7 profile

29
bash/Pkgfile Normal file
View File

@ -0,0 +1,29 @@
# Description: An sh-compatible command language interpreter.
# URL: http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
# Maintainer: Per Lidén <per@fukt.bth.se>
# Depends on: ncurses
name=bash
version=3.0
release=2
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.gz \
$name-$version-001-016.patch \
$name-$version-doc.patch \
$name-$version-wcontinued.patch \
profile)
build() {
cd $name-$version
patch -p1 < ../$name-$version-001-016.patch
patch -p1 < ../$name-$version-doc.patch
patch -p1 < ../$name-$version-wcontinued.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
}

709
bash/bash-3.0-001-016.patch Normal file
View File

@ -0,0 +1,709 @@
Patches 001-016 from ftp://ftp.cwru.edu/pub/bash/bash-3.0-patches/
Rediffed to apply cleanly on the vanilla 3.0 source.
/Per Liden <per@fukt.bth.se>
diff -Nru bash-3.0/array.c bash-3.0-new/array.c
--- bash-3.0/array.c 2004-05-06 14:24:13.000000000 +0200
+++ bash-3.0-new/array.c 2005-02-02 23:24:24.858374560 +0100
@@ -451,7 +451,7 @@
*/
array_dispose_element(new);
free(element_value(ae));
- ae->value = savestring(v);
+ ae->value = v ? savestring(v) : (char *)NULL;
return(0);
} else if (element_index(ae) > i) {
ADD_BEFORE(ae, new);
diff -Nru bash-3.0/arrayfunc.c bash-3.0-new/arrayfunc.c
--- bash-3.0/arrayfunc.c 2003-12-19 06:03:09.000000000 +0100
+++ bash-3.0-new/arrayfunc.c 2005-02-02 23:24:24.847376232 +0100
@@ -611,7 +611,7 @@
var = find_variable (t);
free (t);
- return var;
+ return (var == 0 || invisible_p (var)) ? (SHELL_VAR *)0 : var;
}
/* Return a string containing the elements in the array and subscript
diff -Nru bash-3.0/bashline.c bash-3.0-new/bashline.c
--- bash-3.0/bashline.c 2004-07-06 05:22:12.000000000 +0200
+++ bash-3.0-new/bashline.c 2005-02-02 23:24:38.680273312 +0100
@@ -100,6 +100,7 @@
#endif
/* Helper functions for Readline. */
+static int bash_directory_expansion __P((char **));
static int bash_directory_completion_hook __P((char **));
static int filename_completion_ignore __P((char **));
static int bash_push_line __P((void));
@@ -292,7 +293,7 @@
/* See if we have anything to do. */
at = strchr (rl_completer_word_break_characters, '@');
if ((at == 0 && on_or_off == 0) || (at != 0 && on_or_off != 0))
- return;
+ return old_value;
/* We have something to do. Do it. */
nval = (char *)xmalloc (strlen (rl_completer_word_break_characters) + 1 + on_or_off);
@@ -1406,10 +1407,19 @@
filename. */
if (*hint_text == '~')
{
- int l, tl, vl;
+ int l, tl, vl, dl;
+ char *rd;
vl = strlen (val);
tl = strlen (hint_text);
+#if 0
l = vl - hint_len; /* # of chars added */
+#else
+ rd = savestring (filename_hint);
+ bash_directory_expansion (&rd);
+ dl = strlen (rd);
+ l = vl - dl; /* # of chars added */
+ free (rd);
+#endif
temp = (char *)xmalloc (l + 2 + tl);
strcpy (temp, hint_text);
strcpy (temp + tl, val + vl - l);
@@ -2187,6 +2197,27 @@
return 0;
}
+/* Simulate the expansions that will be performed by
+ rl_filename_completion_function. This must be called with the address of
+ a pointer to malloc'd memory. */
+static int
+bash_directory_expansion (dirname)
+ char **dirname;
+{
+ char *d;
+
+ d = savestring (*dirname);
+
+ if (rl_directory_rewrite_hook)
+ (*rl_directory_rewrite_hook) (&d);
+
+ if (rl_directory_completion_hook && (*rl_directory_completion_hook) (&d))
+ {
+ free (*dirname);
+ *dirname = d;
+ }
+}
+
/* Handle symbolic link references and other directory name
expansions while hacking completion. */
static int
@@ -2513,7 +2544,7 @@
static char **matches = (char **)NULL;
static int ind;
int glen;
- char *ret;
+ char *ret, *ttext;
if (state == 0)
{
@@ -2523,17 +2554,22 @@
FREE (globorig);
FREE (globtext);
+ ttext = bash_tilde_expand (text, 0);
+
if (rl_explicit_arg)
{
- globorig = savestring (text);
- glen = strlen (text);
+ globorig = savestring (ttext);
+ glen = strlen (ttext);
globtext = (char *)xmalloc (glen + 2);
- strcpy (globtext, text);
+ strcpy (globtext, ttext);
globtext[glen] = '*';
globtext[glen+1] = '\0';
}
else
- globtext = globorig = savestring (text);
+ globtext = globorig = savestring (ttext);
+
+ if (ttext != text)
+ free (ttext);
matches = shell_glob_filename (globtext);
if (GLOB_FAILED (matches))
diff -Nru bash-3.0/braces.c bash-3.0-new/braces.c
--- bash-3.0/braces.c 2003-12-04 17:09:52.000000000 +0100
+++ bash-3.0-new/braces.c 2005-02-02 23:24:39.724114624 +0100
@@ -340,8 +340,8 @@
if (lhs_t == ST_CHAR)
{
- lhs_v = lhs[0];
- rhs_v = rhs[0];
+ lhs_v = (unsigned char)lhs[0];
+ rhs_v = (unsigned char)rhs[0];
}
else
{
@@ -402,6 +402,8 @@
{
pass_next = 1;
i++;
+ if (quoted == 0)
+ level++;
continue;
}
#endif
diff -Nru bash-3.0/builtins/trap.def bash-3.0-new/builtins/trap.def
--- bash-3.0/builtins/trap.def 2004-05-28 04:26:19.000000000 +0200
+++ bash-3.0-new/builtins/trap.def 2005-02-02 23:24:28.541814592 +0100
@@ -23,7 +23,7 @@
$BUILTIN trap
$FUNCTION trap_builtin
-$SHORT_DOC trap [-lp] [[arg] signal_spec ...]
+$SHORT_DOC trap [-lp] [arg signal_spec ...]
The command ARG is to be read and executed when the shell receives
signal(s) SIGNAL_SPEC. If ARG is absent (and a single SIGNAL_SPEC
is supplied) or `-', each specified signal is reset to its original
@@ -87,7 +87,7 @@
trap_builtin (list)
WORD_LIST *list;
{
- int list_signal_names, display, result, opt;
+ int list_signal_names, display, result, opt, first_signal;
list_signal_names = display = 0;
result = EXECUTION_SUCCESS;
@@ -118,14 +118,19 @@
else
{
char *first_arg;
- int operation, sig;
+ int operation, sig, first_signal;
operation = SET;
first_arg = list->word->word;
+ first_signal = first_arg && *first_arg && all_digits (first_arg) && signal_object_p (first_arg, opt);
+
+ /* Backwards compatibility */
+ if (first_signal)
+ operation = REVERT;
/* When in posix mode, the historical behavior of looking for a
missing first argument is disabled. To revert to the original
signal handling disposition, use `-' as the first argument. */
- if (posixly_correct == 0 && first_arg && *first_arg &&
+ else if (posixly_correct == 0 && first_arg && *first_arg &&
(*first_arg != '-' || first_arg[1]) &&
signal_object_p (first_arg, opt) && list->next == 0)
operation = REVERT;
diff -Nru bash-3.0/doc/bashref.texi bash-3.0-new/doc/bashref.texi
--- bash-3.0/doc/bashref.texi 2004-06-26 20:26:07.000000000 +0200
+++ bash-3.0-new/doc/bashref.texi 2005-02-02 23:24:28.546813832 +0100
@@ -5953,7 +5953,8 @@
@item
The @code{trap} builtin doesn't check the first argument for a possible
signal specification and revert the signal handling to the original
-disposition if it is. If users want to reset the handler for a given
+disposition if it is, unless that argument consists solely of digits and
+is a valid signal number. If users want to reset the handler for a given
signal to the original disposition, they should use @samp{-} as the
first argument.
diff -Nru bash-3.0/general.c bash-3.0-new/general.c
--- bash-3.0/general.c 2004-04-15 05:20:13.000000000 +0200
+++ bash-3.0-new/general.c 2005-02-02 23:24:40.581984208 +0100
@@ -267,7 +267,7 @@
c = string[indx = 0];
#if defined (ARRAY_VARS)
- if ((legal_variable_starter (c) == 0) && (flags && c != '[')) /* ] */
+ if ((legal_variable_starter (c) == 0) && (flags == 0 || c != '[')) /* ] */
#else
if (legal_variable_starter (c) == 0)
#endif
diff -Nru bash-3.0/include/shmbutil.h bash-3.0-new/include/shmbutil.h
--- bash-3.0/include/shmbutil.h 2004-04-19 15:59:42.000000000 +0200
+++ bash-3.0-new/include/shmbutil.h 2005-02-02 23:24:29.227710320 +0100
@@ -31,6 +31,8 @@
extern size_t xmbsrtowcs __P((wchar_t *, const char **, size_t, mbstate_t *));
extern size_t xdupmbstowcs __P((wchar_t **, char ***, const char *));
+extern size_t mbstrlen __P((const char *));
+
extern char *xstrchr __P((const char *, int));
#ifndef MB_INVALIDCH
@@ -38,6 +40,9 @@
#define MB_NULLWCH(x) ((x) == 0)
#endif
+#define MBSLEN(s) (((s) && (s)[0]) ? ((s)[1] ? mbstrlen (s) : 1) : 0)
+#define MB_STRLEN(s) ((MB_CUR_MAX > 1) ? MBSLEN (s) : STRLEN (s))
+
#else /* !HANDLE_MULTIBYTE */
#undef MB_LEN_MAX
@@ -54,6 +59,8 @@
#define MB_NULLWCH(x) (0)
#endif
+#define MB_STRLEN(s) (STRLEN(s))
+
#endif /* !HANDLE_MULTIBYTE */
/* Declare and initialize a multibyte state. Call must be terminated
diff -Nru bash-3.0/jobs.c bash-3.0-new/jobs.c
--- bash-3.0/jobs.c 2004-04-23 22:28:25.000000000 +0200
+++ bash-3.0-new/jobs.c 2005-02-02 23:24:36.979531864 +0100
@@ -1778,8 +1778,13 @@
if (pipefail_opt)
{
fail = 0;
- for (p = jobs[job]->pipe; p->next != jobs[job]->pipe; p = p->next)
- if (p->status != EXECUTION_SUCCESS) fail = p->status;
+ p = jobs[job]->pipe;
+ do
+ {
+ if (p->status != EXECUTION_SUCCESS) fail = p->status;
+ p = p->next;
+ }
+ while (p != jobs[job]->pipe);
return fail;
}
diff -Nru bash-3.0/lib/readline/display.c bash-3.0-new/lib/readline/display.c
--- bash-3.0/lib/readline/display.c 2004-05-28 04:57:51.000000000 +0200
+++ bash-3.0-new/lib/readline/display.c 2005-02-02 23:24:30.500516824 +0100
@@ -201,7 +201,7 @@
int *lp, *lip, *niflp, *vlp;
{
char *r, *ret, *p;
- int l, rl, last, ignoring, ninvis, invfl, ind, pind, physchars;
+ int l, rl, last, ignoring, ninvis, invfl, invflset, ind, pind, physchars;
/* Short-circuit if we can. */
if ((MB_CUR_MAX <= 1 || rl_byte_oriented) && strchr (pmt, RL_PROMPT_START_IGNORE) == 0)
@@ -222,6 +222,7 @@
r = ret = (char *)xmalloc (l + 1);
invfl = 0; /* invisible chars in first line of prompt */
+ invflset = 0; /* we only want to set invfl once */
for (rl = ignoring = last = ninvis = physchars = 0, p = pmt; p && *p; p++)
{
@@ -249,7 +250,10 @@
while (l--)
*r++ = *p++;
if (!ignoring)
- rl += ind - pind;
+ {
+ rl += ind - pind;
+ physchars += _rl_col_width (pmt, pind, ind);
+ }
else
ninvis += ind - pind;
p--; /* compensate for later increment */
@@ -259,16 +263,19 @@
{
*r++ = *p;
if (!ignoring)
- rl++; /* visible length byte counter */
+ {
+ rl++; /* visible length byte counter */
+ physchars++;
+ }
else
ninvis++; /* invisible chars byte counter */
}
- if (rl >= _rl_screenwidth)
- invfl = ninvis;
-
- if (ignoring == 0)
- physchars++;
+ if (invflset == 0 && rl >= _rl_screenwidth)
+ {
+ invfl = ninvis;
+ invflset = 1;
+ }
}
}
@@ -351,14 +358,14 @@
local_prompt = expand_prompt (p, &prompt_visible_length,
&prompt_last_invisible,
(int *)NULL,
- (int *)NULL);
+ &prompt_physical_chars);
c = *t; *t = '\0';
/* The portion of the prompt string up to and including the
final newline is now null-terminated. */
local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
(int *)NULL,
&prompt_invis_chars_first_line,
- &prompt_physical_chars);
+ (int *)NULL);
*t = c;
return (prompt_prefix_length);
}
@@ -417,7 +424,7 @@
register int in, out, c, linenum, cursor_linenum;
register char *line;
int c_pos, inv_botlin, lb_botlin, lb_linenum;
- int newlines, lpos, temp, modmark;
+ int newlines, lpos, temp, modmark, n0, num;
char *prompt_this_line;
#if defined (HANDLE_MULTIBYTE)
wchar_t wc;
@@ -573,6 +580,7 @@
#if defined (HANDLE_MULTIBYTE)
memset (_rl_wrapped_line, 0, vis_lbsize);
+ num = 0;
#endif
/* prompt_invis_chars_first_line is the number of invisible characters in
@@ -591,13 +599,32 @@
probably too much work for the benefit gained. How many people have
prompts that exceed two physical lines?
Additional logic fix from Edward Catmur <ed@catmur.co.uk> */
+#if defined (HANDLE_MULTIBYTE)
+ n0 = num;
+ temp = local_prompt ? strlen (local_prompt) : 0;
+ while (num < temp)
+ {
+ if (_rl_col_width (local_prompt, n0, num) > _rl_screenwidth)
+ {
+ num = _rl_find_prev_mbchar (local_prompt, num, MB_FIND_ANY);
+ break;
+ }
+ num++;
+ }
+ temp = num +
+#else
temp = ((newlines + 1) * _rl_screenwidth) +
+#endif /* !HANDLE_MULTIBYTE */
((local_prompt_prefix == 0) ? ((newlines == 0) ? prompt_invis_chars_first_line
: ((newlines == 1) ? wrap_offset : 0))
: ((newlines == 0) ? wrap_offset :0));
inv_lbreaks[++newlines] = temp;
+#if defined (HANDLE_MULTIBYTE)
+ lpos -= _rl_col_width (local_prompt, n0, num);
+#else
lpos -= _rl_screenwidth;
+#endif
}
prompt_last_screen_line = newlines;
diff -Nru bash-3.0/lib/readline/mbutil.c bash-3.0-new/lib/readline/mbutil.c
--- bash-3.0/lib/readline/mbutil.c 2004-01-14 15:44:52.000000000 +0100
+++ bash-3.0-new/lib/readline/mbutil.c 2005-02-02 23:24:36.275638872 +0100
@@ -126,11 +126,11 @@
if (find_non_zero)
{
tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
- while (wcwidth (wc) == 0)
+ while (tmp > 0 && wcwidth (wc) == 0)
{
point += tmp;
tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps);
- if (tmp == (size_t)(0) || tmp == (size_t)(-1) || tmp == (size_t)(-2))
+ if (MB_NULLWCH (tmp) || MB_INVALIDCH (tmp))
break;
}
}
diff -Nru bash-3.0/lib/readline/misc.c bash-3.0-new/lib/readline/misc.c
--- bash-3.0/lib/readline/misc.c 2004-07-07 14:56:32.000000000 +0200
+++ bash-3.0-new/lib/readline/misc.c 2005-02-02 23:24:29.860614104 +0100
@@ -276,12 +276,6 @@
_rl_saved_line_for_history->line = savestring (rl_line_buffer);
_rl_saved_line_for_history->data = (char *)rl_undo_list;
}
- else if (STREQ (rl_line_buffer, _rl_saved_line_for_history->line) == 0)
- {
- free (_rl_saved_line_for_history->line);
- _rl_saved_line_for_history->line = savestring (rl_line_buffer);
- _rl_saved_line_for_history->data = (char *)rl_undo_list; /* XXX possible memleak */
- }
return 0;
}
diff -Nru bash-3.0/lib/readline/vi_mode.c bash-3.0-new/lib/readline/vi_mode.c
--- bash-3.0/lib/readline/vi_mode.c 2004-07-13 20:08:27.000000000 +0200
+++ bash-3.0-new/lib/readline/vi_mode.c 2005-02-02 23:24:32.590199144 +0100
@@ -272,10 +272,12 @@
switch (key)
{
case '?':
+ _rl_free_saved_history_line ();
rl_noninc_forward_search (count, key);
break;
case '/':
+ _rl_free_saved_history_line ();
rl_noninc_reverse_search (count, key);
break;
@@ -690,7 +692,7 @@
{
wchar_t wc;
char mb[MB_LEN_MAX+1];
- int mblen;
+ int mblen, p;
mbstate_t ps;
memset (&ps, 0, sizeof (mbstate_t));
@@ -713,11 +715,14 @@
/* Vi is kind of strange here. */
if (wc)
{
+ p = rl_point;
mblen = wcrtomb (mb, wc, &ps);
if (mblen >= 0)
mb[mblen] = '\0';
rl_begin_undo_group ();
- rl_delete (1, 0);
+ rl_vi_delete (1, 0);
+ if (rl_point < p) /* Did we retreat at EOL? */
+ rl_point++; /* XXX - should we advance more than 1 for mbchar? */
rl_insert_text (mb);
rl_end_undo_group ();
rl_vi_check ();
@@ -1310,12 +1315,16 @@
rl_vi_delete (1, c);
#if defined (HANDLE_MULTIBYTE)
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)
- while (_rl_insert_char (1, c))
- {
- RL_SETSTATE (RL_STATE_MOREINPUT);
- c = rl_read_key ();
- RL_UNSETSTATE (RL_STATE_MOREINPUT);
- }
+ {
+ if (rl_point < p) /* Did we retreat at EOL? */
+ rl_point++;
+ while (_rl_insert_char (1, c))
+ {
+ RL_SETSTATE (RL_STATE_MOREINPUT);
+ c = rl_read_key ();
+ RL_UNSETSTATE (RL_STATE_MOREINPUT);
+ }
+ }
else
#endif
{
diff -Nru bash-3.0/patchlevel.h bash-3.0-new/patchlevel.h
--- bash-3.0/patchlevel.h 2001-08-22 14:05:39.000000000 +0200
+++ bash-3.0-new/patchlevel.h 2005-02-02 23:24:41.498844824 +0100
@@ -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 16
#endif /* _PATCHLEVEL_H_ */
diff -Nru bash-3.0/pcomplete.c bash-3.0-new/pcomplete.c
--- bash-3.0/pcomplete.c 2004-01-08 16:36:17.000000000 +0100
+++ bash-3.0-new/pcomplete.c 2005-02-02 23:24:24.857374712 +0100
@@ -863,6 +863,8 @@
if (array_p (v) == 0)
v = convert_var_to_array (v);
v = assign_array_var_from_word_list (v, lwords);
+
+ VUNSETATTR (v, att_invisible);
return v;
}
#endif /* ARRAY_VARS */
@@ -1022,6 +1024,8 @@
if (array_p (v) == 0)
v = convert_var_to_array (v);
+ VUNSETATTR (v, att_invisible);
+
a = array_cell (v);
if (a == 0 || array_empty (a))
sl = (STRINGLIST *)NULL;
diff -Nru bash-3.0/subst.c bash-3.0-new/subst.c
--- bash-3.0/subst.c 2004-07-04 19:56:13.000000000 +0200
+++ bash-3.0-new/subst.c 2005-02-02 23:24:41.495845280 +0100
@@ -4691,6 +4691,26 @@
legal_identifier (name + 1)); /* ${#PS1} */
}
+#if defined (HANDLE_MULTIBYTE)
+size_t
+mbstrlen (s)
+ const char *s;
+{
+ size_t clen, nc;
+ mbstate_t mbs;
+
+ nc = 0;
+ memset (&mbs, 0, sizeof (mbs));
+ while ((clen = mbrlen(s, MB_CUR_MAX, &mbs)) != 0 && (MB_INVALIDCH(clen) == 0))
+ {
+ s += clen;
+ nc++;
+ }
+ return nc;
+}
+#endif
+
+
/* Handle the parameter brace expansion that requires us to return the
length of a parameter. */
static intmax_t
@@ -4746,14 +4766,14 @@
if (legal_number (name + 1, &arg_index)) /* ${#1} */
{
t = get_dollar_var_value (arg_index);
- number = STRLEN (t);
+ number = MB_STRLEN (t);
FREE (t);
}
#if defined (ARRAY_VARS)
- else if ((var = find_variable (name + 1)) && array_p (var))
+ else if ((var = find_variable (name + 1)) && (invisible_p (var) == 0) && array_p (var))
{
t = array_reference (array_cell (var), 0);
- number = STRLEN (t);
+ number = MB_STRLEN (t);
}
#endif
else /* ${#PS1} */
@@ -4766,7 +4786,7 @@
if (list)
dispose_words (list);
- number = STRLEN (t);
+ number = MB_STRLEN (t);
FREE (t);
}
}
@@ -4871,7 +4891,7 @@
{
case VT_VARIABLE:
case VT_ARRAYMEMBER:
- len = strlen (value);
+ len = MB_STRLEN (value);
break;
case VT_POSPARMS:
len = number_of_args () + 1;
@@ -4879,8 +4899,9 @@
#if defined (ARRAY_VARS)
case VT_ARRAYVAR:
a = (ARRAY *)value;
- /* For arrays, the first value deals with array indices. */
- len = array_max_index (a); /* arrays index from 0 to n - 1 */
+ /* For arrays, the first value deals with array indices. Negative
+ offsets count from one past the array's maximum index. */
+ len = array_max_index (a) + (*e1p < 0); /* arrays index from 0 to n - 1 */
break;
#endif
}
@@ -4891,7 +4912,7 @@
if (*e1p < 0) /* negative offsets count from end */
*e1p += len;
- if (*e1p >= len || *e1p < 0)
+ if (*e1p > len || *e1p < 0)
return (-1);
#if defined (ARRAY_VARS)
@@ -4982,7 +5003,7 @@
else
return -1;
}
- else if ((v = find_variable (varname)) && array_p (v))
+ else if ((v = find_variable (varname)) && (invisible_p (v) == 0) && array_p (v))
{
vtype = VT_ARRAYMEMBER;
*varp = v;
diff -Nru bash-3.0/tests/array.right bash-3.0-new/tests/array.right
--- bash-3.0/tests/array.right 2003-10-05 05:25:10.000000000 +0200
+++ bash-3.0-new/tests/array.right 2005-02-02 23:24:41.497844976 +0100
@@ -170,8 +170,8 @@
three five seven
positive offset - expect five seven
five seven
-negative offset - expect five seven
-five seven
+negative offset to unset element - expect seven
+seven
positive offset 2 - expect seven
seven
negative offset 2 - expect seven
diff -Nru bash-3.0/tests/array.tests bash-3.0-new/tests/array.tests
--- bash-3.0/tests/array.tests 2003-10-05 05:25:00.000000000 +0200
+++ bash-3.0-new/tests/array.tests 2005-02-02 23:24:41.496845128 +0100
@@ -322,7 +322,7 @@
echo positive offset - expect five seven
echo ${av[@]:5:2}
-echo negative offset - expect five seven
+echo negative offset to unset element - expect seven
echo ${av[@]: -2:2}
echo positive offset 2 - expect seven
diff -Nru bash-3.0/tests/dbg-support.tests bash-3.0-new/tests/dbg-support.tests
--- bash-3.0/tests/dbg-support.tests 2003-03-25 21:33:03.000000000 +0100
+++ bash-3.0-new/tests/dbg-support.tests 2005-02-02 23:24:24.859374408 +0100
@@ -62,8 +62,8 @@
trap 'print_debug_trap $LINENO' DEBUG
trap 'print_return_trap $LINENO' RETURN
-# Funcname is now an array. Vanilla Bash 2.05 doesn't have FUNCNAME array.
-echo "FUNCNAME" ${FUNCNAME[0]}
+# Funcname is now an array, but you still can't see it outside a function
+echo "FUNCNAME" ${FUNCNAME[0]:-main}
# We should trace into the below.
# Start easy with a simple function.
diff -Nru bash-3.0/tests/errors.right bash-3.0-new/tests/errors.right
--- bash-3.0/tests/errors.right 2004-05-28 04:26:03.000000000 +0200
+++ bash-3.0-new/tests/errors.right 2005-02-02 23:24:28.548813528 +0100
@@ -85,7 +85,7 @@
./errors.tests: line 213: /bin/sh + 0: syntax error: operand expected (error token is "/bin/sh + 0")
./errors.tests: line 216: trap: NOSIG: invalid signal specification
./errors.tests: line 219: trap: -s: invalid option
-trap: usage: trap [-lp] [[arg] signal_spec ...]
+trap: usage: trap [-lp] [arg signal_spec ...]
./errors.tests: line 225: return: can only `return' from a function or sourced script
./errors.tests: line 229: break: 0: loop count out of range
./errors.tests: line 233: continue: 0: loop count out of range
diff -Nru bash-3.0/variables.c bash-3.0-new/variables.c
--- bash-3.0/variables.c 2004-07-04 19:57:26.000000000 +0200
+++ bash-3.0-new/variables.c 2005-02-02 23:24:24.855375016 +0100
@@ -1419,11 +1419,11 @@
v = init_dynamic_array_var ("GROUPS", get_groupset, null_array_assign, att_noassign);
# if defined (DEBUGGER)
- v = init_dynamic_array_var ("BASH_ARGC", get_self, null_array_assign, (att_invisible|att_noassign));
- v = init_dynamic_array_var ("BASH_ARGV", get_self, null_array_assign, (att_invisible|att_noassign));
+ v = init_dynamic_array_var ("BASH_ARGC", get_self, null_array_assign, att_noassign);
+ v = init_dynamic_array_var ("BASH_ARGV", get_self, null_array_assign, att_noassign);
# endif /* DEBUGGER */
- v = init_dynamic_array_var ("BASH_SOURCE", get_self, null_array_assign, (att_invisible|att_noassign));
- v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, (att_invisible|att_noassign));
+ v = init_dynamic_array_var ("BASH_SOURCE", get_self, null_array_assign, att_noassign);
+ v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, att_noassign);
#endif
v = init_funcname_var ();
@@ -1599,7 +1599,10 @@
/* local foo; local foo; is a no-op. */
old_var = find_variable (name);
if (old_var && local_p (old_var) && old_var->context == variable_context)
- return (old_var);
+ {
+ VUNSETATTR (old_var, att_invisible);
+ return (old_var);
+ }
was_tmpvar = old_var && tempvar_p (old_var);
if (was_tmpvar)

35
bash/bash-3.0-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}

View File

@ -0,0 +1,38 @@
Submitted By: Jeremy Utley <jeremy@linuxfromscratch.org>
Date: 2004-10-13
Initial Package Version: 3.0
Upstream Status: Submitted Upstream
Origin: Originally created by Greg Schafer
Description: Bash-3.0 has a execution problem with newer Glibc's. This patch,
submitted to bash-bugs by Tim Waugh, fixes the problem. See:
http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00081.html
Patch also contains a slight code change taken from Fedora SRPM.
diff -Naur bash-3.0.orig/jobs.c bash-3.0/jobs.c
--- bash-3.0.orig/jobs.c 2004-10-12 08:50:11.643481280 +0000
+++ bash-3.0/jobs.c 2004-10-12 08:51:35.110792320 +0000
@@ -2476,6 +2476,7 @@
PROCESS *child;
pid_t pid;
int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
+ static int wcontinued_not_supported = 0;
call_set_current = children_exited = 0;
last_stopped_job = NO_JOB;
@@ -2489,7 +2490,15 @@
: 0;
if (sigchld || block == 0)
waitpid_flags |= WNOHANG;
+ retry:
+ if (wcontinued_not_supported)
+ waitpid_flags &= ~WCONTINUED;
pid = WAITPID (-1, &status, waitpid_flags);
+ if (pid == -1 && errno == EINVAL)
+ {
+ wcontinued_not_supported = 1;
+ goto retry;
+ }
/* The check for WNOHANG is to make sure we decrement sigchld only
if it was non-zero before we called waitpid. */

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

2
bc/.md5sum Normal file
View File

@ -0,0 +1,2 @@
b19042e2bbfaa17cd45f20ebdf6706f0 bc-1.06-compile_fixes.patch
d44b5dddebd8a7a7309aea6c36fda117 bc-1.06.tar.gz

19
bc/Pkgfile Normal file
View File

@ -0,0 +1,19 @@
# Description: An arbitrary precision calculator language
# URL: http://www.gnu.org/software/bc/bc.html
# Maintainer: Per Lidén <per@fukt.bth.se>
# Depends on: ncurses, readline
name=bc
version=1.06
release=2
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.gz \
$name-$version-compile_fixes.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version-compile_fixes.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>

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 <per@fukt.bth.se>
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 @@
9ff3204eea27184ea0722f37e43fc95d bind-9.3.1.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 <per@fukt.bth.se>
# Depends on: openssl
name=bindutils
version=9.3.1
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.16.1.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.16.1.so
-rw-r--r-- root/root usr/lib/libiberty.a
-rwxr-xr-x root/root usr/lib/libopcodes-2.16.1.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.16.1.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 @@
6a9d529efb285071dad10e1f3d2b2967 binutils-2.16.1.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 <per@fukt.bth.se>
name=binutils
version=2.16.1
release=1
source=(http://mirrors.sunsite.dk/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
}

21
bison/.footprint Normal file
View File

@ -0,0 +1,21 @@
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/README
-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/lalr1.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 @@
b1468d49c1357aebcd1de6ef12cbf3e8 bison-2.1.tar.gz

17
bison/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# Description: The GNU Project parser generator
# URL: http://www.gnu.org/software/bison/
# Maintainer: Per Lidén <per@fukt.bth.se>
name=bison
version=2.1
release=1
source=(http://mirrors.sunsite.dk/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
}

29
bzip2/.footprint Normal file
View File

@ -0,0 +1,29 @@
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
-rwxr-xr-x root/root usr/bin/bzless
lrwxrwxrwx root/root usr/bin/bzmore -> bzless
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
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
-rw-r--r-- root/root usr/man/man1/bzcmp.1.gz
-rw-r--r-- root/root usr/man/man1/bzdiff.1.gz
-rw-r--r-- root/root usr/man/man1/bzegrep.1.gz
-rw-r--r-- root/root usr/man/man1/bzfgrep.1.gz
-rw-r--r-- root/root usr/man/man1/bzgrep.1.gz
-rw-r--r-- root/root usr/man/man1/bzip2.1.gz
-rw-r--r-- root/root usr/man/man1/bzless.1.gz
-rw-r--r-- root/root usr/man/man1/bzmore.1.gz

2
bzip2/.md5sum Normal file
View File

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

25
bzip2/Pkgfile Normal file
View File

@ -0,0 +1,25 @@
# Description: Very high-quality data compression program
# URL: http://www.bzip.org/
# Maintainer: Per Lidén <per@fukt.bth.se>
name=bzip2
version=1.0.3
release=1
source=(http://www.bzip.org/1.0.3/$name-$version.tar.gz \
$name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.patch
make
make PREFIX=$PKG/usr install
rm $PKG/usr/bin/{bunzip2,bzcat,bzcmp,bzfgrep,bzegrep,bzmore}
ln -sf bzip2 $PKG/usr/bin/bunzip2
ln -sf bzip2 $PKG/usr/bin/bzcat
ln -sf bzdiff $PKG/usr/bin/bzcmp
ln -sf bzgrep $PKG/usr/bin/bzegrep
ln -sf bzgrep $PKG/usr/bin/bzfgrep
ln -sf bzless $PKG/usr/bin/bzmore
ln -sf bzip2.1.gz $PKG/usr/man/man1/bunzip2.1.gz
ln -sf bzip2.1.gz $PKG/usr/man/man1/bzcat.1.gz
}

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

@ -0,0 +1,12 @@
diff -ru bzip2-1.0.3/Makefile bzip2-1.0.3-new/Makefile
--- bzip2-1.0.3/Makefile 2005-02-17 12:28:24.000000000 +0100
+++ bzip2-1.0.3-new/Makefile 2005-07-20 02:45:04.000000000 +0200
@@ -8,7 +8,7 @@
LDFLAGS=
BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS=-Wall -Winline -O -g $(BIGFILES)
+CFLAGS+=-Wall -Winline -O -g $(BIGFILES)
# Where you want it installed when you do 'make install'
PREFIX=/usr

19
cairo/.footprint Normal file
View File

@ -0,0 +1,19 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/cairo/
-rw-r--r-- root/root usr/include/cairo/cairo-features.h
-rw-r--r-- root/root usr/include/cairo/cairo-ft.h
-rw-r--r-- root/root usr/include/cairo/cairo-glitz.h
-rw-r--r-- root/root usr/include/cairo/cairo-pdf.h
-rw-r--r-- root/root usr/include/cairo/cairo-ps.h
-rw-r--r-- root/root usr/include/cairo/cairo-xlib-xrender.h
-rw-r--r-- root/root usr/include/cairo/cairo-xlib.h
-rw-r--r-- root/root usr/include/cairo/cairo.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libcairo.a
-rwxr-xr-x root/root usr/lib/libcairo.la
lrwxrwxrwx root/root usr/lib/libcairo.so -> libcairo.so.2.2.3
lrwxrwxrwx root/root usr/lib/libcairo.so.2 -> libcairo.so.2.2.3
-rwxr-xr-x root/root usr/lib/libcairo.so.2.2.3
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/cairo.pc

1
cairo/.md5sum Normal file
View File

@ -0,0 +1 @@
d0b7111a14f90ec3afa777ec40c44984 cairo-1.0.2.tar.gz

21
cairo/Pkgfile Normal file
View File

@ -0,0 +1,21 @@
# Description: A 2D graphics library with support for multiple output devices
# URL: http://www.cairographics.org/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: glitz
name=cairo
version=1.0.2
release=1
source=(http://cairographics.org/releases/$name-$version.tar.gz)
build() {
cd $name-$version
./configure --prefix=/usr \
--enable-ps \
--enable-pdf \
--enable-glitz \
--disable-gtk-doc
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
}

25
cdrtools/.footprint Normal file
View File

@ -0,0 +1,25 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/cdda2wav
-rwxr-xr-x root/root usr/bin/cdrecord
-rwxr-xr-x root/root usr/bin/devdump
-rwxr-xr-x root/root usr/bin/isodump
-rwxr-xr-x root/root usr/bin/isoinfo
-rwxr-xr-x root/root usr/bin/isovfy
lrwxrwxrwx root/root usr/bin/mkhybrid -> mkisofs
-rwxr-xr-x root/root usr/bin/mkisofs
-rwxr-xr-x root/root usr/bin/readcd
-rwxr-xr-x root/root usr/bin/scgcheck
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/cdda2wav.1.gz
-rw-r--r-- root/root usr/man/man1/cdrecord.1.gz
-rw-r--r-- root/root usr/man/man1/readcd.1.gz
-rw-r--r-- root/root usr/man/man1/scgcheck.1.gz
drwxr-xr-x root/root usr/man/man8/
lrwxrwxrwx root/root usr/man/man8/devdump.8.gz -> isoinfo.8.gz
lrwxrwxrwx root/root usr/man/man8/isodump.8.gz -> isoinfo.8.gz
-rw-r--r-- root/root usr/man/man8/isoinfo.8.gz
lrwxrwxrwx root/root usr/man/man8/isovfy.8.gz -> isoinfo.8.gz
-rw-r--r-- root/root usr/man/man8/mkhybrid.8.gz
-rw-r--r-- root/root usr/man/man8/mkisofs.8.gz

2
cdrtools/.md5sum Normal file
View File

@ -0,0 +1,2 @@
354f8a0b7197f1f2b381dff6b538d1a6 cdrtools-2.01.patch
d44a81460e97ae02931c31188fe8d3fd cdrtools-2.01.tar.bz2

24
cdrtools/Pkgfile Normal file
View File

@ -0,0 +1,24 @@
# Description: A tool to create disk-at-once and track-at-once CDs
# URL: http://cdrecord.berlios.de/old/private/cdrecord.html
# Maintainer: Per Lidén <per@fukt.bth.se>
name=cdrtools
version=2.01
release=2
source=(ftp://gd.tuwien.ac.at/utils/schilling/cdrtools/$name-$version.tar.bz2 \
$name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.patch
./Gmake.linux
./Gmake.linux INS_BASE=$PKG/usr install
ln -sf isoinfo.8 $PKG/usr/man/man8/isodump.8
ln -sf isoinfo.8 $PKG/usr/man/man8/devdump.8
ln -sf isoinfo.8 $PKG/usr/man/man8/isovfy.8
rm -rf $PKG/usr/{include,lib,sbin,man/man5} \
$PKG/usr/man/man1/cdda2ogg.1 \
$PKG/usr/bin/{skel,isodebug}
chown -R root.root $PKG
chmod -R u+w,g-w $PKG
}

View File

@ -0,0 +1,12 @@
diff -ru cdrtools-2.01/DEFAULTS/Defaults.linux cdrtools-2.01-new/DEFAULTS/Defaults.linux
--- cdrtools-2.01/DEFAULTS/Defaults.linux 2003-02-16 01:01:48.000000000 +0100
+++ cdrtools-2.01-new/DEFAULTS/Defaults.linux 2005-03-23 22:29:45.925249224 +0100
@@ -18,7 +18,7 @@
###########################################################################
CWARNOPTS=
-DEFINCDIRS= $(SRCROOT)/include /usr/src/linux/include
+DEFINCDIRS= $(SRCROOT)/include
LDPATH= -L/opt/schily/lib
RUNPATH= -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR)

174
coreutils/.footprint Normal file
View File

@ -0,0 +1,174 @@
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/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/shred
-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/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/shred.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 @@
c05b735710fbd62239588c07084852a0 coreutils-5.93-uname.patch
955d8abfd3dd8af2ca3af51480f1f9af coreutils-5.93.tar.bz2

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 <per@fukt.bth.se>
name=coreutils
version=5.93
release=1
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.bz2 \
$name-$version-uname.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version-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 @@
546dbd4aa403e5ee2dd4065e077b9917 cpio-2.6.patch
25e0e8725bc60ed3460c9cde92752674 cpio-2.6.tar.bz2

20
cpio/Pkgfile Normal file
View File

@ -0,0 +1,20 @@
# 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 <per@fukt.bth.se>
name=cpio
version=2.6
release=2
source=(http://mirrors.sunsite.dk/gnu/$name/$name-$version.tar.bz2 \
$name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.patch
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/{share,info,libexec} \
$PKG/usr/bin/mt \
$PKG/usr/man/man1/mt.1
}

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

@ -0,0 +1,72 @@
Description: Fix for not allowing a malicious cpio file to extract to an arbitrary directory.
Origin: http://lwn.net/Articles/143418/
http://www.xs4all.nl/~hanb/software/crux/han/cpio/cpio.patch
Upstream status: Unknown (2005-07-21)
diff -Nru cpio-2.6/configure.ac cpio-2.6-new/configure.ac
--- cpio-2.6/configure.ac 2004-12-20 11:46:30.000000000 +0100
+++ cpio-2.6-new/configure.ac 2005-07-21 16:07:42.000000000 +0200
@@ -95,7 +95,7 @@
AC_CHECK_FUNCS(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 ();

71
curl/.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/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_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_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_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_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_strerror.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 @@
d330d48580bfade58c82d4f295f171f0 curl-7.15.1.tar.bz2

17
curl/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# 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.1
release=1
source=(http://curl.haxx.se/download/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure --prefix=/usr --enable-ipv6
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/info
}

8
cvs/.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/cvs
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/cvs.1.gz
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/cvs.5.gz

1
cvs/.md5sum Normal file
View File

@ -0,0 +1 @@
9e215c0ee3bb7dfb76515d7cd81a3742 cvs-1.11.20.tar.bz2

17
cvs/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# Description: Concurrent Versions System
# URL: https://www.cvshome.org/
# Maintainer: Per Lidén <per@fukt.bth.se>
name=cvs
version=1.11.20
release=1
source=(http://www.fukt.bth.se/~per/crux/files/cvs/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure --prefix=/usr
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/{share,info,man/man8} \
$PKG/usr/bin/{cvsbug,rcs2log}
}

16
cvsup/.footprint Normal file
View File

@ -0,0 +1,16 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/ports/
drwxr-xr-x root/root etc/ports/drivers/
-rwxr-xr-x root/root etc/ports/drivers/cvsup
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/cvpasswd
-rwxr-xr-x root/root usr/bin/cvsup
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/cvpasswd.1.gz
-rw-r--r-- root/root usr/man/man1/cvsup.1.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/cvsupd.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/cvsupd

4
cvsup/.md5sum Normal file
View File

@ -0,0 +1,4 @@
ddca60eb579722dde1e5b43fa4ec3eee cvsup
b100ace98a41aa9f3d3e75b0d3c245b0 cvsup-snap-16.1h.tar.gz
f2efe85be7676944c537aa729f9cb17e ezm3-1.1-LINUXLIBC6-boot.tar.bz2
0cb8d2af3784142144c01ffac4c0ffff ezm3-1.1-src.tar.bz2

29
cvsup/Pkgfile Normal file
View File

@ -0,0 +1,29 @@
# Description: CVS-Aware Network File Distribution System
# URL: http://www.cvsup.org/
# Maintainer: Per Lidén <per@fukt.bth.se>
# Depends on: zlib
name=cvsup
version=16.1h
release=2
source=(ftp://ftp.freebsd.org/pub/FreeBSD/development/CVSup/snapshots/$name-snap-$version.tar.gz \
ftp://ftp.freebsd.org/pub/FreeBSD/development/CVSup/ezm3/ezm3-1.1-src.tar.bz2 \
ftp://ftp.freebsd.org/pub/FreeBSD/development/CVSup/ezm3/ezm3-1.1-LINUXLIBC6-boot.tar.bz2 \
cvsup)
build() {
# Build Modula-3 Compiler
cd ezm3-1.1
export CFLAGS="-O"
sed -i "s|/usr/local|$SRC/m3|" m3config/src/LINUXLIBC6
sed -i "s|gmake|make|" m3config/src/COMMON
make
# Build CVSup
export PATH="$PATH:$SRC/m3/bin"
cd ../cvsup-snap-$version
make PREFIX=/usr M3FLAGS="-DNOGUI"
mkdir -p $PKG/usr/{bin,sbin,man/man1,man/man8}
make PREFIX=$PKG/usr install
install -D -m 755 ../cvsup $PKG/etc/ports/drivers/cvsup
}

13
cvsup/cvsup Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
#
# /etc/ports/drivers/cvsup: cvsup(1) driver script for ports(8)
#
if [ "$#" != "1" ]; then
echo "usage: $0 <file>"
exit 1
fi
cvsup -g -L 1 -r 0 -c .cvsup $1
# End of file

29
db/.footprint Normal file
View File

@ -0,0 +1,29 @@
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_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.3.a
-rw-r--r-- root/root usr/lib/libdb-4.3.la
-rwxr-xr-x root/root usr/lib/libdb-4.3.so
lrwxrwxrwx root/root usr/lib/libdb-4.so -> libdb-4.3.so
-rw-r--r-- root/root usr/lib/libdb.a
lrwxrwxrwx root/root usr/lib/libdb.so -> libdb-4.3.so
-rw-r--r-- root/root usr/lib/libdb_cxx-4.3.a
-rw-r--r-- root/root usr/lib/libdb_cxx-4.3.la
-rwxr-xr-x root/root usr/lib/libdb_cxx-4.3.so
lrwxrwxrwx root/root usr/lib/libdb_cxx-4.so -> libdb_cxx-4.3.so
-rw-r--r-- root/root usr/lib/libdb_cxx.a
lrwxrwxrwx root/root usr/lib/libdb_cxx.so -> libdb_cxx-4.3.so

1
db/.md5sum Normal file
View File

@ -0,0 +1 @@
200b9f5d74175875fcb3ee54adbf0007 db-4.3.29.tar.gz

22
db/Pkgfile Normal file
View File

@ -0,0 +1,22 @@
# Description: Berkeley DB
# URL: http://www.sleepycat.com/products/db.shtml
# Maintainer: Per Lidén <per@fukt.bth.se>
name=db
version=4.3.29
release=1
source=(ftp://ftp.sleepycat.com/releases/$name-$version.tar.gz)
build() {
cd $name-$version/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 <per@fukt.bth.se>
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

11
devfsd/.footprint Normal file
View File

@ -0,0 +1,11 @@
drwxr-xr-x root/root etc/
-rw-r--r-- root/root etc/devfsd.conf
-rw-r--r-- root/root etc/modules.devfs
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/devfsd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man5/
-rw-r--r-- root/root usr/man/man5/devfsd.conf.5.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/devfsd.8.gz

3
devfsd/.md5sum Normal file
View File

@ -0,0 +1,3 @@
44c6394b8e2e8feaf453aeddc8a3ee69 devfsd-v1.3.25.tar.gz
3c7c72ec669d8d801b55838009889a0e devfsd.conf
52b0e6887ba1a3ef645e5b3364340250 devfsd.patch

19
devfsd/Pkgfile Normal file
View File

@ -0,0 +1,19 @@
# Description: Daemon for managing devfs (the Linux Device Filesystem)
# URL: http://www.atnf.csiro.au/people/rgooch/linux/
# Maintainer: Per Lidén <per@fukt.bth.se>
name=devfsd
version=1.3.25
release=2
source=(ftp://ftp.atnf.csiro.au/pub/people/rgooch/linux/daemons/devfsd/$name-v$version.tar.gz \
devfsd.conf devfsd.patch)
build() {
cd $name
patch -p1 < ../$name.patch
make CEXTRAS="$CFLAGS"
mkdir -p $PKG/{sbin,etc} $PKG/usr/man/man{5,8}
make PREFIX=$PKG install
chown -R root.root $PKG
cp ../devfsd.conf $PKG/etc
}

10
devfsd/devfsd.conf Normal file
View File

@ -0,0 +1,10 @@
#
# /etc/devfsd.conf: devfsd(8) configuration
#
REGISTER .* MKOLDCOMPAT
UNREGISTER .* RMOLDCOMPAT
LOOKUP .* MODLOAD
# End of file

15
devfsd/devfsd.patch Normal file
View File

@ -0,0 +1,15 @@
diff -ru devfsd/devfsd.c devfsd-new/devfsd.c
--- devfsd/devfsd.c 2002-03-25 07:59:40.000000000 +0100
+++ devfsd-new/devfsd.c 2002-05-25 15:35:31.000000000 +0200
@@ -641,10 +641,7 @@
fprintf (stderr, "Error setting SIGUSR1 handler\t%s\n", ERRSTRING);
exit (1);
}
- if (trace_level < 1)
- fprintf (stderr, "Started device management daemon v%s for %s\n",
- DEVFSD_VERSION, mount_point);
- else
+ if (trace_level > 0)
fprintf (stderr,
"Started device management daemon v%s for %s at trace level %d\n",
DEVFSD_VERSION, mount_point, trace_level);

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 <per@fukt.bth.se>
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 <per@fukt.bth.se>
name=diffutils
version=2.8.1
release=1
source=(http://mirrors.sunsite.dk/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
}

126
e2fsprogs/.footprint Normal file
View File

@ -0,0 +1,126 @@
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/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 @@
bcc58243f244fded51a7173562adbb26 e2fsprogs-1.38.patch
d774d4412bfb80d12cf3a4fdfd59de5a e2fsprogs-1.38.tar.gz

28
e2fsprogs/Pkgfile Normal file
View File

@ -0,0 +1,28 @@
# Description: Ext2 Filesystem Utilities
# URL: http://e2fsprogs.sourceforge.net/
# Maintainer: Per Lidén <per@fukt.bth.se>
name=e2fsprogs
version=1.38
release=1
source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz \
$name-$version.patch)
build() {
cd $name-$version
patch -p1 < ../$name-$version.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.38/e2fsck/Makefile.in e2fsprogs-1.38-new/e2fsck/Makefile.in
--- e2fsprogs-1.38/e2fsck/Makefile.in 2005-06-29 19:42:20.000000000 +0200
+++ e2fsprogs-1.38-new/e2fsck/Makefile.in 2005-07-08 20:00:59.000000000 +0200
@@ -161,10 +161,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 \
@@ -174,10 +174,10 @@
$(INSTALL_DATA) $$i $(DESTDIR)$(man8dir)/$$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.38/lib/uuid/Makefile.in e2fsprogs-1.38-new/lib/uuid/Makefile.in
--- e2fsprogs-1.38/lib/uuid/Makefile.in 2005-06-29 19:42:20.000000000 +0200
+++ e2fsprogs-1.38-new/lib/uuid/Makefile.in 2005-07-08 20:00:59.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.38/misc/Makefile.in e2fsprogs-1.38-new/misc/Makefile.in
--- e2fsprogs-1.38/misc/Makefile.in 2005-06-29 19:42:20.000000000 +0200
+++ e2fsprogs-1.38-new/misc/Makefile.in 2005-07-08 20:00:59.000000000 +0200
@@ -230,16 +230,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"; \
@@ -259,10 +259,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 \
$(RM) -f $(DESTDIR)$(man1dir)/$$i.gz; \

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 <per@fukt.bth.se>
name=ed
version=0.2
release=2
source=(http://mirrors.sunsite.dk/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 <per@fukt.bth.se>
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 @@
9bc5a7017ab7bd544f288fd931ec741a file-4.16.tar.gz

17
file/Pkgfile Normal file
View File

@ -0,0 +1,17 @@
# Description: File type identification utility
# URL: ftp://ftp.fu-berlin.de/unix/tools/file/
# Maintainer: Per Lidén <per@fukt.bth.se>
# Depends on: zlib
name=file
version=4.16
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 ftp/ftp 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 @@
ae0ac5e40d0b7eccdc824d68e17df0f3 fstab
3ebcb005449f69c2ef58fd54b23125ba group
6cef6f5ab23244460cdf13c98e68b010 issue
346ede8d637940e2898cd29c56a37d30 mime.types
d41d8cd98f00b204e9800998ecf8427e motd
aa183b009b52291616573c8071db792a passwd
8b9a30490b731e26e3eb8bd74c018655 securetty
0034d284ea9b44efb750535ab3f15837 shadow
87f6864e24d24c8fb8718ed70269309c shells

81
filesystem/Pkgfile Normal file
View File

@ -0,0 +1,81 @@
# Description: Root filesystem package
# URL: http://crux.nu
# Maintainer: Per Lidén <per@fukt.bth.se>
name=filesystem
version=2.1
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
chown ftp.ftp $PKG/var/ftp
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
}

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