Replaced core PKGBUILDs for an OpenPogo filesystem reorganization

This commit is contained in:
Mike Staszel 2009-10-07 22:40:19 -05:00
parent e034a7e1e3
commit f5fa929202
316 changed files with 32037 additions and 0 deletions

39
core/acl/PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=acl
pkgver=2.2.47
pkgrel=1
pkgdesc="Library for filesystem ACL support"
arch=(arm)
url="http://oss.sgi.com/projects/xfs/"
license=('LGPL')
groups=('base')
depends=('attr>=2.4.41')
makedepends=('libtool' 'gettext')
replaces=('xfsacl')
provides=('xfsacl')
conflicts=('xfsacl')
options=('!libtool')
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/acl_${pkgver}-1.tar.gz
acl-rpath.patch)
md5sums=('a11e4571a54a0b1ae83010d1e68a64c2'
'1fe58873e384657cac223689482e3a30')
build() {
cd $srcdir/acl-$pkgver
patch -Np0 -i $srcdir/acl-rpath.patch
autoconf
./configure --prefix=/usr
make || return 1
make prefix=$pkgdir/usr/ install install-lib install-dev
# tidy up
cd $pkgdir
mkdir -v lib
mv -v usr/lib/libacl.so* lib/
ln -sv ../../lib/libacl.so.1 usr/lib/libacl.so
mv -v usr/libexec/libacl.{a,la} usr/lib/
rm -rf $pkgdir/usr/libexec
}

25
core/acl/acl-rpath.patch Normal file
View file

@ -0,0 +1,25 @@
--- include/builddefs.in.orig 2009-03-20 18:56:14.000000000 -0300
+++ include/builddefs.in 2009-03-20 18:56:32.000000000 -0300
@@ -27,14 +27,14 @@
PKG_VERSION = @pkg_version@
PKG_PLATFORM = @pkg_platform@
PKG_DISTRIBUTION= @pkg_distribution@
-PKG_BIN_DIR = @bindir@
-PKG_SBIN_DIR = @sbindir@
-PKG_LIB_DIR = @libdir@@libdirsuffix@
-PKG_DEVLIB_DIR = @libexecdir@@libdirsuffix@
-PKG_INC_DIR = @includedir@
-PKG_MAN_DIR = @mandir@
-PKG_DOC_DIR = @datadir@/doc/@pkg_name@
-PKG_LOCALE_DIR = @datadir@/locale
+PKG_BIN_DIR = $(DESTDIR)@bindir@
+PKG_SBIN_DIR = $(DESTDIR)@sbindir@
+PKG_LIB_DIR = $(DESTDIR)@libdir@@libdirsuffix@
+PKG_DEVLIB_DIR = $(DESTDIR)@libexecdir@@libdirsuffix@
+PKG_INC_DIR = $(DESTDIR)@includedir@
+PKG_MAN_DIR = $(DESTDIR)@mandir@
+PKG_DOC_DIR = $(DESTDIR)@datadir@/doc/@pkg_name@
+PKG_LOCALE_DIR = $(DESTDIR)@datadir@/locale
CC = @cc@
AWK = @awk@

36
core/attr/PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=attr
pkgver=2.4.43
pkgrel=2
pkgdesc="Extended attribute support library for ACL support"
arch=(arm)
url="http://oss.sgi.com/projects/xfs/"
license=('LGPL')
groups=('base')
depends=('glibc')
makedepends=('gettext')
replaces=('xfsattr')
provides=('xfsattr')
conflicts=('xfsattr')
options=('!libtool')
source=(ftp://oss.sgi.com/projects/xfs/cmd_tars/attr_${pkgver}-1.tar.gz)
md5sums=('91583a14bcbd637adaa9b07ea49c5d4b')
build() {
cd $startdir/src/attr-$pkgver
autoconf
./configure --prefix=/usr
sed -i -e 's/man2//g' man/Makefile
make || return 1
make prefix=${startdir}/pkg/usr install install-lib install-dev
# tidy up
cd "${startdir}/pkg"
mkdir -v lib
mv -v usr/lib/libattr.so* lib/
ln -sv ../../lib/libattr.so.1 usr/lib/libattr.so
mv -v usr/libexec/libattr.{a,la} usr/lib/
rm -rvf usr/libexec
}

20
core/autoconf/PKGBUILD Normal file
View file

@ -0,0 +1,20 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=autoconf
pkgver=2.63
pkgrel=2
pkgdesc="A GNU tool for automatically configuring source code"
arch=('arm')
license=('GPL2' 'GPL3')
url="http://www.gnu.org/software/autoconf"
groups=('base-devel')
depends=('awk' 'm4' 'diffutils' 'bash')
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('43d76649fb86cd21d64f68c48d5abdcf')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
make || return 1
make DESTDIR=${pkgdir} install || return 1
rm -rf "${pkgdir}/usr/share/info"
}

23
core/automake/PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=automake
pkgver=1.11
pkgrel=1
pkgdesc="A GNU tool for automatically creating Makefiles"
arch=(arm)
license=('GPL')
url="http://www.gnu.org/software/automake"
groups=('base-devel')
depends=('perl' 'bash')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('fab0bd2c3990a6679adaf9eeac0c6d2a')
build() {
cd "$srcdir/automake-$pkgver"
./configure --prefix=/usr
make || return 1
make DESTDIR=$pkgdir install || return 1
}
# vim: set ft=sh ts=2 sw=2 et:

78
core/bash/PKGBUILD Normal file
View file

@ -0,0 +1,78 @@
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# arm Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=bash
_patchlevel=028
pkgver=4.0.$_patchlevel
pkgrel=1
pkgdesc="The GNU Bourne Again shell"
arch=(arm)
license=('GPL')
url="http://www.gnu.org/software/bash/bash.html"
groups=('base')
backup=(etc/profile.bash etc/skel/.bashrc etc/skel/.bash_profile)
depends=('readline>=5.2' 'glibc')
makedepends=(gzip)
provides=('sh')
source=(http://ftp.gnu.org/gnu/bash/bash-4.0.tar.gz
profile.bash bashrc)
for p in $(seq -w 001 $_patchlevel); do
source=(${source[@]} http://ftp.gnu.org/gnu/bash/bash-4.0-patches/bash40-$p)
done
build() {
cd ${startdir}/src/${pkgname}-4.0
for p in ../bash40-*; do
msg "applying patch ${p}"
patch -Np0 -i ${p} || return 1
done
./configure --prefix=/usr --with-curses --enable-readline \
--without-bash-malloc --with-installed-readline \
--bindir=/bin --mandir=/usr/share/man --infodir=/usr/share/info
make || return 1
make DESTDIR=${startdir}/pkg install
install -D -m644 ${startdir}/src/profile.bash ${startdir}/pkg/etc/profile.bash
# for now, bash is our default /bin/sh
cd ${startdir}/pkg/bin
ln -s bash sh
mkdir -p $startdir/pkg/etc/skel/
install -D -m644 $startdir/src/bashrc $startdir/pkg/etc/skel/.bashrc
echo ". \$HOME/.bashrc" >$startdir/pkg/etc/skel/.bash_profile
rm -rf ${pkgdir}/usr/share/{info,man}
}
md5sums=('a90a1b5a6db4838483f05438e05e8eb9'
'c2fae355facefcac8a732cce877da194'
'3d2837e84645eac9bde399b58014bafa'
'bc7f4762443939bd7dccb42370f0d932'
'c2a4a4786a83ed4ec366c6a8924369a2'
'22e8a824eddba21a8fce10d7984c2aba'
'ed7cbced8c7c964323265522369a37a2'
'8ed86b7d31423d71ecf3148251d63512'
'5f447338cb98ff156cabf1fd9879d5f3'
'96e946cb66a4ca186cba1da44f1ee163'
'd3eb7b6f00d525e032478c33f51d46a8'
'340601c997ce569532417a7ae92248b8'
'0bd5ab96d514ffb1afbb8c7984b15146'
'32cb20f339a20e1e9fb37a5d18f18fca'
'33fd9e93d30a17988c19554ef26d56e0'
'a266b42df5e9ed7e8818a8b00d50e00b'
'86cac78f191a32cd1404f11264eb9b2a'
'bb41963d030bc61a20e8185367b337c5'
'f75455048a086528971252fd979b8755'
'34b2cd57271a452f4a26b39d77ff908f'
'99318eed8dcc05e10a14ae27043f175d'
'af3b9aaeadc71a5007bec2b98c751cde'
'eb7c7ddeb7e8451eb59228dca3329696'
'585d701b978ceb63967dc020db3a2234'
'7a70f2608f90f6ac0c2051e5f1c6c414'
'7a23aa41630dd4fe8d30108a200e2d96'
'82ba5fc9eb780eb57d8b7628a17b7d74'
'b26f9007ac4eef5c378f1abcb8959025'
'83bc844c82d0a30740e8d91a8238bfa9'
'a41c187f05ecab07389c18acc91214c6'
'fcc367e6471267d2e397257e703b817d')

6
core/bash/bashrc Normal file
View file

@ -0,0 +1,6 @@
# Check for an interactive session
[ -z "$PS1" ] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

35
core/bash/profile Normal file
View file

@ -0,0 +1,35 @@
#
# /etc/profile
#
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin"
export MANPATH="/usr/man:/usr/X11R6/man"
export LESSCHARSET="latin1"
export INPUTRC="/etc/inputrc"
export LESS="-R"
export LC_COLLATE="C"
export COLUMNS LINES
export PS1='[\u@\h \W]\$ '
export PS2='> '
umask 022
if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" -o "$TERM" = "xterm-xfree86" ]; then
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
fi
# load profiles from /etc/profile.d
# (to disable a profile, just remove execute permission on it)
if [ `ls -A1 /etc/profile.d/ | wc -l` -gt 0 ]; then
for profile in /etc/profile.d/*.sh; do
if [ -x $profile ]; then
. $profile
fi
done
unset profile
fi
# End of file

25
core/bash/profile.bash Normal file
View file

@ -0,0 +1,25 @@
#
# /etc/profile.bash
# Global settings for bash shells
#
PS1='[\u@\h \W]\$ '
PS2='> '
PS3='> '
PS4='+ '
export PS1 PS2 PS3 PS4
#In the future we may want to add more ulimit entries here,
# in the offchance that /etc/security/limits.conf is skipped
ulimit -Sc 0 #Don't create core files
if test "$TERM" = "xterm" -o \
"$TERM" = "xterm-color" -o \
"$TERM" = "xterm-256color" -o \
"$TERM" = "rxvt" -o \
"$TERM" = "rxvt-unicode" -o \
"$TERM" = "xterm-xfree86"; then
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
export PROMPT_COMMAND
fi

24
core/bc/PKGBUILD Normal file
View file

@ -0,0 +1,24 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=bc
pkgver=1.06
pkgrel=1
pkgdesc="An arbitrary precision calculator language"
arch=('arm')
license=('GPL')
depends=('readline')
replaces=(bc-readline)
conflicts=(bc-readline)
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
build-fix.patch)
md5sums=('d44b5dddebd8a7a7309aea6c36fda117' 'fc7ecbd9e55ef04c6d3a495692626116')
build() {
CFLAGS="$CFLAGS -O3"
cd ${startdir}/src/${pkgname}-${pkgver}
patch -Np1 -i ${startdir}/src/build-fix.patch || return 1
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --with-readline
make LEX="flex -I" || return 1
make DESTDIR=${startdir}/pkg install
rm ${pkgdir}/usr/share/info/dir
}

13
core/bc/build-fix.patch Normal file
View file

@ -0,0 +1,13 @@
diff -wbBur bc-1.06/bc/scan.l bc-1.06.my/bc/scan.l
--- bc-1.06/bc/scan.l 2000-09-13 22:25:47 +0400
+++ bc-1.06.my/bc/scan.l 2006-12-25 12:39:34 +0300
@@ -143,7 +143,9 @@
/* Definitions for readline access. */
extern FILE *rl_instream;
+#if 0
_PROTOTYPE(char *readline, (char *));
+#endif
/* 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

46
core/binutils/PKGBUILD Normal file
View file

@ -0,0 +1,46 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# toolchain build order: kernel-headers->glibc->binutils->gcc-libs->gcc->binutils->glibc
pkgname=binutils
pkgver=2.19.1
pkgrel=3
_date=20090205
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('arm')
url="http://www.gnu.org/software/binutils/"
license=('GPL')
groups=('base-devel')
options=('!libtool' '!distcc' '!ccache')
depends=('glibc>=2.9' 'texinfo>=4.13a-3')
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
md5sums=('8fd8a7082814124917289eba9f2b46f1')
build() {
mkdir -p $srcdir/binutils-build
cd $srcdir/binutils-build
CC="gcc -L`pwd`/bfd/.libs/"
../configure --prefix=/usr \
--mandir=/usr/share/man --infodir=/usr/share/info \
--enable-shared || return 1
# fix man files install path
sed -i -e "s:mandir \= \/usr\/share:mandir \= ${pkgdir}\/usr\/share:" ${srcdir}/binutils-build/Makefile || return 1
# fix info files install path
sed -i -e "s:infodir \= \/usr\/share:infodir \= ${pkgdir}\/usr\/share:" ${srcdir}/binutils-build/Makefile || return 1
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
make configure-host || return 1
make tooldir=${startdir}/pkg/usr || return 1
make prefix=${startdir}/pkg/usr tooldir=${startdir}/pkg/usr install
install -m 644 ../include/libiberty.h ${startdir}/pkg/usr/include
# Remove these symlinks, with binutils prereleases they are not ABI stable.
# Programs should compile static to the .a file.
rm -f ${startdir}/pkg/usr/lib/lib{bfd,opcodes}.so
}

20
core/bison/PKGBUILD Normal file
View file

@ -0,0 +1,20 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=bison
pkgver=2.4.1
pkgrel=1
pkgdesc="The GNU general-purpose parser generator"
arch=('arm')
license=('GPL')
url="http://www.gnu.org/software/bison/bison.html"
depends=('glibc' 'm4' 'texinfo')
groups=('base-devel')
source=(ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.gz)
md5sums=('c58aa1da418dc9704070872489e89bf5')
sha1sums=('ecc4139bbd45b73f42f2b04482d77c16534fea28')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --datadir=/usr/share || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
}

29
core/busybox/PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
pkgname=busybox
pkgver=1.14.2
pkgrel=1
pkgdesc='A combination of tiny common UNIX utilties'
arch=(arm)
url='http://www.busybox.net'
license=('GPL')
groups=('small-base')
conflicts=('coreutils' 'e2fsprogs' 'vi' 'findutils' 'procps' 'bash' \
'syslog-ng' 'bzip2' 'unzip' 'gzip' 'binutils' 'tar' 'grep' 'sed' \
'awk' 'which' 'ncurses' 'kbd' 'shadow' 'module-init-tools' 'util-linux-ng' \
'util-linux' 'dosfstools' 'dcron' 'less' 'net-tools')
provides=('coreutils' 'e2fsprogs' 'vi' 'findutils' 'procps' 'bash' \
'syslog-ng' 'bzip2' 'unzip' 'gzip' 'binutils' 'tar' 'grep' 'sed' 'awk' \
'which' 'ncurses' 'kbd' 'shadow' 'module-init-tools' 'util-linux-ng' \
'util-linunx' 'dosfstools' 'dcron' 'less' 'net-tools')
source=(http://www.busybox.net/downloads/${pkgname}-${pkgver}.tar.bz2 config)
md5sums=('c13b09b4125688d5fca5c95a79bf814a' 'eec47462d123479897f405f31089c65d')
build() {
cd ${srcdir}/${pkgname}-${pkgver}/
cp ${srcdir}/config .config
make oldconfig || return 1
make || return 1
make install
cp -r _install/* ${pkgdir}/
}

880
core/busybox/config Normal file
View file

@ -0,0 +1,880 @@
# ArchMobile Default Busybox Config
# Version: 1.14.2
#
# General Configuration
#
CONFIG_HAVE_DOT_CONFIG=y
CONFIG_DESKTOP=n
CONFIG_EXTRA_COMPAT=n
CONFIG_FEATURE_ASSUME_UNICODE=n
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
CONFIG_FEATURE_BUFFERS_GO_ON_STACK=n
CONFIG_FEATURE_BUFFERS_GO_IN_BSS=n
CONFIG_SHOW_USAGE=y
CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_FEATURE_COMPRESS_USAGE=y
CONFIG_FEATURE_INSTALLER=y
CONFIG_LOCALE_SUPPORT=n
CONFIG_GETOPT_LONG=y
CONFIG_FEATURE_DEVPTS=y
CONFIG_FEATURE_CLEAN_UP=n
CONFIG_FEATURE_PIDFILE=y
CONFIG_FEATURE_SUID=y
CONFIG_FEATURE_SUID_CONFIG=y
CONFIG_FEATURE_SUID_CONFIG_QUIET=y
CONFIG_SELINUX=n
CONFIG_FEATURE_PREFER_APPLETS=n
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
CONFIG_FEATURE_SYSLOG=y
CONFIG_FEATURE_HAVE_RPC=y
#
# Build Options
#
CONFIG_STATIC=y
CONFIG_PIE=n
CONFIG_NOMMU=n
CONFIG_BUILD_LIBBUSYBOX=n
CONFIG_FEATURE_INDIVIDUAL=n
CONFIG_FEATURE_SHARED_BUSYBOX=n
CONFIG_LFS=n
CONFIG_CROSS_COMPILER_PREFIX=""
CONFIG_EXTRA_CFLAGS=""
#
# Debugging Options
#
CONFIG_DEBUG=n
CONFIG_DEBUG_PESSIMIZE=n
CONFIG_WERROR=n
CONFIG_NO_DEBUG_LIB=y
CONFIG_DMALLOC=n
CONFIG_EFENCE=n
CONFIG_INCLUDE_SUSv2=n
#
# Installation Options
#
CONFIG_INSTALL_NO_USR=n
CONFIG_INSTALL_APPLET_SYMLINKS=n
CONFIG_INSTALL_APPLET_HARDLINKS=n
CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS=y
CONFIG_INSTALL_APPLET_DONT=n
CONFIG_INSTALL_SH_APPLET_SYMLINK=y
CONFIG_INSTALL_SH_APPLET_HARDLINK=n
CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER=n
CONFIG_PREFIX="./_install"
#
# Busybox Library Tuning
#
CONFIG_PASSWORD_MINLEN=6
CONFIG_MD5_SIZE_VS_SPEED=2
CONFIG_FEATURE_FAST_TOP=y
CONFIG_FEATURE_ETC_NETWORKS=n
CONFIG_FEATURE_EDITING=y
CONFIG_FEATURE_EDITING_MAX_LEN=1024
CONFIG_FEATURE_EDITING_VI=y
CONFIG_FEATURE_EDITING_HISTORY=15
CONFIG_FEATURE_EDITING_SAVEHISTORY=y
CONFIG_FEATURE_TAB_COMPLETION=y
CONFIG_FEATURE_USERNAME_COMPLETION=y
CONFIG_FEATURE_EDITING_FANCY_PROMPT=y
CONFIG_FEATURE_VERBOSE_CP_MESSAGE=y
CONFIG_FEATURE_COPYBUF_KB=4
CONFIG_MONOTONIC_SYSCALL=n
CONFIG_IOCTL_HEX2STR_ERROR=y
CONFIG_FEATURE_HWIB=n
#
# Applets
#
#
# Archival Utilities
#
CONFIG_FEATURE_SEAMLESS_LZMA=y
CONFIG_FEATURE_SEAMLESS_BZ2=y
CONFIG_FEATURE_SEAMLESS_GZ=y
CONFIG_FEATURE_SEAMLESS_Z=y
CONFIG_AR=y
CONFIG_FEATURE_AR_LONG_FILENAMES=y
CONFIG_BUNZIP2=y
CONFIG_BZIP2=y
CONFIG_CPIO=y
CONFIG_FEATURE_CPIO_O=y
CONFIG_FEATURE_CPIO_P=n
CONFIG_DPKG=n
CONFIG_DPKG_DEB=n
CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY=n
CONFIG_GUNZIP=y
CONFIG_GZIP=y
CONFIG_RPM2CPIO=n
CONFIG_RPM=n
CONFIG_TAR=y
CONFIG_FEATURE_TAR_CREATE=y
CONFIG_FEATURE_TAR_AUTODETECT=y
CONFIG_FEATURE_TAR_FROM=y
CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y
CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
CONFIG_FEATURE_TAR_LONG_OPTIONS=y
CONFIG_FEATURE_TAR_UNAME_GNAME=y
CONFIG_UNCOMPRESS=y
CONFIG_UNLZMA=y
CONFIG_FEATURE_LZMA_FAST=y
CONFIG_UNZIP=y
#
# Coreutils
#
CONFIG_BASENAME=y
CONFIG_CAL=y
CONFIG_CAT=y
CONFIG_CATV=y
CONFIG_CHGRP=y
CONFIG_CHMOD=y
CONFIG_CHOWN=y
CONFIG_CHROOT=y
CONFIG_CKSUM=y
CONFIG_COMM=y
CONFIG_CP=y
CONFIG_CUT=y
CONFIG_DATE=y
CONFIG_FEATURE_DATE_ISOFMT=y
CONFIG_DD=y
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
CONFIG_FEATURE_DD_IBS_OBS=y
CONFIG_DF=y
CONFIG_FEATURE_DF_FANCY=y
CONFIG_DIRNAME=y
CONFIG_DOS2UNIX=y
CONFIG_UNIX2DOS=y
CONFIG_DU=y
CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y
CONFIG_ECHO=y
CONFIG_FEATURE_FANCY_ECHO=y
CONFIG_ENV=y
CONFIG_FEATURE_ENV_LONG_OPTIONS=y
CONFIG_EXPAND=y
CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y
CONFIG_EXPR=y
CONFIG_EXPR_MATH_SUPPORT_64=y
CONFIG_FALSE=y
CONFIG_FOLD=y
CONFIG_HEAD=y
CONFIG_FEATURE_FANCY_HEAD=y
CONFIG_HOSTID=y
CONFIG_ID=y
CONFIG_INSTALL=y
CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y
CONFIG_LENGTH=y
CONFIG_LN=y
CONFIG_LOGNAME=y
CONFIG_LS=y
CONFIG_FEATURE_LS_FILETYPES=y
CONFIG_FEATURE_LS_FOLLOWLINKS=y
CONFIG_FEATURE_LS_RECURSIVE=y
CONFIG_FEATURE_LS_SORTFILES=y
CONFIG_FEATURE_LS_TIMESTAMPS=y
CONFIG_FEATURE_LS_USERNAME=y
CONFIG_FEATURE_LS_COLOR=y
CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y
CONFIG_MD5SUM=y
CONFIG_MKDIR=y
CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y
CONFIG_MKFIFO=y
CONFIG_MKNOD=y
CONFIG_MV=y
CONFIG_FEATURE_MV_LONG_OPTIONS=y
CONFIG_NICE=y
CONFIG_NOHUP=y
CONFIG_OD=y
CONFIG_PRINTENV=y
CONFIG_PRINTF=y
CONFIG_PWD=y
CONFIG_READLINK=y
CONFIG_FEATURE_READLINK_FOLLOW=y
CONFIG_REALPATH=y
CONFIG_RM=y
CONFIG_RMDIR=y
CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y
CONFIG_SEQ=y
CONFIG_SHA1SUM=y
CONFIG_SHA256SUM=n
CONFIG_SHA512SUM=n
CONFIG_SLEEP=y
CONFIG_FEATURE_FANCY_SLEEP=y
CONFIG_FEATURE_FLOAT_SLEEP=y
CONFIG_SORT=y
CONFIG_FEATURE_SORT_BIG=y
CONFIG_SPLIT=y
CONFIG_FEATURE_SPLIT_FANCY=y
CONFIG_STAT=y
CONFIG_FEATURE_STAT_FORMAT=y
CONFIG_STTY=y
CONFIG_SUM=y
CONFIG_SYNC=y
CONFIG_TAC=y
CONFIG_TAIL=y
CONFIG_FEATURE_FANCY_TAIL=y
CONFIG_TEE=y
CONFIG_FEATURE_TEE_USE_BLOCK_IO=y
CONFIG_TEST=y
CONFIG_FEATURE_TEST_64=y
CONFIG_TOUCH=y
CONFIG_TR=y
CONFIG_FEATURE_TR_CLASSES=y
CONFIG_FEATURE_TR_EQUIV=y
CONFIG_TRUE=y
CONFIG_TTY=y
CONFIG_UNAME=y
CONFIG_UNEXPAND=y
CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y
CONFIG_UNIQ=y
CONFIG_USLEEP=y
CONFIG_UUDECODE=n
CONFIG_UUENCODE=n
CONFIG_WC=y
CONFIG_FEATURE_WC_LARGE=y
CONFIG_WHO=y
CONFIG_WHOAMI=y
CONFIG_YES=y
#
# Common options for cp and mv
#
CONFIG_FEATURE_PRESERVE_HARDLINKS=y
#
# Common options for ls, more and telnet
#
CONFIG_FEATURE_AUTOWIDTH=y
#
# Common options for df, du, ls
#
CONFIG_FEATURE_HUMAN_READABLE=y
#
# Common options for md5sum, sha1sum
#
CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
#
# Console Utilities
#
CONFIG_CHVT=y
CONFIG_CLEAR=y
CONFIG_DEALLOCVT=y
CONFIG_DUMPKMAP=y
CONFIG_KBD_MODE=y
CONFIG_LOADFONT=y
CONFIG_LOADKMAP=y
CONFIG_OPENVT=y
CONFIG_RESET=y
CONFIG_RESIZE=y
CONFIG_FEATURE_RESIZE_PRINT=y
CONFIG_SETCONSOLE=y
CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y
CONFIG_SETFONT=y
CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y
CONFIG_DEFAULT_SETFONT_DIR=""
CONFIG_SETKEYCODES=y
CONFIG_SETLOGCONS=y
CONFIG_SHOWKEY=y
#
# Debian Utilities
#
CONFIG_MKTEMP=y
CONFIG_PIPE_PROGRESS=y
CONFIG_RUN_PARTS=n
CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=n
CONFIG_FEATURE_RUN_PARTS_FANCY=n
CONFIG_START_STOP_DAEMON=n
CONFIG_FEATURE_START_STOP_DAEMON_FANCY=n
CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=n
CONFIG_WHICH=y
#
# Editors
#
CONFIG_AWK=y
CONFIG_FEATURE_AWK_LIBM=y
CONFIG_CMP=y
CONFIG_DIFF=y
CONFIG_FEATURE_DIFF_BINARY=y
CONFIG_FEATURE_DIFF_DIR=y
CONFIG_FEATURE_DIFF_MINIMAL=y
CONFIG_ED=n
CONFIG_PATCH=y
CONFIG_SED=y
CONFIG_VI=y
CONFIG_FEATURE_VI_MAX_LEN=4096
CONFIG_FEATURE_VI_8BIT=y
CONFIG_FEATURE_VI_COLON=y
CONFIG_FEATURE_VI_YANKMARK=y
CONFIG_FEATURE_VI_SEARCH=y
CONFIG_FEATURE_VI_USE_SIGNALS=y
CONFIG_FEATURE_VI_DOT_CMD=y
CONFIG_FEATURE_VI_READONLY=y
CONFIG_FEATURE_VI_SETOPTS=y
CONFIG_FEATURE_VI_SET=y
CONFIG_FEATURE_VI_WIN_RESIZE=y
CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y
CONFIG_FEATURE_ALLOW_EXEC=y
#
# Finding Utilities
#
CONFIG_FIND=y
CONFIG_FEATURE_FIND_PRINT0=y
CONFIG_FEATURE_FIND_MTIME=y
CONFIG_FEATURE_FIND_MMIN=y
CONFIG_FEATURE_FIND_PERM=y
CONFIG_FEATURE_FIND_TYPE=y
CONFIG_FEATURE_FIND_XDEV=y
CONFIG_FEATURE_FIND_MAXDEPTH=y
CONFIG_FEATURE_FIND_NEWER=y
CONFIG_FEATURE_FIND_INUM=y
CONFIG_FEATURE_FIND_EXEC=y
CONFIG_FEATURE_FIND_USER=y
CONFIG_FEATURE_FIND_GROUP=y
CONFIG_FEATURE_FIND_NOT=y
CONFIG_FEATURE_FIND_DEPTH=y
CONFIG_FEATURE_FIND_PAREN=y
CONFIG_FEATURE_FIND_SIZE=y
CONFIG_FEATURE_FIND_PRUNE=y
CONFIG_FEATURE_FIND_DELETE=y
CONFIG_FEATURE_FIND_PATH=y
CONFIG_FEATURE_FIND_REGEX=y
CONFIG_FEATURE_FIND_CONTEXT=n
CONFIG_GREP=y
CONFIG_FEATURE_GREP_EGREP_ALIAS=y
CONFIG_FEATURE_GREP_FGREP_ALIAS=y
CONFIG_FEATURE_GREP_CONTEXT=y
CONFIG_XARGS=y
CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y
CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y
CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y
CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y
#
# Init Utilities
#
CONFIG_INIT=n
CONFIG_FEATURE_USE_INITTAB=n
CONFIG_FEATURE_KILL_REMOVED=n
CONFIG_FEATURE_KILL_DELAY=n
CONFIG_FEATURE_INIT_SCTTY=n
CONFIG_FEATURE_INIT_SYSLOG=n
CONFIG_FEATURE_EXTRA_QUIET=n
CONFIG_FEATURE_INIT_COREDUMPS=n
CONFIG_FEATURE_INITRD=n
CONFIG_HALT=n
CONFIG_MESG=n
#
# Login/Password Management Utilities
#
CONFIG_FEATURE_SHADOWPASSWDS=y
CONFIG_USE_BB_PWD_GRP=y
CONFIG_USE_BB_SHADOW=y
CONFIG_USE_BB_CRYPT=y
CONFIG_USE_BB_CRYPT_SHA=n
CONFIG_ADDGROUP=y
CONFIG_FEATURE_ADDUSER_TO_GROUP=y
CONFIG_DELGROUP=y
CONFIG_FEATURE_DEL_USER_FROM_GROUP=y
CONFIG_FEATURE_CHECK_NAMES=n
CONFIG_ADDUSER=y
CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y
CONFIG_DELUSER=y
CONFIG_GETTY=y
CONFIG_FEATURE_UTMP=y
CONFIG_FEATURE_WTMP=y
CONFIG_LOGIN=y
CONFIG_PAM=n
CONFIG_LOGIN_SCRIPTS=y
CONFIG_FEATURE_NOLOGIN=y
CONFIG_FEATURE_SECURETTY=y
CONFIG_PASSWD=y
CONFIG_FEATURE_PASSWD_WEAK_CHECK=y
CONFIG_CRYPTPW=y
CONFIG_CHPASSWD=y
CONFIG_SU=y
CONFIG_FEATURE_SU_SYSLOG=y
CONFIG_FEATURE_SU_CHECKS_SHELLS=y
CONFIG_SULOGIN=y
CONFIG_VLOCK=y
#
# Linux Ext2 FS Progs
#
CONFIG_CHATTR=n
CONFIG_FSCK=y
CONFIG_LSATTR=n
#
# Linux Module Utilities
#
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
CONFIG_MODPROBE_SMALL=y
CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y
CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y
CONFIG_INSMOD=n
CONFIG_RMMOD=n
CONFIG_LSMOD=y
CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT=n
CONFIG_MODPROBE=y
CONFIG_FEATURE_MODPROBE_BLACKLIST=y
CONFIG_DEPMOD=n
#
# Options common to multiple modutils
#
CONFIG_FEATURE_2_4_MODULES=n
CONFIG_FEATURE_INSMOD_VERSION_CHECKING=n
CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS=n
CONFIG_FEATURE_INSMOD_LOADINKMEM=n
CONFIG_FEATURE_INSMOD_LOAD_MAP=n
CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL=n
CONFIG_FEATURE_CHECK_TAINTED_MODULE=n
CONFIG_FEATURE_MODUTILS_ALIAS=n
CONFIG_FEATURE_MODUTILS_SYMBOLS=n
#
# Linux System Utilities
#
CONFIG_ACPID=n
CONFIG_BLKID=y
CONFIG_DMESG=y
CONFIG_FEATURE_DMESG_PRETTY=y
CONFIG_FBSET=y
CONFIG_FEATURE_FBSET_FANCY=y
CONFIG_FEATURE_FBSET_READMODE=y
CONFIG_FDFLUSH=y
CONFIG_FDFORMAT=y
CONFIG_FDISK=y
CONFIG_FDISK_SUPPORT_LARGE_DISKS=y
CONFIG_FEATURE_FDISK_WRITABLE=y
CONFIG_FEATURE_AIX_LABEL=n
CONFIG_FEATURE_SGI_LABEL=n
CONFIG_FEATURE_SUN_LABEL=n
CONFIG_FEATURE_OSF_LABEL=n
CONFIG_FEATURE_FDISK_ADVANCED=y
CONFIG_FINDFS=y
CONFIG_FREERAMDISK=y
CONFIG_FSCK_MINIX=n
CONFIG_MKFS_MINIX=n
CONFIG_MKFS_VFAT=y
CONFIG_FEATURE_MINIX2=n
CONFIG_GETOPT=y
CONFIG_HEXDUMP=y
CONFIG_FEATURE_HEXDUMP_REVERSE=y
CONFIG_HD=y
CONFIG_HWCLOCK=y
CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y
CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
CONFIG_IPCRM=y
CONFIG_IPCS=y
CONFIG_LOSETUP=y
CONFIG_MDEV=y
CONFIG_FEATURE_MDEV_CONF=y
CONFIG_FEATURE_MDEV_RENAME=y
CONFIG_FEATURE_MDEV_RENAME_REGEXP=y
CONFIG_FEATURE_MDEV_EXEC=y
CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y
CONFIG_MKSWAP=y
CONFIG_FEATURE_MKSWAP_V0=y
CONFIG_MORE=y
CONFIG_FEATURE_USE_TERMIOS=y
CONFIG_VOLUMEID=y
CONFIG_FEATURE_VOLUMEID_EXT=y
CONFIG_FEATURE_VOLUMEID_REISERFS=n
CONFIG_FEATURE_VOLUMEID_FAT=n
CONFIG_FEATURE_VOLUMEID_HFS=n
CONFIG_FEATURE_VOLUMEID_JFS=n
CONFIG_FEATURE_VOLUMEID_XFS=n
CONFIG_FEATURE_VOLUMEID_NTFS=n
CONFIG_FEATURE_VOLUMEID_ISO9660=y
CONFIG_FEATURE_VOLUMEID_UDF=y
CONFIG_FEATURE_VOLUMEID_LUKS=n
CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y
CONFIG_FEATURE_VOLUMEID_CRAMFS=n
CONFIG_FEATURE_VOLUMEID_ROMFS=n
CONFIG_FEATURE_VOLUMEID_SYSV=n
CONFIG_FEATURE_VOLUMEID_OCFS2=n
CONFIG_FEATURE_VOLUMEID_LINUXRAID=n
CONFIG_MOUNT=y
CONFIG_FEATURE_MOUNT_FAKE=y
CONFIG_FEATURE_MOUNT_VERBOSE=y
CONFIG_FEATURE_MOUNT_HELPERS=n
CONFIG_FEATURE_MOUNT_LABEL=y
CONFIG_FEATURE_MOUNT_NFS=y
CONFIG_FEATURE_MOUNT_CIFS=y
CONFIG_FEATURE_MOUNT_FLAGS=y
CONFIG_FEATURE_MOUNT_FSTAB=y
CONFIG_PIVOT_ROOT=n
CONFIG_RDATE=y
CONFIG_RDEV=y
CONFIG_READPROFILE=y
CONFIG_RTCWAKE=y
CONFIG_SCRIPT=y
CONFIG_SETARCH=y
CONFIG_SWAPONOFF=y
CONFIG_FEATURE_SWAPON_PRI=y
CONFIG_SWITCH_ROOT=n
CONFIG_UMOUNT=y
CONFIG_FEATURE_UMOUNT_ALL=y
#
# Common options for mount/umount
#
CONFIG_FEATURE_MOUNT_LOOP=y
CONFIG_FEATURE_MTAB_SUPPORT=y
#
# Miscellaneous Utilities
#
CONFIG_ADJTIMEX=y
CONFIG_BBCONFIG=n
CONFIG_CHAT=n
CONFIG_FEATURE_CHAT_NOFAIL=n
CONFIG_FEATURE_CHAT_TTY_HIFI=n
CONFIG_FEATURE_CHAT_IMPLICIT_CR=n
CONFIG_FEATURE_CHAT_SWALLOW_OPTS=n
CONFIG_FEATURE_CHAT_SEND_ESCAPES=n
CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=n
CONFIG_FEATURE_CHAT_CLR_ABORT=n
CONFIG_CHRT=y
CONFIG_CROND=y
CONFIG_FEATURE_CROND_D=y
CONFIG_FEATURE_CROND_CALL_SENDMAIL=n
CONFIG_FEATURE_CROND_DIR="/var/spool/cron"
CONFIG_CRONTAB=y
CONFIG_DC=y
CONFIG_FEATURE_DC_LIBM=y
CONFIG_DEVFSD=n
CONFIG_DEVFSD_MODLOAD=n
CONFIG_DEVFSD_FG_NP=n
CONFIG_DEVFSD_VERBOSE=n
CONFIG_FEATURE_DEVFS=n
CONFIG_DEVMEM=y
CONFIG_EJECT=y
CONFIG_FEATURE_EJECT_SCSI=y
CONFIG_FBSPLASH=n
CONFIG_FLASH_ERASEALL=n
CONFIG_IONICE=n
CONFIG_INOTIFYD=y
CONFIG_LAST=y
CONFIG_FEATURE_LAST_SMALL=n
CONFIG_FEATURE_LAST_FANCY=y
CONFIG_LESS=y
CONFIG_FEATURE_LESS_MAXLINES=9999999
CONFIG_FEATURE_LESS_BRACKETS=y
CONFIG_FEATURE_LESS_FLAGS=y
CONFIG_FEATURE_LESS_DASHCMD=y
CONFIG_FEATURE_LESS_MARKS=y
CONFIG_FEATURE_LESS_REGEXP=y
CONFIG_FEATURE_LESS_LINENUMS=y
CONFIG_FEATURE_LESS_WINCH=y
CONFIG_HDPARM=y
CONFIG_FEATURE_HDPARM_GET_IDENTITY=y
CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y
CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y
CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y
CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y
CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y
CONFIG_MAKEDEVS=y
CONFIG_FEATURE_MAKEDEVS_LEAF=n
CONFIG_FEATURE_MAKEDEVS_TABLE=y
CONFIG_MAN=n
CONFIG_MICROCOM=y
CONFIG_MOUNTPOINT=y
CONFIG_MT=y
CONFIG_RAIDAUTORUN=n
CONFIG_READAHEAD=y
CONFIG_RUNLEVEL=y
CONFIG_RX=y
CONFIG_SETSID=y
CONFIG_STRINGS=y
CONFIG_TASKSET=y
CONFIG_FEATURE_TASKSET_FANCY=y
CONFIG_TIME=y
CONFIG_TIMEOUT=y
CONFIG_TTYSIZE=y
CONFIG_WATCHDOG=y
#
# Networking Utilities
#
CONFIG_FEATURE_IPV6=y
CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y
CONFIG_VERBOSE_RESOLUTION_ERRORS=n
CONFIG_ARP=y
CONFIG_ARPING=y
CONFIG_BRCTL=y
CONFIG_FEATURE_BRCTL_FANCY=y
CONFIG_FEATURE_BRCTL_SHOW=y
CONFIG_DNSD=y
CONFIG_ETHER_WAKE=y
CONFIG_FAKEIDENTD=y
CONFIG_FTPD=n
CONFIG_FTPGET=y
CONFIG_FTPPUT=y
CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y
CONFIG_HOSTNAME=y
CONFIG_HTTPD=n
CONFIG_FEATURE_HTTPD_RANGES=n
CONFIG_FEATURE_HTTPD_USE_SENDFILE=n
CONFIG_FEATURE_HTTPD_RELOAD_CONFIG_SIGHUP=n
CONFIG_FEATURE_HTTPD_SETUID=n
CONFIG_FEATURE_HTTPD_BASIC_AUTH=n
CONFIG_FEATURE_HTTPD_AUTH_MD5=n
CONFIG_FEATURE_HTTPD_CONFIG_WITH_MIME_TYPES=n
CONFIG_FEATURE_HTTPD_CGI=n
CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=n
CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=n
CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=n
CONFIG_FEATURE_HTTPD_ERROR_PAGES=n
CONFIG_FEATURE_HTTPD_PROXY=n
CONFIG_IFCONFIG=y
CONFIG_FEATURE_IFCONFIG_STATUS=y
CONFIG_FEATURE_IFCONFIG_SLIP=y
CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y
CONFIG_FEATURE_IFCONFIG_HW=y
CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y
CONFIG_IFENSLAVE=n
CONFIG_IFUPDOWN=y
CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate"
CONFIG_FEATURE_IFUPDOWN_IP=y
CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y
CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN=n
CONFIG_FEATURE_IFUPDOWN_IPV4=y
CONFIG_FEATURE_IFUPDOWN_IPV6=y
CONFIG_FEATURE_IFUPDOWN_MAPPING=y
CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP=n
CONFIG_INETD=y
CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y
CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y
CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y
CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y
CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y
CONFIG_FEATURE_INETD_RPC=y
CONFIG_IP=y
CONFIG_FEATURE_IP_ADDRESS=y
CONFIG_FEATURE_IP_LINK=y
CONFIG_FEATURE_IP_ROUTE=y
CONFIG_FEATURE_IP_TUNNEL=y
CONFIG_FEATURE_IP_RULE=y
CONFIG_FEATURE_IP_SHORT_FORMS=y
CONFIG_FEATURE_IP_RARE_PROTOCOLS=n
CONFIG_IPADDR=y
CONFIG_IPLINK=y
CONFIG_IPROUTE=y
CONFIG_IPTUNNEL=y
CONFIG_IPRULE=y
CONFIG_IPCALC=n
CONFIG_FEATURE_IPCALC_FANCY=n
CONFIG_FEATURE_IPCALC_LONG_OPTIONS=n
CONFIG_NAMEIF=y
CONFIG_FEATURE_NAMEIF_EXTENDED=y
CONFIG_NC=n
CONFIG_NC_SERVER=n
CONFIG_NC_EXTRA=n
CONFIG_NETSTAT=y
CONFIG_FEATURE_NETSTAT_WIDE=y
CONFIG_FEATURE_NETSTAT_PRG=y
CONFIG_NSLOOKUP=y
CONFIG_PING=y
CONFIG_PING6=y
CONFIG_FEATURE_FANCY_PING=y
CONFIG_PSCAN=y
CONFIG_ROUTE=y
CONFIG_SLATTACH=y
CONFIG_TELNET=y
CONFIG_FEATURE_TELNET_TTYPE=y
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
CONFIG_TELNETD=n
CONFIG_FEATURE_TELNETD_STANDALONE=n
CONFIG_TFTP=y
CONFIG_TFTPD=y
CONFIG_FEATURE_TFTP_GET=y
CONFIG_FEATURE_TFTP_PUT=y
CONFIG_FEATURE_TFTP_BLOCKSIZE=y
CONFIG_TFTP_DEBUG=n
CONFIG_TRACEROUTE=y
CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=n
CONFIG_FEATURE_TRACEROUTE_USE_ICMP=n
CONFIG_APP_UDHCPD=n
CONFIG_APP_DHCPRELAY=n
CONFIG_APP_DUMPLEASES=n
CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=n
CONFIG_DHCPD_LEASES_FILE=""
CONFIG_APP_UDHCPC=y
CONFIG_FEATURE_UDHCPC_ARPING=y
CONFIG_FEATURE_UDHCP_PORT=y
CONFIG_UDHCP_DEBUG=n
CONFIG_FEATURE_UDHCP_RFC3397=y
CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS=""
CONFIG_VCONFIG=y
CONFIG_WGET=y
CONFIG_FEATURE_WGET_STATUSBAR=y
CONFIG_FEATURE_WGET_AUTHENTICATION=y
CONFIG_FEATURE_WGET_LONG_OPTIONS=y
CONFIG_ZCIP=n
CONFIG_TCPSVD=n
CONFIG_TUNCTL=n
CONFIG_UDPSVD=n
#
# Print Utilities
#
CONFIG_LPD=n
CONFIG_LPR=n
CONFIG_LPQ=n
#
# Mail Utilities
#
CONFIG_MAKEMIME=n
CONFIG_FEATURE_MIME_CHARSET=""
CONFIG_POPMAILDIR=n
CONFIG_FEATURE_POPMAILDIR_DELIVERY=n
CONFIG_REFORMIME=n
CONFIG_FEATURE_REFORMIME_COMPAT=n
CONFIG_SENDMAIL=n
CONFIG_FEATURE_SENDMAIL_MAILX=n
CONFIG_FEATURE_SENDMAIL_MAILXX=n
#
# Process Utilities
#
CONFIG_FREE=y
CONFIG_FUSER=y
CONFIG_KILL=y
CONFIG_KILLALL=y
CONFIG_KILLALL5=y
CONFIG_NMETER=y
CONFIG_PGREP=y
CONFIG_PIDOF=y
CONFIG_FEATURE_PIDOF_SINGLE=y
CONFIG_FEATURE_PIDOF_OMIT=y
CONFIG_PKILL=y
CONFIG_PS=y
CONFIG_FEATURE_PS_WIDE=y
CONFIG_FEATURE_PS_TIME=n
CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS=n
CONFIG_RENICE=y
CONFIG_BB_SYSCTL=y
CONFIG_TOP=y
CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y
CONFIG_FEATURE_TOP_SMP_CPU=y
CONFIG_FEATURE_TOP_DECIMALS=y
CONFIG_FEATURE_TOP_SMP_PROCESS=y
CONFIG_FEATURE_TOPMEM=y
CONFIG_UPTIME=y
CONFIG_WATCH=y
#
# Runit Utilities
#
CONFIG_RUNSV=n
CONFIG_RUNSVDIR=n
CONFIG_FEATURE_RUNSVDIR_LOG=n
CONFIG_SV=n
CONFIG_SV_DEFAULT_SERVICE_DIR=""
CONFIG_SVLOGD=n
CONFIG_CHPST=n
CONFIG_SETUIDGID=n
CONFIG_ENVUIDGID=n
CONFIG_ENVDIR=n
CONFIG_SOFTLIMIT=n
CONFIG_CHCON=n
CONFIG_FEATURE_CHCON_LONG_OPTIONS=n
CONFIG_GETENFORCE=n
CONFIG_GETSEBOOL=n
CONFIG_LOAD_POLICY=n
CONFIG_MATCHPATHCON=n
CONFIG_RESTORECON=n
CONFIG_RUNCON=n
CONFIG_FEATURE_RUNCON_LONG_OPTIONS=n
CONFIG_SELINUXENABLED=n
CONFIG_SETENFORCE=n
CONFIG_SETFILES=n
CONFIG_FEATURE_SETFILES_CHECK_OPTION=n
CONFIG_SETSEBOOL=n
CONFIG_SESTATUS=n
#
# Shells
#
CONFIG_FEATURE_SH_IS_ASH=y
CONFIG_FEATURE_SH_IS_HUSH=n
CONFIG_FEATURE_SH_IS_MSH=n
CONFIG_FEATURE_SH_IS_NONE=n
CONFIG_ASH=y
#
# Ash Shell Options
#
CONFIG_ASH_BASH_COMPAT=y
CONFIG_ASH_JOB_CONTROL=y
CONFIG_ASH_READ_NCHARS=y
CONFIG_ASH_READ_TIMEOUT=y
CONFIG_ASH_ALIAS=y
CONFIG_ASH_MATH_SUPPORT=y
CONFIG_ASH_MATH_SUPPORT_64=y
CONFIG_ASH_GETOPTS=y
CONFIG_ASH_BUILTIN_ECHO=y
CONFIG_ASH_BUILTIN_PRINTF=y
CONFIG_ASH_BUILTIN_TEST=y
CONFIG_ASH_CMDCMD=y
CONFIG_ASH_MAIL=n
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
CONFIG_ASH_RANDOM_SUPPORT=y
CONFIG_ASH_EXPAND_PRMT=y
CONFIG_HUSH=y
CONFIG_HUSH_HELP=y
CONFIG_HUSH_INTERACTIVE=y
CONFIG_HUSH_JOB=y
CONFIG_HUSH_TICK=y
CONFIG_HUSH_IF=y
CONFIG_HUSH_LOOPS=y
CONFIG_HUSH_CASE=y
CONFIG_HUSH_FUNCTIONS=n
CONFIG_HUSH_EXPORT_N=n
CONFIG_LASH=n
CONFIG_MSH=n
#
# Bourne Shell Options
#
CONFIG_SH_MATH_SUPPORT=n
CONFIG_FEATURE_SH_EXTRA_QUIET=y
CONFIG_FEATURE_SH_STANDALONE=n
CONFIG_FEATURE_SH_NOFORK=n
CONFIG_CTTYHACK=y
#
# System Logging Utilities
#
CONFIG_SYSLOGD=y
CONFIG_FEATURE_ROTATE_LOGFILE=y
CONFIG_FEATURE_REMOTE_LOG=y
CONFIG_FEATURE_SYSLOGD_DUP=y
CONFIG_FEATURE_IPC_SYSLOG=y
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16
CONFIG_LOGREAD=y
CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y
CONFIG_KLOGD=y
CONFIG_LOGGER=y

45
core/bzip2/PKGBUILD Normal file
View file

@ -0,0 +1,45 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=bzip2
pkgver=1.0.5
pkgrel=1
pkgdesc="A high-quality data compression program"
arch=(arm)
license=('custom')
url="http://sources.redhat.com/bzip2"
groups=('base')
depends=('glibc')
source=(http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz)
md5sums=('3c15a0c8d1d3ee1c46a1634d00617b1a')
build() {
cd $srcdir/bzip2-$pkgver
# add large-file support
sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so
make -f Makefile-libbz2_so || return 1
make bzip2recover libbz2.a || return 1
install -dm755 $pkgdir/bin
install -m755 bzip2-shared $pkgdir/bin/bzip2
install -m755 bzip2recover $pkgdir/bin
ln -sf bzip2 $pkgdir/bin/bunzip2
ln -sf bzip2 $pkgdir/bin/bzcat
install -Dm755 libbz2.so.1.0.4 $pkgdir/lib/libbz2.so.1.0.4
install -Dm755 libbz2.so.1.0.4 $pkgdir/lib/libbz2.so.1.0.4
ln -s libbz2.so.1.0.4 $pkgdir/lib/libbz2.so
ln -s libbz2.so.1.0.4 $pkgdir/lib/libbz2.so.1
ln -s libbz2.so.1.0.4 $pkgdir/lib/libbz2.so.1.0
install -Dm644 libbz2.a ${pkgdir}/usr/lib/libbz2.a
ln -sf ../../lib/libbz2.so ${pkgdir}/usr/lib/libbz2.so
install -Dm644 bzlib.h $pkgdir/usr/include/bzlib.h
install -Dm644 $srcdir/${pkgname}-${pkgver}/LICENSE \
$pkgdir/usr/share/licenses/${pkgname}/LICENSE
}

26
core/cloog-ppl/PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: ezzetabi <ezzetabi at gawab dot com>
pkgname=cloog-ppl
pkgver=0.15.3
pkgrel=1
pkgdesc='Library that generates loops for scanning polyhedra'
arch=(arm)
url='http://www.cloog.org/'
license=(GPL)
depends=('ppl>=0.10.2')
options=('!libtool')
source=(ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-$pkgver.tar.gz)
md5sums=('9e7a3ff38b3877625d46badc6d4bbef9')
build() {
cd $srcdir/cloog-ppl
./configure --prefix=/usr \
--with-bits=gmp --with-ppl=/usr
make || return 1
make DESTDIR=$pkgdir install
}
# vim: set ft=sh ts=2 sw=2 et:

47
core/coreutils/PKGBUILD Normal file
View file

@ -0,0 +1,47 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=coreutils
pkgver=7.4
pkgrel=1
pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system"
arch=('arm')
license=('GPL3')
url="http://www.gnu.org/software/coreutils"
groups=('base')
depends=('glibc>=2.9' 'shadow>=4.1.2.1' 'pam>=1.0.3' 'acl>=2.2.47' 'gmp>=4.2.4')
provides=('mktemp')
conflicts=('mktemp')
replaces=('sh-utils' 'fileutils' 'textutils' 'mktemp')
backup=('etc/pam.d/su')
options=('!emptydirs')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
su)
md5sums=('c52f4f64dda9a245c38e74c09fdd86d2'
'fa85e5cce5d723275b14365ba71a8aad')
build() {
cd "$srcdir/coreutils-$pkgver"
./configure --prefix=/usr \
--enable-install-program=su \
--enable-pam ac_cv_func_openat=no || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
# Remove binaries provided by other packages.
for f in hostname uptime groups kill; do
rm -f $pkgdir/usr/bin/$f
done
cd $pkgdir/usr/bin
install -dm755 $pkgdir/{bin,sbin,usr/sbin}
mv su date echo false pwd stty true uname cat tr cut readlink $pkgdir/bin
mv dd cp df du ln ls mv rm dir sync vdir chgrp chmod chown $pkgdir/bin
mv mkdir mknod rmdir shred touch mkfifo dircolors install sleep $pkgdir/bin
mv chroot $pkgdir/usr/sbin
ln -sf test [
ln -sf /bin/sleep $pkgdir/usr/bin/sleep
install -Dm644 $srcdir/su $pkgdir/etc/pam.d/su
chmod -v 4555 $pkgdir/bin/su
}

9
core/coreutils/su Normal file
View file

@ -0,0 +1,9 @@
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required pam_wheel.so use_uid
auth required pam_unix.so
account required pam_unix.so
session required pam_unix.so

24
core/cracklib/PKGBUILD Normal file
View file

@ -0,0 +1,24 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=cracklib
pkgver=2.8.13
pkgrel=1
pkgdesc="Password Checking Library"
arch=(arm)
license=('GPL')
url="http://sourceforge.net/projects/cracklib"
groups=('base')
depends=('glibc')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('5beb4c6b3c31c83fc98c4c225b25cd94')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --without-python
make || return 1
mkdir -p $startdir/pkg/usr/share/dict
make DESTDIR=$startdir/pkg install
cp dicts/cracklib-small $startdir/pkg/usr/share/dict
sh ./util/cracklib-format dicts/cracklib-small \
| sh ./util/cracklib-packer $startdir/pkg/usr/share/cracklib/pw_dict
}

BIN
core/curl/.DS_Store vendored Normal file

Binary file not shown.

21
core/curl/PKGBUILD Normal file
View file

@ -0,0 +1,21 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
pkgname=curl
pkgver=7.19.5
pkgrel=1
pkgdesc="An URL retrival utility and library"
arch=('arm')
url="http://curl.haxx.se"
license=('MIT')
depends=('zlib' 'openssl>=0.9.8b' 'bash')
options=('!libtool')
source=(http://curl.haxx.se/download/${pkgname}-${pkgver}.tar.bz2)
md5sums=('426d161661dce70c8ea9ad8f553363a3')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --without-libidn --disable-ldap || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" || return 1
}

36
core/db/PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=db
pkgver=4.7.25
pkgrel=1
pkgdesc="The Berkeley DB embedded database system"
arch=(arm)
license=('custom')
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
groups=('base')
depends=('gcc-libs')
options=('!libtool')
source=(http://download-uk.oracle.com/berkeley-db/db-$pkgver.tar.gz
http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch.4.7.25.1
http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch.4.7.25.2
http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch.4.7.25.3)
install=db.install
md5sums=('ec2b87e833779681a0c3a814aa71359e'
'5fdf101259e5164dea1c8c86214fde38'
'bd410a11c71fee52fddb6aa2d8d4f80c'
'6fcd69f64f5b34bfe8f0a63cc2e402c1')
build() {
cd ${srcdir}/$pkgname-$pkgver
patch -Np0 -i ${srcdir}/patch.4.7.25.1 || return 1
patch -Np0 -i ${srcdir}/patch.4.7.25.2 || return 1
patch -Np0 -i ${srcdir}/patch.4.7.25.3 || return 1
cd ${srcdir}/$pkgname-$pkgver/build_unix
../dist/configure --prefix=/usr --enable-compat185 \
--enable-shared --enable-static --enable-cxx
make LIBSO_LIBS=-lpthread || return 1
make DESTDIR=${pkgdir} install
rm -rf ${pkgdir}/usr/docs
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

5
core/db/db.install Normal file
View file

@ -0,0 +1,5 @@
post_upgrade() {
echo "ATTENTION DB PACKAGE:"
echo "Please consider to run db_upgrade on Berkeley DB databases with a major db version number update."
}

53
core/dbus-core/PKGBUILD Normal file
View file

@ -0,0 +1,53 @@
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Link Dupont <link@subpop.net>
#
pkgname=dbus-core
pkgver=1.2.14
pkgrel=1
pkgdesc="Freedesktop.org message bus system"
url="http://www.freedesktop.org/Software/dbus"
arch=(arm)
license=('GPL' 'custom')
depends=('expat>=2.0' 'coreutils' 'filesystem')
conflicts=('dbus<1.2.3-2')
options=(!libtool)
groups=('base')
install=dbus.install
source=(http://dbus.freedesktop.org/releases/dbus/dbus-${pkgver}.tar.gz
dbus)
md5sums=('2c267ccd45d0b18db8c9edacad63ec98'
'08f93dd19cffd1b45ab05c1fd4efb560')
build() {
cd "${srcdir}/dbus-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/dbus-1.0 --with-dbus-user=81 \
--with-system-pid-file=/var/run/dbus.pid \
--enable-inotify --disable-dnotify \
--disable-verbose-mode --disable-static \
--disable-tests --disable-asserts --without-x || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
rm -f "${pkgdir}/usr/bin/dbus-launch"
rm -f "${pkgdir}/usr/share/man/man1/dbus-launch.1"
chown 81:81 "${pkgdir}/var/run/dbus" || return 1
install -m755 -d "${pkgdir}/etc/rc.d" || return 1
install -m755 "${srcdir}/dbus" "${pkgdir}/etc/rc.d/" || return 1
#Fix configuration file
sed -i -e 's|<user>81</user>|<user>dbus</user>|' "${pkgdir}/etc/dbus-1/system.conf" || return 1
#install .keep files so pacman doesn't delete empty dirs
touch "${pkgdir}/usr/share/dbus-1/services/.keep" || return 1
touch "${pkgdir}/usr/share/dbus-1/system-services/.keep" || return 1
touch "${pkgdir}/etc/dbus-1/session.d/.keep" || return 1
touch "${pkgdir}/etc/dbus-1/system.d/.keep" || return 1
rmdir "${pkgdir}/usr/lib/dbus-1.0/dbus-1" || return 1
install -d -m755 "${pkgdir}/usr/share/licenses/dbus-core"
install -m644 COPYING "${pkgdir}/usr/share/licenses/dbus-core/" || return 1
}

57
core/dbus-core/dbus Normal file
View file

@ -0,0 +1,57 @@
#!/bin/bash
# general config
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting D-BUS system messagebus"
if [ ! -x /var/run/dbus ] ; then
install -m755 -g 81 -o 81 -d /var/run/dbus
fi
if [ -x /usr/bin/dbus-uuidgen ] ; then
/usr/bin/dbus-uuidgen --ensure
fi
/usr/bin/dbus-daemon --system
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon dbus
stat_done
fi
;;
stop)
stat_busy "Stopping D-BUS system messagebus"
[ -f /var/run/dbus.pid ] && kill `cat /var/run/dbus.pid` >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
else
rm -f /var/run/dbus.pid
rm_daemon dbus
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
reload)
stat_busy "Reloading D-BUS configuration"
[ -f /var/run/dbus.pid ] && /usr/bin/dbus-send \
--system --type=method_call \
--dest=org.freedesktop.DBus \
/ org.freedesktop.DBus.ReloadConfig
if [ $? -gt 0 ]; then
stat_fail
else
stat_done
fi
;;
*)
echo "usage: $0 {start|stop|restart|reload}"
;;
esac
exit 0

View file

@ -0,0 +1,20 @@
post_install() {
getent group dbus >/dev/null || usr/sbin/groupadd -g 81 dbus
getent passwd dbus >/dev/null || usr/sbin/useradd -c 'System message bus' -u 81 -g dbus -d '/' -s /bin/false dbus
usr/bin/passwd -l dbus &>/dev/null
dbus-uuidgen --ensure
}
post_upgrade() {
post_install
#Make sure new rc script can shutdown running dbus
if [ -f var/run/dbus/pid ]; then
mv var/run/dbus/pid var/run/dbus.pid
fi
}
pre_remove() {
usr/sbin/userdel dbus &>/dev/null
usr/sbin/groupdel dbus &>/dev/null
}

53
core/dhcpcd/PKGBUILD Normal file
View file

@ -0,0 +1,53 @@
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Tom Killian <tom.archlinux.org>
# Contributor: Judd Vinet <jvinet.zeroflux.org>
pkgname=dhcpcd
pkgver=5.0.4
pkgrel=1
pkgdesc="RFC2131 compliant DHCP client daemon"
url="http://roy.marples.name/dhcpcd/"
arch=(arm)
license=('BSD')
#groups=('base')
depends=('glibc' 'bash')
backup=('etc/conf.d/dhcpcd' 'etc/dhcpcd.conf')
options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory
source=("http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2" \
'dhcpcd.conf.d')
md5sums=('0b920a8094ee3a8c16c973794561feef'
'372d33485556982b64a97f301e17c5dd')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# Fix Installation Locations
export PREFIX=/usr
sed -i 's/${PREFIX}\/etc/\/etc/' Makefile || return 1
sed -i 's/\/db/\/lib\/dhcpcd/' Makefile || return 1
sed -i 's/\/libexec/\/lib\/dhcpcd/' Makefile || return 1
sed -i 's/\/libexec/\/lib\/dhcpcd/' dhcpcd-hooks/Makefile || return 1
sed -i 's/${PREFIX}\/sbin/\/sbin/' Makefile || return 1
# Build
make || return 1
make DESTDIR=${pkgdir} install || return 1
# Create Binary Symlink
install -d ${pkgdir}/usr/sbin || return 1
ln -sf /sbin/dhcpcd ${pkgdir}/usr/sbin/dhcpcd || return 1
# Install Configuration File used in /etc/rc.d/network
install -D -m644 ../dhcpcd.conf.d $pkgdir/etc/conf.d/$pkgname || return 1
# Install License
install -d $pkgdir/usr/share/licenses/$pkgname || return 1
awk '{if(FNR<27)print $0}' ${srcdir}/${pkgname}-${pkgver}/config.h \
>> ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
# Make Man Pages FHS Compliant
mv -f ${pkgdir}/usr/man ${pkgdir}/usr/share/man || return 1
# Set Options in /etc/dhcpcd.conf
echo noipv4ll >> ${pkgdir}/etc/dhcpcd.conf || return 1 # Disable ip4vall
}

View file

@ -0,0 +1,6 @@
#
# Arguments to be passed to the DHCP client daemon
#
DHCPCD_ARGS="-q"

22
core/diffutils/PKGBUILD Normal file
View file

@ -0,0 +1,22 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=diffutils
pkgver=2.8.1
pkgrel=2
pkgdesc="Utility programs used for creating patch files"
arch=(arm)
license=('GPL')
groups=('base')
url="http://www.gnu.org/software/diffutils"
depends=('glibc')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('71f9c5ae19b60608f6c7f162da86a428')
build() {
cd ${srcdir}/diffutils-${pkgver}
./configure --prefix=/usr \
--mandir=/usr/share/man --infodir=/usr/share/info || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
}

32
core/dropbear/PKGBUILD Normal file
View file

@ -0,0 +1,32 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
pkgname=dropbear
pkgver=0.52
pkgrel=1
pkgdesc="A small SSH Server/Client"
arch=(arm)
url="http://matt.ucc.asn.au/dropbear/"
license=('custom')
groups=('small-base')
depends=('zlib')
conflicts=('openssh')
source=(http://matt.ucc.asn.au/dropbear/releases/dropbear-0.52.tar.bz2)
md5sums=('a1fc7adf601bca53330a792a9c873439')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --disable-shadow \
--disable-lastlog --disable-utmp --disable-utmpx \
--disable-wtmp --disable-wtmpx --disable-loginfunc \
--disable-pututline --disable-pututxline || return 1
make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
MULTI=1 || return 1
cd $pkgdir
mkdir -p usr/bin
install -m644 $srcdir/$pkgname-$pkgver/dropbearmulti usr/bin/
ln -s usr/bin/dropbearmulti usr/bin/dropbear
ln -s usr/bin/dropbearmulti usr/bin/dbclient
ln -s usr/bin/dropbearmulti usr/bin/dropbearkey
ln -s usr/bin/dropbearmulti usr/bin/dropbearconvert
ln -s usr/bin/dropbearmulti usr/bin/scp
}

View file

@ -0,0 +1,13 @@
--- e2fsprogs-1.40.4/misc/Makefile 2008-01-16 14:52:53.000000000 +0000
+++ e2fsprogs-1.40.4/misc/Makefile.neu 2008-01-16 14:53:43.000000000 +0000
@@ -376,6 +376,10 @@
@echo " LD $@"
@$(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBS_BLKID) $(LIBINTL)
+fsck.static: $(FSCK_OBJS) $(DEPSTATIC_LIBBLKID)
+ @echo " LD $@"
+ @$(CC) $(ALL_LDFLAGS) -static -o fsck.static $(FSCK_OBJS) $(STATIC_LIBBLKID) $(DEPSTATIC_LIBUUID) $(LIBINTL)
+
badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS)
@echo " LD $@"
@$(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL)

32
core/e2fsprogs/PKGBUILD Normal file
View file

@ -0,0 +1,32 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=e2fsprogs
pkgver=1.41.4
pkgrel=1
pkgdesc="Ext2/3/4 filesystem utilities"
arch=('arm')
license=('GPL' 'LGPL' 'MIT')
url="http://e2fsprogs.sourceforge.net"
groups=('base')
depends=('glibc')
makedepends=('bc' 'gawk' 'make')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
'Makefile-fsck.static.patch')
backup=('etc/mke2fs.conf')
md5sums=('59033388df36987d2b9c9bbf7e19bd57'
'ce2b0daf84e17e8c7880ba3d43020ea3')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
sed -i '/init\.d/s|^|#|' misc/Makefile.in
./configure --prefix=/usr --with-root-prefix="" --enable-elf-shlibs
patch -Np1 -i ../Makefile-fsck.static.patch || return 1
make || return 1
make DESTDIR=${pkgdir} install install-libs || return 1
make -C ${srcdir}/${pkgname}-${pkgver}/misc fsck.static || return 1
install -D -m755 ${srcdir}/${pkgname}-${pkgver}/misc/fsck.static \
${pkgdir}/sbin/fsck.static || return 1
sed -i -e 's/^AWK=.*/AWK=awk/' ${pkgdir}/usr/bin/compile_et || return 1
}

View file

@ -0,0 +1,26 @@
[defaults]
base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr
blocksize = 4096
inode_size = 128
inode_ratio = 16384
[fs_types]
small = {
blocksize = 1024
inode_size = 128
inode_ratio = 4096
}
floppy = {
blocksize = 1024
inode_size = 128
inode_ratio = 8192
}
news = {
inode_ratio = 4096
}
largefile = {
inode_ratio = 1048576
}
largefile4 = {
inode_ratio = 4194304
}

21
core/eventlog/PKGBUILD Normal file
View file

@ -0,0 +1,21 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
pkgname=eventlog
pkgver=0.2.9
pkgrel=1
pkgdesc="A new API to format and send structured log messages"
arch=(arm)
url="http://www.balabit.com/support/community/products/"
license=('BSD')
depends=('glibc')
options=('!libtool')
source=(http://www.balabit.com/downloads/files/eventlog/${pkgver%.*}/eventlog_${pkgver}.tar.gz)
md5sums=('76e3d7a0b8f335c12099e9b91191fbf1')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

23
core/expat/PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: dorphell <dorphell@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=expat
pkgver=2.0.1
pkgrel=2
pkgdesc="An XML Parser library written in C"
arch=(arm)
license=('custom')
depends=('glibc')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/expat/${pkgname}-${pkgver}.tar.gz)
url="http://expat.sourceforge.net/"
md5sums=('ee8b492592568805593f81f8cdf2a04c')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}

25
core/fakeroot/PKGBUILD Normal file
View file

@ -0,0 +1,25 @@
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
pkgname=fakeroot
pkgver=1.12.4
pkgrel=1
pkgdesc="Gives a fake root environment, useful for building packages as a non-privileged user"
arch=(arm)
license=('GPL')
url="http://packages.debian.org/fakeroot"
groups=('base-devel')
install=fakeroot.install
depends=('glibc' 'filesystem' 'grep' 'sed' 'sh')
options=('!libtool')
source=(http://ftp.debian.org/debian/pool/main/f/$pkgname/${pkgname}_${pkgver}.tar.gz)
md5sums=('aaefede2405a40c87438e7e833d69b70')
build() {
cd ${srcdir}/$pkgname-$pkgver
./configure --prefix=/usr --libdir=/usr/lib/libfakeroot \
--disable-static --with-ipc=sysv
make || return 1
make DESTDIR=${pkgdir} install || return 1
# install README for sysv/tcp usage
install -Dm644 $srcdir/$pkgname-$pkgver/README $pkgdir/usr/share/doc/$pkgname/README
}

View file

@ -0,0 +1,30 @@
# arg 1: the new package version
post_install() {
if [ ! "`grep /usr/lib/libfakeroot etc/ld.so.conf`" ]; then
echo -n "updating /etc/ld.so.conf... "
echo "/usr/lib/libfakeroot" >>etc/ld.so.conf
sbin/ldconfig -r .
echo "done."
fi
echo "The package is built using sysv ipc. If this causes segfaults"
echo "see included README file and rebuild the pkg --with-ipc=tcp"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
# arg 1: the old package version
pre_remove() {
echo -ne "\nupdating /etc/ld.so.conf... "
sed -i -e '/\/usr\/lib\/libfakeroot/d' etc/ld.so.conf
sbin/ldconfig -r .
echo "done."
}
op=$1
shift
$op $*

24
core/file/PKGBUILD Normal file
View file

@ -0,0 +1,24 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=file
pkgver=5.00
pkgrel=2
pkgdesc="File type identification utility"
arch=('arm')
license=('custom')
groups=('base-devel')
url="http://www.darwinsys.com/file/"
depends=('glibc' 'zlib')
options=('!libtool')
source=(ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('fd0b4ce55a756151629e06eaa3411e0c')
build() {
cd ${srcdir}/file-$pkgver
./configure --prefix=/usr --datadir=/usr/share/misc
make || return 1
make DESTDIR=${pkgdir} install
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}

75
core/filesystem/PKGBUILD Normal file
View file

@ -0,0 +1,75 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=filesystem
pkgver=2009.01
pkgrel=3
pkgdesc="Base filesystem"
arch=(arm)
license=('GPL')
url="http://www.archlinux.org"
groups=('base')
install=filesystem.install
#depends=('sh' 'coreutils')
backup=(etc/fstab etc/crypttab etc/group etc/hosts etc/ld.so.conf etc/passwd
etc/shadow etc/gshadow etc/resolv.conf etc/motd etc/nsswitch.conf
etc/shells etc/host.conf etc/securetty etc/profile etc/issue)
source=(group issue nsswitch.conf securetty host.conf ld.so.conf
passwd shadow fstab crypttab hosts motd resolv.conf shells
gshadow services protocols profile modprobe.d.usb-load-ehci-first)
md5sums=('f4cf8d0a2de2658165148d5f64d81675'
'1bdc5dba66947d74866a5df8ce9ef3b1'
'775464ba7588b4976e0c2a02b83123f4'
'655071da46d2ac03e0fb8a071bf193ea'
'f28150d4c0b22a017be51b9f7f9977ed'
'2c24792d97ef3cf0d73b60d4c429730b'
'8a9042a2cedf6b6b47eb8973f14289cb'
'46bc1c4b941f19c1505102bb5bbddb8c'
'9af6f8ff49738b15de40e7aee8ee6fed'
'e5d8323a4dbee7a6d0d2a19cbf4b819f'
'81b3cb42a6ddabc2ed2310511ee9c859'
'd41d8cd98f00b204e9800998ecf8427e'
'934962f05e8d50af883901ea076f4660'
'40dac0de4c6b99c8ca97effbd7527c84'
'ab9c2a40eba287b2918589ab8e0b2fbf'
'f436d2e0ed02b7b73bd10c6693e95ac3'
'65d78e621ed69eed69f854c3ee2e5942'
'288a2e8d63c5ea2c2d852c7147e59d28'
'8098ffd9fbf890468d3198277596b85a')
build()
{
cd $startdir/pkg
mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys
chmod 555 proc
mkdir -p media/{fl,cd,dvd}
mkdir -p usr/{bin,include,lib,sbin,share/misc,src,man}
mkdir -p usr/local/{bin,games,include,lib,man,sbin,share,src}
ln -s ../man $startdir/pkg/usr/local/share/man
mkdir -p var/{cache/man,local,lock,opt,run,spool/mail,tmp,games}
chmod 1777 var/lock
mkdir -p var/log/old
mkdir -p etc/{skel,profile.d}
mkdir -p lib/modules
(cd $startdir/pkg/usr; ln -s ../var var)
(cd $startdir/pkg/var; ln -s spool/mail mail)
mkdir -p srv/ftp
chown root.ftp srv/ftp
chmod 555 srv/ftp
install -d -o root -g root -m 755 srv/http
chmod 1777 var/spool/mail tmp var/tmp
chmod 0750 root
chmod 775 ${startdir}/pkg/var/games
chown root:50 ${startdir}/pkg/var/games
cd $startdir/src
cp fstab crypttab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
passwd protocols resolv.conf securetty services shadow shells profile \
$startdir/pkg/etc/
install -m 600 $startdir/src/gshadow $startdir/pkg/etc/gshadow
chmod 600 $startdir/pkg/etc/shadow
chmod 600 $startdir/pkg/etc/crypttab
touch $startdir/pkg/etc/arch-release
install -D -m644 ${srcdir}/modprobe.d.usb-load-ehci-first ${pkgdir}/etc/modprobe.d/usb-load-ehci-first
}

33
core/filesystem/crypttab Normal file
View file

@ -0,0 +1,33 @@
# crypttab: Mappings for encrypted partitions
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/{NAME} paths for encrypted devices.
#
# Each PASSWORD field can be an absolute pathname to a key file (starting
# with a slash, recommended) or a literal string that will be used as
# a passphrase. To use special characters in the passphrase, surround it
# by quotes, the usual bash quoting rules apply.
# There are two special keywords that cannot be used as passphrases:
# - ASK ask for a passphrase on boot
# - SWAP use a random key and create a swapspace afterwards
# WARNING: use the SWAP keyword carefully, as it overwrites the data
# on the specified partition
#
# To create a key file:
# hashalot -n 32 ripemd160 >/etc/crytfs.key
# or
# dd if=/dev/urandom of=/etc/cryptfs.key bs=256 count=1
#
# To pass additional options to cryptsetup for non-LUKS partitions, use the
# fourth column.
#
# NOTE: Do not list your root (/) partition here, it must be set up
# beforehand by the initramfs (/etc/mkinitcpio.conf).
# NAME SOURCE DEVICE PASSWORD OPTIONS
#home /dev/hda4 mypassword
#data1 /dev/hda3 "my \"password\""
#data2 /dev/hda5 /etc/cryptfs.key
#swap /dev/hdx4 SWAP -c aes-cbc-essiv:sha256 -s 256
#vol /dev/hdb7 ASK

View file

@ -0,0 +1,60 @@
# arg 1: the new package version
post_install() {
[ -f var/log/lastlog ] || : >var/log/lastlog
[ -f var/log/wtmp ] || : >var/log/wtmp
[ -f var/run/utmp ] || : >var/run/utmp
[ -f var/log/btmp ] || (: >var/log/btmp && bin/chmod 600 var/log/btmp)
# workaround for bug #7194
# readded due to bug #9465
# please do not remove!
chmod 1777 var/spool/mail tmp var/tmp var/lock
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
if [ ! "`grep ^optical: etc/group`" ]; then
echo "adding new groups: audio optical"
usr/sbin/groupadd -g 92 audio >/dev/null
usr/sbin/groupadd -g 93 optical >/dev/null
fi
if [ ! "`grep ^video: etc/group`" ]; then
echo "adding new groups: video floppy storage"
usr/sbin/groupadd -g 91 video >/dev/null
usr/sbin/groupadd -g 94 floppy >/dev/null
usr/sbin/groupadd -g 95 storage >/dev/null
fi
if [ ! "`grep ^log: etc/group`" ]; then
echo "adding new group: log"
usr/sbin/groupadd -g 19 log >/dev/null
fi
if [ ! "`grep ^power: etc/group`" ]; then
echo "adding new group: power"
usr/sbin/groupadd -g 98 power >/dev/null
fi
if [ ! "`grep ^network: etc/group`" ]; then
echo "adding new group: network"
usr/sbin/groupadd -g 90 network >/dev/null
fi
if [ ! "`grep ^games: etc/group`" ]; then
echo "adding new group: games"
usr/sbin/groupadd -g 50 games >/dev/null
fi
if [ ! "`grep ^uucp: etc/group`" ]; then
echo "adding new group: uucp"
usr/sbin/groupadd -g 14 uucp >/dev/null
fi
if [ ! "`grep ^http: etc/group`" ]; then
echo "adding new group: http"
usr/sbin/groupadd -g 33 http >/dev/null
fi
if [ ! "`grep ^http: etc/passwd`" ]; then
echo "adding new user http"
usr/sbin/useradd -u 33 -d /srv/http -g http -s /bin/false http >/dev/null
fi
if [ ! "`grep ^scanner: etc/group`" ]; then
echo "adding new group: scanner"
usr/sbin/groupadd -g 96 scanner >/dev/null
fi
}

7
core/filesystem/fstab Normal file
View file

@ -0,0 +1,7 @@
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0

29
core/filesystem/group Normal file
View file

@ -0,0 +1,29 @@
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon
mem::8:
kmem::9:
wheel::10:root
ftp::11:
mail::12:
uucp::14:
log::19:root
locate::21:
smmsp::25:
http::33:
games::50:
network:x:90:
video:x:91:
audio::92:
optical::93:
floppy:x:94:
storage:x:95:
scanner:x:96:
power:x:98:
nobody::99:
users::100:

27
core/filesystem/gshadow Normal file
View file

@ -0,0 +1,27 @@
root:::root
bin:::root,bin,daemon
daemon:::root,bin,daemon
sys:::root,bin
adm:::root,daemon
tty:::
disk:::root
lp:::daemon
mem:::
kmem:::
wheel:::root
ftp:::
mail:::
log:::root
smmsp:::
http:::
games:::
network:x::
video:x::
audio:::
optical:::
floppy:x::
storage:x::
scanner:x::
power:x::
nobody:::
users:::

View file

@ -0,0 +1,8 @@
#
# /etc/host.conf
#
order hosts,bind
multi on
# End of file

8
core/filesystem/hosts Normal file
View file

@ -0,0 +1,8 @@
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
# End of file

3
core/filesystem/issue Normal file
View file

@ -0,0 +1,3 @@

Arch Linux \r (\n) (\l)

View file

@ -0,0 +1,5 @@
#
# /etc/ld.so.conf
#
# End of file

View file

@ -0,0 +1,2 @@
install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install ohci_hcd $CMDLINE_OPTS
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install uhci_hcd $CMDLINE_OPTS

0
core/filesystem/motd Normal file
View file

View file

@ -0,0 +1,19 @@
# Begin /etc/nsswitch.conf
passwd: files
group: files
shadow: files
publickey: files
hosts: files dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: db files
# End /etc/nsswitch.conf

7
core/filesystem/passwd Normal file
View file

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

61
core/filesystem/profile Normal file
View file

@ -0,0 +1,61 @@
#
# /etc/profile
#
# This file is intended to be used for ALL common
# Bourne-compatible shells. Shell specifics should be
# handled in /etc/profile.$SHELL where $SHELL is the name
# of the binary being run (discounting symlinks)
#
# Sections taken from SuSe's /etc/profile
# Note the explicit use of 'test' to cover all bases
# and potentially incompatible shells
#Determine our shell without using $SHELL, which may lie
shell="sh"
if test -f /proc/mounts; then
case $(/bin/ls -l /proc/$$/exe) in
*bash) shell=bash ;;
*dash) shell=dash ;;
*ash) shell=ash ;;
*ksh) shell=ksh ;;
*zsh) shell=zsh ;;
esac
fi
# Load shell specific profile settings
test -f "/etc/profile.$shell" && . "/etc/profile.$shell"
#Set our umask
umask 022
# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
# Export default pkg-config path
PKG_CONFIG_PATH="/usr/lib/pkgconfig"
export PKG_CONFIG_PATH
# Some readline stuff that is fairly common
HISTSIZE=1000
HISTCONTROL="erasedups"
INPUTRC="/etc/inputrc"
LESS="-R"
LC_COLLATE="C"
export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -x $profile && . $profile
done
unset profile
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH

57
core/filesystem/protocols Normal file
View file

@ -0,0 +1,57 @@
# Internet (IP) protocols
#
# Updated from http://www.iana.org/assignments/protocol-numbers and other
# sources.
# New protocols will be added on request if they have been officially
# assigned by IANA and are not historical.
# If you need a huge list of used numbers please install the nmap package.
ip 0 IP # internet protocol, pseudo protocol number
#hopopt 0 HOPOPT # IPv6 Hop-by-Hop Option [RFC1883]
icmp 1 ICMP # internet control message protocol
igmp 2 IGMP # Internet Group Management
ggp 3 GGP # gateway-gateway protocol
ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'')
st 5 ST # ST datagram mode
tcp 6 TCP # transmission control protocol
egp 8 EGP # exterior gateway protocol
igp 9 IGP # any private interior gateway (Cisco)
pup 12 PUP # PARC universal packet protocol
udp 17 UDP # user datagram protocol
hmp 20 HMP # host monitoring protocol
xns-idp 22 XNS-IDP # Xerox NS IDP
rdp 27 RDP # "reliable datagram" protocol
iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4 [RFC905]
xtp 36 XTP # Xpress Transfer Protocol
ddp 37 DDP # Datagram Delivery Protocol
idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport
ipv6 41 IPv6 # Internet Protocol, version 6
ipv6-route 43 IPv6-Route # Routing Header for IPv6
ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6
idrp 45 IDRP # Inter-Domain Routing Protocol
rsvp 46 RSVP # Reservation Protocol
gre 47 GRE # General Routing Encapsulation
esp 50 IPSEC-ESP # Encap Security Payload [RFC2406]
ah 51 IPSEC-AH # Authentication Header [RFC2402]
skip 57 SKIP # SKIP
ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6
ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6
ipv6-opts 60 IPv6-Opts # Destination Options for IPv6
rspf 73 RSPF CPHB # Radio Shortest Path First (officially CPHB)
vmtp 81 VMTP # Versatile Message Transport
eigrp 88 EIGRP # Enhanced Interior Routing Protocol (Cisco)
ospf 89 OSPFIGP # Open Shortest Path First IGP
ax.25 93 AX.25 # AX.25 frames
ipip 94 IPIP # IP-within-IP Encapsulation Protocol
etherip 97 ETHERIP # Ethernet-within-IP Encapsulation [RFC3378]
encap 98 ENCAP # Yet Another IP encapsulation [RFC1241]
# 99 # any private encryption scheme
pim 103 PIM # Protocol Independent Multicast
ipcomp 108 IPCOMP # IP Payload Compression Protocol
vrrp 112 VRRP # Virtual Router Redundancy Protocol
l2tp 115 L2TP # Layer Two Tunneling Protocol [RFC2661]
isis 124 ISIS # IS-IS over IPv4
sctp 132 SCTP # Stream Control Transmission Protocol
fc 133 FC # Fibre Channel
udplite 136 UDPLite # UDP-Lite

View file

@ -0,0 +1,8 @@
#
# /etc/resolv.conf
#
nameserver 208.67.222.222
nameserver 208.67.220.220
# End of file

13
core/filesystem/securetty Normal file
View file

@ -0,0 +1,13 @@
#
# /etc/securetty
#
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
# End of file

557
core/filesystem/services Normal file
View file

@ -0,0 +1,557 @@
# Network services, Internet style
#
# Note that it is presently the policy of IANA to assign a single well-known
# port number for both TCP and UDP; hence, officially ports have two entries
# even if the protocol doesn't support UDP operations.
#
# Updated from http://www.iana.org/assignments/port-numbers and other
# sources like http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/services .
# New ports will be added on request if they have been officially assigned
# by IANA and used in the real-world or are needed by a debian package.
# If you need a huge list of used numbers please install the nmap package.
tcpmux 1/tcp # TCP port service multiplexer
echo 7/tcp
echo 7/udp
discard 9/tcp sink null
discard 9/udp sink null
systat 11/tcp users
daytime 13/tcp
daytime 13/udp
netstat 15/tcp
qotd 17/tcp quote
msp 18/tcp # message send protocol
msp 18/udp
chargen 19/tcp ttytst source
chargen 19/udp ttytst source
ftp-data 20/tcp
ftp 21/tcp
fsp 21/udp fspd
ssh 22/tcp # SSH Remote Login Protocol
ssh 22/udp
telnet 23/tcp
smtp 25/tcp mail
time 37/tcp timserver
time 37/udp timserver
rlp 39/udp resource # resource location
nameserver 42/tcp name # IEN 116
whois 43/tcp nicname
tacacs 49/tcp # Login Host Protocol (TACACS)
tacacs 49/udp
re-mail-ck 50/tcp # Remote Mail Checking Protocol
re-mail-ck 50/udp
domain 53/tcp # name-domain server
domain 53/udp
mtp 57/tcp # deprecated
tacacs-ds 65/tcp # TACACS-Database Service
tacacs-ds 65/udp
bootps 67/tcp # BOOTP server
bootps 67/udp
bootpc 68/tcp # BOOTP client
bootpc 68/udp
tftp 69/udp
gopher 70/tcp # Internet Gopher
gopher 70/udp
rje 77/tcp netrjs
finger 79/tcp
www 80/tcp http # WorldWideWeb HTTP
www 80/udp # HyperText Transfer Protocol
link 87/tcp ttylink
kerberos 88/tcp kerberos5 krb5 kerberos-sec # Kerberos v5
kerberos 88/udp kerberos5 krb5 kerberos-sec # Kerberos v5
supdup 95/tcp
hostnames 101/tcp hostname # usually from sri-nic
iso-tsap 102/tcp tsap # part of ISODE
acr-nema 104/tcp dicom # Digital Imag. & Comm. 300
acr-nema 104/udp dicom # Digital Imag. & Comm. 300
csnet-ns 105/tcp cso-ns # also used by CSO name server
csnet-ns 105/udp cso-ns
rtelnet 107/tcp # Remote Telnet
rtelnet 107/udp
pop2 109/tcp postoffice pop-2 # POP version 2
pop2 109/udp pop-2
pop3 110/tcp pop-3 # POP version 3
pop3 110/udp pop-3
sunrpc 111/tcp portmapper # RPC 4.0 portmapper
sunrpc 111/udp portmapper
auth 113/tcp authentication tap ident
sftp 115/tcp
uucp-path 117/tcp
nntp 119/tcp readnews untp # USENET News Transfer Protocol
ntp 123/tcp
ntp 123/udp # Network Time Protocol
pwdgen 129/tcp # PWDGEN service
pwdgen 129/udp # PWDGEN service
loc-srv 135/tcp epmap # Location Service
loc-srv 135/udp epmap
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp
netbios-ssn 139/tcp # NETBIOS session service
netbios-ssn 139/udp
imap2 143/tcp imap # Interim Mail Access P 2 and 4
imap2 143/udp imap
snmp 161/tcp # Simple Net Mgmt Protocol
snmp 161/udp # Simple Net Mgmt Protocol
snmp-trap 162/tcp snmptrap # Traps for SNMP
snmp-trap 162/udp snmptrap # Traps for SNMP
cmip-man 163/tcp # ISO mgmt over IP (CMOT)
cmip-man 163/udp
cmip-agent 164/tcp
cmip-agent 164/udp
mailq 174/tcp # Mailer transport queue for Zmailer
mailq 174/udp # Mailer transport queue for Zmailer
xdmcp 177/tcp # X Display Mgr. Control Proto
xdmcp 177/udp
nextstep 178/tcp NeXTStep NextStep # NeXTStep window
nextstep 178/udp NeXTStep NextStep # server
bgp 179/tcp # Border Gateway Protocol
bgp 179/udp
prospero 191/tcp # Cliff Neuman's Prospero
prospero 191/udp
irc 194/tcp # Internet Relay Chat
irc 194/udp
smux 199/tcp # SNMP Unix Multiplexer
smux 199/udp
at-rtmp 201/tcp # AppleTalk routing
at-rtmp 201/udp
at-nbp 202/tcp # AppleTalk name binding
at-nbp 202/udp
at-echo 204/tcp # AppleTalk echo
at-echo 204/udp
at-zis 206/tcp # AppleTalk zone information
at-zis 206/udp
qmtp 209/tcp # Quick Mail Transfer Protocol
qmtp 209/udp # Quick Mail Transfer Protocol
z3950 210/tcp wais # NISO Z39.50 database
z3950 210/udp wais
ipx 213/tcp # IPX
ipx 213/udp
imap3 220/tcp # Interactive Mail Access
imap3 220/udp # Protocol v3
pawserv 345/tcp # Perf Analysis Workbench
pawserv 345/udp
zserv 346/tcp # Zebra server
zserv 346/udp
fatserv 347/tcp # Fatmen Server
fatserv 347/udp
rpc2portmap 369/tcp
rpc2portmap 369/udp # Coda portmapper
codaauth2 370/tcp
codaauth2 370/udp # Coda authentication server
clearcase 371/tcp Clearcase
clearcase 371/udp Clearcase
ulistserv 372/tcp # UNIX Listserv
ulistserv 372/udp
ldap 389/tcp # Lightweight Directory Access Protocol
ldap 389/udp
imsp 406/tcp # Interactive Mail Support Protocol
imsp 406/udp
https 443/tcp # http protocol over TLS/SSL
https 443/udp
snpp 444/tcp # Simple Network Paging Protocol
snpp 444/udp
microsoft-ds 445/tcp # Microsoft Naked CIFS
microsoft-ds 445/udp
kpasswd 464/tcp
kpasswd 464/udp
saft 487/tcp # Simple Asynchronous File Transfer
saft 487/udp
isakmp 500/tcp # IPsec - Internet Security Association
isakmp 500/udp # and Key Management Protocol
rtsp 554/tcp # Real Time Stream Control Protocol
rtsp 554/udp # Real Time Stream Control Protocol
nqs 607/tcp # Network Queuing system
nqs 607/udp
npmp-local 610/tcp dqs313_qmaster # npmp-local / DQS
npmp-local 610/udp dqs313_qmaster
npmp-gui 611/tcp dqs313_execd # npmp-gui / DQS
npmp-gui 611/udp dqs313_execd
hmmp-ind 612/tcp dqs313_intercell # HMMP Indication / DQS
hmmp-ind 612/udp dqs313_intercell
ipp 631/tcp # Internet Printing Protocol
ipp 631/udp
#
# UNIX specific services
#
exec 512/tcp
biff 512/udp comsat
login 513/tcp
who 513/udp whod
shell 514/tcp cmd # no passwords used
syslog 514/udp
printer 515/tcp spooler # line printer spooler
talk 517/udp
ntalk 518/udp
route 520/udp router routed # RIP
timed 525/udp timeserver
tempo 526/tcp newdate
courier 530/tcp rpc
conference 531/tcp chat
netnews 532/tcp readnews
netwall 533/udp # for emergency broadcasts
gdomap 538/tcp # GNUstep distributed objects
gdomap 538/udp
uucp 540/tcp uucpd # uucp daemon
klogin 543/tcp # Kerberized `rlogin' (v5)
kshell 544/tcp krcmd # Kerberized `rsh' (v5)
afpovertcp 548/tcp # AFP over TCP
afpovertcp 548/udp
remotefs 556/tcp rfs_server rfs # Brunhoff remote filesystem
nntps 563/tcp snntp # NNTP over SSL
nntps 563/udp snntp
submission 587/tcp # Submission [RFC2476]
submission 587/udp
ldaps 636/tcp # LDAP over SSL
ldaps 636/udp
tinc 655/tcp # tinc control port
tinc 655/udp
silc 706/tcp
silc 706/udp
kerberos-adm 749/tcp # Kerberos `kadmin' (v5)
#
webster 765/tcp # Network dictionary
webster 765/udp
rsync 873/tcp
rsync 873/udp
ftps-data 989/tcp # FTP over SSL (data)
ftps 990/tcp
telnets 992/tcp # Telnet over SSL
telnets 992/udp
imaps 993/tcp # IMAP over SSL
imaps 993/udp
ircs 994/tcp # IRC over SSL
ircs 994/udp
pop3s 995/tcp # POP-3 over SSL
pop3s 995/udp
#
# From ``Assigned Numbers'':
#
#> The Registered Ports are not controlled by the IANA and on most systems
#> can be used by ordinary user processes or programs executed by ordinary
#> users.
#
#> Ports are used in the TCP [45,106] to name the ends of logical
#> connections which carry long term conversations. For the purpose of
#> providing services to unknown callers, a service contact port is
#> defined. This list specifies the port used by the server process as its
#> contact port. While the IANA can not control uses of these ports it
#> does register or list uses of these ports as a convienence to the
#> community.
#
socks 1080/tcp # socks proxy server
socks 1080/udp
proofd 1093/tcp
proofd 1093/udp
rootd 1094/tcp
rootd 1094/udp
openvpn 1194/tcp
openvpn 1194/udp
rmiregistry 1099/tcp # Java RMI Registry
rmiregistry 1099/udp
kazaa 1214/tcp
kazaa 1214/udp
nessus 1241/tcp # Nessus vulnerability
nessus 1241/udp # assessment scanner
lotusnote 1352/tcp lotusnotes # Lotus Note
lotusnote 1352/udp lotusnotes
ms-sql-s 1433/tcp # Microsoft SQL Server
ms-sql-s 1433/udp
ms-sql-m 1434/tcp # Microsoft SQL Monitor
ms-sql-m 1434/udp
ingreslock 1524/tcp
ingreslock 1524/udp
prospero-np 1525/tcp # Prospero non-privileged
prospero-np 1525/udp
datametrics 1645/tcp old-radius
datametrics 1645/udp old-radius
sa-msg-port 1646/tcp old-radacct
sa-msg-port 1646/udp old-radacct
kermit 1649/tcp
kermit 1649/udp
l2f 1701/tcp l2tp
l2f 1701/udp l2tp
radius 1812/tcp
radius 1812/udp
radius-acct 1813/tcp radacct # Radius Accounting
radius-acct 1813/udp radacct
msnp 1863/tcp # MSN Messenger
msnp 1863/udp
unix-status 1957/tcp # remstats unix-status server
log-server 1958/tcp # remstats log server
remoteping 1959/tcp # remstats remoteping server
nfs 2049/tcp # Network File System
nfs 2049/udp # Network File System
rtcm-sc104 2101/tcp # RTCM SC-104 IANA 1/29/99
rtcm-sc104 2101/udp
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp
venus 2430/tcp # codacon port
venus 2430/udp # Venus callback/wbc interface
venus-se 2431/tcp # tcp side effects
venus-se 2431/udp # udp sftp side effect
codasrv 2432/tcp # not used
codasrv 2432/udp # server port
codasrv-se 2433/tcp # tcp side effects
codasrv-se 2433/udp # udp sftp side effect
mon 2583/tcp # MON
mon 2583/udp
dict 2628/tcp # Dictionary server
dict 2628/udp
gpsd 2947/tcp
gpsd 2947/udp
gds_db 3050/tcp # InterBase server
gds_db 3050/udp
icpv2 3130/tcp icp # Internet Cache Protocol
icpv2 3130/udp icp
mysql 3306/tcp
mysql 3306/udp
nut 3493/tcp # Network UPS Tools
nut 3493/udp
distcc 3632/tcp # distributed compiler
distcc 3632/udp
daap 3689/tcp # Digital Audio Access Protocol
daap 3689/udp
svn 3690/tcp subversion # Subversion protocol
svn 3690/udp subversion
suucp 4013/tcp # UUCP over SSL
suucp 4013/udp # UUCP over SSL
sysrqd 4094/tcp # sysrq daemon
sysrqd 4094/udp # sysrq daemon
iax 4569/tcp # Inter-Asterisk eXchange
iax 4569/udp
radmin-port 4899/tcp # RAdmin Port
radmin-port 4899/udp
rfe 5002/udp # Radio Free Ethernet
rfe 5002/tcp
mmcc 5050/tcp # multimedia conference control tool (Yahoo IM)
mmcc 5050/udp
sip 5060/tcp # Session Initiation Protocol
sip 5060/udp
sip-tls 5061/tcp
sip-tls 5061/udp
aol 5190/tcp # AIM
aol 5190/udp
xmpp-client 5222/tcp jabber-client # Jabber Client Connection
xmpp-client 5222/udp jabber-client
xmpp-server 5269/tcp jabber-server # Jabber Server Connection
xmpp-server 5269/udp jabber-server
cfengine 5308/tcp
cfengine 5308/udp
mdns 5353/tcp # Multicast DNS
mdns 5353/udp # Multicast DNS
postgresql 5432/tcp postgres # PostgreSQL Database
postgresql 5432/udp postgres
ggz 5688/tcp # GGZ Gaming Zone
ggz 5688/udp # GGZ Gaming Zone
x11 6000/tcp x11-0 # X Window System
x11 6000/udp x11-0
x11-1 6001/tcp
x11-1 6001/udp
x11-2 6002/tcp
x11-2 6002/udp
x11-3 6003/tcp
x11-3 6003/udp
x11-4 6004/tcp
x11-4 6004/udp
x11-5 6005/tcp
x11-5 6005/udp
x11-6 6006/tcp
x11-6 6006/udp
x11-7 6007/tcp
x11-7 6007/udp
gnutella-svc 6346/tcp # gnutella
gnutella-svc 6346/udp
gnutella-rtr 6347/tcp # gnutella
gnutella-rtr 6347/udp
sge_qmaster 6444/tcp # Grid Engine Qmaster Service
sge_qmaster 6444/udp # Grid Engine Qmaster Service
sge_execd 6445/tcp # Grid Engine Execution Service
sge_execd 6445/udp # Grid Engine Execution Service
afs3-fileserver 7000/tcp bbs # file server itself
afs3-fileserver 7000/udp bbs
afs3-callback 7001/tcp # callbacks to cache managers
afs3-callback 7001/udp
afs3-prserver 7002/tcp # users & groups database
afs3-prserver 7002/udp
afs3-vlserver 7003/tcp # volume location database
afs3-vlserver 7003/udp
afs3-kaserver 7004/tcp # AFS/Kerberos authentication
afs3-kaserver 7004/udp
afs3-volser 7005/tcp # volume managment server
afs3-volser 7005/udp
afs3-errors 7006/tcp # error interpretation service
afs3-errors 7006/udp
afs3-bos 7007/tcp # basic overseer process
afs3-bos 7007/udp
afs3-update 7008/tcp # server-to-server updater
afs3-update 7008/udp
afs3-rmtsys 7009/tcp # remote cache manager service
afs3-rmtsys 7009/udp
font-service 7100/tcp xfs # X Font Service
font-service 7100/udp xfs
bacula-dir 9101/tcp # Bacula Director
bacula-dir 9101/udp
bacula-fd 9102/tcp # Bacula File Daemon
bacula-fd 9102/udp
bacula-sd 9103/tcp # Bacula Storage Daemon
bacula-sd 9103/udp
amanda 10080/tcp # amanda backup services
amanda 10080/udp
hkp 11371/tcp # OpenPGP HTTP Keyserver
hkp 11371/udp # OpenPGP HTTP Keyserver
bprd 13720/tcp # VERITAS NetBackup
bprd 13720/udp
bpdbm 13721/tcp # VERITAS NetBackup
bpdbm 13721/udp
bpjava-msvc 13722/tcp # BP Java MSVC Protocol
bpjava-msvc 13722/udp
vnetd 13724/tcp # Veritas Network Utility
vnetd 13724/udp
bpcd 13782/tcp # VERITAS NetBackup
bpcd 13782/udp
vopied 13783/tcp # VERITAS NetBackup
vopied 13783/udp
wnn6 22273/tcp # wnn6
wnn6 22273/udp
#
# Datagram Delivery Protocol services
#
rtmp 1/ddp # Routing Table Maintenance Protocol
nbp 2/ddp # Name Binding Protocol
echo 4/ddp # AppleTalk Echo Protocol
zip 6/ddp # Zone Information Protocol
#=========================================================================
# The remaining port numbers are not as allocated by IANA.
#=========================================================================
# Kerberos (Project Athena/MIT) services
# Note that these are for Kerberos v4, and are unofficial. Sites running
# v4 should uncomment these and comment out the v5 entries above.
#
kerberos4 750/udp kerberos-iv kdc # Kerberos (server)
kerberos4 750/tcp kerberos-iv kdc
kerberos_master 751/udp # Kerberos authentication
kerberos_master 751/tcp
passwd_server 752/udp # Kerberos passwd server
krb_prop 754/tcp krb5_prop hprop # Kerberos slave propagation
krbupdate 760/tcp kreg # Kerberos registration
swat 901/tcp # swat
kpop 1109/tcp # Pop with Kerberos
knetd 2053/tcp # Kerberos de-multiplexor
zephyr-srv 2102/udp # Zephyr server
zephyr-clt 2103/udp # Zephyr serv-hm connection
zephyr-hm 2104/udp # Zephyr hostmanager
eklogin 2105/tcp # Kerberos encrypted rlogin
# Hmmm. Are we using Kv4 or Kv5 now? Worrying.
# The following is probably Kerberos v5 --- ajt@debian.org (11/02/2000)
kx 2111/tcp # X over Kerberos
iprop 2121/tcp # incremental propagation
#
# Unofficial but necessary (for NetBSD) services
#
supfilesrv 871/tcp # SUP server
supfiledbg 1127/tcp # SUP debugging
#
# Services added for the Debian GNU/Linux distribution
#
linuxconf 98/tcp # LinuxConf
poppassd 106/tcp # Eudora
poppassd 106/udp
ssmtp 465/tcp smtps # SMTP over SSL
moira_db 775/tcp # Moira database
moira_update 777/tcp # Moira update protocol
moira_ureg 779/udp # Moira user registration
spamd 783/tcp # spamassassin daemon
omirr 808/tcp omirrd # online mirror
omirr 808/udp omirrd
customs 1001/tcp # pmake customs server
customs 1001/udp
skkserv 1178/tcp # skk jisho server port
predict 1210/udp # predict -- satellite tracking
rmtcfg 1236/tcp # Gracilis Packeten remote config server
wipld 1300/tcp # Wipl network monitor
xtel 1313/tcp # french minitel
xtelw 1314/tcp # french minitel
support 1529/tcp # GNATS
sieve 2000/tcp # Sieve mail filter daemon
cfinger 2003/tcp # GNU Finger
ndtp 2010/tcp # Network dictionary transfer protocol
frox 2121/tcp # frox: caching ftp proxy
ninstall 2150/tcp # ninstall service
ninstall 2150/udp
zebrasrv 2600/tcp # zebra service
zebra 2601/tcp # zebra vty
ripd 2602/tcp # ripd vty (zebra)
ripngd 2603/tcp # ripngd vty (zebra)
ospfd 2604/tcp # ospfd vty (zebra)
bgpd 2605/tcp # bgpd vty (zebra)
ospf6d 2606/tcp # ospf6d vty (zebra)
ospfapi 2607/tcp # OSPF-API
isisd 2608/tcp # ISISd vty (zebra)
afbackup 2988/tcp # Afbackup system
afbackup 2988/udp
afmbackup 2989/tcp # Afmbackup system
afmbackup 2989/udp
xtell 4224/tcp # xtell server
fax 4557/tcp # FAX transmission service (old)
hylafax 4559/tcp # HylaFAX client-server protocol (new)
distmp3 4600/tcp # distmp3host daemon
munin 4949/tcp lrrd # Munin
enbd-cstatd 5051/tcp # ENBD client statd
enbd-sstatd 5052/tcp # ENBD server statd
pcrd 5151/tcp # PCR-1000 Daemon
noclog 5354/tcp # noclogd with TCP (nocol)
noclog 5354/udp # noclogd with UDP (nocol)
hostmon 5355/tcp # hostmon uses TCP (nocol)
hostmon 5355/udp # hostmon uses UDP (nocol)
rplay 5555/udp # RPlay audio service
rplay 5555/tcp
rptp 5556/udp # Remote Play Transfer Protocol
rptp 5556/tcp
nsca 5667/tcp # Nagios Agent - NSCA
mrtd 5674/tcp # MRT Routing Daemon
bgpsim 5675/tcp # MRT Routing Simulator
canna 5680/tcp # cannaserver
sane-port 6566/tcp sane saned # SANE network scanner daemon
ircd 6667/tcp # Internet Relay Chat
zope-ftp 8021/tcp # zope management by ftp
webcache 8080/tcp # WWW caching service
tproxy 8081/tcp # Transparent Proxy
omniorb 8088/tcp # OmniORB
omniorb 8088/udp
clc-build-daemon 8990/tcp # Common lisp build daemon
xinetd 9098/tcp
mandelspawn 9359/udp mandelbrot # network mandelbrot
git 9418/tcp # Git Version Control System
zope 9673/tcp # zope server
webmin 10000/tcp
kamanda 10081/tcp # amanda backup services (Kerberos)
kamanda 10081/udp
amandaidx 10082/tcp # amanda backup services
amidxtape 10083/tcp # amanda backup services
smsqp 11201/tcp # Alamin SMS gateway
smsqp 11201/udp
xpilot 15345/tcp # XPilot Contact Port
xpilot 15345/udp
sgi-cmsd 17001/udp # Cluster membership services daemon
sgi-crsd 17002/udp
sgi-gcd 17003/udp # SGI Group membership daemon
sgi-cad 17004/tcp # Cluster Admin daemon
isdnlog 20011/tcp # isdn logging system
isdnlog 20011/udp
vboxd 20012/tcp # voice box system
vboxd 20012/udp
binkp 24554/tcp # binkp fidonet protocol
asp 27374/tcp # Address Search Protocol
asp 27374/udp
csync2 30865/tcp # cluster synchronization tool
dircproxy 57000/tcp # Detachable IRC Proxy
tfido 60177/tcp # fidonet EMSI over telnet
fido 60179/tcp # fidonet EMSI over TCP
# Local services

7
core/filesystem/shadow Normal file
View file

@ -0,0 +1,7 @@
root:$1$0AuMK5cY$kJp3hJ8p6igN2mc8tC6fE/:14412::::::
bin:x:0::::::
daemon:x:0::::::
mail:x:0::::::
ftp:x:0::::::
http:x:0::::::
nobody:x:0::::::

9
core/filesystem/shells Normal file
View file

@ -0,0 +1,9 @@
#
# /etc/shells
#
/bin/sh
/bin/bash
/bin/dash
# End of file

28
core/findutils/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=findutils
pkgver=4.4.0
pkgrel=1
pkgdesc="GNU utilities to locate files"
arch=(arm)
license=('GPL3')
groups=('base')
depends=('glibc>=2.8')
url="http://www.gnu.org/software/findutils"
source=(ftp://ftp.gnu.org/pub/gnu/findutils/findutils-$pkgver.tar.gz)
md5sums=('49e769ac4382fae6f104f99d54d0a112')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
mkdir -p $startdir/pkg/usr/var
make DESTDIR=$startdir/pkg install
rm -rf $startdir/pkg/usr/libexec
# remove locate utils (we use slocate instead)
rm -f $startdir/pkg/usr/bin/{locate,updatedb}
rm -f $startdir/pkg/usr/share/man/man1/{updatedb.1,locate.1}
rm -f $startdir/pkg/usr/share/man/man5/locatedb.5
rmdir $startdir/pkg/usr/var
}

28
core/flex/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=flex
pkgver=2.5.35
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
arch=('arm')
url="http://flex.sourceforge.net"
license=('custom')
groups=('base-devel')
depends=('glibc' 'sh')
source=(http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2
lex.sh)
md5sums=('10714e50cea54dc7a227e3eddcd44d57'
'f725259ec23a9e87ee29e2ef82eda9a5')
build() {
cd $startdir/src/$pkgname-$pkgver || return 1
./configure --prefix=/usr --mandir=/usr/share/man || return 1
make || return 1
make prefix=$startdir/pkg/usr mandir=$startdir/pkg/usr/share/man install || return 1
install -D -m755 $startdir/src/lex.sh $startdir/pkg/usr/bin/lex || return 1
install -D -m644 COPYING \
$startdir/pkg/usr/share/licenses/$pkgname/license.txt || return 1
}

View file

@ -0,0 +1,22 @@
diff -Naur flex-2.5.31-orig/flex.skl flex-2.5.31/flex.skl
--- flex-2.5.31-orig/flex.skl 2003-03-31 17:51:38.000000000 -0800
+++ flex-2.5.31/flex.skl 2004-04-11 12:19:10.000000000 -0700
@@ -3280,7 +3280,6 @@
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
-#undef yytext_ptr
#undef YY_DO_BEFORE_ACTION
#ifdef YY_DECL_IS_OURS
diff -Naur flex-2.5.31-orig/gen.c flex-2.5.31/gen.c
--- flex-2.5.31-orig/gen.c 2003-03-30 11:58:44.000000000 -0800
+++ flex-2.5.31/gen.c 2004-04-11 12:19:38.000000000 -0700
@@ -1812,7 +1812,6 @@
if (yytext_is_array) {
if (!reentrant){
indent_puts ("static int yy_more_offset = 0;");
- }else{
indent_puts ("static int yy_prev_more_offset = 0;");
}
}

3
core/flex/lex.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/bin/flex -l "$@"

27
core/gawk/PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=gawk
pkgver=3.1.6
pkgrel=1
pkgdesc="Gnu version of awk"
arch=('arm')
url="http://www.gnu.org/directory/GNU/gawk.html"
license=('GPL')
groups=('base')
provides=('awk')
source=(ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
depends=('bash' 'glibc')
md5sums=('b237751aef53c9ead9644e376bc53386')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$pkgdir install
mv "${pkgdir}/usr/libexec" "${pkgdir}/usr/lib"
install -dm755 "${pkgdir}/bin"
mv ${pkgdir}/usr/bin/gawk* "${pkgdir}/bin/"
mv ${pkgdir}/usr/bin/awk "${pkgdir}/bin/"
}

71
core/gcc/PKGBUILD Normal file
View file

@ -0,0 +1,71 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgbase=gcc
pkgname=('gcc' 'gcc-libs')
pkgver=4.4.1
pkgrel=3
pkgdesc='The GNU Compiler Collection'
arch=(arm)
license=(GPL LGPL custom)
url='http://gcc.gnu.org'
makedepends=(flex 'gcc>=3.4' 'gawk>=3.1.5' 'make>=3.80')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-$pkgver/gcc-{core,g++,fortran,objc}-$pkgver.tar.bz2)
md5sums=('d19693308aa6b2052e14c071111df59f'
'd449047b5761348ceec23739f5553e0b'
'47b92407bd15703a0ebb9e36e0314615'
'f7b2a606394036e81433b2f4c3251cba')
options=('!libtool')
build() {
mkdir -p $srcdir/gcc-build
cd $srcdir/gcc-build
../gcc-$pkgver/configure --prefix=/usr \
--enable-languages=c,c++,fortran,objc,obj-c++ \
--build=i686-pc-linux-gnu \
--host=arm-softfloat-linux-gnueabi \
--target=arm-softfloat-linux-gnueabi \
--disable-libstdcxx-pch \
--enable-__cxa_atexit \
--with-arch=armv4t \
--disable-multilib \
--enable-threads=posix || return 1
make || return 1
}
package_gcc() {
depends=("gcc-libs==$pkgver-$pkgrel" 'binutils>=2.19.1' 'mpfr>=2.4.1' 'cloog-ppl>=0.15.3')
groups=(base-devel)
license=(GPL)
cd $srcdir/gcc-build
make DESTDIR=$pkgdir install || return 1
ln -sf gcc $pkgdir/usr/bin/cc
ln -sf g++ $pkgdir/usr/bin/c++
# Remove libraries provided by gcc-libs.
rm -f $pkgdir/usr/lib/lib*
}
package_gcc-libs() {
depends=('glibc>=2.10.1')
groups=(base)
pkgdesc='Runtime libraries shipped by GCC for C and C++ languages'
license=(LGPL custom)
cd $srcdir/gcc-build
make DESTDIR=$pkgdir install-target-libgcc install-target-libmudflap install-target-libssp install-target-libstdc++-v3 install-target-libgomp install-target-libgfortran install-target-libobjc || return 1
# make target `install-target-libstdc++-v3' installs include files.
# Those are provided by gcc.
rm -rf $pkgdir/usr/include
# make target `install-target-libgomp' installs include files as well.
# Those, too, should be provided by gcc.
rm -rf $pkgdir/usr/lib/gcc
# Install Runtime Library Exception license.
install -Dm644 ../gcc-$pkgver/COPYING.RUNTIME \
$pkgdir/usr/share/licenses/$pkgname/RUNTIME.LIBRARY.EXCEPTION
}

23
core/gdbm/PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=gdbm
pkgver=1.8.3
pkgrel=1
pkgdesc="GNU database library"
url="http://www.gnu.org/software/gdbm/gdbm.html"
license=('GPL')
arch=(arm)
groups=('base')
depends=('glibc')
source=(ftp://ftp.gnu.org/gnu/gdbm/$pkgname-$pkgver.tar.gz)
md5sums=('1d1b1d5c0245b1c00aff92da751e9aa1')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make prefix=/usr || return 1
make prefix=$startdir/pkg/usr install
make prefix=$startdir/pkg/usr install-compat
chown root.root $startdir/pkg/usr/include/{dbm.h,gdbm.h,ndbm.h}
find $startdir/pkg -name '*.la' -exec rm {} \;
}

View file

@ -0,0 +1,42 @@
DESTDIR =
PREFIX = /
MKDIR = /bin/mkdir
INSTALL = /bin/install -c -m 755
CC = /usr/bin/gcc
LD = /usr/bin/gcc
CFLAGS += -Wall -Wstrict-prototypes -Wsign-compare -Wchar-subscripts \
-Wpointer-arith -Wcast-align -Wsign-compare
#pretty print!
E = @echo
Q = @
all: gen_init_cpio
.PHONY: all
.DEFAULT: all
%.o: %.c
$(E) " compile " $@
$(Q) $(CC) -c $(CFLAGS) $< -o $@
gen_init_cpio: gen_init_cpio.o
$(E) ">>build " $@
$(Q) $(LD) $(LDFLAGS) $@.o -o $@ $(LIB_OBJS)
clean:
$(E) " clean "
$(Q) rm -f gen_init_cpio *.o
.PHONY: clean
install: all
$(MKDIR) -p $(DESTDIR)$(PREFIX)sbin/
$(INSTALL) gen_init_cpio $(DESTDIR)$(PREFIX)sbin/
.PHONY: install
uninstall:
rm $(DESTDIR)$(PREFIX)sbin/gen_init_cpio
.PHONY: uninstall

View file

@ -0,0 +1,22 @@
# Maintainer : Tobias Powalowski <tpowa@archlinux.org>
# arm Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=gen-init-cpio
pkgver=2.6.17
pkgrel=3
pkgdesc="Program to compress initramfs images"
arch=(arm)
license=('custom:none')
groups=('base')
url="http://www.kernel.org/"
depends=('glibc')
source=(Makefile gen_init_cpio.c)
md5sums=('8e3a142a522d65121c3bead41013be98'
'fe53a05f5fcfca9e4dd8d67d29190f6e')
build()
{
cd $startdir/src/
make || return 1
make DESTDIR=$startdir/pkg install
}

View file

@ -0,0 +1,514 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>
/*
* Original work by Jeff Garzik
*
* External file lists, symlink, pipe and fifo support by Thayne Harbaugh
*/
#define xstr(s) #s
#define str(s) xstr(s)
static unsigned int offset;
static unsigned int ino = 721;
struct file_handler {
const char *type;
int (*handler)(const char *line);
};
static void push_string(const char *name)
{
unsigned int name_len = strlen(name) + 1;
fputs(name, stdout);
putchar(0);
offset += name_len;
}
static void push_pad (void)
{
while (offset & 3) {
putchar(0);
offset++;
}
}
static void push_rest(const char *name)
{
unsigned int name_len = strlen(name) + 1;
unsigned int tmp_ofs;
fputs(name, stdout);
putchar(0);
offset += name_len;
tmp_ofs = name_len + 110;
while (tmp_ofs & 3) {
putchar(0);
offset++;
tmp_ofs++;
}
}
static void push_hdr(const char *s)
{
fputs(s, stdout);
offset += 110;
}
static void cpio_trailer(void)
{
char s[256];
const char name[] = "TRAILER!!!";
sprintf(s, "%s%08X%08X%08lX%08lX%08X%08lX"
"%08X%08X%08X%08X%08X%08X%08X",
"070701", /* magic */
0, /* ino */
0, /* mode */
(long) 0, /* uid */
(long) 0, /* gid */
1, /* nlink */
(long) 0, /* mtime */
0, /* filesize */
0, /* major */
0, /* minor */
0, /* rmajor */
0, /* rminor */
(unsigned)strlen(name)+1, /* namesize */
0); /* chksum */
push_hdr(s);
push_rest(name);
while (offset % 512) {
putchar(0);
offset++;
}
}
static int cpio_mkslink(const char *name, const char *target,
unsigned int mode, uid_t uid, gid_t gid)
{
char s[256];
time_t mtime = time(NULL);
sprintf(s,"%s%08X%08X%08lX%08lX%08X%08lX"
"%08X%08X%08X%08X%08X%08X%08X",
"070701", /* magic */
ino++, /* ino */
S_IFLNK | mode, /* mode */
(long) uid, /* uid */
(long) gid, /* gid */
1, /* nlink */
(long) mtime, /* mtime */
(unsigned)strlen(target)+1, /* filesize */
3, /* major */
1, /* minor */
0, /* rmajor */
0, /* rminor */
(unsigned)strlen(name) + 1,/* namesize */
0); /* chksum */
push_hdr(s);
push_string(name);
push_pad();
push_string(target);
push_pad();
return 0;
}
static int cpio_mkslink_line(const char *line)
{
char name[PATH_MAX + 1];
char target[PATH_MAX + 1];
unsigned int mode;
int uid;
int gid;
int rc = -1;
if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &uid, &gid)) {
fprintf(stderr, "Unrecognized dir format '%s'", line);
goto fail;
}
rc = cpio_mkslink(name, target, mode, uid, gid);
fail:
return rc;
}
static int cpio_mkgeneric(const char *name, unsigned int mode,
uid_t uid, gid_t gid)
{
char s[256];
time_t mtime = time(NULL);
sprintf(s,"%s%08X%08X%08lX%08lX%08X%08lX"
"%08X%08X%08X%08X%08X%08X%08X",
"070701", /* magic */
ino++, /* ino */
mode, /* mode */
(long) uid, /* uid */
(long) gid, /* gid */
2, /* nlink */
(long) mtime, /* mtime */
0, /* filesize */
3, /* major */
1, /* minor */
0, /* rmajor */
0, /* rminor */
(unsigned)strlen(name) + 1,/* namesize */
0); /* chksum */
push_hdr(s);
push_rest(name);
return 0;
}
enum generic_types {
GT_DIR,
GT_PIPE,
GT_SOCK
};
struct generic_type {
const char *type;
mode_t mode;
};
static struct generic_type generic_type_table[] = {
[GT_DIR] = {
.type = "dir",
.mode = S_IFDIR
},
[GT_PIPE] = {
.type = "pipe",
.mode = S_IFIFO
},
[GT_SOCK] = {
.type = "sock",
.mode = S_IFSOCK
}
};
static int cpio_mkgeneric_line(const char *line, enum generic_types gt)
{
char name[PATH_MAX + 1];
unsigned int mode;
int uid;
int gid;
int rc = -1;
if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) {
fprintf(stderr, "Unrecognized %s format '%s'",
line, generic_type_table[gt].type);
goto fail;
}
mode |= generic_type_table[gt].mode;
rc = cpio_mkgeneric(name, mode, uid, gid);
fail:
return rc;
}
static int cpio_mkdir_line(const char *line)
{
return cpio_mkgeneric_line(line, GT_DIR);
}
static int cpio_mkpipe_line(const char *line)
{
return cpio_mkgeneric_line(line, GT_PIPE);
}
static int cpio_mksock_line(const char *line)
{
return cpio_mkgeneric_line(line, GT_SOCK);
}
static int cpio_mknod(const char *name, unsigned int mode,
uid_t uid, gid_t gid, char dev_type,
unsigned int maj, unsigned int min)
{
char s[256];
time_t mtime = time(NULL);
if (dev_type == 'b')
mode |= S_IFBLK;
else
mode |= S_IFCHR;
sprintf(s,"%s%08X%08X%08lX%08lX%08X%08lX"
"%08X%08X%08X%08X%08X%08X%08X",
"070701", /* magic */
ino++, /* ino */
mode, /* mode */
(long) uid, /* uid */
(long) gid, /* gid */
1, /* nlink */
(long) mtime, /* mtime */
0, /* filesize */
3, /* major */
1, /* minor */
maj, /* rmajor */
min, /* rminor */
(unsigned)strlen(name) + 1,/* namesize */
0); /* chksum */
push_hdr(s);
push_rest(name);
return 0;
}
static int cpio_mknod_line(const char *line)
{
char name[PATH_MAX + 1];
unsigned int mode;
int uid;
int gid;
char dev_type;
unsigned int maj;
unsigned int min;
int rc = -1;
if (7 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d %c %u %u",
name, &mode, &uid, &gid, &dev_type, &maj, &min)) {
fprintf(stderr, "Unrecognized nod format '%s'", line);
goto fail;
}
rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min);
fail:
return rc;
}
/* Not marked static to keep the compiler quiet, as no one uses this yet... */
static int cpio_mkfile(const char *name, const char *location,
unsigned int mode, uid_t uid, gid_t gid)
{
char s[256];
char *filebuf = NULL;
struct stat buf;
int file = -1;
int retval;
int rc = -1;
mode |= S_IFREG;
retval = stat (location, &buf);
if (retval) {
fprintf (stderr, "File %s could not be located\n", location);
goto error;
}
file = open (location, O_RDONLY);
if (file < 0) {
fprintf (stderr, "File %s could not be opened for reading\n", location);
goto error;
}
filebuf = malloc(buf.st_size);
if (!filebuf) {
fprintf (stderr, "out of memory\n");
goto error;
}
retval = read (file, filebuf, buf.st_size);
if (retval < 0) {
fprintf (stderr, "Can not read %s file\n", location);
goto error;
}
sprintf(s,"%s%08X%08X%08lX%08lX%08X%08lX"
"%08X%08X%08X%08X%08X%08X%08X",
"070701", /* magic */
ino++, /* ino */
mode, /* mode */
(long) uid, /* uid */
(long) gid, /* gid */
1, /* nlink */
(long) buf.st_mtime, /* mtime */
(int) buf.st_size, /* filesize */
3, /* major */
1, /* minor */
0, /* rmajor */
0, /* rminor */
(unsigned)strlen(name) + 1,/* namesize */
0); /* chksum */
push_hdr(s);
push_string(name);
push_pad();
fwrite(filebuf, buf.st_size, 1, stdout);
offset += buf.st_size;
push_pad();
rc = 0;
error:
if (filebuf) free(filebuf);
if (file >= 0) close(file);
return rc;
}
static int cpio_mkfile_line(const char *line)
{
char name[PATH_MAX + 1];
char location[PATH_MAX + 1];
unsigned int mode;
int uid;
int gid;
int rc = -1;
if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, location, &mode, &uid, &gid)) {
fprintf(stderr, "Unrecognized file format '%s'", line);
goto fail;
}
rc = cpio_mkfile(name, location, mode, uid, gid);
fail:
return rc;
}
void usage(const char *prog)
{
fprintf(stderr, "Usage:\n"
"\t%s <cpio_list>\n"
"\n"
"<cpio_list> is a file containing newline separated entries that\n"
"describe the files to be included in the initramfs archive:\n"
"\n"
"# a comment\n"
"file <name> <location> <mode> <uid> <gid>\n"
"dir <name> <mode> <uid> <gid>\n"
"nod <name> <mode> <uid> <gid> <dev_type> <maj> <min>\n"
"slink <name> <target> <mode> <uid> <gid>\n"
"pipe <name> <mode> <uid> <gid>\n"
"sock <name> <mode> <uid> <gid>\n"
"\n"
"<name> name of the file/dir/nod/etc in the archive\n"
"<location> location of the file in the current filesystem\n"
"<target> link target\n"
"<mode> mode/permissions of the file\n"
"<uid> user id (0=root)\n"
"<gid> group id (0=root)\n"
"<dev_type> device type (b=block, c=character)\n"
"<maj> major number of nod\n"
"<min> minor number of nod\n"
"\n"
"example:\n"
"# A simple initramfs\n"
"dir /dev 0755 0 0\n"
"nod /dev/console 0600 0 0 c 5 1\n"
"dir /root 0700 0 0\n"
"dir /sbin 0755 0 0\n"
"file /sbin/kinit /usr/src/klibc/kinit/kinit 0755 0 0\n",
prog);
}
struct file_handler file_handler_table[] = {
{
.type = "file",
.handler = cpio_mkfile_line,
}, {
.type = "nod",
.handler = cpio_mknod_line,
}, {
.type = "dir",
.handler = cpio_mkdir_line,
}, {
.type = "slink",
.handler = cpio_mkslink_line,
}, {
.type = "pipe",
.handler = cpio_mkpipe_line,
}, {
.type = "sock",
.handler = cpio_mksock_line,
}, {
.type = NULL,
.handler = NULL,
}
};
#define LINE_SIZE (2 * PATH_MAX + 50)
int main (int argc, char *argv[])
{
FILE *cpio_list;
char line[LINE_SIZE];
char *args, *type;
int ec = 0;
int line_nr = 0;
if (2 != argc) {
usage(argv[0]);
exit(1);
}
if (! (cpio_list = fopen(argv[1], "r"))) {
fprintf(stderr, "ERROR: unable to open '%s': %s\n\n",
argv[1], strerror(errno));
usage(argv[0]);
exit(1);
}
while (fgets(line, LINE_SIZE, cpio_list)) {
int type_idx;
size_t slen = strlen(line);
line_nr++;
if ('#' == *line) {
/* comment - skip to next line */
continue;
}
if (! (type = strtok(line, " \t"))) {
fprintf(stderr,
"ERROR: incorrect format, could not locate file type line %d: '%s'\n",
line_nr, line);
ec = -1;
break;
}
if ('\n' == *type) {
/* a blank line */
continue;
}
if (slen == strlen(type)) {
/* must be an empty line */
continue;
}
if (! (args = strtok(NULL, "\n"))) {
fprintf(stderr,
"ERROR: incorrect format, newline required line %d: '%s'\n",
line_nr, line);
ec = -1;
}
for (type_idx = 0; file_handler_table[type_idx].type; type_idx++) {
int rc;
if (! strcmp(line, file_handler_table[type_idx].type)) {
if ((rc = file_handler_table[type_idx].handler(args))) {
ec = rc;
fprintf(stderr, " line %d\n", line_nr);
}
break;
}
}
if (NULL == file_handler_table[type_idx].type) {
fprintf(stderr, "unknown file type line %d: '%s'\n",
line_nr, line);
}
}
if (ec == 0)
cpio_trailer();
exit(ec);
}

26
core/gettext/PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=gettext
pkgver=0.17
pkgrel=4
pkgdesc="GNU internationalization library"
arch=(arm)
url="http://www.gnu.org/software/gettext"
license=('GPL')
groups=('base')
depends=(gcc-libs ncurses 'expat>=1.95' acl)
options=(!libtool)
source=(ftp://ftp.gnu.org/pub/gnu/gettext/gettext-${pkgver}.tar.gz)
md5sums=('58a2bc6d39c0ba57823034d55d65d606')
build() {
cd $srcdir/gettext-$pkgver
./configure --prefix=/usr \
--with-included-libcroco \
--with-included-libxml \
--disable-jave \
--without-emacs || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
}

28
core/git/PKGBUILD Normal file
View file

@ -0,0 +1,28 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=git
pkgver=1.6.4.1
pkgrel=1
pkgdesc="GIT - the stupid content tracker"
groups=('base-devel')
arch=(arm)
url="http://git-scm.com/"
license=('GPL2')
depends=('curl' 'expat>=2.0' 'perl-error' 'perl>=5.10.0')
source=("http://kernel.org/pub/software/scm/git/${pkgname}-${pkgver}.tar.bz2")
md5sums=('bdc9b8be7d56a3beabad2d228f2e8e9a')
build() {
cd "$srcdir/git-$pkgver"
make prefix=/usr gitexecdir=/usr/lib/git-core || return 1
make prefix=/usr gitexecdir=/usr/lib/git-core \
INSTALLDIRS=vendor DESTDIR="$pkgdir" install || return 1
mkdir -p "$pkgdir/usr/share/"
cp -dR ./gitweb "$pkgdir/usr/share/gitweb" || return 1
mkdir -p $pkgdir/etc/bash_completion.d/
install -m644 ./contrib/completion/git-completion.bash \
"$pkgdir/etc/bash_completion.d/git" || return 1
rm -rf $pkgdir/usr/lib/perl5
}

29
core/glib2/PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Rotter Manuel <rotter.manuel@gmail.com>
pkgname=glib2
pkgver=2.20.2
pkgrel=1
pkgdesc="Common C routines used by GTK+ 2.4 and other libs"
url="http://www.gtk.org/"
arch=(arm)
license=('LGPL')
depends=('pcre>=7.9')
makedepends=('pkgconfig')
options=('!libtool' '!docs')
source=(http://ftp.gnome.org/pub/GNOME/sources/glib/2.20/glib-${pkgver}.tar.bz2)
glib2.sh
glib2.csh)
md5sums=('468054db4e28af3eac541b36c9d07c31'
'803017b365bd35dc20b092ce43b8c8c5'
'90c7b830bef4baf225c2eb8b7ead0cab')
build() {
cd "${srcdir}/glib-${pkgver}"
./configure --prefix=/usr --enable-static --enable-shared --with-pcre=system --disable-fam || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -d "${pkgdir}/etc/profile.d"
install -m755 "${srcdir}/glib2.sh" "${pkgdir}/etc/profile.d/" || return 1
install -m755 "${srcdir}/glib2.csh" "${pkgdir}/etc/profile.d/" || return 1
}

1
core/glib2/glib2.csh Normal file
View file

@ -0,0 +1 @@
setenv G_BROKEN_FILENAMES 1

1
core/glib2/glib2.sh Normal file
View file

@ -0,0 +1 @@
export G_BROKEN_FILENAMES=1

83
core/glibc/PKGBUILD Normal file
View file

@ -0,0 +1,83 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=glibc
pkgver=2.10.1
pkgrel=2
install=glibc.install
backup=(etc/locale.gen
etc/nscd.conf)
pkgdesc="GNU C Library"
arch=('arm')
license=('GPL' 'LGPL')
url="http://www.gnu.org/software/libc"
groups=('base' 'small-base')
depends=('kernel-headers>=2.6.29' 'tzdata')
makedepends=('gcc>=4.4.0')
source=(http://ftp.gnu.org/gnu/glibc/glibc-ports-$pkgver.tar.gz
http://ftp.gnu.org/gnu/glibc/glibc-$pkgver.tar.gz
nscd locale.gen.txt locale-gen)
build() {
cd $srcdir/glibc-$pkgver
ln -s $srcdir/glibc-ports-$pkgver .
install -dm755 $pkgdir/etc
touch $pkgdir/etc/ld.so.conf
sed -i '/^all-subdirs =/,/^$/s/timezone //' Makeconfig
mkdir glibc-build
cd glibc-build
echo "slibdir=/lib" >> configparms
../configure --prefix=/usr \
--host=arm-unknown-linux-gnueabi \
--build=arm-unknown-linux-gnueabi \
--enable-add-ons \
--enable-kernel=2.6.16 \
--enable-bind-now \
--disable-profile \
--disable-debug \
--disable-gd \
--libexecdir=/usr/lib \
--libdir=/usr/lib \
--with-tls \
--with-__thread \
--with-headers=/usr/include \
--without-cvs \
--without-gd \
--without-fp \
--without-selinux || return 1
make || return 1
make install_root="$pkgdir" install || return 1
rm -f "$pkgdir/etc/ld.so.cache" "$pkgdir/etc/ld.so.conf" \
"$pkgdir/etc/localtime"
install -dm755 ${pkgdir}/etc/rc.d
install -dm755 ${pkgdir}/usr/sbin
install -dm755 ${pkgdir}/usr/lib/locale
install -Dm644 "$srcdir/glibc-$pkgver/nscd/nscd.conf" \
"$pkgdir/etc/nscd.conf"
install -Dm755 "$srcdir/nscd" "$pkgdir/etc/rc.d/nscd"
install -Dm755 "$srcdir/locale-gen" "$pkgdir/usr/sbin/locale-gen"
sed -i -e 's/^\tserver-user/#\tserver-user/' \
"$pkgdir/etc/nscd.conf" || return 1
# Create /etc/locale.gen
install -m644 "$srcdir/locale.gen.txt" "$pkgdir/etc/locale.gen"
sed -i 's|/| |g' "$srcdir/libc/localedata/SUPPORTED"
sed -i 's|\\| |g' "$srcdir/libc/localedata/SUPPORTED"
sed -i 's|SUPPORTED-LOCALES=||' "$srcdir/libc/localedata/SUPPORTED"
cat "$srcdir/libc/localedata/SUPPORTED" >> "$pkgdir/etc/locale.gen"
sed -i 's|^|#|g' "$pkgdir/etc/locale.gen"
}
md5sums=('3daabbcd79f88866cdce4e7a93388459'
'f95368cff696baa854fd41ba69d70f3a'
'b587ee3a70c9b3713099295609afde49'
'07ac979b6ab5eeb778d55f041529d623'
'476e9113489f93b348b21e144b6a8fcf')

5
core/glibc/glibc.install Normal file
View file

@ -0,0 +1,5 @@
post_upgrade() {
ldconfig -r .
init u
}

42
core/glibc/locale-gen Executable file
View file

@ -0,0 +1,42 @@
#!/bin/sh
set -e
LOCALEGEN=/etc/locale.gen
LOCALES=/usr/share/i18n/locales
if [ -n "$POSIXLY_CORRECT" ]; then
unset POSIXLY_CORRECT
fi
[ -f $LOCALEGEN -a -s $LOCALEGEN ] || exit 0;
# Remove all old locale dir and locale-archive before generating new
# locale data.
rm -rf /usr/lib/locale/* || true
umask 022
is_entry_ok() {
if [ -n "$locale" -a -n "$charset" ] ; then
true
else
echo "error: Bad entry '$locale $charset'"
false
fi
}
echo "Generating locales..."
while read locale charset; do \
case $locale in \#*) continue;; "") continue;; esac; \
is_entry_ok || continue
echo -n " `echo $locale | sed 's/\([^.\@]*\).*/\1/'`"; \
echo -n ".$charset"; \
echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \
echo -n '...'; \
if [ -f $LOCALES/$locale ]; then input=$locale; else \
input=`echo $locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; fi; \
localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale; \
echo ' done'; \
done < $LOCALEGEN
echo "Generation complete."

23
core/glibc/locale.gen.txt Normal file
View file

@ -0,0 +1,23 @@
# Configuration file for locale-gen
#
# lists of locales that are to be generated by the locale-gen command.
#
# Each line is of the form:
#
# <locale> <charset>
#
# where <locale> is one of the locales given in /usr/share/i18n/locales
# and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
#
# Examples:
# en_US ISO-8859-1
# en_US.UTF-8 UTF-8
# de_DE ISO-8859-1
# de_DE@euro ISO-8859-15
#
# The locale-gen command will generate all the locales,
# placing them in /usr/lib/locale.
#
# A list of supported locales is included in this file.
# Uncomment the ones you need.
#

40
core/glibc/nscd Executable file
View file

@ -0,0 +1,40 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/nscd`
case "$1" in
start)
stat_busy "Starting nscd"
# create necessary directories if they don't already exist
mkdir -p /var/run/nscd /var/db/nscd 2>/dev/null
# remove stale files
rm -f /var/db/nscd/* /var/run/nscd/* 2>/dev/null
[ -z "$PID" ] && /usr/sbin/nscd
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon nscd
stat_done
fi
;;
stop)
stat_busy "Stopping nscd"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon nscd
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

23
core/gmp/PKGBUILD Normal file
View file

@ -0,0 +1,23 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
pkgname=gmp
pkgver=4.2.4
pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic"
arch=(arm)
depends=('gcc-libs' 'texinfo')
makedepends=('m4')
license=('LGPL3')
options=(!libtool)
source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
url="http://gmplib.org/"
md5sums=('fc1e3b3a2a5038d4d74138d0b9cf8dbe')
build() {
cd "${srcdir}/gmp-${pkgver}"
./configure --prefix=/usr --enable-cxx --infodir=/usr/share/info || return 1
make || return 1
make check || return 1
make DESTDIR="${pkgdir}" install || return 1
}

View file

@ -0,0 +1,15 @@
--- grep-2.5.1a/src/grep.c.mem-exhausted 2006-11-22 14:49:35.000000000 +0000
+++ grep-2.5.1a/src/grep.c 2006-11-22 14:53:12.000000000 +0000
@@ -299,6 +299,12 @@
int cc = 1;
char *readbuf;
size_t readsize;
+ const size_t max_save = 200 * 1024 * 1024;
+
+ /* Limit the amount of saved data to 200Mb so we don't fail on
+ * large files. */
+ if (save > max_save)
+ save = max_save;
/* Offset from start of buffer to start of old stuff
that we want to save. */

View file

@ -0,0 +1,36 @@
--- grep-2.5.1a/src/grep.c.empty-pattern 2006-11-22 19:05:43.000000000 +0000
+++ grep-2.5.1a/src/grep.c 2006-11-22 19:22:04.000000000 +0000
@@ -1667,9 +1667,6 @@
out_invert ^= 1;
match_lines = match_words = 0;
}
- else
- /* Strip trailing newline. */
- --keycc;
}
else
if (optind < argc)
--- grep-2.5.1a/src/search.c.empty-pattern 2006-11-22 19:21:11.000000000 +0000
+++ grep-2.5.1a/src/search.c 2006-11-22 19:35:06.000000000 +0000
@@ -204,6 +204,10 @@
motif = sep;
} while (sep && total != 0);
+ /* Strip trailing newline. */
+ if (size && pattern[size - 1] == '\n')
+ size--;
+
/* In the match_words and match_lines cases, we use a different pattern
for the DFA matcher that will quickly throw out cases that won't work.
Then if DFA succeeds we do some hairy stuff using the regex matcher
@@ -288,6 +292,10 @@
motif = sep;
} while (sep && total != 0);
+ /* Strip trailing newline. */
+ if (size && pattern[size - 1] == '\n')
+ size--;
+
/* In the match_words and match_lines cases, we use a different pattern
for the DFA matcher that will quickly throw out cases that won't work.
Then if DFA succeeds we do some hairy stuff using the regex matcher

View file

@ -0,0 +1,791 @@
--- a/src/search.c.orig
+++ b/src/search.c
@@ -18,10 +18,15 @@
/* Written August 1992 by Mike Haertel. */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
+#include <assert.h>
+
#include <sys/types.h>
#include "mbsupport.h"
@@ -43,6 +48,9 @@
#ifdef HAVE_LIBPCRE
# include <pcre.h>
#endif
+#ifdef HAVE_LANGINFO_CODESET
+# include <langinfo.h>
+#endif
#define NCHAR (UCHAR_MAX + 1)
@@ -68,6 +76,19 @@
error (2, 0, _("memory exhausted"));
}
+/* UTF-8 encoding allows some optimizations that we can't otherwise
+ assume in a multibyte encoding. */
+static int using_utf8;
+
+void
+check_utf8 (void)
+{
+#ifdef HAVE_LANGINFO_CODESET
+ if (strcmp (nl_langinfo (CODESET), "UTF-8") == 0)
+ using_utf8 = 1;
+#endif
+}
+
#ifndef FGREP_PROGRAM
/* DFA compiled regexp. */
static struct dfa dfa;
@@ -134,49 +155,6 @@
}
#endif /* !FGREP_PROGRAM */
-#ifdef MBS_SUPPORT
-/* This function allocate the array which correspond to "buf".
- Then this check multibyte string and mark on the positions which
- are not single byte character nor the first byte of a multibyte
- character. Caller must free the array. */
-static char*
-check_multibyte_string(char const *buf, size_t size)
-{
- char *mb_properties = xmalloc(size);
- mbstate_t cur_state;
- wchar_t wc;
- int i;
-
- memset(&cur_state, 0, sizeof(mbstate_t));
- memset(mb_properties, 0, sizeof(char)*size);
-
- for (i = 0; i < size ;)
- {
- size_t mbclen;
- mbclen = mbrtowc(&wc, buf + i, size - i, &cur_state);
-
- if (mbclen == (size_t) -1 || mbclen == (size_t) -2 || mbclen == 0)
- {
- /* An invalid sequence, or a truncated multibyte character.
- We treat it as a single byte character. */
- mbclen = 1;
- }
- else if (match_icase)
- {
- if (iswupper((wint_t)wc))
- {
- wc = towlower((wint_t)wc);
- wcrtomb(buf + i, wc, &cur_state);
- }
- }
- mb_properties[i] = mbclen;
- i += mbclen;
- }
-
- return mb_properties;
-}
-#endif /* MBS_SUPPORT */
-
#if defined(GREP_PROGRAM) || defined(EGREP_PROGRAM)
#ifdef EGREP_PROGRAM
COMPILE_FCT(Ecompile)
@@ -193,6 +171,7 @@
size_t total = size;
char const *motif = pattern;
+ check_utf8 ();
#if 0
if (match_icase)
syntax_bits |= RE_ICASE;
@@ -303,20 +282,9 @@ hunk6
struct kwsmatch kwsm;
size_t i, ret_val;
#ifdef MBS_SUPPORT
- char *mb_properties = NULL;
- if (MB_CUR_MAX > 1)
- {
- if (match_icase)
- {
- char *case_buf = xmalloc(size);
- memcpy(case_buf, buf, size);
- if (start_ptr)
- start_ptr = case_buf + (start_ptr - buf);
- buf = case_buf;
- }
- if (kwset)
- mb_properties = check_multibyte_string(buf, size);
- }
+ int mb_cur_max = MB_CUR_MAX;
+ mbstate_t mbs;
+ memset (&mbs, '\0', sizeof (mbstate_t));
#endif /* MBS_SUPPORT */
buflim = buf + size;
@@ -329,21 +282,63 @@ hunk6
if (kwset)
{
/* Find a possible match using the KWset matcher. */
- size_t offset = kwsexec (kwset, beg, buflim - beg, &kwsm);
+#ifdef MBS_SUPPORT
+ size_t bytes_left = 0;
+#endif /* MBS_SUPPORT */
+ size_t offset;
+#ifdef MBS_SUPPORT
+ /* kwsexec doesn't work with match_icase and multibyte input. */
+ if (match_icase && mb_cur_max > 1)
+ /* Avoid kwset */
+ offset = 0;
+ else
+#endif /* MBS_SUPPORT */
+ offset = kwsexec (kwset, beg, buflim - beg, &kwsm);
if (offset == (size_t) -1)
- goto failure;
+ return (size_t)-1;
+#ifdef MBS_SUPPORT
+ if (mb_cur_max > 1 && !using_utf8)
+ {
+ bytes_left = offset;
+ while (bytes_left)
+ {
+ size_t mlen = mbrlen (beg, bytes_left, &mbs);
+ if (mlen == (size_t) -1 || mlen == 0)
+ {
+ /* Incomplete character: treat as single-byte. */
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ beg++;
+ bytes_left--;
+ continue;
+ }
+
+ if (mlen == (size_t) -2)
+ /* Offset points inside multibyte character:
+ * no good. */
+ break;
+
+ beg += mlen;
+ bytes_left -= mlen;
+ }
+ }
+ else
+#endif /* MBS_SUPPORT */
beg += offset;
/* Narrow down to the line containing the candidate, and
run it through DFA. */
end = memchr(beg, eol, buflim - beg);
end++;
#ifdef MBS_SUPPORT
- if (MB_CUR_MAX > 1 && mb_properties[beg - buf] == 0)
+ if (mb_cur_max > 1 && bytes_left)
continue;
#endif
while (beg > buf && beg[-1] != eol)
--beg;
- if (kwsm.index < kwset_exact_matches)
+ if (
+#ifdef MBS_SUPPORT
+ !(match_icase && mb_cur_max > 1) &&
+#endif /* MBS_SUPPORT */
+ (kwsm.index < kwset_exact_matches))
goto success;
if (dfaexec (&dfa, beg, end - beg, &backref) == (size_t) -1)
continue;
@@ -351,13 +363,47 @@
else
{
/* No good fixed strings; start with DFA. */
+#ifdef MBS_SUPPORT
+ size_t bytes_left = 0;
+#endif /* MBS_SUPPORT */
size_t offset = dfaexec (&dfa, beg, buflim - beg, &backref);
if (offset == (size_t) -1)
break;
/* Narrow down to the line we've found. */
+#ifdef MBS_SUPPORT
+ if (mb_cur_max > 1 && !using_utf8)
+ {
+ bytes_left = offset;
+ while (bytes_left)
+ {
+ size_t mlen = mbrlen (beg, bytes_left, &mbs);
+ if (mlen == (size_t) -1 || mlen == 0)
+ {
+ /* Incomplete character: treat as single-byte. */
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ beg++;
+ bytes_left--;
+ continue;
+ }
+
+ if (mlen == (size_t) -2)
+ /* Offset points inside multibyte character:
+ * no good. */
+ break;
+
+ beg += mlen;
+ bytes_left -= mlen;
+ }
+ }
+ else
+#endif /* MBS_SUPPORT */
beg += offset;
end = memchr (beg, eol, buflim - beg);
end++;
+#ifdef MBS_SUPPORT
+ if (mb_cur_max > 1 && bytes_left)
+ continue;
+#endif /* MBS_SUPPORT */
while (beg > buf && beg[-1] != eol)
--beg;
}
@@ -475,24 +521,144 @@
*match_size = len;
ret_val = beg - buf;
out:
-#ifdef MBS_SUPPORT
- if (MB_CUR_MAX > 1)
- {
- if (match_icase)
- free((char*)buf);
- if (mb_properties)
- free(mb_properties);
- }
-#endif /* MBS_SUPPORT */
return ret_val;
}
#endif /* defined(GREP_PROGRAM) || defined(EGREP_PROGRAM) */
+#ifdef MBS_SUPPORT
+static int f_i_multibyte; /* whether we're using the new -Fi MB method */
+static struct
+{
+ wchar_t **patterns;
+ size_t count, maxlen;
+ unsigned char *match;
+} Fimb;
+#endif
+
#if defined(GREP_PROGRAM) || defined(FGREP_PROGRAM)
COMPILE_FCT(Fcompile)
{
+ int mb_cur_max = MB_CUR_MAX;
char const *beg, *lim, *err;
+ check_utf8 ();
+#ifdef MBS_SUPPORT
+ /* Support -F -i for UTF-8 input. */
+ if (match_icase && mb_cur_max > 1)
+ {
+ mbstate_t mbs;
+ wchar_t *wcpattern = xmalloc ((size + 1) * sizeof (wchar_t));
+ const char *patternend = pattern;
+ size_t wcsize;
+ kwset_t fimb_kwset = NULL;
+ char *starts = NULL;
+ wchar_t *wcbeg, *wclim;
+ size_t allocated = 0;
+
+ memset (&mbs, '\0', sizeof (mbs));
+# ifdef __GNU_LIBRARY__
+ wcsize = mbsnrtowcs (wcpattern, &patternend, size, size, &mbs);
+ if (patternend != pattern + size)
+ wcsize = (size_t) -1;
+# else
+ {
+ char *patterncopy = xmalloc (size + 1);
+
+ memcpy (patterncopy, pattern, size);
+ patterncopy[size] = '\0';
+ patternend = patterncopy;
+ wcsize = mbsrtowcs (wcpattern, &patternend, size, &mbs);
+ if (patternend != patterncopy + size)
+ wcsize = (size_t) -1;
+ free (patterncopy);
+ }
+# endif
+ if (wcsize + 2 <= 2)
+ {
+fimb_fail:
+ free (wcpattern);
+ free (starts);
+ if (fimb_kwset)
+ kwsfree (fimb_kwset);
+ free (Fimb.patterns);
+ Fimb.patterns = NULL;
+ }
+ else
+ {
+ if (!(fimb_kwset = kwsalloc (NULL)))
+ error (2, 0, _("memory exhausted"));
+
+ starts = xmalloc (mb_cur_max * 3);
+ wcbeg = wcpattern;
+ do
+ {
+ int i;
+ size_t wclen;
+
+ if (Fimb.count >= allocated)
+ {
+ if (allocated == 0)
+ allocated = 128;
+ else
+ allocated *= 2;
+ Fimb.patterns = xrealloc (Fimb.patterns,
+ sizeof (wchar_t *) * allocated);
+ }
+ Fimb.patterns[Fimb.count++] = wcbeg;
+ for (wclim = wcbeg;
+ wclim < wcpattern + wcsize && *wclim != L'\n'; ++wclim)
+ *wclim = towlower (*wclim);
+ *wclim = L'\0';
+ wclen = wclim - wcbeg;
+ if (wclen > Fimb.maxlen)
+ Fimb.maxlen = wclen;
+ if (wclen > 3)
+ wclen = 3;
+ if (wclen == 0)
+ {
+ if ((err = kwsincr (fimb_kwset, "", 0)) != 0)
+ error (2, 0, err);
+ }
+ else
+ for (i = 0; i < (1 << wclen); i++)
+ {
+ char *p = starts;
+ int j, k;
+
+ for (j = 0; j < wclen; ++j)
+ {
+ wchar_t wc = wcbeg[j];
+ if (i & (1 << j))
+ {
+ wc = towupper (wc);
+ if (wc == wcbeg[j])
+ continue;
+ }
+ k = wctomb (p, wc);
+ if (k <= 0)
+ goto fimb_fail;
+ p += k;
+ }
+ if ((err = kwsincr (fimb_kwset, starts, p - starts)) != 0)
+ error (2, 0, err);
+ }
+ if (wclim < wcpattern + wcsize)
+ ++wclim;
+ wcbeg = wclim;
+ }
+ while (wcbeg < wcpattern + wcsize);
+ f_i_multibyte = 1;
+ kwset = fimb_kwset;
+ free (starts);
+ Fimb.match = xmalloc (Fimb.count);
+ if ((err = kwsprep (kwset)) != 0)
+ error (2, 0, err);
+ return;
+ }
+ }
+#endif /* MBS_SUPPORT */
+
+
kwsinit ();
beg = pattern;
do
@@ -511,6 +677,76 @@
error (2, 0, err);
}
+#ifdef MBS_SUPPORT
+static int
+Fimbexec (const char *buf, size_t size, size_t *plen, int exact)
+{
+ size_t len, letter, i;
+ int ret = -1;
+ mbstate_t mbs;
+ wchar_t wc;
+ int patterns_left;
+
+ assert (match_icase && f_i_multibyte == 1);
+ assert (MB_CUR_MAX > 1);
+
+ memset (&mbs, '\0', sizeof (mbs));
+ memset (Fimb.match, '\1', Fimb.count);
+ letter = len = 0;
+ patterns_left = 1;
+ while (patterns_left && len <= size)
+ {
+ size_t c;
+
+ patterns_left = 0;
+ if (len < size)
+ {
+ c = mbrtowc (&wc, buf + len, size - len, &mbs);
+ if (c + 2 <= 2)
+ return ret;
+
+ wc = towlower (wc);
+ }
+ else
+ {
+ c = 1;
+ wc = L'\0';
+ }
+
+ for (i = 0; i < Fimb.count; i++)
+ {
+ if (Fimb.match[i])
+ {
+ if (Fimb.patterns[i][letter] == L'\0')
+ {
+ /* Found a match. */
+ *plen = len;
+ if (!exact && !match_words)
+ return 0;
+ else
+ {
+ /* For -w or exact look for longest match. */
+ ret = 0;
+ Fimb.match[i] = '\0';
+ continue;
+ }
+ }
+
+ if (Fimb.patterns[i][letter] == wc)
+ patterns_left = 1;
+ else
+ Fimb.match[i] = '\0';
+ }
+ }
+
+ len += c;
+ letter++;
+ }
+
+ return ret;
+}
+#endif /* MBS_SUPPORT */
+
EXECUTE_FCT(Fexecute)
{
register char const *beg, *try, *end;
@@ -519,69 +755,256 @@
struct kwsmatch kwsmatch;
size_t ret_val;
#ifdef MBS_SUPPORT
- char *mb_properties = NULL;
- if (MB_CUR_MAX > 1)
- {
- if (match_icase)
- {
- char *case_buf = xmalloc(size);
- memcpy(case_buf, buf, size);
- if (start_ptr)
- start_ptr = case_buf + (start_ptr - buf);
- buf = case_buf;
- }
- mb_properties = check_multibyte_string(buf, size);
- }
+ int mb_cur_max = MB_CUR_MAX;
+ mbstate_t mbs;
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ const char *last_char = NULL;
#endif /* MBS_SUPPORT */
for (beg = start_ptr ? start_ptr : buf; beg <= buf + size; beg++)
{
size_t offset = kwsexec (kwset, beg, buf + size - beg, &kwsmatch);
if (offset == (size_t) -1)
- goto failure;
+ return offset;
#ifdef MBS_SUPPORT
- if (MB_CUR_MAX > 1 && mb_properties[offset+beg-buf] == 0)
- continue; /* It is a part of multibyte character. */
+ if (mb_cur_max > 1 && !using_utf8)
+ {
+ size_t bytes_left = offset;
+ while (bytes_left)
+ {
+ size_t mlen = mbrlen (beg, bytes_left, &mbs);
+
+ last_char = beg;
+ if (mlen == (size_t) -1 || mlen == 0)
+ {
+ /* Incomplete character: treat as single-byte. */
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ beg++;
+ bytes_left--;
+ continue;
+ }
+
+ if (mlen == (size_t) -2)
+ /* Offset points inside multibyte character: no good. */
+ break;
+
+ beg += mlen;
+ bytes_left -= mlen;
+ }
+
+ if (bytes_left)
+ continue;
+ }
+ else
#endif /* MBS_SUPPORT */
beg += offset;
+#ifdef MBS_SUPPORT
+ /* For f_i_multibyte, the string at beg now matches first 3 chars of
+ one of the search strings (less if there are shorter search strings).
+ See if this is a real match. */
+ if (f_i_multibyte
+ && Fimbexec (beg, buf + size - beg, &kwsmatch.size[0], start_ptr == NULL))
+ goto next_char;
+#endif /* MBS_SUPPORT */
len = kwsmatch.size[0];
if (start_ptr && !match_words)
goto success_in_beg_and_len;
if (match_lines)
{
if (beg > buf && beg[-1] != eol)
- continue;
+ goto next_char;
if (beg + len < buf + size && beg[len] != eol)
- continue;
+ goto next_char;
goto success;
}
else if (match_words)
- for (try = beg; len; )
- {
- if (try > buf && WCHAR((unsigned char) try[-1]))
- break;
- if (try + len < buf + size && WCHAR((unsigned char) try[len]))
- {
- offset = kwsexec (kwset, beg, --len, &kwsmatch);
- if (offset == (size_t) -1)
- break;
- try = beg + offset;
- len = kwsmatch.size[0];
- }
- else if (!start_ptr)
- goto success;
- else
- goto success_in_beg_and_len;
- } /* for (try) */
- else
- goto success;
- } /* for (beg in buf) */
+ {
+ while (len)
+ {
+ int word_match = 0;
+ if (beg > buf)
+ {
+#ifdef MBS_SUPPORT
+ if (mb_cur_max > 1)
+ {
+ const char *s;
+ int mr;
+ wchar_t pwc;
+
+ if (using_utf8)
+ {
+ s = beg - 1;
+ while (s > buf
+ && (unsigned char) *s >= 0x80
+ && (unsigned char) *s <= 0xbf)
+ --s;
+ }
+ else
+ s = last_char;
+ mr = mbtowc (&pwc, s, beg - s);
+ if (mr <= 0)
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ else if ((iswalnum (pwc) || pwc == L'_')
+ && mr == (int) (beg - s))
+ goto next_char;
+ }
+ else
+#endif /* MBS_SUPPORT */
+ if (WCHAR ((unsigned char) beg[-1]))
+ goto next_char;
+ }
+#ifdef MBS_SUPPORT
+ if (mb_cur_max > 1)
+ {
+ wchar_t nwc;
+ int mr;
- failure:
- ret_val = -1;
- goto out;
+ mr = mbtowc (&nwc, beg + len, buf + size - beg - len);
+ if (mr <= 0)
+ {
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ word_match = 1;
+ }
+ else if (!iswalnum (nwc) && nwc != L'_')
+ word_match = 1;
+ }
+ else
+#endif /* MBS_SUPPORT */
+ if (beg + len >= buf + size || !WCHAR ((unsigned char) beg[len]))
+ word_match = 1;
+ if (word_match)
+ {
+ if (start_ptr == NULL)
+ /* Returns the whole line now we know there's a word match. */
+ goto success;
+ else {
+ /* Returns just this word match. */
+ *match_size = len;
+ return beg - buf;
+ }
+ }
+ if (len > 0)
+ {
+ /* Try a shorter length anchored at the same place. */
+ --len;
+ offset = kwsexec (kwset, beg, len, &kwsmatch);
+
+ if (offset == -1)
+ goto next_char; /* Try a different anchor. */
+#ifdef MBS_SUPPORT
+
+ if (mb_cur_max > 1 && !using_utf8)
+ {
+ size_t bytes_left = offset;
+ while (bytes_left)
+ {
+ size_t mlen = mbrlen (beg, bytes_left, &mbs);
+
+ last_char = beg;
+ if (mlen == (size_t) -1 || mlen == 0)
+ {
+ /* Incomplete character: treat as single-byte. */
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ beg++;
+ bytes_left--;
+ continue;
+ }
+
+ if (mlen == (size_t) -2)
+ {
+ /* Offset points inside multibyte character:
+ * no good. */
+ break;
+ }
+
+ beg += mlen;
+ bytes_left -= mlen;
+ }
+
+ if (bytes_left)
+ {
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ goto next_char; /* Try a different anchor. */
+ }
+ }
+ else
+#endif /* MBS_SUPPORT */
+ beg += offset;
+#ifdef MBS_SUPPORT
+ /* The string at beg now matches first 3 chars of one of
+ the search strings (less if there are shorter search
+ strings). See if this is a real match. */
+ if (f_i_multibyte
+ && Fimbexec (beg, len - offset, &kwsmatch.size[0],
+ start_ptr == NULL))
+ goto next_char;
+#endif /* MBS_SUPPORT */
+ len = kwsmatch.size[0];
+ }
+ }
+ }
+ else
+ goto success;
+next_char:;
+#ifdef MBS_SUPPORT
+ /* Advance to next character. For MB_CUR_MAX == 1 case this is handled
+ by ++beg above. */
+ if (mb_cur_max > 1)
+ {
+ if (using_utf8)
+ {
+ unsigned char c = *beg;
+ if (c >= 0xc2)
+ {
+ if (c < 0xe0)
+ ++beg;
+ else if (c < 0xf0)
+ beg += 2;
+ else if (c < 0xf8)
+ beg += 3;
+ else if (c < 0xfc)
+ beg += 4;
+ else if (c < 0xfe)
+ beg += 5;
+ }
+ }
+ else
+ {
+ size_t l = mbrlen (beg, buf + size - beg, &mbs);
+
+ last_char = beg;
+ if (l + 2 >= 2)
+ beg += l - 1;
+ else
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ }
+ }
+#endif /* MBS_SUPPORT */
+ }
+
+ return -1;
success:
+#ifdef MBS_SUPPORT
+ if (mb_cur_max > 1 && !using_utf8)
+ {
+ end = beg + len;
+ while (end < buf + size)
+ {
+ size_t mlen = mbrlen (end, buf + size - end, &mbs);
+ if (mlen == (size_t) -1 || mlen == (size_t) -2 || mlen == 0)
+ {
+ memset (&mbs, '\0', sizeof (mbstate_t));
+ mlen = 1;
+ }
+ if (mlen == 1 && *end == eol)
+ break;
+
+ end += mlen;
+ }
+ }
+ else
+ #endif /* MBS_SUPPORT */
end = memchr (beg + len, eol, (buf + size) - (beg + len));
end++;
while (buf < beg && beg[-1] != eol)
@@ -591,15 +1016,6 @@
*match_size = len;
ret_val = beg - buf;
out:
-#ifdef MBS_SUPPORT
- if (MB_CUR_MAX > 1)
- {
- if (match_icase)
- free((char*)buf);
- if (mb_properties)
- free(mb_properties);
- }
-#endif /* MBS_SUPPORT */
return ret_val;
}
#endif /* defined(GREP_PROGRAM) || defined(FGREP_PROGRAM) */

30
core/grep/PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
pkgname=grep
pkgver=2.5.4
pkgrel=1
pkgdesc="A string search utility"
arch=(arm)
license=('GPL3')
url="http://www.gnu.org/software/grep/grep.html"
groups=('base')
depends=('glibc' 'pcre')
makedepends=('texinfo>=4.8a')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
14-mem-exhausted.patch
15-empty-pattern.patch
64-egf-speedup.patch)
md5sums=('92258031d98d4f12dfc6a6d24057e672'
'bc937da562d468f32c1fef2894610283'
'f421415b679ebcc9152797caaa0b1d51'
'efbe9d49d71a74092db6b86224b09fdd')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
for i in ../*.patch; do
patch -Np1 -i ../$i
done
./configure --prefix=/usr --bindir=/bin
make || return 1
make DESTDIR=${pkgdir} install || return 1
}

BIN
core/gzip/.DS_Store vendored Normal file

Binary file not shown.

31
core/gzip/PKGBUILD Normal file
View file

@ -0,0 +1,31 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
pkgname=gzip
pkgver=1.3.12
pkgrel=1
pkgdesc="GNU compression utility"
arch=(arm)
url="http://www.gzip.org"
license=('GPL')
groups=('base')
depends=('glibc' 'bash')
makedepends=('patch')
source=(ftp://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.gz
gzip-fixutimens.patch)
md5sums=('b5bac2d21840ae077e0217bc5e4845b1'
'cb592761476921018386031d91625153')
build() {
cd $startdir/src/$pkgname-$pkgver
patch -Np1 -i ${startdir}/src/gzip-fixutimens.patch || return 1
./configure --prefix=/usr
make || return 1
mkdir -p $startdir/pkg/bin $startdir/pkg/usr/bin
make prefix=$startdir/pkg/usr install
cd $startdir/pkg/usr/bin
mv $pkgname $startdir/pkg/bin
mv gunzip zcat uncompress $startdir/pkg/bin
cd $startdir/pkg/bin
ln -sf $pkgname compress
}

View file

@ -0,0 +1,36 @@
--- gzip-1.3.12.orig/gzip.c
+++ gzip-1.3.12/gzip.c
@@ -1637,7 +1642,7 @@
}
}
- if (futimens (ofd, ofname, timespec) != 0)
+ if (gz_futimens (ofd, ofname, timespec) != 0)
{
int e = errno;
WARN ((stderr, "%s: ", program_name));
--- gzip-1.3.12.orig/lib/utimens.h
+++ gzip-1.3.12/lib/utimens.h
@@ -1,3 +1,3 @@
#include <time.h>
-int futimens (int, char const *, struct timespec const [2]);
+int gz_futimens (int, char const *, struct timespec const [2]);
int utimens (char const *, struct timespec const [2]);
--- gzip-1.3.12.orig/lib/utimens.c
+++ gzip-1.3.12/lib/utimens.c
@@ -75,7 +75,7 @@
Return 0 on success, -1 (setting errno) on failure. */
int
-futimens (int fd ATTRIBUTE_UNUSED,
+gz_futimens (int fd ATTRIBUTE_UNUSED,
char const *file, struct timespec const timespec[2])
{
/* Some Linux-based NFS clients are buggy, and mishandle time stamps
@@ -185,5 +185,5 @@
int
utimens (char const *file, struct timespec const timespec[2])
{
- return futimens (-1, file, timespec);
+ return gz_futimens (-1, file, timespec);
}

View file

@ -0,0 +1,10 @@
--- cf/krb-readline.m4 2005-06-16 18:28:32.000000000 +0200
+++ cf/krb-readline.m4 2005-06-27 23:17:06.000000000 +0200
@@ -6,7 +6,6 @@
dnl el_init
AC_DEFUN([KRB_READLINE],[
-AC_FIND_FUNC_NO_LIBS(el_init, edit, [], [], [$LIB_tgetent])
if test "$ac_cv_func_el_init" = yes ; then
AC_CACHE_CHECK(for four argument el_init, ac_cv_func_el_init_four,[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>

View file

@ -0,0 +1,12 @@
--- lib/editline/Makefile.am 2005-06-16 18:28:44.000000000 +0200
+++ lib/editline/Makefile.am 2005-06-27 23:21:02.000000000 +0200
@@ -41,6 +41,9 @@
EXTRA_DIST = $(man_MANS)
+$(libeditline_la_OBJECTS): %.lo: %.c
+ $(LTCOMPILE) -fPIC -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
+
snprintf.c:
$(LN_S) $(srcdir)/../roken/snprintf.c .
strdup.c:

View file

@ -0,0 +1,22 @@
--- appl/kx/rxtelnet.in 2005-06-16 18:29:10.000000000 +0200
+++ appl/kx/rxtelnet.in 2005-06-27 23:21:34.000000000 +0200
@@ -2,7 +2,7 @@
# $Id: rxtelnet.in,v 1.31 2004/03/07 17:22:06 lha Exp $
#
usage="Usage: $0 [-l username] [-k] [-fF] [-t args_to_telnet] [-x args_to_xterm] [-K args_to_kx] [-w term_emulator] [-b telnet_binary] [-n] [-v] [-h | --help] [--version] host [port]"
-binary=telnet
+binary=ktelnet
term=
kx_args=-P
while true
--- appl/kx/rxterm.in 2005-06-16 18:29:10.000000000 +0200
+++ appl/kx/rxterm.in 2005-06-27 23:21:55.000000000 +0200
@@ -2,7 +2,7 @@
# $Id: rxterm.in,v 1.23 2002/03/18 17:37:34 joda Exp $
#
usage="Usage: $0 [-l username] [-k] [-f] [-r rsh_args] [-x xterm_args] [-K kx_args] [-w term_emulator] [-b rsh_binary][-v] [-h | --help] [--version] host"
-binary=rsh
+binary=krsh
term=xterm
while true
do

View file

@ -0,0 +1,20 @@
--- appl/su/Makefile.am 2005-06-16 18:27:46.000000000 +0200
+++ appl/su/Makefile.am 2005-06-27 23:25:21.000000000 +0200
@@ -7,6 +7,7 @@
bin_PROGRAMS = su
bin_SUIDS = su
su_SOURCES = su.c supaths.h
+su_LDFLAGS = -Wl,-z,now
man_MANS = su.1
LDADD = $(LIB_kafs) \
--- appl/otp/Makefile.am 2005-06-16 18:28:46.000000000 +0200
+++ appl/otp/Makefile.am 2005-06-27 23:25:40.000000000 +0200
@@ -8,6 +8,7 @@
bin_SUIDS = otp
otp_SOURCES = otp.c otp_locl.h
otpprint_SOURCES = otpprint.c otp_locl.h
+otp_LDFLAGS = -Wl,-z,now
man_MANS = otp.1 otpprint.1

View file

@ -0,0 +1,124 @@
Binary files heimdal-0.7-old/cf/.find-func-no-libs2.m4.swp and heimdal-0.7/cf/.find-func-no-libs2.m4.swp differ
Index: heimdal/cf/db.m4
===================================================================
--- heimdal.orig/cf/db.m4
+++ heimdal/cf/db.m4
@@ -18,24 +18,13 @@ db_type=unknown
if test "$enable_berkeley_db" != no; then
- AC_CHECK_HEADERS([ \
- db4/db.h \
- db3/db.h \
- db.h \
- db_185.h \
- ])
+ AC_CHECK_HEADERS([db.h])
dnl db_create is used by db3 and db4
- AC_FIND_FUNC_NO_LIBS(db_create, db4 db3 db, [
+ AC_FIND_FUNC_NO_LIBS(db_create, db, [
#include <stdio.h>
- #ifdef HAVE_DB4_DB_H
- #include <db4/db.h>
- #elif defined(HAVE_DB3_DB_H)
- #include <db3/db.h>
- #else
#include <db.h>
- #endif
],[NULL, NULL, 0])
if test "$ac_cv_func_db_create" = "yes"; then
@@ -50,17 +39,9 @@ dnl db_create is used by db3 and db4
dnl dbopen is used by db1/db2
- AC_FIND_FUNC_NO_LIBS(dbopen, db2 db, [
+ AC_FIND_FUNC_NO_LIBS(dbopen, db, [
#include <stdio.h>
- #if defined(HAVE_DB2_DB_H)
- #include <db2/db.h>
- #elif defined(HAVE_DB_185_H)
- #include <db_185.h>
- #elif defined(HAVE_DB_H)
#include <db.h>
- #else
- #error no db.h
- #endif
],[NULL, 0, 0, 0, NULL])
if test "$ac_cv_func_dbopen" = "yes"; then
Index: heimdal/lib/hdb/db.c
===================================================================
--- heimdal.orig/lib/hdb/db.c
+++ heimdal/lib/hdb/db.c
@@ -37,11 +37,7 @@ RCSID("$Id: db.c 20215 2007-02-09 21:59:
#if HAVE_DB1
-#if defined(HAVE_DB_185_H)
-#include <db_185.h>
-#elif defined(HAVE_DB_H)
#include <db.h>
-#endif
static krb5_error_code
DB_close(krb5_context context, HDB *db)
Index: heimdal/lib/hdb/db3.c
===================================================================
--- heimdal.orig/lib/hdb/db3.c
+++ heimdal/lib/hdb/db3.c
@@ -37,13 +37,7 @@ RCSID("$Id: db3.c 21610 2007-07-17 07:10
#if HAVE_DB3
-#ifdef HAVE_DB4_DB_H
-#include <db4/db.h>
-#elif defined(HAVE_DB3_DB_H)
-#include <db3/db.h>
-#else
#include <db.h>
-#endif
static krb5_error_code
DB_close(krb5_context context, HDB *db)
Index: heimdal/lib/roken/getcap.c
===================================================================
--- heimdal.orig/lib/roken/getcap.c
+++ heimdal/lib/roken/getcap.c
@@ -38,11 +38,13 @@
#include "roken.h"
RCSID("$Id: getcap.c 16561 2006-01-13 14:25:32Z lha $");
+#if defined(HAVE_DBOPEN) && defined(HAVE_DB_H)
+#define USE_DB
+#endif
+
#include <sys/types.h>
#include <ctype.h>
-#if defined(HAVE_DB_185_H)
-#include <db_185.h>
-#elif defined(HAVE_DB_H)
+#ifdef USE_DB
#include <db.h>
#endif
#include <errno.h>
Index: heimdal/lib/roken/ndbm_wrap.c
===================================================================
--- heimdal.orig/lib/roken/ndbm_wrap.c
+++ heimdal/lib/roken/ndbm_wrap.c
@@ -37,13 +37,7 @@ RCSID("$Id: ndbm_wrap.c 21634 2007-07-17
#endif
#include "ndbm_wrap.h"
-#if defined(HAVE_DB4_DB_H)
-#include <db4/db.h>
-#elif defined(HAVE_DB3_DB_H)
-#include <db3/db.h>
-#else
#include <db.h>
-#endif
#include <stdio.h>
#include <stdlib.h>

View file

@ -0,0 +1,11 @@
--- heimdal-0.7.1/cf/pthreads.m4.old 2005-09-09 12:12:28.000000000 +0000
+++ heimdal-0.7.1/cf/pthreads.m4 2005-09-17 22:23:23.000000000 +0000
@@ -32,7 +32,7 @@
2.*)
native_pthread_support=yes
PTHREADS_CFLAGS=-pthread
- PTHREADS_LIBS=-pthread
+ PTHREADS_LIBS=-lpthread
;;
esac
;;

View file

@ -0,0 +1,50 @@
--- appl/rcp/rcp.c.old 2006-05-03 13:31:59.398493625 +0200
+++ appl/rcp/rcp.c 2006-05-03 13:32:04.494485981 +0200
@@ -34,7 +34,7 @@
#include "rcp_locl.h"
#include <getarg.h>
-#define RSH_PROGRAM "rsh"
+#define RSH_PROGRAM "krsh"
struct passwd *pwd;
uid_t userid;
--- appl/rcp/rcp_locl.h.old 2006-05-03 02:30:31.602025409 +0200
+++ appl/rcp/rcp_locl.h 2006-05-03 02:30:35.886018983 +0200
@@ -64,4 +64,4 @@
#define _PATH_CP "/bin/cp"
#endif
#undef _PATH_RSH
-#define _PATH_RSH BINDIR "/rsh"
+#define _PATH_RSH BINDIR "/krsh"
--- appl/telnet/telnetd/telnetd.h.old 2006-05-03 02:23:14.582680939 +0200
+++ appl/telnet/telnetd/telnetd.h 2006-05-03 02:23:23.746667193 +0200
@@ -192,7 +192,7 @@
#endif
#undef _PATH_LOGIN
-#define _PATH_LOGIN BINDIR "/login"
+#define _PATH_LOGIN BINDIR "/klogin"
/* fallbacks */
--- appl/login/shadow.c.old 2006-05-05 06:31:29.517138115 +0200
+++ appl/login/shadow.c 2006-05-05 06:32:26.433052741 +0200
@@ -38,7 +38,7 @@
#ifdef HAVE_SHADOW_H
#ifndef _PATH_CHPASS
-#define _PATH_CHPASS "/usr/bin/passwd"
+#define _PATH_CHPASS "/usr/bin/kpasswd"
#endif
static int
@@ -52,7 +52,7 @@
printf("fork /bin/passwd");
exit(1);
case 0:
- execlp(_PATH_CHPASS, "passwd", who->pw_name, (char *) 0);
+ execlp(_PATH_CHPASS, "kpasswd", who->pw_name, (char *) 0);
exit(1);
default:
waitpid(pid, &status, 0);

View file

@ -0,0 +1,22 @@
--- lib/roken/Makefile.am.old 2007-11-05 19:42:53.000000000 +0100
+++ lib/roken/Makefile.am 2007-11-05 19:43:12.000000000 +0100
@@ -107,7 +107,7 @@
ifaddrs.hin \
vis.hin
-libroken_la_LIBADD = @LTLIBOBJS@
+libroken_la_LIBADD = @LTLIBOBJS@ $(LIB_crypt)
$(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h $(XHEADERS)
--- lib/editline/Makefile.am.old 2007-11-05 19:46:08.000000000 +0100
+++ lib/editline/Makefile.am 2007-11-05 20:06:54.000000000 +0100
@@ -36,6 +36,8 @@
unix.h \
$(EXTRA_SOURCE)
+libeditline_la_LIBADD = $(LIB_tgetent)
+
EXTRA_SOURCE = $(ES)
libel_compat_la_SOURCES = edit_compat.c edit_compat.h

127
core/heimdal/PKGBUILD Normal file
View file

@ -0,0 +1,127 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
#
### Attention: remove old pkg before building - it links against itself! ###
#
pkgname=heimdal
pkgver=1.2.1
pkgrel=4
pkgdesc="Implementation of Kerberos V5 libraries"
arch=('arm')
url="http://www.h5l.org/"
license=('custom')
depends=('db>=4.7' 'openssl' 'e2fsprogs' 'sqlite3')
backup=(etc/krb5.conf)
options=('!libtool' '!emptydirs')
source=(http://www.h5l.org/dist/src/${pkgname}-${pkgver}.tar.gz
001_all_heimdal-no_libedit.patch
002_all_heimal-fPIC.patch
003_all_heimdal-rxapps.patch
005_all_heimdal-suid_fix.patch
012_all_heimdal-berkdb.patch
013_all_heimdal-pthread-lib.patch
014_all_heimdal-path.patch
022_all_heimdal-as-needed.patch
heimdal-system_sqlite.patch
heimdal-r23235-kb5-libwind_la.patch
heimdal-r23238-kb5_locl_h-wind_h.patch
heimdal-kdc.rc
kadmind.rc
kpasswd.rc)
md5sums=('6e5028077e2a6b101a4a72801ba71b9e'
'98e28f11f906c967aac22d6184102c9e'
'6d5571bdedba2e2423b90bccdbac2c0a'
'2feec3924ee5230b54175b4d4000c872'
'45aeb207f360f9f4e9e0fabc8bfeecbc'
'56f5d10d0ec40f2fda82ef144ffac1e0'
'1b8665b771c4eb6b56ea8582c96e56e3'
'8208ae8c0b6ff5ab4f64af1693e9e396'
'd7649e078c87d2ca997080f0deb527c0'
'949a389ebe7652861b2e178a7e0f1ed9'
'072f6b2550693adb30117394b1dd354e'
'7b4537b0e8bde95214211091e55eacf5'
'e59650992b9541a30dfce727a194f6e0'
'1f2f86a67bbfddb7af581d35fdca9627'
'f8f1eca95b9d3f2b4ebf2417b71b81cf')
build() {
[ -e /usr/lib/libasn1.so ] && echo "## remove old heimdal pkg first ##" && return 1
cd ${srcdir}/heimdal-${pkgver}
patch -Np0 -i ${srcdir}/001_all_heimdal-no_libedit.patch || return 1
patch -Np0 -i ${srcdir}/002_all_heimal-fPIC.patch || return 1
patch -Np0 -i ${srcdir}/003_all_heimdal-rxapps.patch || return 1
patch -Np0 -i ${srcdir}/005_all_heimdal-suid_fix.patch || return 1
patch -Np1 -i ${srcdir}/012_all_heimdal-berkdb.patch || return 1
patch -Np1 -i ${srcdir}/013_all_heimdal-pthread-lib.patch || return 1
patch -Np0 -i ${srcdir}/014_all_heimdal-path.patch || return 1
patch -Np0 -i ${srcdir}/022_all_heimdal-as-needed.patch || return 1
patch -Np0 -i ${srcdir}/heimdal-system_sqlite.patch || return 1
patch -Np2 -i ${srcdir}/heimdal-r23235-kb5-libwind_la.patch || return 1
patch -Np2 -i ${srcdir}/heimdal-r23238-kb5_locl_h-wind_h.patch || return 1
sed -i -e 's|var/heimdal|var/lib/heimdal|g' configure.in \
doc/setup.texi doc/heimdal.info kadmin/kadmind.8 kdc/kdc.8 \
lib/hdb/hdb.h lib/krb5/krb5.conf.5 lib/krb5/krb5.conf.cat5
libtoolize --force || return 1
aclocal -I cf || return 1
autoconf || return 1
automake || return 1
export LDFLAGS="${LDFLAGS} -Wl,--as-needed"
./configure --prefix=/usr --enable-shared=yes --without-x \
--sysconfdir=/etc --mandir=/usr/share/man \
--datadir=/var/lib/heimdal \
--localstatedir=/var/lib/heimdal \
--with-openssl=/usr \
--with-readline-lib=/usr/lib \
--with-readline-include=/usr/include/readline \
--libexecdir=/usr/sbin
make || return 1
make DESTDIR=${pkgdir} install || return 1
# Remove editline, we use libreadline. This library is broken anyways, so nobody misses it after removal
rm ${pkgdir}/usr/lib/libeditline.* || return 1
rm ${pkgdir}/usr/include/editline.h || return 1
rm ${pkgdir}/usr/share/man/man3/editline.* || return 1
# Rename daemons and their manpages
for i in telnetd ftpd rshd; do
mv ${pkgdir}/usr/share/man/man8/${i}.8 ${pkgdir}/usr/share/man/man8/k${i}.8 || return 1
mv ${pkgdir}/usr/sbin/${i} ${pkgdir}/usr/sbin/k${i} || return 1
done
# Rename clients and their manpages
for i in rcp rsh telnet ftp su login; do
if [ -f ${pkgdir}/usr/share/man/man1/${i}.1 ]; then
mv ${pkgdir}/usr/share/man/man1/${i}.1 ${pkgdir}/usr/share/man/man1/k${i}.1 || return 1
fi
mv ${pkgdir}/usr/bin/${i} ${pkgdir}/usr/bin/k${i} || return 1
done
rm -rf ${pkgdir}/usr/share/man/cat{1,3,5,8}
# Arch could be a KDC too
install -d ${pkgdir}/etc/rc.d
install -m644 ${srcdir}/heimdal-${pkgver}/krb5.conf ${pkgdir}/etc/ || return 1
for i in heimdal-kdc kadmind kpasswd; do
install -m755 ${srcdir}/${i}.rc ${pkgdir}/etc/rc.d/${i} || return 1
done
# Remove conflicts
rm ${pkgdir}/usr/share/man/man5/ftpusers.5* # man-pages
rm ${pkgdir}/usr/share/info/dir
rm ${pkgdir}/usr/bin/compile_et
rm ${pkgdir}/usr/lib/libcom_err*
# Compress info pages
for page in heimdal hx509; do
gzip -9 ${pkgdir}/usr/share/info/${page}.info
done
# Install the license
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \
${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}

View file

@ -0,0 +1,40 @@
#!/bin/bash
# general config
. /etc/rc.conf
. /etc/rc.d/functions
PID=`pidof -o %PPID /usr/sbin/kdc`
case "$1" in
start)
stat_busy "Starting heimdal kdc"
if [ -z "$PID" ]; then
/usr/sbin/kdc --detach
fi
if [ ! -z "$PID" -o $? -gt 0 ]; then
stat_fail
else
add_daemon heimdal-kdc
stat_done
fi
;;
stop)
stat_busy "Stopping heimdal kdc"
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon heimdal-kdc
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0

View file

@ -0,0 +1,10 @@
--- trunk/heimdal/lib/krb5/Makefile.am 2008-06-01 22:25:41 UTC (rev 23234)
+++ trunk/heimdal/lib/krb5/Makefile.am 2008-06-01 22:25:53 UTC (rev 23235)
@@ -57,6 +57,7 @@
$(LIB_com_err) \
$(LIB_hcrypto) \
$(top_builddir)/lib/asn1/libasn1.la \
+ ../wind/libwind.la \
$(LIBADD_roken) \
$(LIB_door_create) \
$(LIB_dlopen)

View file

@ -0,0 +1,11 @@
--- trunk/heimdal/lib/krb5/krb5_locl.h 2008-06-01 22:26:24 UTC (rev 23237)
+++ trunk/heimdal/lib/krb5/krb5_locl.h 2008-06-01 22:26:43 UTC (rev 23238)
@@ -131,6 +131,8 @@
#include <parse_time.h>
#include <base64.h>
+#include <wind.h>
+
#include "crypto-headers.h"

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