From 7699b63c629087d22f1e14432764b9a9520cef64 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 9 Feb 2012 08:49:28 +0100 Subject: [PATCH] New package: chroot-coreutils, to be used for base-chroot. --- .../chroot-coreutils/chroot-coreutils.flist | 101 ++++++++++++++++++ .../chroot-coreutils/chroot-coreutils.rshlibs | 3 + srcpkgs/chroot-coreutils/template | 27 +++++ 3 files changed, 131 insertions(+) create mode 100644 srcpkgs/chroot-coreutils/chroot-coreutils.flist create mode 100644 srcpkgs/chroot-coreutils/chroot-coreutils.rshlibs create mode 100644 srcpkgs/chroot-coreutils/template diff --git a/srcpkgs/chroot-coreutils/chroot-coreutils.flist b/srcpkgs/chroot-coreutils/chroot-coreutils.flist new file mode 100644 index 00000000000..4e3c8ce75e4 --- /dev/null +++ b/srcpkgs/chroot-coreutils/chroot-coreutils.flist @@ -0,0 +1,101 @@ +/tools/bin/mv +/tools/bin/sum +/tools/bin/shred +/tools/bin/test +/tools/bin/hostid +/tools/bin/csplit +/tools/bin/df +/tools/bin/base64 +/tools/bin/false +/tools/bin/uptime +/tools/bin/join +/tools/bin/ls +/tools/bin/timeout +/tools/bin/od +/tools/bin/comm +/tools/bin/unlink +/tools/bin/mkdir +/tools/bin/pwd +/tools/bin/whoami +/tools/bin/install +/tools/bin/cut +/tools/bin/md5sum +/tools/bin/kill +/tools/bin/truncate +/tools/bin/mkfifo +/tools/bin/rmdir +/tools/bin/realpath +/tools/bin/chown +/tools/bin/factor +/tools/bin/ln +/tools/bin/sha224sum +/tools/bin/true +/tools/bin/sort +/tools/bin/printenv +/tools/bin/tsort +/tools/bin/dirname +/tools/bin/readlink +/tools/bin/sha512sum +/tools/bin/shuf +/tools/bin/dir +/tools/bin/paste +/tools/bin/cat +/tools/bin/nohup +/tools/bin/[ +/tools/bin/split +/tools/bin/who +/tools/bin/groups +/tools/bin/runcon +/tools/bin/wc +/tools/bin/touch +/tools/bin/head +/tools/bin/sync +/tools/bin/pinky +/tools/bin/cksum +/tools/bin/stat +/tools/bin/seq +/tools/bin/tr +/tools/bin/sleep +/tools/bin/mknod +/tools/bin/du +/tools/bin/yes +/tools/bin/dd +/tools/bin/tac +/tools/bin/tail +/tools/bin/uname +/tools/bin/chcon +/tools/bin/nproc +/tools/bin/chmod +/tools/bin/sha256sum +/tools/bin/sha384sum +/tools/bin/echo +/tools/bin/mktemp +/tools/bin/cp +/tools/bin/tty +/tools/bin/dircolors +/tools/bin/rm +/tools/bin/uniq +/tools/bin/printf +/tools/bin/nl +/tools/bin/tee +/tools/bin/link +/tools/bin/fmt +/tools/bin/unexpand +/tools/bin/users +/tools/bin/date +/tools/bin/expr +/tools/bin/pr +/tools/bin/sha1sum +/tools/bin/ptx +/tools/bin/id +/tools/bin/nice +/tools/bin/chroot +/tools/bin/basename +/tools/bin/expand +/tools/bin/logname +/tools/bin/chgrp +/tools/bin/vdir +/tools/bin/fold +/tools/bin/env +/tools/bin/stty +/tools/bin/pathchk diff --git a/srcpkgs/chroot-coreutils/chroot-coreutils.rshlibs b/srcpkgs/chroot-coreutils/chroot-coreutils.rshlibs new file mode 100644 index 00000000000..e85ce9da89a --- /dev/null +++ b/srcpkgs/chroot-coreutils/chroot-coreutils.rshlibs @@ -0,0 +1,3 @@ +librt.so.1 +libc.so.6 +libpthread.so.0 diff --git a/srcpkgs/chroot-coreutils/template b/srcpkgs/chroot-coreutils/template new file mode 100644 index 00000000000..4f1c5067fc0 --- /dev/null +++ b/srcpkgs/chroot-coreutils/template @@ -0,0 +1,27 @@ +# Template file for 'chroot-coreutils' +pkgname=chroot-coreutils +version=8.15 +wrksrc=coreutils-${version} +distfiles="http://ftp.gnu.org/gnu/coreutils/coreutils-$version.tar.xz" +build_style=gnu-configure +configure_args="--bindir=/bin --without-gmp --disable-libcap --disable-xattr +--disable-acl --disable-rpath --disable-nls --enable-no-install-program=stdbuf,arch,su" +make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version/tools install" +short_desc="The GNU core utilities - for xbps-src use" +maintainer="Juan RP " +homepage="http://www.gnu.org/software/coreutils" +license="GPL-3" +checksum=837eb377414eae463fee17d0f77e6d76bed79b87bc97ef0c23887710107fd49c +long_desc=" + The GNU Core Utilities are the basic file, shell and text manipulation + utilities of the GNU operating system. These are the core utilities + which are expected to exist on every operating system. + + This package is not meant to be installed by any user, this must be + installed as a dependency of base-chroot to create XBPS binary packages." + +bootstrap=yes + +pre_configure() { + sed -i 's/^\(SUBDIRS =\).*/\1 lib src/g' Makefile.in +}