diff options
author | davidovski <david@davidovski.xyz> | 2021-10-06 09:03:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-10-06 09:03:02 +0100 |
commit | d4cb1386d79c95e7586e7bccad5b0f6c7861cfe8 (patch) | |
tree | faf7ff136ab50bdcf34f2d0c02002192c1c8bc39 /xibuilds | |
parent | cdea2f67ae42d4220e19a555259b69a960925283 (diff) |
added tarcapabilities
Diffstat (limited to 'xibuilds')
-rw-r--r-- | xibuilds/acl.xibuild | 14 | ||||
-rw-r--r-- | xibuilds/attr.xibuild | 15 | ||||
-rw-r--r-- | xibuilds/bash.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/bc.xibuild | 2 | ||||
-rw-r--r-- | xibuilds/binutils.xibuild | 4 | ||||
-rw-r--r-- | xibuilds/bzip2.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/dejagnu.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/expect.xibuild | 2 | ||||
-rw-r--r-- | xibuilds/file.xibuild | 11 | ||||
-rw-r--r-- | xibuilds/flex.xibuild | 5 | ||||
-rw-r--r-- | xibuilds/gcc.xibuild | 11 | ||||
-rw-r--r-- | xibuilds/glibc.xibuild | 3 | ||||
-rw-r--r-- | xibuilds/gmp.xibuild | 11 | ||||
-rw-r--r-- | xibuilds/iana-etc.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/libcap.xibuild | 21 | ||||
-rw-r--r-- | xibuilds/m4.xibuild | 6 | ||||
-rw-r--r-- | xibuilds/mpc.xibuild | 18 | ||||
-rw-r--r-- | xibuilds/mpfr.xibuild | 18 | ||||
-rw-r--r-- | xibuilds/ncurses.xibuild | 34 | ||||
-rw-r--r-- | xibuilds/pkg-config.xibuild | 16 | ||||
-rw-r--r-- | xibuilds/readline.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/sed.xibuild | 19 | ||||
-rw-r--r-- | xibuilds/shadow.xibuild | 35 | ||||
-rw-r--r-- | xibuilds/tcl.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/xz.xibuild | 2 | ||||
-rw-r--r-- | xibuilds/zlib.xibuild | 1 | ||||
-rw-r--r-- | xibuilds/zstd.xibuild | 10 |
27 files changed, 230 insertions, 34 deletions
diff --git a/xibuilds/acl.xibuild b/xibuilds/acl.xibuild new file mode 100644 index 0000000..7b86fe6 --- /dev/null +++ b/xibuilds/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/xibuilds/attr.xibuild b/xibuilds/attr.xibuild new file mode 100644 index 0000000..6aa9673 --- /dev/null +++ b/xibuilds/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/xibuilds/bash.xibuild b/xibuilds/bash.xibuild index b2a0156..ab6e11e 100644 --- a/xibuilds/bash.xibuild +++ b/xibuilds/bash.xibuild @@ -3,6 +3,7 @@ DEPS=(readline glibc ncurses) SOURCE=https://git.savannah.gnu.org/git/bash.git +DESC="The free Bourne Again Shell" build () { ./configure --without-bash-malloc --prefix=/usr diff --git a/xibuilds/bc.xibuild b/xibuilds/bc.xibuild index 989dc96..0d6da1c 100644 --- a/xibuilds/bc.xibuild +++ b/xibuilds/bc.xibuild @@ -3,7 +3,7 @@ DEPS=(readline) SOURCE=https://github.com/gavinhoward/bc - +DESC="An arbitrary precision numeric processing language" build () { CC=gcc ./configure --prefix=/usr -G -O3 diff --git a/xibuilds/binutils.xibuild b/xibuilds/binutils.xibuild index ea8caac..a8b0b4d 100644 --- a/xibuilds/binutils.xibuild +++ b/xibuilds/binutils.xibuild @@ -1,9 +1,9 @@ #!/bin/bash -DEPS=() +DEPS=(glib zlib elfutils) SOURCE=git://sourceware.org/git/binutils.git - +DESC="tools for handling object files" build () { ./configure --prefix=/usr --disable-nls --disable-werror diff --git a/xibuilds/bzip2.xibuild b/xibuilds/bzip2.xibuild index 726f0f7..d674a5d 100644 --- a/xibuilds/bzip2.xibuild +++ b/xibuilds/bzip2.xibuild @@ -3,6 +3,7 @@ DEPS=(glibc sh) SOURCE=git://sourceware.org/git/bzip2.git +DESC="a selection of programs for compressing and decompressing bzip2 files" build () { diff --git a/xibuilds/dejagnu.xibuild b/xibuilds/dejagnu.xibuild index ee09ef3..2e6acdc 100644 --- a/xibuilds/dejagnu.xibuild +++ b/xibuilds/dejagnu.xibuild @@ -3,6 +3,7 @@ DEPS=(sh expect) SOURCE=git://git.sv.gnu.org/dejagnu.git +DESC="a framework for running test suites on GNU tools" build () { diff --git a/xibuilds/expect.xibuild b/xibuilds/expect.xibuild index e2288a3..d2fed3c 100644 --- a/xibuilds/expect.xibuild +++ b/xibuilds/expect.xibuild @@ -3,7 +3,7 @@ DEPS=(tcl) SOURCE=https://github.com/aeruder/expect - +DESC="tools for automating interactive applications" build () { # note: --with-tcl, we might want to make a way to use the tcl that we've compiled in another package diff --git a/xibuilds/file.xibuild b/xibuilds/file.xibuild index 9141847..0e4da82 100644 --- a/xibuilds/file.xibuild +++ b/xibuilds/file.xibuild @@ -1,16 +1,11 @@ #!/bin/bash -DEPS=(glibc ) - -SOURCE=https://github.com/file/file +DEPS=(glibc zlib xz bzip2) +SOURCE=http://ftp.astron.com/pub/file/file-5.40.tar.gz +DESC="a utility for determining the type of a given file or files" build () { - # cheating - wget http://ftp.astron.com/pub/file/file-5.40.tar.gz - tar -zxf file-5.40.tar.gz - cd file-5.40 - ./configure --prefix=/usr make make check diff --git a/xibuilds/flex.xibuild b/xibuilds/flex.xibuild index 88d61a6..5502288 100644 --- a/xibuilds/flex.xibuild +++ b/xibuilds/flex.xibuild @@ -2,10 +2,11 @@ DEPS=(glibc m4 sh) -SOURCE=https://github.com/nlitsme/gnubc - +SOURCE=https://github.com/westes/flex +DESC="a utility for generating programs that recognize patterns in text" build () { + ./autogen.sh ./configure --prefix=/usr --docdir=/usr/share/doc/flex --disable-static make make check diff --git a/xibuilds/gcc.xibuild b/xibuilds/gcc.xibuild index 3edb513..f72f02b 100644 --- a/xibuilds/gcc.xibuild +++ b/xibuilds/gcc.xibuild @@ -2,10 +2,19 @@ DEPS=(glibc) -SOURCE=git://gcc.gnu.org/git/gcc.git +SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz build () { + case $(uname -m) in + x86_64) + sed -e '/m64=/s/lib64/lib/' \ + -i.orig gcc/config/i386/t-linux64 + ;; +esac + + + mkdir -v build cd build ../configure --prefix=/usr --disable-multilib --disable-bootstrap diff --git a/xibuilds/glibc.xibuild b/xibuilds/glibc.xibuild index 5b111bd..cc943de 100644 --- a/xibuilds/glibc.xibuild +++ b/xibuilds/glibc.xibuild @@ -2,7 +2,8 @@ DEPS=(glibc) -SOURCE=https://sourceware.org/git/glibc.git +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 diff --git a/xibuilds/gmp.xibuild b/xibuilds/gmp.xibuild index 4a62d77..9161a73 100644 --- a/xibuilds/gmp.xibuild +++ b/xibuilds/gmp.xibuild @@ -2,10 +2,11 @@ DEPS=(gcc-libs sh) -SOURCE=https://github.com/ryepdx/gmp - +SOURCE=https://gmplib.org/download/gmp/gmp-6.2.1.tar.lz +DESC="a collection of mathematical libraries" build () { + ./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp make @@ -17,9 +18,3 @@ build () { make DESTDIR=$PKG_DEST install make DESTDIR=$PKG_DEST install-html } - -package () { - ln -sv $PKG_DEST/usr/bin/flex $PKG_DEST/usr/bin/lex -} - - diff --git a/xibuilds/iana-etc.xibuild b/xibuilds/iana-etc.xibuild index 6466472..be9b261 100644 --- a/xibuilds/iana-etc.xibuild +++ b/xibuilds/iana-etc.xibuild @@ -3,6 +3,7 @@ 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 diff --git a/xibuilds/libcap.xibuild b/xibuilds/libcap.xibuild new file mode 100644 index 0000000..9e3ec76 --- /dev/null +++ b/xibuilds/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.59.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/xibuilds/m4.xibuild b/xibuilds/m4.xibuild index f28ec33..9a311a5 100644 --- a/xibuilds/m4.xibuild +++ b/xibuilds/m4.xibuild @@ -3,12 +3,14 @@ DEPS=(glibc bash) SOURCE=git://git.sv.gnu.org/m4 +DESC="the gnu m4 macro processor" build () { + git checkout branch-1.4 + ./bootstrap + ./configure --prefix=/usr make - make check make DESTDIR=$PKG_DEST install } - diff --git a/xibuilds/mpc.xibuild b/xibuilds/mpc.xibuild new file mode 100644 index 0000000..d242a83 --- /dev/null +++ b/xibuilds/mpc.xibuild @@ -0,0 +1,18 @@ +#!/bin/bash + +DEPS=(mpfr) + +SOURCE=http://www.multiprecision.org/downloads/mpc-1.2.0.tar.gz +DESC="Library for the arithmetic of complex numbers with arbitrarily high precision" + +build () { + ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/mpc-1.2.0 + + make + make html + + make check + + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} diff --git a/xibuilds/mpfr.xibuild b/xibuilds/mpfr.xibuild new file mode 100644 index 0000000..4895dc9 --- /dev/null +++ b/xibuilds/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/xibuilds/ncurses.xibuild b/xibuilds/ncurses.xibuild new file mode 100644 index 0000000..064fe07 --- /dev/null +++ b/xibuilds/ncurses.xibuild @@ -0,0 +1,34 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://invisible-mirror.net/archives/ncurses/ncurses-6.2.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 + rm -vf /usr/lib/libcursesw.so + done + + echo "INPUT(-lncursesw)" > $PKG_DEST/usr/lib/libcursesw.so + ln -sfv libncurses.so $PKG_DEST/usr/lib/libcurses.so + + + rm -fv $PKG_DEST/usr/lib/libncurses++w.a + + mkdir -v $PKG_DEST/usr/share/doc/ncurses-6.2 + cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.2 +} diff --git a/xibuilds/pkg-config.xibuild b/xibuilds/pkg-config.xibuild new file mode 100644 index 0000000..0b5de5a --- /dev/null +++ b/xibuilds/pkg-config.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc) +SOURCE=https://gitlab.freedesktop.org/pkg-config/pkg-config + +DESC="a tool for passing the include path to build tools during configure and make phases of package installations" + +build () { + ./autogen.sh + ./configure --prefix=/usr --disable-host-tool --docdir=/usr/share/doc/pkg-config + + make + make check + + make DESTDIR=$PKG_DEST install +} diff --git a/xibuilds/readline.xibuild b/xibuilds/readline.xibuild index 2721677..844b109 100644 --- a/xibuilds/readline.xibuild +++ b/xibuilds/readline.xibuild @@ -3,6 +3,7 @@ DEPS=(glibc ncurses) SOURCE=https://git.savannah.gnu.org/git/readline.git +DESC="a set of libraries that offer command line editing and history capabilities" build () { diff --git a/xibuilds/sed.xibuild b/xibuilds/sed.xibuild new file mode 100644 index 0000000..087620e --- /dev/null +++ b/xibuilds/sed.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(glibc acl attr) + +SOURCE=https://www.gnu.org/software/sed/ +DESC="GNU stream editor" + +build () { + ./configure --prefix=/usr + make + make html + + make DESTDIR=$PKG_DEST install +} + +package () { + 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/xibuilds/shadow.xibuild b/xibuilds/shadow.xibuild new file mode 100644 index 0000000..ed786d4 --- /dev/null +++ b/xibuilds/shadow.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(pam acl audit libcap libxcrypt) + +SOURCE=https://github.com/shadow-maint/shadow +DESC="Password and account management tool suite with support for shadow files and PAM" + +build () { + 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:@@}' \ + + 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/xibuilds/tcl.xibuild b/xibuilds/tcl.xibuild index 16442f4..d5d0f7e 100644 --- a/xibuilds/tcl.xibuild +++ b/xibuilds/tcl.xibuild @@ -3,6 +3,7 @@ DEPS=(zlib) SOURCE=https://github.com/tcltk/tcl +DESC="the Tool Command language, a robust general purpose scripting language" build () { diff --git a/xibuilds/xz.xibuild b/xibuilds/xz.xibuild index e17f53b..d57d72a 100644 --- a/xibuilds/xz.xibuild +++ b/xibuilds/xz.xibuild @@ -3,9 +3,11 @@ DEPS=(sh) SOURCE=https://git.tukaani.org/xz.git +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=$PKG_DEST/usr/share/doc/xz-5.2.5 make make check diff --git a/xibuilds/zlib.xibuild b/xibuilds/zlib.xibuild index c771727..426fdfe 100644 --- a/xibuilds/zlib.xibuild +++ b/xibuilds/zlib.xibuild @@ -3,6 +3,7 @@ DEPS=(glibc) SOURCE=https://github.com/madler/zlib +DESC="compression and decompression routines used by some programs" build () { diff --git a/xibuilds/zstd.xibuild b/xibuilds/zstd.xibuild index 63ba9af..9e90fd7 100644 --- a/xibuilds/zstd.xibuild +++ b/xibuilds/zstd.xibuild @@ -2,17 +2,11 @@ DEPS=(glibc gcc-libs zlib xz lz4) -SOURCE=https://github.com - +SOURCE=https://github.com/facebook/zstd +DESC="the Zstandard real-time compression algorithm" build () { make make prefix=/usr check make DESTDIR=$PKG_DEST install } - -package () { - # Remove a useless static library (lfs recommended) - rm -v $PKG_DEST/usr/lib/libzstd.a -} - |