From 0a31fc2a959ea1230d07cfd837f5a9a945a7f80a Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 6 Oct 2021 17:19:20 +0100 Subject: Initial commit, added core packages --- repo/core/acl.xibuild | 14 ++++++++ repo/core/attr.xibuild | 15 +++++++++ repo/core/bash.xibuild | 13 ++++++++ repo/core/bc.xibuild | 15 +++++++++ repo/core/binutils.xibuild | 13 ++++++++ repo/core/bison.xibuild | 13 ++++++++ repo/core/bzip2.xibuild | 38 +++++++++++++++++++++ repo/core/dejagnu.xibuild | 24 ++++++++++++++ repo/core/expect.xibuild | 20 +++++++++++ repo/core/file.xibuild | 15 +++++++++ repo/core/flex.xibuild | 20 +++++++++++ repo/core/gcc.xibuild | 24 ++++++++++++++ repo/core/gettext.xibuild | 17 ++++++++++ repo/core/glibc.xibuild | 79 ++++++++++++++++++++++++++++++++++++++++++++ repo/core/gmp.xibuild | 20 +++++++++++ repo/core/grep.xibuild | 13 ++++++++ repo/core/iana-etc.xibuild | 17 ++++++++++ repo/core/libcap.xibuild | 21 ++++++++++++ repo/core/libtool.xibuild | 18 ++++++++++ repo/core/m4.xibuild | 16 +++++++++ repo/core/mpc.xibuild | 18 ++++++++++ repo/core/mpfr.xibuild | 18 ++++++++++ repo/core/ncurses.xibuild | 33 ++++++++++++++++++ repo/core/pkg-config.xibuild | 16 +++++++++ repo/core/psmisc.xibuild | 19 +++++++++++ repo/core/readline.xibuild | 20 +++++++++++ repo/core/sed.xibuild | 19 +++++++++++ repo/core/shadow.xibuild | 35 ++++++++++++++++++++ repo/core/tar.xibuild | 13 ++++++++ repo/core/tcl.xibuild | 29 ++++++++++++++++ repo/core/xz.xibuild | 16 +++++++++ repo/core/zlib.xibuild | 20 +++++++++++ repo/core/zstd.xibuild | 12 +++++++ repo/extra/xibuild.xibuild | 12 +++++++ 34 files changed, 705 insertions(+) create mode 100644 repo/core/acl.xibuild create mode 100644 repo/core/attr.xibuild create mode 100644 repo/core/bash.xibuild create mode 100644 repo/core/bc.xibuild create mode 100644 repo/core/binutils.xibuild create mode 100644 repo/core/bison.xibuild create mode 100644 repo/core/bzip2.xibuild create mode 100644 repo/core/dejagnu.xibuild create mode 100644 repo/core/expect.xibuild create mode 100644 repo/core/file.xibuild create mode 100644 repo/core/flex.xibuild create mode 100644 repo/core/gcc.xibuild create mode 100644 repo/core/gettext.xibuild create mode 100644 repo/core/glibc.xibuild create mode 100644 repo/core/gmp.xibuild create mode 100644 repo/core/grep.xibuild create mode 100644 repo/core/iana-etc.xibuild create mode 100644 repo/core/libcap.xibuild create mode 100644 repo/core/libtool.xibuild create mode 100644 repo/core/m4.xibuild create mode 100644 repo/core/mpc.xibuild create mode 100644 repo/core/mpfr.xibuild create mode 100644 repo/core/ncurses.xibuild create mode 100644 repo/core/pkg-config.xibuild create mode 100644 repo/core/psmisc.xibuild create mode 100644 repo/core/readline.xibuild create mode 100644 repo/core/sed.xibuild create mode 100644 repo/core/shadow.xibuild create mode 100644 repo/core/tar.xibuild create mode 100644 repo/core/tcl.xibuild create mode 100644 repo/core/xz.xibuild create mode 100644 repo/core/zlib.xibuild create mode 100644 repo/core/zstd.xibuild create mode 100644 repo/extra/xibuild.xibuild (limited to 'repo') diff --git a/repo/core/acl.xibuild b/repo/core/acl.xibuild new file mode 100644 index 0000000..7b86fe6 --- /dev/null +++ b/repo/core/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/core/attr.xibuild b/repo/core/attr.xibuild new file mode 100644 index 0000000..6aa9673 --- /dev/null +++ b/repo/core/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/core/bash.xibuild b/repo/core/bash.xibuild new file mode 100644 index 0000000..ab6e11e --- /dev/null +++ b/repo/core/bash.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +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 + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/core/bc.xibuild b/repo/core/bc.xibuild new file mode 100644 index 0000000..0d6da1c --- /dev/null +++ b/repo/core/bc.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +DEPS=(readline) + +SOURCE=https://github.com/gavinhoward/bc +DESC="An arbitrary precision numeric processing language" + +build () { + CC=gcc ./configure --prefix=/usr -G -O3 + make + make test + make DESTDIR=$PKG_DEST install +} + + diff --git a/repo/core/binutils.xibuild b/repo/core/binutils.xibuild new file mode 100644 index 0000000..a8b0b4d --- /dev/null +++ b/repo/core/binutils.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +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 + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/core/bison.xibuild b/repo/core/bison.xibuild new file mode 100644 index 0000000..194e7c7 --- /dev/null +++ b/repo/core/bison.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(glibc m4 sh) + +SOURCE=https://ftp.gnu.org/gnu/bison/bison-3.8.tar.xz +DESC="The GNU general-purpose parser generator" + +build () { + ./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.8 + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/bzip2.xibuild b/repo/core/bzip2.xibuild new file mode 100644 index 0000000..d674a5d --- /dev/null +++ b/repo/core/bzip2.xibuild @@ -0,0 +1,38 @@ +#!/bin/bash + +DEPS=(glibc sh) + +SOURCE=git://sourceware.org/git/bzip2.git +DESC="a selection of programs for compressing and decompressing bzip2 files" + + +build () { + + # ensure symbolic links are relative + sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' 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 + cp -afv bzip2 $i + done + + # remove a useless static library + cp -v bzip2-shared $PKG_DEST/usr/bin/bzip2 + for i in $PKG_DEST/usr/bin/{bzcat,bunzip2}; do + ln -sfv bzip2 $i + done +} + diff --git a/repo/core/dejagnu.xibuild b/repo/core/dejagnu.xibuild new file mode 100644 index 0000000..2e6acdc --- /dev/null +++ b/repo/core/dejagnu.xibuild @@ -0,0 +1,24 @@ +#!/bin/bash + +DEPS=(sh expect) + +SOURCE=git://git.sv.gnu.org/dejagnu.git +DESC="a framework for running test suites on GNU tools" + + +build () { + mkdir -v build + cd build + + ../configure --prefix=/usr + + makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi + makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi + + make DESTDIR=$PKG_DEST install + + install -v -dm755 $PKG_DEST/usr/share/doc/dejagnu-1.6.3 + install -v -m644 doc/dejagnu.{html,txt} $PKG_DEST/usr/share/doc/dejagnu-1.6.3 +} + + diff --git a/repo/core/expect.xibuild b/repo/core/expect.xibuild new file mode 100644 index 0000000..d2fed3c --- /dev/null +++ b/repo/core/expect.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +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 + ./configure --prefix=/usr --with-tcl=/usr/lib --enable-shared --mandir=/usr/share/man --with-tclinclude=/usr/include + make + make test + make DESTDIR=$PKG_DEST install +} + +package () { + cp libexpect*.so $PKG_DEST/usr/lib +} + + diff --git a/repo/core/file.xibuild b/repo/core/file.xibuild new file mode 100644 index 0000000..0e4da82 --- /dev/null +++ b/repo/core/file.xibuild @@ -0,0 +1,15 @@ +#!/bin/bash + +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 () { + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG_DEST install +} + + diff --git a/repo/core/flex.xibuild b/repo/core/flex.xibuild new file mode 100644 index 0000000..5502288 --- /dev/null +++ b/repo/core/flex.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=(glibc m4 sh) + +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 + make DESTDIR=$PKG_DEST install +} + +package () { + ln -sv $PKG_DEST/usr/bin/flex $PKG_DEST/usr/bin/lex +} + + diff --git a/repo/core/gcc.xibuild b/repo/core/gcc.xibuild new file mode 100644 index 0000000..f72f02b --- /dev/null +++ b/repo/core/gcc.xibuild @@ -0,0 +1,24 @@ +#!/bin/bash + +DEPS=(glibc) + +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 + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/core/gettext.xibuild b/repo/core/gettext.xibuild new file mode 100644 index 0000000..b1f27c3 --- /dev/null +++ b/repo/core/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 + make DESTDIR=$PKG_DEST install +} + +package () { + chmod -v 0755 $PKG_DEST/usr/lib/preloadable_libintl.so +} diff --git a/repo/core/glibc.xibuild b/repo/core/glibc.xibuild new file mode 100644 index 0000000..cc943de --- /dev/null +++ b/repo/core/glibc.xibuild @@ -0,0 +1,79 @@ +#!/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 + + 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 + make check + + 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 +} + +package () { + 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 + + wget https://mirrors.slackware.com/slackware/slackware64-current/source/a/glibc-zoneinfo/tzdata2021a.tar.gz + + tar -xf tzdata2021a.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 the dynamic loader + + cat > $PKG_DEST/etc/ld.so.conf << "EOF" +# Begin /etc/ld.so.conf +/usr/local/lib +/opt/lib +EOF +} + diff --git a/repo/core/gmp.xibuild b/repo/core/gmp.xibuild new file mode 100644 index 0000000..9161a73 --- /dev/null +++ b/repo/core/gmp.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=(gcc-libs sh) + +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 + make html + + make check 2>&1 | tee gmp-check-log + awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log + + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-html +} diff --git a/repo/core/grep.xibuild b/repo/core/grep.xibuild new file mode 100644 index 0000000..aab9964 --- /dev/null +++ b/repo/core/grep.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(glibc pcre) + +SOURCE=https://ftp.gnu.org/gnu/grep/grep-3.7.tar.xz +DESC="A string search utility" + +build () { + ./configure --prefix=/usr --bindir=/bin + make + make check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/iana-etc.xibuild b/repo/core/iana-etc.xibuild new file mode 100644 index 0000000..be9b261 --- /dev/null +++ b/repo/core/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/core/libcap.xibuild b/repo/core/libcap.xibuild new file mode 100644 index 0000000..9e3ec76 --- /dev/null +++ b/repo/core/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/repo/core/libtool.xibuild b/repo/core/libtool.xibuild new file mode 100644 index 0000000..3e41c00 --- /dev/null +++ b/repo/core/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/core/m4.xibuild b/repo/core/m4.xibuild new file mode 100644 index 0000000..9a311a5 --- /dev/null +++ b/repo/core/m4.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +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 DESTDIR=$PKG_DEST install +} diff --git a/repo/core/mpc.xibuild b/repo/core/mpc.xibuild new file mode 100644 index 0000000..d242a83 --- /dev/null +++ b/repo/core/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/repo/core/mpfr.xibuild b/repo/core/mpfr.xibuild new file mode 100644 index 0000000..4895dc9 --- /dev/null +++ b/repo/core/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/core/ncurses.xibuild b/repo/core/ncurses.xibuild new file mode 100644 index 0000000..1becdb9 --- /dev/null +++ b/repo/core/ncurses.xibuild @@ -0,0 +1,33 @@ +#!/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 -pv $PKG_DEST/usr/share/doc/ncurses-6.2 + cp -v -R doc/* $PKG_DEST/usr/share/doc/ncurses-6.2 +} diff --git a/repo/core/pkg-config.xibuild b/repo/core/pkg-config.xibuild new file mode 100644 index 0000000..2d4609e --- /dev/null +++ b/repo/core/pkg-config.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPS=(glibc) +SOURCE=https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz + +DESC="a tool for passing the include path to build tools during configure and make phases of package installations" + +build () { + ./configure --help + ./configure --prefix=/usr --disable-host-tool --mandir=/usr/share/doc/pkg-config + + make + make check + + make DESTDIR=$PKG_DEST install +} diff --git a/repo/core/psmisc.xibuild b/repo/core/psmisc.xibuild new file mode 100644 index 0000000..110137d --- /dev/null +++ b/repo/core/psmisc.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +DEPS=(ncurses) + +SOURCE=https://gitlab.com/psmisc/psmisc.git +DESC="Miscellaneous procfs tools" + +build () { + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + +package () { + mkdir -vp $PKG_DEST/bin + mv -v $PKG_DEST/usr/bin/fuser $PKG_DEST/bin + mv -v $PKG_DEST/usr/bin/killall $PKG_DEST/bin +} diff --git a/repo/core/readline.xibuild b/repo/core/readline.xibuild new file mode 100644 index 0000000..844b109 --- /dev/null +++ b/repo/core/readline.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +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 () { + ./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/core/sed.xibuild b/repo/core/sed.xibuild new file mode 100644 index 0000000..d68d586 --- /dev/null +++ b/repo/core/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 + + 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/repo/core/shadow.xibuild b/repo/core/shadow.xibuild new file mode 100644 index 0000000..55d847f --- /dev/null +++ b/repo/core/shadow.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(pam acl audit libcap libxcrypt) + +SOURCE=https://github.com/shadow-maint/shadow/releases/download/v4.9/shadow-4.9.tar.xz +DESC="Password and account management tool suite with support for shadow files and PAM" + +build () { + echo "building" + 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/repo/core/tar.xibuild b/repo/core/tar.xibuild new file mode 100644 index 0000000..829d6d2 --- /dev/null +++ b/repo/core/tar.xibuild @@ -0,0 +1,13 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://git.savannah.gnu.org/git/tar.git + +build () { + ./bootstrap + ./configure --prefix=/usr + make + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/core/tcl.xibuild b/repo/core/tcl.xibuild new file mode 100644 index 0000000..d5d0f7e --- /dev/null +++ b/repo/core/tcl.xibuild @@ -0,0 +1,29 @@ +#!/bin/bash + +DEPS=(zlib) + +SOURCE=https://github.com/tcltk/tcl +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 test + + make DESTDIR=$PKG_DEST install + + chmod -v u+w $PKG_DEST/usr/lib/libtcl8.6.so + + make DESTDIR=$PKG_DEST install-private-headers +} + +package () { + cp -f tclsh8.6 $PKG_DEST/usr/bin/tclsh + mv $PKG_DEST/usr/share/man/man3/{Thread,Tcl_Thread}.3 + +} + + diff --git a/repo/core/xz.xibuild b/repo/core/xz.xibuild new file mode 100644 index 0000000..d57d72a --- /dev/null +++ b/repo/core/xz.xibuild @@ -0,0 +1,16 @@ +#!/bin/bash + +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 + make DESTDIR=$PKG_DEST install +} + diff --git a/repo/core/zlib.xibuild b/repo/core/zlib.xibuild new file mode 100644 index 0000000..426fdfe --- /dev/null +++ b/repo/core/zlib.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +DEPS=(glibc) + +SOURCE=https://github.com/madler/zlib +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/core/zstd.xibuild b/repo/core/zstd.xibuild new file mode 100644 index 0000000..9e90fd7 --- /dev/null +++ b/repo/core/zstd.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(glibc gcc-libs zlib xz lz4) + +SOURCE=https://github.com/facebook/zstd +DESC="the Zstandard real-time compression algorithm" + +build () { + make + make prefix=/usr check + make DESTDIR=$PKG_DEST install +} diff --git a/repo/extra/xibuild.xibuild b/repo/extra/xibuild.xibuild new file mode 100644 index 0000000..29e0eef --- /dev/null +++ b/repo/extra/xibuild.xibuild @@ -0,0 +1,12 @@ +#!/bin/bash + +DEPS=(bash tar) + +SOURCE=https://git.davidovski.xyz/xibuild.git + +package () { + mkdir -pv $PKG_DEST/usr/bin + cp -v xibuild $PKG_DEST/usr/bin/ + cp xibuild $PKG_DEST/usr/bin/ +} + -- cgit v1.2.1