From 7ff38024bec68fe70fb6eec0f5cd16188507558f Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 6 Oct 2021 23:29:58 +0100 Subject: added all lfs packages --- repo/core/coreutils.xibuild | 22 ++++++++++++++++++++++ repo/core/diffutils.xibuild | 12 ++++++++++++ repo/core/e2fsprogs.xibuild | 27 +++++++++++++++++++++++++++ repo/core/elfutils.xibuild | 12 ++++++++++++ repo/core/findutils.xibuild | 12 ++++++++++++ repo/core/gawk.xibuild | 12 ++++++++++++ repo/core/groff.xibuild | 12 ++++++++++++ repo/core/grub.xibuild | 16 ++++++++++++++++ repo/core/gzip.xibuild | 12 ++++++++++++ repo/core/iproute2.xibuild | 14 ++++++++++++++ repo/core/kbd.xibuild | 12 ++++++++++++ repo/core/libffi.xibuild | 12 ++++++++++++ repo/core/libpipeline.xibuild | 12 ++++++++++++ repo/core/make.xibuild | 12 ++++++++++++ repo/core/man-db.xibuild | 22 ++++++++++++++++++++++ repo/core/openssl.xibuild | 17 +++++++++++++++++ repo/core/patch.xibuild | 12 ++++++++++++ repo/core/procps-ng.xibuild | 16 ++++++++++++++++ repo/core/python.xibuild | 12 ++++++++++++ repo/core/sysklogd.xibuild | 12 ++++++++++++ repo/core/sysvinit.xibuild | 11 +++++++++++ repo/core/texinfo.xibuild | 16 ++++++++++++++++ repo/core/util-linux.xibuild | 27 +++++++++++++++++++++++++++ 23 files changed, 344 insertions(+) create mode 100644 repo/core/coreutils.xibuild create mode 100644 repo/core/diffutils.xibuild create mode 100644 repo/core/e2fsprogs.xibuild create mode 100644 repo/core/elfutils.xibuild create mode 100644 repo/core/findutils.xibuild create mode 100644 repo/core/gawk.xibuild create mode 100644 repo/core/groff.xibuild create mode 100644 repo/core/grub.xibuild create mode 100644 repo/core/gzip.xibuild create mode 100644 repo/core/iproute2.xibuild create mode 100644 repo/core/kbd.xibuild create mode 100644 repo/core/libffi.xibuild create mode 100644 repo/core/libpipeline.xibuild create mode 100644 repo/core/make.xibuild create mode 100644 repo/core/man-db.xibuild create mode 100644 repo/core/openssl.xibuild create mode 100644 repo/core/patch.xibuild create mode 100644 repo/core/procps-ng.xibuild create mode 100644 repo/core/python.xibuild create mode 100644 repo/core/sysklogd.xibuild create mode 100644 repo/core/sysvinit.xibuild create mode 100644 repo/core/texinfo.xibuild create mode 100644 repo/core/util-linux.xibuild (limited to 'repo/core') diff --git a/repo/core/coreutils.xibuild b/repo/core/coreutils.xibuild new file mode 100644 index 0000000..252bd90 --- /dev/null +++ b/repo/core/coreutils.xibuild @@ -0,0 +1,22 @@ +#!/bin/bash + +DEPS=(glibc acl attr gmp libcap openssl) + +SOURCE=https://ftp.gnu.org/gnu/coreutils/coreutils-9.0.tar.xz +DESC="The GNU coreutilities" + +build () { + autoreconf -fiv + + FORCE_UNSAFE_CONFIGURE=1 ./configure \ + --prefix=/usr \ + --enable-no-install-program=kill,uptime + make + make DESTDIR=$PKG_DEST install +} + +package () { + mv -v $PKG_DEST/usr/bin/chroot $PKG_DEST/usr/sbin + mv -v $PKG_DEST/usr/share/man/man1/chroot.1 $PKG_DEST/usr/share/man/man8/chroot.8 + sed -i 's/"1"/"8"/' $PKG_DEST/usr/share/man/man8/chroot.8 +} diff --git a/repo/core/diffutils.xibuild b/repo/core/diffutils.xibuild new file mode 100644 index 0000000..2a14984 --- /dev/null +++ b/repo/core/diffutils.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc bash) + +SOURCE=https://ftp.gnu.org/gnu/diffutils/diffutils-3.8.tar.xz +DESC="Utility programs for creating patch files" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/e2fsprogs.xibuild b/repo/core/e2fsprogs.xibuild new file mode 100644 index 0000000..9568fdf --- /dev/null +++ b/repo/core/e2fsprogs.xibuild @@ -0,0 +1,27 @@ +#!/bin/bash + +DEPS=(sh util-linux) + +SOURCE=https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.46.4/e2fsprogs-1.46.4.tar.xz +DESC="GNU's awk" + +build () { + mkdir -v build + cd build + ../configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-elf-shlibs \ + --disable-libblkid \ + --disable-libuuid \ + --disable-uuidd \ + --disable-fsck + make + make DESTDIR=$PKG_DEST install +} + + +package () { + rm -fv $PKG_DEST/usr/lib/{libcom_err,libe2p,libext2fs,libss}.a + gunzip -v $PKG_DEST/usr/share/info/libext2fs.info.gz + install-info --dir-file=$PKG_DEST/usr/share/info/dir $PKG_DEST/usr/share/info/libext2fs.info +} diff --git a/repo/core/elfutils.xibuild b/repo/core/elfutils.xibuild new file mode 100644 index 0000000..173ddd5 --- /dev/null +++ b/repo/core/elfutils.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=git://sourceware.org/git/elfutils.git +DESC="Handle ELF object files and DWARF debugging information" + +build () { + ./configure --prefix=/usr --disable-debuginfod --enable-libdebuginfod=dummy + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/findutils.xibuild b/repo/core/findutils.xibuild new file mode 100644 index 0000000..899abfb --- /dev/null +++ b/repo/core/findutils.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc sh) + +SOURCE=https://ftp.gnu.org/gnu/findutils/findutils-4.8.0.tar.xz +DESC="GNU utilities to locate files" + +build () { + ./configure --prefix=/usr --localstatedir=/var/lib/locate + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/gawk.xibuild b/repo/core/gawk.xibuild new file mode 100644 index 0000000..e06c4e3 --- /dev/null +++ b/repo/core/gawk.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(sh glibc mpfr) + +SOURCE=https://ftp.gnu.org/gnu/gawk/gawk-5.1.0.tar.xz +DESC="GNU's awk" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/groff.xibuild b/repo/core/groff.xibuild new file mode 100644 index 0000000..83d970a --- /dev/null +++ b/repo/core/groff.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(perl) + +SOURCE=https://ftp.gnu.org/gnu/groff/groff-1.22.4.tar.gz +DESC="GNU troff text-formatting system" + +build () { + PAGE=A4 ./configure --prefix=/usr + make -j1 + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/grub.xibuild b/repo/core/grub.xibuild new file mode 100644 index 0000000..9a88be5 --- /dev/null +++ b/repo/core/grub.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(sh xz gettext device-mapper) + +SOURCE=https://ftp.gnu.org/gnu/grub/grub-2.06.tar.xz +DESC="GNU GRand Unified Bootloader v2" + +build () { + ./configure --prefix=/usr --sysconfdic=/etc --disable-werror + make + make DESTDIR=$PKG_DEST install +} + +package () { + mv -v $PKG_DEST/etc/bash_completion.d/grub $PKG_DEST/usr/share/bash-completion/completions +} diff --git a/repo/core/gzip.xibuild b/repo/core/gzip.xibuild new file mode 100644 index 0000000..09af6a4 --- /dev/null +++ b/repo/core/gzip.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc bash less) + +SOURCE=https://ftp.gnu.org/gnu/gzip/gzip-1.11.zip +DESC="GNU compression utilities" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/iproute2.xibuild b/repo/core/iproute2.xibuild new file mode 100644 index 0000000..154e667 --- /dev/null +++ b/repo/core/iproute2.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc iptables libelf) + +SOURCE=https://git.kernel.org/pub/scm/network/iproute2/iproute2.git +DESC="" + +build () { + sed -i /ARPD/d Makefile + rm -fv man/man8/arpd.8 + + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/kbd.xibuild b/repo/core/kbd.xibuild new file mode 100644 index 0000000..3b18f26 --- /dev/null +++ b/repo/core/kbd.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc pam) + +SOURCE=https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-2.4.0.tar.xz +DESC="Keytable files and keyboard utilities" + +build () { + ./configure --prefix=/usr --disable-vlock + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/libffi.xibuild b/repo/core/libffi.xibuild new file mode 100644 index 0000000..872cb83 --- /dev/null +++ b/repo/core/libffi.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz +DESC="Portable foreign function interface library" + +build () { + ./configure --prefix=/usr --disable-static --with-gcc-arch=native --disable-exec-static-tramp + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/libpipeline.xibuild b/repo/core/libpipeline.xibuild new file mode 100644 index 0000000..2568165 --- /dev/null +++ b/repo/core/libpipeline.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://gitlab.com/cjwatson/libpipeline +DESC="A library for manipulating pipelines of subprocesses in a flexible and convenient way" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/make.xibuild b/repo/core/make.xibuild new file mode 100644 index 0000000..ca00d16 --- /dev/null +++ b/repo/core/make.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/make/make-4.3.tar.lz +DESC="GNU make utility" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/man-db.xibuild b/repo/core/man-db.xibuild new file mode 100644 index 0000000..92ce361 --- /dev/null +++ b/repo/core/man-db.xibuild @@ -0,0 +1,22 @@ +#!/bin/bash + +DEPS=(bash gdbm zlib groff libpipeline less) + +SOURCE=http://download.savannah.nongnu.org/releases/man-db/man-db-2.9.4.tar.xz +DESC="A utility for reading man pages" + +build () { + ./configure --prefix=/usr + ./configure --prefix=/usr \ + --docdir=/usr/share/doc/man-db-2.9.4 \ + --sysconfdir=/etc \ + --disable-setuid \ + --enable-cache-owner=bin \ + --with-browser=/usr/bin/lynx \ + --with-vgrind=/usr/bin/vgrind \ + --with-grap=/usr/bin/grap \ + --with-systemdtmpfilesdir= \ + --with-systemdsystemunitdir= + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/openssl.xibuild b/repo/core/openssl.xibuild new file mode 100644 index 0000000..a1cdca0 --- /dev/null +++ b/repo/core/openssl.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(glic) + +SOURCE=https://github.com/openssl/openssl +DESC="The open source management tools and libraries for cryptography" + +build () { + ./configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic + make + make MANSUFFIX=ssl DESTDIR=$PKG_DEST install +} + +package () { + mkdir -pv $PKG_DEST/usr/share/doc/openssl + cp -vfr doc/* $PKG_DEST/usr/share/doc/openssl +} diff --git a/repo/core/patch.xibuild b/repo/core/patch.xibuild new file mode 100644 index 0000000..728fc1d --- /dev/null +++ b/repo/core/patch.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc attr) + +SOURCE=https://ftp.gnu.org/gnu/patch/patch-2.7.tar.xz +DESC="A utility to apply patch files to a file" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/procps-ng.xibuild b/repo/core/procps-ng.xibuild new file mode 100644 index 0000000..34d49cf --- /dev/null +++ b/repo/core/procps-ng.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc ncurses) + +SOURCE=https://gitlab.com/procps-ng/procps +BRANCH=v3.3.17 +DESC="Utilities for monitoring your system and its processes" + +build () { + ./configure --prefix=/usr \ + --docdir=/usr/share/doc/procps-ng-3.3.17 \ + --disable-static \ + --disable-kill + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/python.xibuild b/repo/core/python.xibuild new file mode 100644 index 0000000..06d0b44 --- /dev/null +++ b/repo/core/python.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib) + +SOURCE=https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz +DESC="The Python development environment" + +build () { + ./configure --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-optimizations + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/sysklogd.xibuild b/repo/core/sysklogd.xibuild new file mode 100644 index 0000000..d0bb4ce --- /dev/null +++ b/repo/core/sysklogd.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/troglobit/sysklogd +DESC="Programs for logging system messages" + +build () { + ./autogen.sh + ./configure && make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/sysvinit.xibuild b/repo/core/sysvinit.xibuild new file mode 100644 index 0000000..0674787 --- /dev/null +++ b/repo/core/sysvinit.xibuild @@ -0,0 +1,11 @@ +#!/bin/bash + +DEPS=(sh glibc) + +SOURCE=http://download.savannah.nongnu.org/releases/sysvinit/sysvinit-3.00.tar.xz +DESC="The sysvinit system for controlling startup, running and shutdown of the system" + +build () { + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/texinfo.xibuild b/repo/core/texinfo.xibuild new file mode 100644 index 0000000..f00f172 --- /dev/null +++ b/repo/core/texinfo.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(ncurses gzip perl sh) + +SOURCE=https://ftp.gnu.org/gnu/texinfo/texinfo-6.8.tar.xz.sig +DESC="GNU documentation system for reading, writing and converting info pages" + +build () { + sed -e 's/__attribute_nonnull__/__nonnull/' \ + -i gnulib/lib/malloc/dynarray-skeleton.c + + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install + make TEXMF=$PKG_DEST/usr/share/texmf install-tex +} diff --git a/repo/core/util-linux.xibuild b/repo/core/util-linux.xibuild new file mode 100644 index 0000000..2bc2543 --- /dev/null +++ b/repo/core/util-linux.xibuild @@ -0,0 +1,27 @@ +#!/bin/bash + +DEPS=(shadow coreutils libcap libxcrypt readline) + +SOURCE=https://github.com/karelzak/util-linux +BRANCH=stable/v2.20 +DESC="System Utilities for Linux" + +build () { + ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ + --libdir=/usr/lib \ + --docdir=/usr/share/doc/util-linux-2.37.2 \ + --disable-chfn-chsh \ + --disable-login \ + --disable-nologin \ + --disable-su \ + --disable-setpriv \ + --disable-runuser \ + --disable-pylibmount \ + --disable-static \ + --without-python \ + --without-systemd \ + --without-systemdsystemunitdir \ + runstatedir=/run + make + make DESTDIR=$PKG_DEST install +} -- cgit v1.2.1