From cb447620084a20be80d116c81c2e9ec110be7118 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 16 Jan 2022 01:23:51 +0000 Subject: restructured repo system --- repo/system/acl.xibuild | 14 +++++ repo/system/attr.xibuild | 15 ++++++ repo/system/binutils.xibuild | 38 ++++++++++++++ repo/system/brotli.xibuild | 18 +++++++ repo/system/bzip2.xibuild | 41 +++++++++++++++ repo/system/cacerts.xibuild | 11 ++++ repo/system/coreutils.xibuild | 22 ++++++++ repo/system/eudev.xibuild | 23 ++++++++ repo/system/expat.xibuild | 16 ++++++ repo/system/findutils.xibuild | 16 ++++++ repo/system/gc.xibuild | 12 +++++ repo/system/gdbm.xibuild | 14 +++++ repo/system/gettext.xibuild | 17 ++++++ repo/system/glibc.xibuild | 102 ++++++++++++++++++++++++++++++++++++ repo/system/gmp.xibuild | 25 +++++++++ repo/system/gnutls.xibuild | 14 +++++ repo/system/gperf.xibuild | 14 +++++ repo/system/grub.xibuild | 17 ++++++ repo/system/guile.xibuild | 13 +++++ repo/system/gzip.xibuild | 12 +++++ repo/system/iana-etc.xibuild | 17 ++++++ repo/system/intltool.xibuild | 14 +++++ repo/system/kbd.xibuild | 17 ++++++ repo/system/kmod.xibuild | 29 ++++++++++ repo/system/krb5.xibuild | 35 +++++++++++++ repo/system/libcap-ng.xibuild | 17 ++++++ repo/system/libcap.xibuild | 21 ++++++++ repo/system/libffi.xibuild | 12 +++++ repo/system/libiconv.xibuild | 13 +++++ repo/system/libidn.xibuild | 17 ++++++ repo/system/libldap.xibuild | 12 +++++ repo/system/libnghttp.xibuild | 16 ++++++ repo/system/libp11-kit.xibuild | 28 ++++++++++ repo/system/libpipeline.xibuild | 13 +++++ repo/system/libpsl.xibuild | 13 +++++ repo/system/libsasl.xibuild | 17 ++++++ repo/system/libseccomp.xibuild | 15 ++++++ repo/system/libsigsegv.xibuild | 14 +++++ repo/system/libtasn1.xibuild | 14 +++++ repo/system/libtool.xibuild | 18 +++++++ repo/system/libunistring.xibuild | 14 +++++ repo/system/libxcrypt.xibuild | 19 +++++++ repo/system/libxml2.xibuild | 15 ++++++ repo/system/libxslt.xibuild | 18 +++++++ repo/system/lz4.xibuild | 13 +++++ repo/system/lzo.xibuild | 16 ++++++ repo/system/mpfr.xibuild | 18 +++++++ repo/system/ncurses.xibuild | 33 ++++++++++++ repo/system/nettle.xibuild | 14 +++++ repo/system/nspr.xibuild | 18 +++++++ repo/system/openssl.xibuild | 19 +++++++ repo/system/pam.xibuild | 35 +++++++++++++ repo/system/pcre.xibuild | 19 +++++++ repo/system/perl-xml-parser.xibuild | 13 +++++ repo/system/perl.xibuild | 18 +++++++ repo/system/psmisc.xibuild | 13 +++++ repo/system/python-requests.xibuild | 11 ++++ repo/system/python.xibuild | 17 ++++++ repo/system/readline.xibuild | 23 ++++++++ repo/system/rtmpdump.xibuild | 18 +++++++ repo/system/sed.xibuild | 19 +++++++ repo/system/shadow.xibuild | 40 ++++++++++++++ repo/system/sysklogd.xibuild | 11 ++++ repo/system/sysvinit.xibuild | 14 +++++ repo/system/tar.xibuild | 13 +++++ repo/system/tcl.xibuild | 50 ++++++++++++++++++ repo/system/xxhash.xibuild | 13 +++++ repo/system/xz.xibuild | 17 ++++++ repo/system/zip.xibuild | 11 ++++ repo/system/zlib.xibuild | 20 +++++++ repo/system/zstd.xibuild | 14 +++++ 71 files changed, 1392 insertions(+) create mode 100644 repo/system/acl.xibuild create mode 100644 repo/system/attr.xibuild create mode 100644 repo/system/binutils.xibuild create mode 100644 repo/system/brotli.xibuild create mode 100644 repo/system/bzip2.xibuild create mode 100644 repo/system/cacerts.xibuild create mode 100644 repo/system/coreutils.xibuild create mode 100644 repo/system/eudev.xibuild create mode 100644 repo/system/expat.xibuild create mode 100644 repo/system/findutils.xibuild create mode 100644 repo/system/gc.xibuild create mode 100644 repo/system/gdbm.xibuild create mode 100644 repo/system/gettext.xibuild create mode 100644 repo/system/glibc.xibuild create mode 100644 repo/system/gmp.xibuild create mode 100644 repo/system/gnutls.xibuild create mode 100644 repo/system/gperf.xibuild create mode 100644 repo/system/grub.xibuild create mode 100644 repo/system/guile.xibuild create mode 100644 repo/system/gzip.xibuild create mode 100644 repo/system/iana-etc.xibuild create mode 100644 repo/system/intltool.xibuild create mode 100644 repo/system/kbd.xibuild create mode 100644 repo/system/kmod.xibuild create mode 100644 repo/system/krb5.xibuild create mode 100644 repo/system/libcap-ng.xibuild create mode 100644 repo/system/libcap.xibuild create mode 100644 repo/system/libffi.xibuild create mode 100644 repo/system/libiconv.xibuild create mode 100644 repo/system/libidn.xibuild create mode 100644 repo/system/libldap.xibuild create mode 100644 repo/system/libnghttp.xibuild create mode 100644 repo/system/libp11-kit.xibuild create mode 100644 repo/system/libpipeline.xibuild create mode 100644 repo/system/libpsl.xibuild create mode 100644 repo/system/libsasl.xibuild create mode 100644 repo/system/libseccomp.xibuild create mode 100644 repo/system/libsigsegv.xibuild create mode 100644 repo/system/libtasn1.xibuild create mode 100644 repo/system/libtool.xibuild create mode 100644 repo/system/libunistring.xibuild create mode 100644 repo/system/libxcrypt.xibuild create mode 100644 repo/system/libxml2.xibuild create mode 100644 repo/system/libxslt.xibuild create mode 100644 repo/system/lz4.xibuild create mode 100644 repo/system/lzo.xibuild create mode 100644 repo/system/mpfr.xibuild create mode 100644 repo/system/ncurses.xibuild create mode 100644 repo/system/nettle.xibuild create mode 100644 repo/system/nspr.xibuild create mode 100644 repo/system/openssl.xibuild create mode 100644 repo/system/pam.xibuild create mode 100644 repo/system/pcre.xibuild create mode 100644 repo/system/perl-xml-parser.xibuild create mode 100644 repo/system/perl.xibuild create mode 100644 repo/system/psmisc.xibuild create mode 100644 repo/system/python-requests.xibuild create mode 100644 repo/system/python.xibuild create mode 100644 repo/system/readline.xibuild create mode 100644 repo/system/rtmpdump.xibuild create mode 100644 repo/system/sed.xibuild create mode 100644 repo/system/shadow.xibuild create mode 100644 repo/system/sysklogd.xibuild create mode 100644 repo/system/sysvinit.xibuild create mode 100644 repo/system/tar.xibuild create mode 100644 repo/system/tcl.xibuild create mode 100644 repo/system/xxhash.xibuild create mode 100644 repo/system/xz.xibuild create mode 100644 repo/system/zip.xibuild create mode 100644 repo/system/zlib.xibuild create mode 100644 repo/system/zstd.xibuild (limited to 'repo/system') diff --git a/repo/system/acl.xibuild b/repo/system/acl.xibuild new file mode 100644 index 0000000..7b86fe6 --- /dev/null +++ b/repo/system/acl.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(attr) + +SOURCE=http://download.savannah.nongnu.org/releases/acl/acl-2.3.1.tar.xz +DESC="Access control list utilities, libraries and headers" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/acl-2.3.1 + make + + make DESTDIR=$PKG_DEST install + +} diff --git a/repo/system/attr.xibuild b/repo/system/attr.xibuild new file mode 100644 index 0000000..6aa9673 --- /dev/null +++ b/repo/system/attr.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(glibc) +SOURCE=http://download.savannah.nongnu.org/releases/attr/attr-2.5.1.tar.xz + +DESC="Extended attribute support library for ACL support" + +build () { + + ./configure --prefix=/usr --disable-static --sysconfdir=/etc --docdir=/usr/share/doc/attr-2.5.1 + + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild new file mode 100644 index 0000000..874257c --- /dev/null +++ b/repo/system/binutils.xibuild @@ -0,0 +1,38 @@ +#!/bin/bash + +DEPS=(glib zlib elfutils) + +SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.xz +DESC="tools for handling object files" + +build () { + curl https://www.linuxfromscratch.org/patches/lfs/development/binutils-2.37-upstream_fix-1.patch > binutils-2.37-upstream_fix-1.patch + patch -Np1 -i binutils-2.37-upstream_fix-1.patch + + # An error in the building system causes the shipped man pages to be empty. Workaround the issue and remove the shipped man pages, so the man pages will be regenerated correctly: + + sed -i '63d' etc/texi2pod.pl + find -name \*.1 -delete + + mkdir -v build + cd build + ../configure --prefix=/usr \ + --enable-gold \ + --enable-ld=default \ + --enable-install-libiberty \ + --enable-plugins \ + --enable-shared \ + --disable-werror \ + --enable-64-bit-bfd \ + --with-system-zlib + + make tooldir=/usr + make -k check || true +} + +package() { + make -j1 DESTDIR=$PKG_DEST -j1 install + cp ../include/libiberty.h $PKG_DEST/usr/include + rm -fv $PKG_DEST/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.a + +} diff --git a/repo/system/brotli.xibuild b/repo/system/brotli.xibuild new file mode 100644 index 0000000..5a4f2e0 --- /dev/null +++ b/repo/system/brotli.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/google/brotli +DESC="A generic-purpose lossless compression algorithm" + +build () { + mkdir out && cd out + ../configure-cmake + make + make test + make DESTDIR=$PKG_DEST install +} + +package () { + mv $PKG_DEST/usr/local/* $PKG_DEST/usr/ +} diff --git a/repo/system/bzip2.xibuild b/repo/system/bzip2.xibuild new file mode 100644 index 0000000..f60aece --- /dev/null +++ b/repo/system/bzip2.xibuild @@ -0,0 +1,41 @@ +#!/bin/bash + +DEPS=(glibc sh) + +SOURCE=git://sourceware.org/git/bzip2.git +BRANCH=bzip2-1.0.8 +DESC="a selection of programs for compressing and decompressing bzip2 files" + + +build () { + #curl https://www.linuxfromscratch.org/patches/lfs/development/bzip2-1.0.8-install_docs-1.patch > bzip2-1.0.8-install_docs-1.patch + + #patch -Np1 -i bzip2-1.0.8-install_docs-1.patch + + + # ensure symbolic links are relative + sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile + + #sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile + + make -f Makefile-libbz2_so + make clean + + make + make PREFIX=$PKG_DEST/usr install + +} + +package () { + cp -av libbz2.so* $PKG_DEST/usr/lib + cp -av libbz2.so.1.0.8 $PKG_DEST/usr/lib/libbz2.so + + cp -v bzip2-shared $PKG_DEST/usr/bin/bzip2 + for i in $PKG_DEST/usr/bin/{bzcat,bunzip2}; do + ln -sfv bzip2 $i + done + + # remove a useless static library + rm -fv $PKG_DEST/usr/lib/libbz2.a +} + diff --git a/repo/system/cacerts.xibuild b/repo/system/cacerts.xibuild new file mode 100644 index 0000000..9ebe9bd --- /dev/null +++ b/repo/system/cacerts.xibuild @@ -0,0 +1,11 @@ +#!/bin/bash + +DEPS=(make-ca) + +SOURCE=https://github.com/djlucas/make-ca/releases/download/v1.7/make-ca-1.7.tar.xz +DESC="Root certificates needed by ssl built using make-ca" + +package () { + bash make-ca -g --force -D $PKG_DEST + chmod -R 777 $PKG_DEST || echo "couldnt change permissions for $PKG_DEST" +} diff --git a/repo/system/coreutils.xibuild b/repo/system/coreutils.xibuild new file mode 100644 index 0000000..3e0e023 --- /dev/null +++ b/repo/system/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 +} + +package () { + make DESTDIR=$PKG_DEST install + mkdir -pv $PKG_DEST/usr/share/man/man8/chroot.8 + mkdir -pv $PKG_DEST/usr/sbin + mv -v $PKG_DEST/usr/bin/chroot $PKG_DEST/usr/sbin +} diff --git a/repo/system/eudev.xibuild b/repo/system/eudev.xibuild new file mode 100644 index 0000000..848191c --- /dev/null +++ b/repo/system/eudev.xibuild @@ -0,0 +1,23 @@ +#!/bin/bash + +DEPS=() + +SOURCE=https://dev.gentoo.org/~blueness/eudev/eudev-3.2.10.tar.gz +DESC="Programs for dynamic creation of device nodes" + +build () { + ./configure --prefix=/usr \ + --bindir=/usr/sbin \ + --sysconfdir=/etc \ + --enable-manpages \ + --disable-static + make +} + +package () { + mkdir -pv $PKG_DEST/usr/lib/udev/rules.d + mkdir -pv $PKG_DEST/etc/udev/rules.d + + make DESTDIR=$PKG_DEST install + +} diff --git a/repo/system/expat.xibuild b/repo/system/expat.xibuild new file mode 100644 index 0000000..bf9c49f --- /dev/null +++ b/repo/system/expat.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.xz +DESC="An XML parser library" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/expat-2.4.1 + make + make check + + make DESTDIR=$PKG_DEST install + + install -v -m644 doc/*{.html,png,css} $PKG_DEST/usr/share/doc/expat-2.4.1 +} diff --git a/repo/system/findutils.xibuild b/repo/system/findutils.xibuild new file mode 100644 index 0000000..d8fd39c --- /dev/null +++ b/repo/system/findutils.xibuild @@ -0,0 +1,16 @@ +#!/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 () { + case $(uname -m) in + i?86) TIME_T_32_BIT_OK=yes ./configure --prefix=/usr --localstatedir=/var/lib/locate ;; + x86_64) ./configure --prefix=/usr --localstatedir=/var/lib/locate ;; + esac + + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/gc.xibuild b/repo/system/gc.xibuild new file mode 100644 index 0000000..d06a08d --- /dev/null +++ b/repo/system/gc.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(gcc-libs) + +SOURCE=https://github.com/ivmai/bdwgc/releases/download/v8.0.6/gc-8.0.6.tar.gz +DESC="A garbage collector for C and C++" + +build () { + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/gdbm.xibuild b/repo/system/gdbm.xibuild new file mode 100644 index 0000000..ddeecca --- /dev/null +++ b/repo/system/gdbm.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc sh readline) + +SOURCE=https://ftp.gnu.org/gnu/gdbm/gdbm-1.21.tar.gz +DESC="GNU database library" + +build () { + ./configure --prefix=/usr --disable-static --enable-libgdm-compat + make + make -k check + + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/gettext.xibuild b/repo/system/gettext.xibuild new file mode 100644 index 0000000..e0f6d37 --- /dev/null +++ b/repo/system/gettext.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(acl sh glib2) + +SOURCE=https://ftp.gnu.org/pub/gnu/gettext/gettext-0.21.tar.gz +DESC="GNU internationalization library" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/gettext-0.21 + make + make check +} + +package () { + make DESTDIR=$PKG_DEST install + chmod -v 0755 $PKG_DEST/usr/lib/preloadable_libintl.so +} diff --git a/repo/system/glibc.xibuild b/repo/system/glibc.xibuild new file mode 100644 index 0000000..61e5a0a --- /dev/null +++ b/repo/system/glibc.xibuild @@ -0,0 +1,102 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/glibc/glibc-2.34.tar.xz +DESC="The main gnu C library providing basic routines and procedures" + +build () { + # patches as recommended by lfs + sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' -i sysdeps/unix/sysv/linux/mq_notify.c + + curl https://www.linuxfromscratch.org/patches/lfs/development/glibc-2.34-fhs-1.patch > glibc-2.34-fhs-1.patch + + patch -Np1 -i glibc-2.34-fhs-1.patch + + mkdir -v build + cd build + + # ensure that the ldconfig and sln utilities are installed into /usr/sbin + echo "rootsbindir=/usr/sbin" > configparms + + ../configure --prefix=/usr \ + --disable-werror \ + --enable-kernel=3.2 \ + --enable-stack-protector=strong \ + --with-headers=/usr/include \ + libc_cv_slibdir=/usr/lib + + make + + # some check failures are 'expected' + #make check || true + +} + +package () { + mkdir -pv $PKG_DEST/etc + touch $PKG_DEST/etc/ld.so.conf + + sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile + make DESTDIR=$PKG_DEST install + + # fix hardcoded path to the excutable in ldd script + sed '/RTLDLIST=/s@/usr@@g' -i $PKG_DEST/usr/bin/ldd + + cp -v ../nscd/nscd.conf $PKG_DEST/etc/nscd.conf + mkdir -pv $PKG_DEST/var/cache/nscd + + # create locales for the system + # note, this should be moved to a better place + make DESTDIR=$PKG_DEST localedata/install-locales + + cat > $PKG_DEST/etc/nsswitch.conf << "EOF" +# Begin /etc/nsswitch.conf + +passwd: files +group: files +shadow: files + +hosts: files dns +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +# End /etc/nsswitch.conf +EOF + + curl https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/glibc/trunk/locale-gen > locale-gen + + install -m755 locale-gen "$PKG_DEST/usr/bin" + + #curl https://data.iana.org/time-zones/releases/tzdata2021e.tar.gz > tzdata2021e.tar.gz + #tar -xf tzdata2021e.tar.gz +# + #ZONEINFO=$PKG_DEST/usr/share/zoneinfo + #mkdir -pv $ZONEINFO/{posix,right} +## + #for tz in etcetera southamerica northamerica europe africa antarctica \ + #asia australasia backward; do + #zic -L /dev/null -d $ZONEINFO ${tz} + #zic -L /dev/null -d $ZONEINFO/posix ${tz} + #zic -L leapseconds -d $ZONEINFO/right ${tz} + #done +# + #cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO + #zic -d $ZONEINFO -p America/New_York + #unset ZONEINFO + + + # configure dynamic loader + cat > $PKG_DEST/etc/ld.so.conf << "EOF" +# Begin /etc/ld.so.conf +/usr/local/lib +/opt/lib +include /etc/ld.so.conf.d/*.conf +EOF + mkdir -pv $PKG_DEST/etc/ld.so.conf.d +} + diff --git a/repo/system/gmp.xibuild b/repo/system/gmp.xibuild new file mode 100644 index 0000000..6c426bc --- /dev/null +++ b/repo/system/gmp.xibuild @@ -0,0 +1,25 @@ +#!/bin/bash + +DEPS=(gcc-libs sh) + +SOURCE=https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz +DESC="a collection of mathematical libraries" + +build () { + cp -v configfsf.guess config.guess + cp -v configfsf.sub config.sub + + ./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp + + make + make html + + make check 2>&1 | tee gmp-check-log + awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log + +} + +package() { + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} diff --git a/repo/system/gnutls.xibuild b/repo/system/gnutls.xibuild new file mode 100644 index 0000000..b2e0fa3 --- /dev/null +++ b/repo/system/gnutls.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(libtasn readline zlib nettle p11-kit libidn2 libunistring) + +SOURCE=https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.16.tar.xz +DESC="Library which provides a secure layer over a transport layer" + +build () { + + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/gperf.xibuild b/repo/system/gperf.xibuild new file mode 100644 index 0000000..0f08d60 --- /dev/null +++ b/repo/system/gperf.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz +DESC="Perfect hash function generator" + +build () { + ./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.1 + make + make -j1 check + + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/grub.xibuild b/repo/system/grub.xibuild new file mode 100644 index 0000000..37b4da9 --- /dev/null +++ b/repo/system/grub.xibuild @@ -0,0 +1,17 @@ +#!/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 --sysconfdir=/etc --disable-werror + make + make DESTDIR=$PKG_DEST install +} + +package () { + mkdir -pv $PKG_DEST/usr/share/bash-completion/completions + mv -v $PKG_DEST/etc/bash_completion.d/grub $PKG_DEST/usr/share/bash-completion/completions +} diff --git a/repo/system/guile.xibuild b/repo/system/guile.xibuild new file mode 100644 index 0000000..fd65daa --- /dev/null +++ b/repo/system/guile.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(gmp libltdl ncurses texinfo libunistring gc libffi) + +SOURCE=https://ftp.gnu.org/gnu/guile/guile-2.2.7.tar.gz +DESC="Portable, embeddable Scheme implementation written in C" + +build () { + ./autogen.sh + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/gzip.xibuild b/repo/system/gzip.xibuild new file mode 100644 index 0000000..15376a1 --- /dev/null +++ b/repo/system/gzip.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc bash less) + +SOURCE=https://ftp.gnu.org/gnu/gzip/gzip-1.11.tar.xz +DESC="GNU compression utilities" + +build () { + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/iana-etc.xibuild b/repo/system/iana-etc.xibuild new file mode 100644 index 0000000..be9b261 --- /dev/null +++ b/repo/system/iana-etc.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=() + +SOURCE=https://github.com/Mic92/iana-etc +DESC="A set of data from the internet assigned numbers authority providing data for network services and protocols" + +build () { + python update.py out +} + +package () { + mkdir -vp $PKG_DEST/etc + cp -v out/dist/protocols $PKG_DEST/etc/ + cp -v out/dist/services $PKG_DEST/etc/ +} + diff --git a/repo/system/intltool.xibuild b/repo/system/intltool.xibuild new file mode 100644 index 0000000..ec0a774 --- /dev/null +++ b/repo/system/intltool.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(perl-xml-parser) + +SOURCE=https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz +DESC="The internationalization tool collection" + +build () { + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG_DEST install + install -v -Dm644 doc/I18N-HOWTO $PKG_DEST/usr/share/doc/intltool-0.51.0/I18N-HOWTO +} diff --git a/repo/system/kbd.xibuild b/repo/system/kbd.xibuild new file mode 100644 index 0000000..8612f4a --- /dev/null +++ b/repo/system/kbd.xibuild @@ -0,0 +1,17 @@ +#!/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 () { + + # remove redundant resizecons program + sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure + sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in + + ./configure --prefix=/usr --disable-vlock + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/kmod.xibuild b/repo/system/kmod.xibuild new file mode 100644 index 0000000..b6f873e --- /dev/null +++ b/repo/system/kmod.xibuild @@ -0,0 +1,29 @@ +#!/bin/bash + +DEPS=(glibc zlib openssl xz zstd) + +SOURCE=https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-29.tar.xz +DESC="Libraries and utilities for managing kernel modules" + +build () { + ./autogen.sh + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-xz \ + --with-zstd \ + --with-zlib + + make + make DESTDIR=$PKG_DEST install +} + +package () { + mkdir -p /usr/sbin + mkdir -p /usr/bin + + for target in depmod insmod modinfo modprobe rmmod; do + ln -sfv ../bin/kmod $PKG_DERT/usr/sbin/$target + done + + ln -sfv kmod $PKG_DEST/usr/bin/lsmod +} diff --git a/repo/system/krb5.xibuild b/repo/system/krb5.xibuild new file mode 100644 index 0000000..8769e1f --- /dev/null +++ b/repo/system/krb5.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(glibc e2fsprogs libldap keyutils) + +SOURCE=https://kerberos.org/dist/krb5/1.19/krb5-1.19.2.tar.gz +DESC="The Kerberos network authentication system" + +build () { + # fix denial of service vulnerability + sed -i '210a if (sprinc == NULL) {\ + status = "NULL_SERVER";\ + errcode = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;\ + goto cleanup;\ + }' src/kdc/do_tgs_req.c + + cd src && + + sed -i -e 's@\^u}@^u cols 300}@' tests/dejagnu/config/default.exp && + sed -i -e '/eq 0/{N;s/12 //}' plugins/kdb/db2/libdb2/test/run.test && + sed -i '/t_iprop.py/d' tests/Makefile.in && + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --runstatedir=/run \ + --with-system-et \ + --with-system-ss \ + --with-system-verto=no \ + --enable-dns-for-realm && + make + make DESTDIR=$PKG_DEST install + + install -v -dm755 $PKG_DEST/usr/share/doc/krb5-1.19.2 && + cp -vfr ../doc/* $PKG_DEST/usr/share/doc/krb5-1.19.2 +} diff --git a/repo/system/libcap-ng.xibuild b/repo/system/libcap-ng.xibuild new file mode 100644 index 0000000..eaad150 --- /dev/null +++ b/repo/system/libcap-ng.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/stevegrubb/libcap-ng/archive/refs/tags/v0.8.2.tar.gz + +DESC="A library for linux that makes posix capabilities easy" + +build () { + ./autogen.sh + ./configure --prefix=/usr + make prefix=/usr lib=lib +} + +package() { + make prefix=/usr lib=lib DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libcap.xibuild b/repo/system/libcap.xibuild new file mode 100644 index 0000000..01bc414 --- /dev/null +++ b/repo/system/libcap.xibuild @@ -0,0 +1,21 @@ +#!/bin/bash + +DEPS=(glibc pam) + +SOURCE=https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-2.62.tar.gz + +DESC="POSIX 1003.1e capabilities" + +build () { + sed -i '/install -m.*STA/d' libcap/Makefile + + make prefix=/usr lib=lib + + make test + make prefix=/usr lib=lib DESTDIR=$PKG_DEST install + +} + +package() { + chmod -v 755 $PKG_DEST/usr/lib/lib{cap,psx}.so.* +} diff --git a/repo/system/libffi.xibuild b/repo/system/libffi.xibuild new file mode 100644 index 0000000..872cb83 --- /dev/null +++ b/repo/system/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/system/libiconv.xibuild b/repo/system/libiconv.xibuild new file mode 100644 index 0000000..52b45ef --- /dev/null +++ b/repo/system/libiconv.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz + +DESC="GNU charset conversion library" + +build () { + ./configure --prefix=/usr --disable-static && + make + make prefix=/usr lib=lib DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libidn.xibuild b/repo/system/libidn.xibuild new file mode 100644 index 0000000..ddb9d08 --- /dev/null +++ b/repo/system/libidn.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/libidn/libidn2-2.3.2.tar.gz +DESC="Free software implementation of IDNA2008, Punycode and TR46" + +build () { + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG_DEST install + + find doc -name "Makefile*" -delete && + rm -rf -v doc/{gdoc,idn.1,stamp-vti,man,texi} && + mkdir -pv $PKG_DEST/usr/share/doc/libidn-2.3.2 && + cp -r -v doc/* $PKG_DEST/usr/share/doc/libidn-2.3.2 +} diff --git a/repo/system/libldap.xibuild b/repo/system/libldap.xibuild new file mode 100644 index 0000000..f6caccb --- /dev/null +++ b/repo/system/libldap.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(libidn libsasl) + +SOURCE=http://repository.linagora.org/OpenLDAP/openldap-release/openldap-2.6.0.tgz +DESC="An open source implementation of the Lightweight Directory Access Protocol" + +build () { + ./configure prefix="/usr" + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libnghttp.xibuild b/repo/system/libnghttp.xibuild new file mode 100644 index 0000000..b90f3ed --- /dev/null +++ b/repo/system/libnghttp.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/nghttp2/nghttp2/releases/download/v1.46.0/nghttp2-1.46.0.tar.xz +DESC="Framing layer of HTTP implemented as a C library" + + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --enable-lib-only \ + --docdir=/usr/share/doc/nghttp2-1.46.0 && + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libp11-kit.xibuild b/repo/system/libp11-kit.xibuild new file mode 100644 index 0000000..e9e5e4a --- /dev/null +++ b/repo/system/libp11-kit.xibuild @@ -0,0 +1,28 @@ +#!/bin/bash + +DEPS=(glibc libtasn1 libffi) + +SOURCE=https://github.com/p11-glue/p11-kit +DESC="Loads and enumerates PKCS#11 modules" + +build () { + + sed '20,$ d' -i trust/trust-extract-compat && + cat >> trust/trust-extract-compat << "EOF" +# Copy existing anchor modifications to /etc/ssl/local +/usr/libexec/make-ca/copy-trust-modifications + +# Generate a new trust store +/usr/sbin/make-ca -f -g +EOF + + ./autogen.sh + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-trust-paths=/etc/pki/anchors + make + make DESTDIR=$PKG_DEST install + ln -sfv $PKG_DEST/usr/libexec/p11-kit/trust-extract-compat \ + $PKG_DEST/usr/bin/update-ca-certificates +} + diff --git a/repo/system/libpipeline.xibuild b/repo/system/libpipeline.xibuild new file mode 100644 index 0000000..be5ec09 --- /dev/null +++ b/repo/system/libpipeline.xibuild @@ -0,0 +1,13 @@ +#!/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 () { + ./bootstrap + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libpsl.xibuild b/repo/system/libpsl.xibuild new file mode 100644 index 0000000..9b40f2a --- /dev/null +++ b/repo/system/libpsl.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(libidn) + +SOURCE=https://github.com/rockdaboot/libpsl/releases/download/0.21.1/libpsl-0.21.1.tar.gz +DESC="C library to handle the Public Suffix List" + +build () { + sed -i 's/env python/&3/' src/psl-make-dafsa && + ./configure --prefix=/usr --disable-static && + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libsasl.xibuild b/repo/system/libsasl.xibuild new file mode 100644 index 0000000..8cb4491 --- /dev/null +++ b/repo/system/libsasl.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(gmp) + +SOURCE=https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-2.1.27/cyrus-sasl-2.1.27.tar.gz +DESC="A library for Simple Authentication and Security Layer" + +build () { + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + +#package () { + #mv $PKG_DEST/usr/local/* $PKG_DEST/usr/ +#} diff --git a/repo/system/libseccomp.xibuild b/repo/system/libseccomp.xibuild new file mode 100644 index 0000000..1d5fe3a --- /dev/null +++ b/repo/system/libseccomp.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/seccomp/libseccomp/releases/download/v2.5.3/libseccomp-2.5.3.tar.gz + +DESC="Enhanced seccomp library" + +build () { + ./configure --prefix=/usr --disable-static && + make + make check + make prefix=/usr lib=lib DESTDIR=$PKG_DEST install + +} diff --git a/repo/system/libsigsegv.xibuild b/repo/system/libsigsegv.xibuild new file mode 100644 index 0000000..559e1eb --- /dev/null +++ b/repo/system/libsigsegv.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(libtasn readline zlib nettle p11-kit libidn2 libunistring) + +SOURCE=https://ftp.gnu.org/gnu/libsigsegv/libsigsegv-2.13.tar.gz +DESC="A library for handling page faults in user mode" + +build () { + + ./configure \ + --prefix=/usr --enable-shared --disable-static + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libtasn1.xibuild b/repo/system/libtasn1.xibuild new file mode 100644 index 0000000..2f6fccd --- /dev/null +++ b/repo/system/libtasn1.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/libtasn1/libtasn1-4.18.0.tar.gz +DESC="The ASN.1 library used in GNUTLS" + +build () { + + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libtool.xibuild b/repo/system/libtool.xibuild new file mode 100644 index 0000000..3e41c00 --- /dev/null +++ b/repo/system/libtool.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(sh tar glibc) + +SOURCE=https://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz +DESC="A generic library support script" + +build () { + ./configure --prefix=/usr + make + make check + + make DESTDIR=$PKG_DEST install +} + +package () { + rm -fv $PKG_DEST/usr/lib/libltdl.a +} diff --git a/repo/system/libunistring.xibuild b/repo/system/libunistring.xibuild new file mode 100644 index 0000000..3a5b3d4 --- /dev/null +++ b/repo/system/libunistring.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/libunistring/libunistring-0.9.10.tar.gz +DESC="Library for manipulating Unicode strings and C strings" + +build () { + + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libxcrypt.xibuild b/repo/system/libxcrypt.xibuild new file mode 100644 index 0000000..a4b5a3e --- /dev/null +++ b/repo/system/libxcrypt.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/besser82/libxcrypt/releases/download/v4.4.26/libxcrypt-4.4.26.tar.xz +DESC="A modern library for one-way hashing of passwords" + +build () { + CC=gcc ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + +package () { + # this is probably wrong + ln $PKG_DEST/usr/lib/libcrypt.so $PKG_DEST/usr/lib/libcrypt.so.2 +} + + diff --git a/repo/system/libxml2.xibuild b/repo/system/libxml2.xibuild new file mode 100644 index 0000000..e5c149e --- /dev/null +++ b/repo/system/libxml2.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(zlib readline ncurses xz icu) + +SOURCE=http://xmlsoft.org/sources/libxml2-2.9.12.tar.gz +DESC="XML parsing library" + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --with-history \ + --with-python=/usr/bin/python3 && + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/libxslt.xibuild b/repo/system/libxslt.xibuild new file mode 100644 index 0000000..b079be1 --- /dev/null +++ b/repo/system/libxslt.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(libxml2 libgcrypt) + +SOURCE=http://xmlsoft.org/sources/libxslt-1.1.34.tar.gz +DESC="XML stylesheet transformation library" + + +build () { + sed -i s/3000/5000/ libxslt/transform.c doc/xsltproc.{1,xml} && + sed -i -r '/max(Parser)?Depth/d' ./tests/fuzz/fuzz.c && + ./configure --prefix=/usr --disable-static --without-python && + make + sed -e 's@http://cdn.docbook.org/release/xsl@https://cdn.docbook.org/release/xsl-nons@' \ + -e 's@\$Date\$@31 October 2019@' -i doc/xsltproc.xml && + xsltproc/xsltproc --nonet doc/xsltproc.xml -o doc/xsltproc.1 + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/lz4.xibuild b/repo/system/lz4.xibuild new file mode 100644 index 0000000..9e1dbad --- /dev/null +++ b/repo/system/lz4.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(sh) + +SOURCE=https://github.com/lz4/lz4/archive/refs/tags/v1.9.3.tar.gz +DESC="A lossless compression algorithm, providing high compression speeds" + + +build () { + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/system/lzo.xibuild b/repo/system/lzo.xibuild new file mode 100644 index 0000000..17c404b --- /dev/null +++ b/repo/system/lzo.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz + +DESC="Portable lossless data compression library" + +build () { + ./configure --prefix=/usr --disable-static --enable-shared --docdir=/usr/share/doc/lzo-2.10 + make +} + +package() { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/mpfr.xibuild b/repo/system/mpfr.xibuild new file mode 100644 index 0000000..4895dc9 --- /dev/null +++ b/repo/system/mpfr.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(glibc gmp) +SOURCE=https://www.mpfr.org/mpfr-current/mpfr-4.1.0.tar.xz + +DESC="Multiple-precision floating-point library" + +build () { + ./configure --prefix=/usr --disable-static --enable-thread-safe --docdir=/usr/share/doc/mpfr-4.1.0 + make + make html + + make check + + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} + diff --git a/repo/system/ncurses.xibuild b/repo/system/ncurses.xibuild new file mode 100644 index 0000000..c42d402 --- /dev/null +++ b/repo/system/ncurses.xibuild @@ -0,0 +1,33 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-6.3.tar.gz + +DESC="curses emulation library" + +build () { + ./configure --prefix=/usr --mandir=/usr/share/man --with-shared --without-debug --without-normal --enable-pc-files --enable-widec + + make + + make DESTDIR=$PKG_DEST install +} + + +package () { + + for lib in ncurses form panel menu ; do + rm -vf $PKG_DEST/usr/lib/lib${lib}.so + echo "INPUT(-l${lib}w)" > $PKG_DEST/usr/lib/lib${lib}.so + ln -sfv ${lib}w.pc $PKG_DEST/usr/lib/pkgconfig/${lib}.pc + done + + rm -vf $PKG_DEST/usr/lib/libcursesw.so + echo "INPUT(-lncursesw)" > $PKG_DEST/usr/lib/libcursesw.so + ln -sfv libncurses.so $PKG_DEST/usr/lib/libcurses.so + + # install docs + mkdir -pv $PKG_DEST/usr/share/doc/ncurses-6.3 + cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.3 +} diff --git a/repo/system/nettle.xibuild b/repo/system/nettle.xibuild new file mode 100644 index 0000000..398a722 --- /dev/null +++ b/repo/system/nettle.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(gmp) + +SOURCE=https://ftp.gnu.org/gnu/nettle/nettle-3.7.tar.gz +DESC="A low-level cryptographic library" + +build () { + + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/nspr.xibuild b/repo/system/nspr.xibuild new file mode 100644 index 0000000..733c333 --- /dev/null +++ b/repo/system/nspr.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(glibc bash) + +SOURCE=https://archive.mozilla.org/pub/nspr/releases/v4.33/src/nspr-4.33.tar.gz +DESC="Netscape Portable Runtime" + +build () { + sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in + sed -i 's#$(LIBRARY) ##' config/rules.mk + + + cd nspr + ./configure \ + --prefix=/usr --with-mozilla --with-pthreads --enable-64bit + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/openssl.xibuild b/repo/system/openssl.xibuild new file mode 100644 index 0000000..5b52fd5 --- /dev/null +++ b/repo/system/openssl.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/openssl/openssl/archive/refs/tags/openssl-3.0.1.tar.gz +DESC="The open source management tools and libraries for cryptography" +BRANCH="OpenSSL_1_1_1-stable" + +build () { + ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic + make + sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile + 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/system/pam.xibuild b/repo/system/pam.xibuild new file mode 100644 index 0000000..732909a --- /dev/null +++ b/repo/system/pam.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(glibc libtirpc pambase audit libxcrypt) + +SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v1.5.2/Linux-PAM-1.5.2.tar.xz +DESC="PAM (Pluggable Authentication Modules) library" + +build () { + # prevent install of an uneeded systemd file + sed -e /service_DATA/d \ + -i modules/pam_namespace/Makefile.am && + autoreconf + + ./configure --prefix=/usr \ + --sbindir=/usr/sbin \ + --sysconfdir=/etc \ + --libdir=/usr/lib \ + --enable-securedir=/usr/lib/security \ + --docdir=/usr/share/doc/Linux-PAM-1.5.2 && + make + + make DESTDIR=$PKG_DEST install +} + +package () { + install -v -m755 -d $PKG_DEST/etc/pam.d && + + cat > $PKG_DEST/etc/pam.d/other << "EOF" + auth required pam_deny.so + account required pam_deny.so + password required pam_deny.so + session required pam_deny.so +EOF + +} diff --git a/repo/system/pcre.xibuild b/repo/system/pcre.xibuild new file mode 100644 index 0000000..facf5fe --- /dev/null +++ b/repo/system/pcre.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.39/pcre2-10.39.tar.bz2 +DESC="A library that implements regular expressions in a perl style" + +build () { + CC=gcc ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + +package () { + # this probably is not right but it works for now + ln $PKG_DEST/usr/lib/libpcre2-8.so $PKG_DEST/usr/lib/libpcre.so.1 +} + + diff --git a/repo/system/perl-xml-parser.xibuild b/repo/system/perl-xml-parser.xibuild new file mode 100644 index 0000000..d4b9682 --- /dev/null +++ b/repo/system/perl-xml-parser.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(perl expat) + +SOURCE=https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.46.tar.gz +DESC="A perl interface for the expat XML parser" + +build () { + perl Makefile.PL + make + make test + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/perl.xibuild b/repo/system/perl.xibuild new file mode 100644 index 0000000..cd3c884 --- /dev/null +++ b/repo/system/perl.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(gdbm glibc libxcrypt) + +SOURCE=https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz +DESC="The Practical Extraction and Report Language" + +build () { + #export BUILD_ZLIB=False + #export BUILD_BZIP2=0 + + sh Configure -des -Dprefix=/usr -Dlibs=-lm -Uloclibpth -Ulocincpth + + make + make test + make DESTDIR=$PKG_DEST install + unset BUILD_ZLIB BUILD_BZIP2 +} diff --git a/repo/system/psmisc.xibuild b/repo/system/psmisc.xibuild new file mode 100644 index 0000000..560cf20 --- /dev/null +++ b/repo/system/psmisc.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(ncurses) + +SOURCE=https://gitlab.com/psmisc/psmisc/-/archive/v23.4/psmisc-v23.4.tar.gz +DESC="Miscellaneous procfs tools" + +build () { + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/python-requests.xibuild b/repo/system/python-requests.xibuild new file mode 100644 index 0000000..7752729 --- /dev/null +++ b/repo/system/python-requests.xibuild @@ -0,0 +1,11 @@ +#!/bin/bash + +DEPS=(python) + +SOURCE=git://github.com/psf/requests.git +DESC="the requests module for python" + +build () { + mkdir -p $PKG_DEST/usr/lib/python3.10/site-packages/ + pip install -t $PKG_DEST/usr/lib/python3.10/site-packages/ . +} diff --git a/repo/system/python.xibuild b/repo/system/python.xibuild new file mode 100644 index 0000000..7e71733 --- /dev/null +++ b/repo/system/python.xibuild @@ -0,0 +1,17 @@ +#!/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 --with-ssl --with-requests + make + make DESTDIR=$PKG_DEST install +} + +package () { + ln -s /usr/bin/python3 $PKG_DEST/usr/bin/python + ln -s /usr/bin/pip3 $PKG_DEST/usr/bin/pip +} diff --git a/repo/system/readline.xibuild b/repo/system/readline.xibuild new file mode 100644 index 0000000..8b47463 --- /dev/null +++ b/repo/system/readline.xibuild @@ -0,0 +1,23 @@ +#!/bin/bash + +DEPS=(glibc ncurses) + +SOURCE=https://ftp.gnu.org/gnu/readline/readline-8.1.tar.gz +DESC="a set of libraries that offer command line editing and history capabilities" + + +build () { + sed -i '/MV.*old/d' Makefile.in + sed -i '/{OLDSUFF}/c:' support/shlib-install + + ./configure --prefix=/usr \ + --disable-static \ + --with-curses \ + --docdir=/usr/share/doc/readline-8.1 + + make SHLIB_LIBS="-lncursesw" + make SHLIB_LIBS="-lncursesw" DESTDIR=$PKG_DEST install + + install -v -m644 doc/*.{ps,pdf,html,dvi} $PKG_DEST/usr/share/doc/readline-8.1 +} + diff --git a/repo/system/rtmpdump.xibuild b/repo/system/rtmpdump.xibuild new file mode 100644 index 0000000..35197b1 --- /dev/null +++ b/repo/system/rtmpdump.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(glibc gnutls zlib) + +SOURCE=git://git.ffmpeg.org/rtmpdump +BRANCH="fa8646d" +DESC="Tool to download rtmp streams" + +build () { + sed -e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' -e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' -i Makefile -i librtmp/Makefile + + make SYS=posix + make \ + prefix='/usr' \ + sbindir='/usr/bin' \ + mandir='/usr/share/man' \ + DESTDIR=$PKG_DEST install +} diff --git a/repo/system/sed.xibuild b/repo/system/sed.xibuild new file mode 100644 index 0000000..0384f6c --- /dev/null +++ b/repo/system/sed.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc acl attr) + +SOURCE=https://ftp.gnu.org/gnu/sed/sed-4.8.tar.xz +DESC="GNU stream editor" + +build () { + ./configure --prefix=/usr + make + make html +} + +package () { + make DESTDIR=$PKG_DEST install + + install -d -m755 $PKG_DEST/usr/share/doc/sed-4.8 + install -m644 doc/sed.html $PKG_DEST/usr/share/doc/sed-4.8 +} diff --git a/repo/system/shadow.xibuild b/repo/system/shadow.xibuild new file mode 100644 index 0000000..6af5cbb --- /dev/null +++ b/repo/system/shadow.xibuild @@ -0,0 +1,40 @@ +#!/bin/bash + +DEPS=(pam acl audit libcap libxcrypt) + +SOURCE=https://github.com/shadow-maint/shadow/releases/download/v4.10/shadow-4.10.tar.xz +DESC="Password and account management tool suite with support for shadow files and PAM" + +build () { + + curl https://www.linuxfromscratch.org/patches/lfs/development/shadow-4.10-useradd_segfault-1.patch > shadow-4.10-useradd_segfault-1.patch + patch -Np1 -i shadow-4.10-useradd_segfault-1.patch + + + sed -i 's/groups$(EXEEXT) //' src/Makefile.in + find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; + find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; + find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; + + sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ + -e 's:/var/spool/mail:/var/mail:' \ + -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \ + -i etc/login.defs + + sed -e "224s/rounds/min_rounds/" -i libmisc/salt.c + + mkdir -p $PKG_DEST/usr/bin + touch $PKG_DEST/usr/bin/passwd + ./configure --sysconfdir=/etc --with-group-name-max-length=32 + + make + + make exec_prefix=/usr DESTDIR=$PKG_DEST install + + make DESTDIR=$PKG_DEST -C man install-man + +} + +package () { + mkdir -p $PKG_DEST/etc/default +} diff --git a/repo/system/sysklogd.xibuild b/repo/system/sysklogd.xibuild new file mode 100644 index 0000000..44e59ce --- /dev/null +++ b/repo/system/sysklogd.xibuild @@ -0,0 +1,11 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/troglobit/sysklogd/releases/download/v2.3.0/sysklogd-2.3.0.tar.gz +DESC="Programs for logging system messages" + +build () { + ./configure && make + make DESTDIR=$PKG_DEST install +} diff --git a/repo/system/sysvinit.xibuild b/repo/system/sysvinit.xibuild new file mode 100644 index 0000000..a6d4d97 --- /dev/null +++ b/repo/system/sysvinit.xibuild @@ -0,0 +1,14 @@ +#!/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 () { + curl https://www.linuxfromscratch.org/patches/lfs/development/sysvinit-3.01-consolidated-1.patch > sysvinit-3.0.1-consolidated-1.patch + patch -Np1 -i ysvinit-3.01-consolidated-1.patch + + make + make ROOT=$PKG_DEST install +} diff --git a/repo/system/tar.xibuild b/repo/system/tar.xibuild new file mode 100644 index 0000000..5e8074f --- /dev/null +++ b/repo/system/tar.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://ftp.gnu.org/gnu/tar/tar-1.34.tar.xz +DESC="Utility used to store, backup and transport files" + +build () { + FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/system/tcl.xibuild b/repo/system/tcl.xibuild new file mode 100644 index 0000000..f9bebaa --- /dev/null +++ b/repo/system/tcl.xibuild @@ -0,0 +1,50 @@ +#!/bin/bash + +DEPS=(zlib) + +SOURCE=https://github.com/tcltk/tcl/archive/refs/tags/core-8-6-11.tar.gz +DESC="the Tool Command language, a robust general purpose scripting language" + + +build () { + SRCDIR=$(pwd) + cd unix + ./configure --prefix=/usr --mandir=/usr/share/man $([ "$(uname -m)" = x86_64 ] && echo --enable-64bit) + + make + + sed -e "s|$SRCDIR/unix|/usr/lib|" \ + -e "s|$SRCDIR|/usr/include|" \ + -i tclConfig.sh + + sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.2|/usr/lib/tdbc1.1.2|" \ + -e "s|$SRCDIR/pkgs/tdbc1.1.2/generic|/usr/include|" \ + -e "s|$SRCDIR/pkgs/tdbc1.1.2/library|/usr/lib/tcl8.6|" \ + -e "s|$SRCDIR/pkgs/tdbc1.1.2|/usr/include|" \ + -i pkgs/tdbc1.1.2/tdbcConfig.sh + + sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.1|/usr/lib/itcl4.2.1|" \ + -e "s|$SRCDIR/pkgs/itcl4.2.1/generic|/usr/include|" \ + -e "s|$SRCDIR/pkgs/itcl4.2.1|/usr/include|" \ + -i pkgs/itcl4.2.1/itclConfig.sh + + unset SRCDIR + + make test + +} + +package () { + make DESTDIR=$PKG_DEST install + + chmod -v u+w $PKG_DEST/usr/lib/libtcl8.6.so + + make DESTDIR=$PKG_DEST install-private-headers + + ln $PKG_DEST/usr/bin/tclsh* $PKG_DEST/usr/bin/tclsh + cp -f tclsh9 $PKG_DEST/usr/bin/tclsh + mv $PKG_DEST/usr/share/man/man3/{Thread,Tcl_Thread}.3 + +} + + diff --git a/repo/system/xxhash.xibuild b/repo/system/xxhash.xibuild new file mode 100644 index 0000000..1b8fe5a --- /dev/null +++ b/repo/system/xxhash.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(sh) + +SOURCE=https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.1.tar.gz +DESC="xxHash is an Extremely fast Hash algorithm" + + +build () { + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/system/xz.xibuild b/repo/system/xz.xibuild new file mode 100644 index 0000000..5748c65 --- /dev/null +++ b/repo/system/xz.xibuild @@ -0,0 +1,17 @@ +#!/bin/bash + +DEPS=(sh) + +SOURCE=https://git.tukaani.org/xz.git +BRANCH=v5.2.5 +DESC="a selection of programs for compressing and decompressing files with the lzma and xz compression formats" + + +build () { + ./autogen.sh + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/xz-5.2.5 + make + make check + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/system/zip.xibuild b/repo/system/zip.xibuild new file mode 100644 index 0000000..87bb35e --- /dev/null +++ b/repo/system/zip.xibuild @@ -0,0 +1,11 @@ +#!/bin/bash + +DEPS=(glibc bzip2) + +SOURCE=https://downloads.sourceforge.net/infozip/zip30.tar.gz +DESC="Compressor/archiver for creating and modifying zipfiles" + +build () { + make -f unix/Makefile generic_gcc + make -f unix/Makefile prefix=$PKG_DEST/usr install +} diff --git a/repo/system/zlib.xibuild b/repo/system/zlib.xibuild new file mode 100644 index 0000000..9402a1d --- /dev/null +++ b/repo/system/zlib.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/madler/zlib/archive/refs/tags/v1.2.11.tar.gz +DESC="compression and decompression routines used by some programs" + + +build () { + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG_DEST install +} + +package () { + # Remove a useless static library (lfs recommended) + rm -fv $PKG_DEST/usr/lib/libz.a +} + diff --git a/repo/system/zstd.xibuild b/repo/system/zstd.xibuild new file mode 100644 index 0000000..40a7a5a --- /dev/null +++ b/repo/system/zstd.xibuild @@ -0,0 +1,14 @@ +#!/bin/bash + +DEPS=(glibc gcc-libs zlib xz lz4) + +SOURCE=https://github.com/facebook/zstd/releases/download/v1.5.1/zstd-1.5.1.tar.gz +DESC="the Zstandard real-time compression algorithm" + +build () { + make + + # fix these tests to work + #make check + make prefix=$PKG_DEST/usr install +} -- cgit v1.2.1