--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/apr-1-config
+-rwxr-xr-x root/root usr/bin/apu-1-config
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/apr-1/
+-rw-r--r-- root/root usr/include/apr-1/apr.h
+-rw-r--r-- root/root usr/include/apr-1/apr_allocator.h
+-rw-r--r-- root/root usr/include/apr-1/apr_anylock.h
+-rw-r--r-- root/root usr/include/apr-1/apr_atomic.h
+-rw-r--r-- root/root usr/include/apr-1/apr_base64.h
+-rw-r--r-- root/root usr/include/apr-1/apr_buckets.h
+-rw-r--r-- root/root usr/include/apr-1/apr_date.h
+-rw-r--r-- root/root usr/include/apr-1/apr_dbd.h
+-rw-r--r-- root/root usr/include/apr-1/apr_dbm.h
+-rw-r--r-- root/root usr/include/apr-1/apr_dso.h
+-rw-r--r-- root/root usr/include/apr-1/apr_env.h
+-rw-r--r-- root/root usr/include/apr-1/apr_errno.h
+-rw-r--r-- root/root usr/include/apr-1/apr_file_info.h
+-rw-r--r-- root/root usr/include/apr-1/apr_file_io.h
+-rw-r--r-- root/root usr/include/apr-1/apr_fnmatch.h
+-rw-r--r-- root/root usr/include/apr-1/apr_general.h
+-rw-r--r-- root/root usr/include/apr-1/apr_getopt.h
+-rw-r--r-- root/root usr/include/apr-1/apr_global_mutex.h
+-rw-r--r-- root/root usr/include/apr-1/apr_hash.h
+-rw-r--r-- root/root usr/include/apr-1/apr_hooks.h
+-rw-r--r-- root/root usr/include/apr-1/apr_inherit.h
+-rw-r--r-- root/root usr/include/apr-1/apr_ldap.h
+-rw-r--r-- root/root usr/include/apr-1/apr_ldap_init.h
+-rw-r--r-- root/root usr/include/apr-1/apr_ldap_option.h
+-rw-r--r-- root/root usr/include/apr-1/apr_ldap_rebind.h
+-rw-r--r-- root/root usr/include/apr-1/apr_ldap_url.h
+-rw-r--r-- root/root usr/include/apr-1/apr_lib.h
+-rw-r--r-- root/root usr/include/apr-1/apr_md4.h
+-rw-r--r-- root/root usr/include/apr-1/apr_md5.h
+-rw-r--r-- root/root usr/include/apr-1/apr_memcache.h
+-rw-r--r-- root/root usr/include/apr-1/apr_mmap.h
+-rw-r--r-- root/root usr/include/apr-1/apr_network_io.h
+-rw-r--r-- root/root usr/include/apr-1/apr_optional.h
+-rw-r--r-- root/root usr/include/apr-1/apr_optional_hooks.h
+-rw-r--r-- root/root usr/include/apr-1/apr_poll.h
+-rw-r--r-- root/root usr/include/apr-1/apr_pools.h
+-rw-r--r-- root/root usr/include/apr-1/apr_portable.h
+-rw-r--r-- root/root usr/include/apr-1/apr_proc_mutex.h
+-rw-r--r-- root/root usr/include/apr-1/apr_queue.h
+-rw-r--r-- root/root usr/include/apr-1/apr_random.h
+-rw-r--r-- root/root usr/include/apr-1/apr_reslist.h
+-rw-r--r-- root/root usr/include/apr-1/apr_ring.h
+-rw-r--r-- root/root usr/include/apr-1/apr_rmm.h
+-rw-r--r-- root/root usr/include/apr-1/apr_sdbm.h
+-rw-r--r-- root/root usr/include/apr-1/apr_sha1.h
+-rw-r--r-- root/root usr/include/apr-1/apr_shm.h
+-rw-r--r-- root/root usr/include/apr-1/apr_signal.h
+-rw-r--r-- root/root usr/include/apr-1/apr_strings.h
+-rw-r--r-- root/root usr/include/apr-1/apr_strmatch.h
+-rw-r--r-- root/root usr/include/apr-1/apr_support.h
+-rw-r--r-- root/root usr/include/apr-1/apr_tables.h
+-rw-r--r-- root/root usr/include/apr-1/apr_thread_cond.h
+-rw-r--r-- root/root usr/include/apr-1/apr_thread_mutex.h
+-rw-r--r-- root/root usr/include/apr-1/apr_thread_pool.h
+-rw-r--r-- root/root usr/include/apr-1/apr_thread_proc.h
+-rw-r--r-- root/root usr/include/apr-1/apr_thread_rwlock.h
+-rw-r--r-- root/root usr/include/apr-1/apr_time.h
+-rw-r--r-- root/root usr/include/apr-1/apr_uri.h
+-rw-r--r-- root/root usr/include/apr-1/apr_user.h
+-rw-r--r-- root/root usr/include/apr-1/apr_uuid.h
+-rw-r--r-- root/root usr/include/apr-1/apr_version.h
+-rw-r--r-- root/root usr/include/apr-1/apr_want.h
+-rw-r--r-- root/root usr/include/apr-1/apr_xlate.h
+-rw-r--r-- root/root usr/include/apr-1/apr_xml.h
+-rw-r--r-- root/root usr/include/apr-1/apu.h
+-rw-r--r-- root/root usr/include/apr-1/apu_version.h
+-rw-r--r-- root/root usr/include/apr-1/apu_want.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libapr-1.a
+-rwxr-xr-x root/root usr/lib/libapr-1.la
+lrwxrwxrwx root/root usr/lib/libapr-1.so -> libapr-1.so.0.4.2
+lrwxrwxrwx root/root usr/lib/libapr-1.so.0 -> libapr-1.so.0.4.2
+-rwxr-xr-x root/root usr/lib/libapr-1.so.0.4.2
+-rw-r--r-- root/root usr/lib/libaprutil-1.a
+-rwxr-xr-x root/root usr/lib/libaprutil-1.la
+lrwxrwxrwx root/root usr/lib/libaprutil-1.so -> libaprutil-1.so.0.3.10
+lrwxrwxrwx root/root usr/lib/libaprutil-1.so.0 -> libaprutil-1.so.0.3.10
+-rwxr-xr-x root/root usr/lib/libaprutil-1.so.0.3.10
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/apr-1.pc
+-rw-r--r-- root/root usr/lib/pkgconfig/apr-util-1.pc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/apr-1/
+-rw-r--r-- root/root usr/share/apr-1/apr_rules.mk
+-rwxr-xr-x root/root usr/share/apr-1/libtool
+-rw-r--r-- root/root usr/share/apr-1/make_exports.awk
+-rw-r--r-- root/root usr/share/apr-1/make_var_export.awk
+-rwxr-xr-x root/root usr/share/apr-1/mkdir.sh
--- /dev/null
+# Description: Apache Portable Runtime library
+# URL: http://apr.apache.org/
+# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: util-linux-ng expat db gdbm
+
+name=apr
+version=1.4.2
+release=2
+source=(http://www.apache.org/dist/$name/$name-$version.tar.bz2 \
+ http://www.apache.org/dist/$name/$name-util-1.3.10.tar.bz2)
+
+build(){
+ cd $name-$version
+
+ echo "ac_cv_file__dev_zero=yes" > config.cache
+ echo "ac_cv_func_setpgrp_void=no" >> config.cache
+ echo "ac_cv_define_PTHREAD_PROCESS_SHARED=no" >> config.cache
+ echo "apr_cv_mutex_robust_shared=no" >> config.cache
+ echo "ac_cv_tcp_nodelay_inherited=no" >> config.cache
+ echo "ac_cv_o_nonblock_inherited=no" >> config.cache
+ echo "apr_cv_tcp_nodelay_with_cork=no" >> config.cache
+ echo "ac_cv_sizeof_struct_iovec=yes" >> config.cache
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --with-installbuilddir=/usr/share/apr-1 \
+ --cache-file=config.cache
+
+ sed -i Makefile \
+ -e "s|-L/usr|-L$CLFS/usr|g" \
+ -e "s|-I/usr|-I$CLFS/usr|g"
+
+ make
+ make DESTDIR=$PKG install
+
+ cd $SRC/$name-util-1.3.10
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --with-apr=$SRC/$name-$version \
+ --with-expat=$CLFS/usr \
+ --with-berkeley-db=$CLFS/usr \
+ --with-gdbm=$CLFS/usr \
+ --without-sqlite3 \
+ --disable-util-dso
+
+
+ sed -i Makefile \
+ -e '/APRUTIL_LIBS/ s/ldb-5\.0/ldb-4\.7/' \
+ -e "s|-L/usr|-L$CLFS/usr|g" \
+ -e "s|-I/usr|-I$CLFS/usr|g"
+
+ make
+ make DESTDIR=$PKG install
+
+ sed -i -r "/^APR_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apr-1-config
+ sed -i -r "/^APU_(SOURCE|BUILD)/s|=.*|=|" $PKG/usr/bin/apu-1-config
+ rm -r $PKG/usr/lib/*.exp
+}