summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
Diffstat (limited to 'repo')
-rw-r--r--repo/devel/asciidoc.xibuild5
-rw-r--r--repo/devel/autoconf.xibuild9
-rw-r--r--repo/devel/automake.xibuild11
-rw-r--r--repo/devel/bc.xibuild11
-rw-r--r--repo/devel/bison.xibuild6
-rw-r--r--repo/devel/check.xibuild6
-rw-r--r--repo/devel/cmake.xibuild6
-rw-r--r--repo/devel/dejagnu.xibuild9
-rw-r--r--repo/devel/distcc.xibuild3
-rw-r--r--repo/devel/expect.xibuild8
-rw-r--r--repo/devel/flex.xibuild8
-rw-r--r--repo/devel/gcc.xibuild12
-rw-r--r--repo/devel/git.xibuild8
-rw-r--r--repo/devel/help2man.xibuild7
-rw-r--r--repo/devel/m4.xibuild9
-rw-r--r--repo/devel/make.xibuild6
-rw-r--r--repo/devel/meson.xibuild6
-rw-r--r--repo/devel/mpc.xibuild7
-rw-r--r--repo/devel/ninja.xibuild3
-rw-r--r--repo/devel/patch.xibuild6
-rw-r--r--repo/devel/pkg-config.xibuild11
-rw-r--r--repo/devel/texinfo.xibuild10
-rw-r--r--repo/devel/xmlto.xibuild6
-rw-r--r--repo/linux/linux-headers.xibuild3
-rw-r--r--repo/system/acl.xibuild3
-rw-r--r--repo/system/attr.xibuild8
-rw-r--r--repo/system/binutils.xibuild7
-rw-r--r--repo/system/brotli.xibuild4
-rw-r--r--repo/system/bzip2.xibuild9
-rw-r--r--repo/system/expat.xibuild5
-rw-r--r--repo/system/findutils.xibuild3
-rw-r--r--repo/system/gc.xibuild3
-rw-r--r--repo/system/gdbm.xibuild5
-rw-r--r--repo/system/gettext.xibuild3
-rw-r--r--repo/system/glibc.xibuild10
-rw-r--r--repo/system/gmp.xibuild8
-rw-r--r--repo/system/gnutls.xibuild3
-rw-r--r--repo/system/gperf.xibuild5
-rw-r--r--repo/system/grub.xibuild2
-rw-r--r--repo/system/guile.xibuild3
-rw-r--r--repo/system/gzip.xibuild3
-rw-r--r--repo/system/intltool.xibuild6
-rw-r--r--repo/system/kbd.xibuild8
-rw-r--r--repo/system/kmod.xibuild2
-rw-r--r--repo/system/krb5.xibuild7
-rw-r--r--repo/system/libarchive.xibuild5
-rw-r--r--repo/system/libcap.xibuild9
-rw-r--r--repo/system/libffi.xibuild3
-rw-r--r--repo/system/libiconv.xibuild3
-rw-r--r--repo/system/libidn.xibuild3
-rw-r--r--repo/system/libldap.xibuild3
-rw-r--r--repo/system/libnghttp.xibuild2
-rw-r--r--repo/system/libp11-kit.xibuild7
-rw-r--r--repo/system/libpipeline.xibuild3
-rw-r--r--repo/system/libpsl.xibuild8
-rw-r--r--repo/system/libsasl.xibuild7
-rw-r--r--repo/system/libseccomp.xibuild7
-rw-r--r--repo/system/libsigsegv.xibuild4
-rw-r--r--repo/system/libtasn1.xibuild4
-rw-r--r--repo/system/libtool.xibuild6
-rw-r--r--repo/system/libunistring.xibuild3
-rw-r--r--repo/system/libxcrypt.xibuild3
-rw-r--r--repo/system/libxml2.xibuild3
-rw-r--r--repo/system/libxslt.xibuild7
-rw-r--r--repo/system/lz4.xibuild2
-rw-r--r--repo/system/mpfr.xibuild4
-rw-r--r--repo/system/ncurses.xibuild2
-rw-r--r--repo/system/nettle.xibuild3
-rw-r--r--repo/system/nspr.xibuild8
-rw-r--r--repo/system/openssl.xibuild4
-rw-r--r--repo/system/pam.xibuild9
-rw-r--r--repo/system/pcre.xibuild4
-rw-r--r--repo/system/perl-xml-parser.xibuild6
-rw-r--r--repo/system/perl.xibuild10
-rw-r--r--repo/system/psmisc.xibuild3
-rw-r--r--repo/system/python-requests.xibuild2
-rw-r--r--repo/system/python.xibuild2
-rw-r--r--repo/system/readline.xibuild8
-rw-r--r--repo/system/rtmpdump.xibuild7
-rw-r--r--repo/system/shadow.xibuild14
-rw-r--r--repo/system/sysklogd.xibuild3
-rw-r--r--repo/system/sysvinit.xibuild8
-rw-r--r--repo/system/tar.xibuild3
-rw-r--r--repo/system/tcl.xibuild3
-rw-r--r--repo/system/xxhash.xibuild3
-rw-r--r--repo/system/xz.xibuild7
-rw-r--r--repo/system/zip.xibuild3
-rw-r--r--repo/system/zlib.xibuild5
-rw-r--r--repo/system/zstd.xibuild7
-rw-r--r--repo/util/bash.xibuild2
-rw-r--r--repo/util/curl.xibuild5
-rw-r--r--repo/util/diffutils.xibuild6
-rw-r--r--repo/util/e2fsprogs.xibuild6
-rw-r--r--repo/util/elfutils.xibuild6
-rw-r--r--repo/util/file.xibuild9
-rw-r--r--repo/util/gawk.xibuild6
-rw-r--r--repo/util/grep.xibuild9
-rw-r--r--repo/util/groff.xibuild6
-rw-r--r--repo/util/inetutils.xibuild6
-rw-r--r--repo/util/iproute2.xibuild3
-rw-r--r--repo/util/keyutils.xibuild6
-rw-r--r--repo/util/less.xibuild6
-rw-r--r--repo/util/make-ca.xibuild7
-rw-r--r--repo/util/man-db.xibuild9
-rw-r--r--repo/util/openssh.xibuild9
-rw-r--r--repo/util/procps-ng.xibuild11
-rw-r--r--repo/util/rsync.xibuild7
-rw-r--r--repo/util/util-linux.xibuild8
-rw-r--r--repo/util/vim.xibuild8
-rw-r--r--repo/util/which.xibuild7
110 files changed, 503 insertions, 142 deletions
diff --git a/repo/devel/asciidoc.xibuild b/repo/devel/asciidoc.xibuild
index 47b51a0..135dcb7 100644
--- a/repo/devel/asciidoc.xibuild
+++ b/repo/devel/asciidoc.xibuild
@@ -2,11 +2,10 @@
DEPS=(python libxslt docbook-xsl)
-SOURCE=https://github.com/asciidoc-py/asciidoc-py/releases/download/10.1.1/asciidoc-10.1.1.tar.gz
+PKG_VER=10.1.1
+SOURCE=https://github.com/asciidoc-py/asciidoc-py/releases/download/$PKG_VER/asciidoc-$PKG_VER.tar.gz
DESC="Text document format for short documents, articles, books and UNIX man pages"
-
-
package () {
pip install -t $PKG_DEST/usr/lib/python3.10/site-packages/ asciidoc
mkdir -pv $PKG_DEST/usr/bin
diff --git a/repo/devel/autoconf.xibuild b/repo/devel/autoconf.xibuild
index b61179f..8d355b5 100644
--- a/repo/devel/autoconf.xibuild
+++ b/repo/devel/autoconf.xibuild
@@ -2,12 +2,19 @@
DEPS=(awk m4 diffutils perl sh)
-SOURCE=https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.xz
+PKG_VER=2.71
+SOURCE=https://ftp.gnu.org/gnu/autoconf/autoconf-$PKG_VER.tar.xz
DESC="GNU programs for producing shell scripts that can automatically configure source code"
build () {
./configure --prefix=/usr --sysconfdir=/etc
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/automake.xibuild b/repo/devel/automake.xibuild
index f83fc62..2d65042 100644
--- a/repo/devel/automake.xibuild
+++ b/repo/devel/automake.xibuild
@@ -2,17 +2,22 @@
DEPS=(perl bash)
-SOURCE=https://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.xz
+PKG_VER=1.16.5
+SOURCE=https://ftp.gnu.org/gnu/automake/automake-$PKG_VER.tar.xz
DESC="A GNU tool for automatically creating Makefiles"
build () {
- ./configure --prefix=/usr -docdir=/usr/share/doc/automake-1.16.5
+ ./configure --prefix=/usr -docdir=/usr/share/doc/automake-$PKG_VER
make
+}
+
+check () {
make -j4 check
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
+
# backwards compatibility?
ln -s /usr/bin/aclocal $PKG_DEST/usr/bin/aclocal-1.15
}
diff --git a/repo/devel/bc.xibuild b/repo/devel/bc.xibuild
index 160b6f5..76231c6 100644
--- a/repo/devel/bc.xibuild
+++ b/repo/devel/bc.xibuild
@@ -2,14 +2,19 @@
DEPS=(readline)
-SOURCE=https://github.com/gavinhoward/bc/releases/download/5.2.1/bc-5.2.1.tar.xz
+PKG_VER=5.2.1
+SOURCE=https://github.com/gavinhoward/bc/releases/download/$PKG_VER/bc-$PKG_VER.tar.xz
DESC="An arbitrary precision numeric processing language"
build () {
CC=gcc ./configure --prefix=/usr -G -O3
make
- make test
- make DESTDIR=$PKG_DEST install
}
+check () {
+ make test
+}
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/devel/bison.xibuild b/repo/devel/bison.xibuild
index 60c231a..59c56f5 100644
--- a/repo/devel/bison.xibuild
+++ b/repo/devel/bison.xibuild
@@ -9,6 +9,12 @@ DESC="The GNU general-purpose parser generator"
build () {
./configure --prefix=/usr --docdir=/usr/share/doc/bison-$PKG_VER
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/check.xibuild b/repo/devel/check.xibuild
index a472872..c03e775 100644
--- a/repo/devel/check.xibuild
+++ b/repo/devel/check.xibuild
@@ -2,11 +2,15 @@
DEPS=(awk)
-SOURCE=https://github.com/libcheck/check/releases/download/0.15.2/check-0.15.2.tar.gz
+PKG_VER=0.15.2
+SOURCE=https://github.com/libcheck/check/releases/download/$PKG_VER/check-$PKG_VER.tar.gz
DESC="A unit testing framework for C"
build () {
./configure --prefix=/usr --disable-static
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/cmake.xibuild b/repo/devel/cmake.xibuild
index 1b9959e..10e4485 100644
--- a/repo/devel/cmake.xibuild
+++ b/repo/devel/cmake.xibuild
@@ -2,11 +2,15 @@
DEPS=(curl libarchive jsoncpp libuv rhash)
-SOURCE=https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1.tar.gz
+PKG_VER=3.22.1
+SOURCE=https://github.com/Kitware/CMake/releases/download/v$PKG_VER/cmake-$PKG_VER.tar.gz
DESC="A cross-platform open-source make system"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/dejagnu.xibuild b/repo/devel/dejagnu.xibuild
index 21a35a4..43c2002 100644
--- a/repo/devel/dejagnu.xibuild
+++ b/repo/devel/dejagnu.xibuild
@@ -2,7 +2,8 @@
DEPS=(sh expect)
-SOURCE=https://ftp.gnu.org/gnu/dejagnu/dejagnu-1.6.3.tar.gz
+PKG_VER=1.6.3
+SOURCE=https://ftp.gnu.org/gnu/dejagnu/dejagnu-$PKG_VER.tar.gz
DESC="a framework for running test suites on GNU tools"
build () {
@@ -13,11 +14,13 @@ build () {
makeinfo --html --no-split -o doc/dejagnu.html ../doc/dejagnu.texi
makeinfo --plaintext -o doc/dejagnu.txt ../doc/dejagnu.texi
+}
+package () {
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
+ install -v -dm755 $PKG_DEST/usr/share/doc/dejagnu-$PKG_VER
+ install -v -m644 doc/dejagnu.{html,txt} $PKG_DEST/usr/share/doc/dejagnu-$PKG_VER
}
diff --git a/repo/devel/distcc.xibuild b/repo/devel/distcc.xibuild
index 8d4039b..2011608 100644
--- a/repo/devel/distcc.xibuild
+++ b/repo/devel/distcc.xibuild
@@ -2,7 +2,8 @@
DEPS=(gcc python)
-SOURCE=https://github.com/distcc/distcc/releases/download/v3.4/distcc-3.4.tar.gz
+PKG_VER=3.4
+SOURCE=https://github.com/distcc/distcc/releases/download/v$PKG_VER/distcc-$PKG_VER.tar.gz
DESC="Distributed compiler for C, C++ and Objective-C"
diff --git a/repo/devel/expect.xibuild b/repo/devel/expect.xibuild
index cb5b6f6..084185c 100644
--- a/repo/devel/expect.xibuild
+++ b/repo/devel/expect.xibuild
@@ -2,18 +2,22 @@
DEPS=(tcl)
-SOURCE=https://sourceforge.net/projects/expect/files/Expect/5.45.4/expect5.45.4.tar.gz/download
+PKG_VER=5.45.4
+SOURCE=https://sourceforge.net/projects/expect/files/Expect/$PKG_VER/expect$PKG_VER.tar.gz/download
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
+}
+
+check () {
make test
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
cp libexpect*.so $PKG_DEST/usr/lib
}
diff --git a/repo/devel/flex.xibuild b/repo/devel/flex.xibuild
index f5291cc..bd7a96f 100644
--- a/repo/devel/flex.xibuild
+++ b/repo/devel/flex.xibuild
@@ -2,17 +2,21 @@
DEPS=(glibc m4 sh)
-SOURCE=https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
+PKG_VER=2.6.4
+SOURCE=https://github.com/westes/flex/releases/download/v$PKG_VER/flex-$PKG_VER.tar.gz
DESC="a utility for generating programs that recognize patterns in text"
build () {
./configure --prefix=/usr --docdir=/usr/share/doc/flex --disable-static
make
+}
+
+check () {
make check
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
ln -v /usr/bin/flex $PKG_DEST/usr/bin/lex
}
diff --git a/repo/devel/gcc.xibuild b/repo/devel/gcc.xibuild
index ab9830d..30a0698 100644
--- a/repo/devel/gcc.xibuild
+++ b/repo/devel/gcc.xibuild
@@ -2,12 +2,12 @@
DEPS=(glibc)
-SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz
+PKG_VER=11.2.0
+SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$PKG_VER/gcc-$PKG_VER.tar.xz
DESC="The GNU Compiler Collection - C and C++ frontends"
-
-build () {
+patch () {
#fix an issue breaking libasan.a
sed -e '/static.*SIGSTKSZ/d' \
@@ -20,8 +20,9 @@ build () {
-i.orig gcc/config/i386/t-linux64
;;
esac
+}
-
+build () {
mkdir -v build
cd build
@@ -33,7 +34,9 @@ build () {
--with-system-zlib
make
+}
+check () {
ulimit -s 32768
if id -u tester; then
@@ -41,7 +44,6 @@ build () {
su tester -c "PATH=$PATH make $MAKEFLAGS -k check"
../contrib/test_summary | grep -A7 Summ
fi
-
}
diff --git a/repo/devel/git.xibuild b/repo/devel/git.xibuild
index 7f8d277..b9c7665 100644
--- a/repo/devel/git.xibuild
+++ b/repo/devel/git.xibuild
@@ -2,7 +2,8 @@
DEPS=(curl perl openssl pcre2 grep shadow zlib)
-SOURCE=https://www.kernel.org/pub/software/scm/git/git-2.34.1.tar.xz
+PKG_VER=2.34.1
+SOURCE=https://www.kernel.org/pub/software/scm/git/git-$PKG_VER.tar.xz
DESC="The free and open source, distributed version control system"
build () {
@@ -10,8 +11,7 @@ build () {
--with-gitconfig=/etc/gitconfig \
--with-python=python3 &&
make
- #make man
+ make man
make perllibdir=/usr/lib/perl5/5.34/site_perl DESTDIR=$PKG_DEST install
- #make DESTDIR=$PKG_DEST install-man
-
+ make DESTDIR=$PKG_DEST install-man
}
diff --git a/repo/devel/help2man.xibuild b/repo/devel/help2man.xibuild
index a8d4e47..ddaa5c4 100644
--- a/repo/devel/help2man.xibuild
+++ b/repo/devel/help2man.xibuild
@@ -2,13 +2,16 @@
DEPS=(sh)
-SOURCE=http://mirror.koddos.net/gnu/help2man/help2man-1.48.5.tar.xz
+PKG_VER=1.48.5
+SOURCE=http://mirror.koddos.net/gnu/help2man/help2man-$PKG_VER.tar.xz
DESC="A tool for automatically generating simple manual pages from program output"
-
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/m4.xibuild b/repo/devel/m4.xibuild
index 409c9a3..bdab7c6 100644
--- a/repo/devel/m4.xibuild
+++ b/repo/devel/m4.xibuild
@@ -2,13 +2,20 @@
DEPS=(glibc bash)
-SOURCE=https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz
+PKG_VER=1.4.19
+SOURCE=https://ftp.gnu.org/gnu/m4/m4-$PKG_VER.tar.xz
DESC="The gnu m4 macro processor"
build () {
./configure --prefix=/usr
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/make.xibuild b/repo/devel/make.xibuild
index bb057ee..b361786 100644
--- a/repo/devel/make.xibuild
+++ b/repo/devel/make.xibuild
@@ -2,11 +2,15 @@
DEPS=(glibc)
-SOURCE=https://ftp.gnu.org/gnu/make/make-4.3.tar.gz
+PKG_VER=4.3
+SOURCE=https://ftp.gnu.org/gnu/make/make-$PKG_VER.tar.gz
DESC="GNU make utility"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/meson.xibuild b/repo/devel/meson.xibuild
index c8f7dde..55c38ce 100644
--- a/repo/devel/meson.xibuild
+++ b/repo/devel/meson.xibuild
@@ -2,17 +2,19 @@
DEPS=(python ninja)
+PKG_VER=0.59
SOURCE=https://github.com/mesonbuild/meson
-BRANCH=0.59
+BRANCH=$PKG_VER
DESC="High productivity build system"
build () {
python setup.py build
- python setup.py install --root=$PKG_DEST
}
package () {
+ python setup.py install --root=$PKG_DEST
+
install -vDm644 data/shell-completions/bash/meson $PKG_DEST/usr/share/bash-completion/completions/meson
install -vDm644 data/shell-completions/zsh/_meson $PKG_DEST/usr/share/zsh/site-functions/_meson
}
diff --git a/repo/devel/mpc.xibuild b/repo/devel/mpc.xibuild
index 5fd5898..dde3750 100644
--- a/repo/devel/mpc.xibuild
+++ b/repo/devel/mpc.xibuild
@@ -2,15 +2,18 @@
DEPS=(mpfr)
-SOURCE=http://www.multiprecision.org/downloads/mpc-1.2.0.tar.gz
+PKG_VER=1.2.0
+SOURCE=http://www.multiprecision.org/downloads/mpc-$PKG_VER.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
+ ./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/mpc-$PKG_VER
make
make html
+}
+check () {
make check
}
diff --git a/repo/devel/ninja.xibuild b/repo/devel/ninja.xibuild
index cfd705f..5c23a1a 100644
--- a/repo/devel/ninja.xibuild
+++ b/repo/devel/ninja.xibuild
@@ -8,6 +8,9 @@ DESC="Small build system with a focus on speed"
build () {
python configure.py --bootstrap
+}
+
+check () {
./ninja ninja_test
}
diff --git a/repo/devel/patch.xibuild b/repo/devel/patch.xibuild
index 728fc1d..7d1dfd0 100644
--- a/repo/devel/patch.xibuild
+++ b/repo/devel/patch.xibuild
@@ -2,11 +2,15 @@
DEPS=(glibc attr)
-SOURCE=https://ftp.gnu.org/gnu/patch/patch-2.7.tar.xz
+PKG_VER=2.7
+SOURCE=https://ftp.gnu.org/gnu/patch/patch-$PKG_VER.tar.xz
DESC="A utility to apply patch files to a file"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/pkg-config.xibuild b/repo/devel/pkg-config.xibuild
index 9f1e3f4..68ca22e 100644
--- a/repo/devel/pkg-config.xibuild
+++ b/repo/devel/pkg-config.xibuild
@@ -2,15 +2,22 @@
DEPS=(glibc sh)
-SOURCE=https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
+PKG_VER=0.29.2
+SOURCE=https://pkg-config.freedesktop.org/releases/pkg-config-$PKG_VER.tar.gz
DESC="Package compiler and linker metadata toolkit"
build () {
./configure --prefix=/usr \
--with-internal-glib \
--disable-host-tool \
- --docdir=/usr/share/doc/pkg-config-0.29.2
+ --docdir=/usr/share/doc/pkg-config-$PKG_VER
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/devel/texinfo.xibuild b/repo/devel/texinfo.xibuild
index 0bcbb29..cfc6653 100644
--- a/repo/devel/texinfo.xibuild
+++ b/repo/devel/texinfo.xibuild
@@ -2,16 +2,22 @@
DEPS=(ncurses gzip perl sh)
-SOURCE=https://ftp.gnu.org/gnu/texinfo/texinfo-6.8.tar.xz
+PKG_VER=6.8
+SOURCE=https://ftp.gnu.org/gnu/texinfo/texinfo-$PKG_VER.tar.xz
DESC="GNU documentation system for reading, writing and converting info pages"
-build () {
+patch () {
# fix an issue when building with glibc-2.34 or later
sed -e 's/__attribute_nonnull__/__nonnull/' \
-i gnulib/lib/malloc/dynarray-skeleton.c
+}
+build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
make TEXMF=$PKG_DEST/usr/share/texmf install-tex
}
diff --git a/repo/devel/xmlto.xibuild b/repo/devel/xmlto.xibuild
index a162415..578c07e 100644
--- a/repo/devel/xmlto.xibuild
+++ b/repo/devel/xmlto.xibuild
@@ -2,12 +2,16 @@
DEPS=(libxslt)
-SOURCE=https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2
+PKG_VER=0.0.28
+SOURCE=https://releases.pagure.org/xmlto/xmlto-$PKG_VER.tar.bz2
DESC="Convert xml to many other formats"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/linux/linux-headers.xibuild b/repo/linux/linux-headers.xibuild
index 536fdd3..0affbc9 100644
--- a/repo/linux/linux-headers.xibuild
+++ b/repo/linux/linux-headers.xibuild
@@ -2,7 +2,8 @@
DEPS=()
-SOURCE=https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.14.tar.xz
+PKG_VER=5.15.14
+SOURCE=https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$PKG_VER.tar.xz
DESC="Linux kernel headers"
diff --git a/repo/system/acl.xibuild b/repo/system/acl.xibuild
index 8411379..f2d5649 100644
--- a/repo/system/acl.xibuild
+++ b/repo/system/acl.xibuild
@@ -9,7 +9,8 @@ DESC="Access control list utilities, libraries and headers"
build () {
./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/acl-$PKG_VER
make
+}
+package() {
make DESTDIR=$PKG_DEST install
-
}
diff --git a/repo/system/attr.xibuild b/repo/system/attr.xibuild
index 715f404..1c81943 100644
--- a/repo/system/attr.xibuild
+++ b/repo/system/attr.xibuild
@@ -8,10 +8,14 @@ SOURCE=http://download.savannah.nongnu.org/releases/attr/attr-$PKG_VER.tar.xz
DESC="Extended attribute support library for ACL support"
build () {
-
./configure --prefix=/usr --disable-static --sysconfdir=/etc --docdir=/usr/share/doc/attr-$PKG_VER
-
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild
index d305d56..88550bd 100644
--- a/repo/system/binutils.xibuild
+++ b/repo/system/binutils.xibuild
@@ -6,7 +6,7 @@ PKG_VER=2.37
SOURCE=https://ftp.gnu.org/gnu/binutils/binutils-$PKG_VER.tar.xz
DESC="tools for handling object files"
-build () {
+patch () {
curl https://www.linuxfromscratch.org/patches/lfs/development/binutils-$PKG_VER-upstream_fix-1.patch > binutils-$PKG_VER-upstream_fix-1.patch
patch -Np1 -i binutils-$PKG_VER-upstream_fix-1.patch
@@ -14,7 +14,9 @@ build () {
sed -i '63d' etc/texi2pod.pl
find -name \*.1 -delete
+}
+build () {
mkdir -v build
cd build
../configure --prefix=/usr \
@@ -28,6 +30,9 @@ build () {
--with-system-zlib
make tooldir=/usr
+}
+
+check () {
make -k check || true
}
diff --git a/repo/system/brotli.xibuild b/repo/system/brotli.xibuild
index 5a4f2e0..69754fa 100644
--- a/repo/system/brotli.xibuild
+++ b/repo/system/brotli.xibuild
@@ -9,10 +9,12 @@ build () {
mkdir out && cd out
../configure-cmake
make
+}
+check () {
make test
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
mv $PKG_DEST/usr/local/* $PKG_DEST/usr/
}
diff --git a/repo/system/bzip2.xibuild b/repo/system/bzip2.xibuild
index f01a6b7..fc2e887 100644
--- a/repo/system/bzip2.xibuild
+++ b/repo/system/bzip2.xibuild
@@ -8,7 +8,7 @@ BRANCH=bzip2-$PKG_VER
DESC="a selection of programs for compressing and decompressing bzip2 files"
-build () {
+patch () {
#curl https://www.linuxfromscratch.org/patches/lfs/development/bzip2-$PKG_VER-install_docs-1.patch > bzip2-$PKG_VER-install_docs-1.patch
#patch -Np1 -i bzip2-$PKG_VER-install_docs-1.patch
@@ -18,16 +18,17 @@ build () {
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
#sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
+}
+build () {
make -f Makefile-libbz2_so
make clean
-
make
- make PREFIX=$PKG_DEST/usr install
-
}
package () {
+ make PREFIX=$PKG_DEST/usr install
+
cp -av libbz2.so* $PKG_DEST/usr/lib
cp -av libbz2.so.$PKG_VER $PKG_DEST/usr/lib/libbz2.so
diff --git a/repo/system/expat.xibuild b/repo/system/expat.xibuild
index 191e216..0d9376c 100644
--- a/repo/system/expat.xibuild
+++ b/repo/system/expat.xibuild
@@ -9,8 +9,13 @@ DESC="An XML parser library"
build () {
./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/expat-$PKG_VER
make
+}
+
+check () {
make check
+}
+package () {
make DESTDIR=$PKG_DEST install
install -v -m644 doc/*{.html,png,css} $PKG_DEST/usr/share/doc/expat-$PKG_VER
diff --git a/repo/system/findutils.xibuild b/repo/system/findutils.xibuild
index 7ac8bfd..9c0948b 100644
--- a/repo/system/findutils.xibuild
+++ b/repo/system/findutils.xibuild
@@ -13,5 +13,8 @@ build () {
esac
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/gc.xibuild b/repo/system/gc.xibuild
index 11f30af..721a096 100644
--- a/repo/system/gc.xibuild
+++ b/repo/system/gc.xibuild
@@ -9,5 +9,8 @@ DESC="A garbage collector for C and C++"
build () {
./configure --prefix=/usr --disable-static
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/gdbm.xibuild b/repo/system/gdbm.xibuild
index a5e11b9..c1cc12b 100644
--- a/repo/system/gdbm.xibuild
+++ b/repo/system/gdbm.xibuild
@@ -9,7 +9,12 @@ DESC="GNU database library"
build () {
./configure --prefix=/usr --disable-static --enable-libgdm-compat
make
+}
+
+check () {
make -k check
+}
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/gettext.xibuild b/repo/system/gettext.xibuild
index 4a1118e..e6ede22 100644
--- a/repo/system/gettext.xibuild
+++ b/repo/system/gettext.xibuild
@@ -9,6 +9,9 @@ DESC="GNU internationalization library"
build () {
./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/gettext-$PKG_VER
make
+}
+
+check () {
make check
}
diff --git a/repo/system/glibc.xibuild b/repo/system/glibc.xibuild
index 557a533..50e5ec9 100644
--- a/repo/system/glibc.xibuild
+++ b/repo/system/glibc.xibuild
@@ -6,7 +6,7 @@ PKG_VER=2.34
SOURCE=https://ftp.gnu.org/gnu/glibc/glibc-$PKG_VER.tar.xz
DESC="The main gnu C library providing basic routines and procedures"
-build () {
+patch () {
# patches as recommended by lfs
sed -e '/NOTIFY_REMOVED)/s/)/ \&\& data.attr != NULL)/' -i sysdeps/unix/sysv/linux/mq_notify.c
@@ -14,6 +14,9 @@ build () {
patch -Np1 -i glibc-$PKG_VER-fhs-1.patch
+}
+
+build () {
mkdir -v build
cd build
@@ -28,10 +31,11 @@ build () {
libc_cv_slibdir=/usr/lib
make
+}
+check () {
# some check failures are 'expected'
- #make check || true
-
+ make check || true
}
package () {
diff --git a/repo/system/gmp.xibuild b/repo/system/gmp.xibuild
index 2678312..8e1fe54 100644
--- a/repo/system/gmp.xibuild
+++ b/repo/system/gmp.xibuild
@@ -6,18 +6,22 @@ PKG_VER=6.2.1
SOURCE=https://gmplib.org/download/gmp/gmp-$PKG_VER.tar.xz
DESC="a collection of mathematical libraries"
-build () {
+patch () {
cp -v configfsf.guess config.guess
cp -v configfsf.sub config.sub
+}
+
+build () {
./configure --prefix=/usr --enable-cxx --disable-static --docdir=/usr/share/doc/gmp
make
make html
+}
+check () {
make check 2>&1 | tee gmp-check-log
awk '/# PASS:/{total+=$3} ; END{print total}' gmp-check-log
-
}
package() {
diff --git a/repo/system/gnutls.xibuild b/repo/system/gnutls.xibuild
index bf06240..8c3f198 100644
--- a/repo/system/gnutls.xibuild
+++ b/repo/system/gnutls.xibuild
@@ -11,5 +11,8 @@ build () {
./configure \
--prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/gperf.xibuild b/repo/system/gperf.xibuild
index b9abc88..e959af3 100644
--- a/repo/system/gperf.xibuild
+++ b/repo/system/gperf.xibuild
@@ -9,7 +9,12 @@ DESC="Perfect hash function generator"
build () {
./configure --prefix=/usr --docdir=/usr/share/doc/gperf-$PKG_VER
make
+}
+
+check () {
make -j1 check
+}
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/grub.xibuild b/repo/system/grub.xibuild
index 80d172f..ff2b85e 100644
--- a/repo/system/grub.xibuild
+++ b/repo/system/grub.xibuild
@@ -9,10 +9,10 @@ DESC="GNU GRand Unified Bootloader v2"
build () {
./configure --prefix=/usr --sysconfdir=/etc --disable-werror
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
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
index c5413ff..759c2c2 100644
--- a/repo/system/guile.xibuild
+++ b/repo/system/guile.xibuild
@@ -11,5 +11,8 @@ build () {
./autogen.sh
./configure --prefix=/usr --disable-static
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/gzip.xibuild b/repo/system/gzip.xibuild
index 7831021..5697a4f 100644
--- a/repo/system/gzip.xibuild
+++ b/repo/system/gzip.xibuild
@@ -9,5 +9,8 @@ DESC="GNU compression utilities"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/intltool.xibuild b/repo/system/intltool.xibuild
index c861168..259b9ab 100644
--- a/repo/system/intltool.xibuild
+++ b/repo/system/intltool.xibuild
@@ -9,7 +9,13 @@ DESC="The internationalization tool collection"
build () {
./configure --prefix=/usr
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
install -v -Dm644 doc/I18N-HOWTO $PKG_DEST/usr/share/doc/intltool-$PKG_VER/I18N-HOWTO
}
diff --git a/repo/system/kbd.xibuild b/repo/system/kbd.xibuild
index 5892d90..8136769 100644
--- a/repo/system/kbd.xibuild
+++ b/repo/system/kbd.xibuild
@@ -6,13 +6,17 @@ PKG_VER=2.4.0
SOURCE=https://mirrors.edge.kernel.org/pub/linux/utils/kbd/kbd-$PKG_VER.tar.xz
DESC="Keytable files and keyboard utilities"
-build () {
-
+patch () {
# remove redundant resizecons program
sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
+}
+build () {
./configure --prefix=/usr --disable-vlock
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/kmod.xibuild b/repo/system/kmod.xibuild
index 62268b3..61a91f8 100644
--- a/repo/system/kmod.xibuild
+++ b/repo/system/kmod.xibuild
@@ -15,10 +15,10 @@ build () {
--with-zlib
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
mkdir -p /usr/sbin
mkdir -p /usr/bin
diff --git a/repo/system/krb5.xibuild b/repo/system/krb5.xibuild
index c4f3abe..2012fbc 100644
--- a/repo/system/krb5.xibuild
+++ b/repo/system/krb5.xibuild
@@ -6,7 +6,7 @@ PKG_VER=1.19.2
SOURCE=https://kerberos.org/dist/krb5/$(echo $PKG_VER | cut -d. -f-2)/krb5-$PKG_VER.tar.gz
DESC="The Kerberos network authentication system"
-build () {
+patch () {
# fix denial of service vulnerability
sed -i '210a if (sprinc == NULL) {\
status = "NULL_SERVER";\
@@ -19,7 +19,9 @@ build () {
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 &&
+}
+build () {
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
@@ -29,6 +31,9 @@ build () {
--with-system-verto=no \
--enable-dns-for-realm &&
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
install -v -dm755 $PKG_DEST/usr/share/doc/krb5-$PKG_VER &&
diff --git a/repo/system/libarchive.xibuild b/repo/system/libarchive.xibuild
index 80c60c4..6f0d686 100644
--- a/repo/system/libarchive.xibuild
+++ b/repo/system/libarchive.xibuild
@@ -6,12 +6,13 @@ SOURCE=https://github.com/libarchive/libarchive/releases/download/v3.5.2/libarch
DESC="A library that provides a single interface for reading and writing various compression formats"
-build () {
+patch () {
sed -i '436a if ((OSSL_PROVIDER_load(NULL, "legacy")) == NULL) \
return (ARCHIVE_FAILED);' libarchive/archive_digest.c
+}
+build () {
./configure --prefix=/usr --disable-static
-
make
}
diff --git a/repo/system/libcap.xibuild b/repo/system/libcap.xibuild
index 934af99..42c2e9f 100644
--- a/repo/system/libcap.xibuild
+++ b/repo/system/libcap.xibuild
@@ -7,16 +7,19 @@ SOURCE=https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-$PK
DESC="POSIX 1003.1e capabilities"
-build () {
+patch () {
sed -i '/install -m.*STA/d' libcap/Makefile
+}
+build () {
make prefix=/usr lib=lib
+}
+check () {
make test
- make prefix=/usr lib=lib DESTDIR=$PKG_DEST install
-
}
package() {
+ make prefix=/usr lib=lib DESTDIR=$PKG_DEST install
chmod -v 755 $PKG_DEST/usr/lib/lib{cap,psx}.so.*
}
diff --git a/repo/system/libffi.xibuild b/repo/system/libffi.xibuild
index 707ad04..23562f7 100644
--- a/repo/system/libffi.xibuild
+++ b/repo/system/libffi.xibuild
@@ -9,5 +9,8 @@ DESC="Portable foreign function interface library"
build () {
./configure --prefix=/usr --disable-static --with-gcc-arch=native --disable-exec-static-tramp
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libiconv.xibuild b/repo/system/libiconv.xibuild
index e1c10ed..dc9cfb6 100644
--- a/repo/system/libiconv.xibuild
+++ b/repo/system/libiconv.xibuild
@@ -10,5 +10,8 @@ DESC="GNU charset conversion library"
build () {
./configure --prefix=/usr --disable-static &&
make
+}
+
+package () {
make prefix=/usr lib=lib DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libidn.xibuild b/repo/system/libidn.xibuild
index c5575bf..37d2edc 100644
--- a/repo/system/libidn.xibuild
+++ b/repo/system/libidn.xibuild
@@ -9,6 +9,9 @@ DESC="Free software implementation of IDNA2008, Punycode and TR46"
build () {
./configure --prefix=/usr --disable-static
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
find doc -name "Makefile*" -delete &&
diff --git a/repo/system/libldap.xibuild b/repo/system/libldap.xibuild
index 9889496..ae04b04 100644
--- a/repo/system/libldap.xibuild
+++ b/repo/system/libldap.xibuild
@@ -9,5 +9,8 @@ DESC="An open source implementation of the Lightweight Directory Access Protocol
build () {
./configure prefix="/usr"
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libnghttp.xibuild b/repo/system/libnghttp.xibuild
index 65b9af0..7c4b941 100644
--- a/repo/system/libnghttp.xibuild
+++ b/repo/system/libnghttp.xibuild
@@ -14,5 +14,7 @@ build () {
--enable-lib-only \
--docdir=/usr/share/doc/nghttp2-$PKG_VER &&
make
+}
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libp11-kit.xibuild b/repo/system/libp11-kit.xibuild
index e9e5e4a..8f6906b 100644
--- a/repo/system/libp11-kit.xibuild
+++ b/repo/system/libp11-kit.xibuild
@@ -5,7 +5,7 @@ DEPS=(glibc libtasn1 libffi)
SOURCE=https://github.com/p11-glue/p11-kit
DESC="Loads and enumerates PKCS#11 modules"
-build () {
+patch () {
sed '20,$ d' -i trust/trust-extract-compat &&
cat >> trust/trust-extract-compat << "EOF"
@@ -15,12 +15,17 @@ build () {
# Generate a new trust store
/usr/sbin/make-ca -f -g
EOF
+}
+build () {
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-trust-paths=/etc/pki/anchors
make
+}
+
+package () {
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
index be5ec09..e2bc10f 100644
--- a/repo/system/libpipeline.xibuild
+++ b/repo/system/libpipeline.xibuild
@@ -9,5 +9,8 @@ build () {
./bootstrap
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libpsl.xibuild b/repo/system/libpsl.xibuild
index 5ecd701..78ac850 100644
--- a/repo/system/libpsl.xibuild
+++ b/repo/system/libpsl.xibuild
@@ -6,9 +6,15 @@ PKG_VER=0.21.1
SOURCE=https://github.com/rockdaboot/libpsl/releases/download/$PKG_VER/libpsl-$PKG_VER.tar.gz
DESC="C library to handle the Public Suffix List"
+patch () {
+ sed -i 's/env python/&3/' src/psl-make-dafsa
+}
+
build () {
- sed -i 's/env python/&3/' src/psl-make-dafsa &&
./configure --prefix=/usr --disable-static &&
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libsasl.xibuild b/repo/system/libsasl.xibuild
index 5df48a8..4639beb 100644
--- a/repo/system/libsasl.xibuild
+++ b/repo/system/libsasl.xibuild
@@ -10,9 +10,8 @@ build () {
./configure \
--prefix=/usr
make
- make DESTDIR=$PKG_DEST install
}
-#package () {
- #mv $PKG_DEST/usr/local/* $PKG_DEST/usr/
-#}
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/libseccomp.xibuild b/repo/system/libseccomp.xibuild
index 2fda78c..f5de719 100644
--- a/repo/system/libseccomp.xibuild
+++ b/repo/system/libseccomp.xibuild
@@ -10,7 +10,12 @@ DESC="Enhanced seccomp library"
build () {
./configure --prefix=/usr --disable-static &&
make
+}
+
+check () {
make check
- make prefix=/usr lib=lib DESTDIR=$PKG_DEST install
+}
+package () {
+ make prefix=/usr lib=lib DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libsigsegv.xibuild b/repo/system/libsigsegv.xibuild
index 89b9ea6..b9d35d3 100644
--- a/repo/system/libsigsegv.xibuild
+++ b/repo/system/libsigsegv.xibuild
@@ -7,9 +7,11 @@ SOURCE=https://ftp.gnu.org/gnu/libsigsegv/libsigsegv-$PKG_VER.tar.gz
DESC="A library for handling page faults in user mode"
build () {
-
./configure \
--prefix=/usr --enable-shared --disable-static
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libtasn1.xibuild b/repo/system/libtasn1.xibuild
index 64cdaad..b93b213 100644
--- a/repo/system/libtasn1.xibuild
+++ b/repo/system/libtasn1.xibuild
@@ -7,9 +7,11 @@ SOURCE=https://ftp.gnu.org/gnu/libtasn1/libtasn1-$PKG_VER.tar.gz
DESC="The ASN.1 library used in GNUTLS"
build () {
-
./configure \
--prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libtool.xibuild b/repo/system/libtool.xibuild
index 86710dc..56914e8 100644
--- a/repo/system/libtool.xibuild
+++ b/repo/system/libtool.xibuild
@@ -9,11 +9,13 @@ DESC="A generic library support script"
build () {
./configure --prefix=/usr
make
- make check
+}
- make DESTDIR=$PKG_DEST install
+check () {
+ make check
}
package () {
+ make DESTDIR=$PKG_DEST install
rm -fv $PKG_DEST/usr/lib/libltdl.a
}
diff --git a/repo/system/libunistring.xibuild b/repo/system/libunistring.xibuild
index b236e0f..ac09168 100644
--- a/repo/system/libunistring.xibuild
+++ b/repo/system/libunistring.xibuild
@@ -11,5 +11,8 @@ build () {
./configure \
--prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libxcrypt.xibuild b/repo/system/libxcrypt.xibuild
index 8fd8dd3..f1e1c35 100644
--- a/repo/system/libxcrypt.xibuild
+++ b/repo/system/libxcrypt.xibuild
@@ -9,10 +9,11 @@ DESC="A modern library for one-way hashing of passwords"
build () {
CC=gcc ./configure --prefix=/usr
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
+
# 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
index d5a1440..99f626a 100644
--- a/repo/system/libxml2.xibuild
+++ b/repo/system/libxml2.xibuild
@@ -12,5 +12,8 @@ build () {
--with-history \
--with-python=/usr/bin/python3 &&
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/libxslt.xibuild b/repo/system/libxslt.xibuild
index 4971372..80bda77 100644
--- a/repo/system/libxslt.xibuild
+++ b/repo/system/libxslt.xibuild
@@ -7,13 +7,18 @@ SOURCE=http://xmlsoft.org/sources/libxslt-$PKG_VER.tar.gz
DESC="XML stylesheet transformation library"
-build () {
+patch () {
sed -i s/3000/5000/ libxslt/transform.c doc/xsltproc.{1,xml} &&
sed -i -r '/max(Parser)?Depth/d' ./tests/fuzz/fuzz.c &&
+}
+
+build () {
./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
+}
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/lz4.xibuild b/repo/system/lz4.xibuild
index f49053f..288ff65 100644
--- a/repo/system/lz4.xibuild
+++ b/repo/system/lz4.xibuild
@@ -9,6 +9,8 @@ DESC="A lossless compression algorithm, providing high compression speeds"
build () {
make
+}
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/mpfr.xibuild b/repo/system/mpfr.xibuild
index 629c230..5e0b35d 100644
--- a/repo/system/mpfr.xibuild
+++ b/repo/system/mpfr.xibuild
@@ -11,9 +11,13 @@ build () {
./configure --prefix=/usr --disable-static --enable-thread-safe --docdir=/usr/share/doc/mpfr-$PKG_VER
make
make html
+}
+check () {
make check
+}
+package () {
make DESTDIR=$PKG_DEST install
make DESTDIR=$PKG_DEST install-html
}
diff --git a/repo/system/ncurses.xibuild b/repo/system/ncurses.xibuild
index c02f7c4..5f4addd 100644
--- a/repo/system/ncurses.xibuild
+++ b/repo/system/ncurses.xibuild
@@ -12,11 +12,11 @@ build () {
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
for lib in ncurses form panel menu ; do
rm -vf $PKG_DEST/usr/lib/lib${lib}.so
diff --git a/repo/system/nettle.xibuild b/repo/system/nettle.xibuild
index afd0ba7..737ca78 100644
--- a/repo/system/nettle.xibuild
+++ b/repo/system/nettle.xibuild
@@ -11,5 +11,8 @@ build () {
./configure \
--prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/nspr.xibuild b/repo/system/nspr.xibuild
index f7a3d55..9ce0d68 100644
--- a/repo/system/nspr.xibuild
+++ b/repo/system/nspr.xibuild
@@ -7,14 +7,18 @@ PKG_VER=4.33
SOURCE=https://archive.mozilla.org/pub/nspr/releases/v$PKG_VER/src/nspr-$PKG_VER.tar.gz
DESC="Netscape Portable Runtime"
-build () {
+patch () {
sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in
sed -i 's#$(LIBRARY) ##' config/rules.mk
+}
-
+build () {
cd nspr
./configure \
--prefix=/usr --with-mozilla --with-pthreads --enable-64bit
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/openssl.xibuild b/repo/system/openssl.xibuild
index f057063..0b55050 100644
--- a/repo/system/openssl.xibuild
+++ b/repo/system/openssl.xibuild
@@ -9,11 +9,11 @@ DESC="The open source management tools and libraries for cryptography"
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 () {
+ sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
+ make MANSUFFIX=ssl DESTDIR=$PKG_DEST install
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
index 3166ad2..b0c18c5 100644
--- a/repo/system/pam.xibuild
+++ b/repo/system/pam.xibuild
@@ -6,12 +6,15 @@ PKG_VER=1.5.2
SOURCE=https://github.com/linux-pam/linux-pam/releases/download/v$PKG_VER/Linux-PAM-$PKG_VER.tar.xz
DESC="PAM (Pluggable Authentication Modules) library"
-build () {
+patch() {
# prevent install of an uneeded systemd file
sed -e /service_DATA/d \
-i modules/pam_namespace/Makefile.am &&
autoreconf
+}
+
+build () {
./configure --prefix=/usr \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
@@ -19,11 +22,11 @@ build () {
--enable-securedir=/usr/lib/security \
--docdir=/usr/share/doc/Linux-PAM-$PKG_VER &&
make
-
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
+
install -v -m755 -d $PKG_DEST/etc/pam.d &&
cat > $PKG_DEST/etc/pam.d/other << "EOF"
diff --git a/repo/system/pcre.xibuild b/repo/system/pcre.xibuild
index 721acfe..beb1114 100644
--- a/repo/system/pcre.xibuild
+++ b/repo/system/pcre.xibuild
@@ -9,12 +9,12 @@ DESC="A library that implements regular expressions in a perl style"
build () {
CC=gcc ./configure --prefix=/usr
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
# 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
+ ln /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
index d5cdba6..1b650de 100644
--- a/repo/system/perl-xml-parser.xibuild
+++ b/repo/system/perl-xml-parser.xibuild
@@ -9,6 +9,12 @@ DESC="A perl interface for the expat XML parser"
build () {
perl Makefile.PL
make
+}
+
+check () {
make test
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/perl.xibuild b/repo/system/perl.xibuild
index 8833465..c2f2766 100644
--- a/repo/system/perl.xibuild
+++ b/repo/system/perl.xibuild
@@ -7,13 +7,19 @@ SOURCE=https://www.cpan.org/src/5.0/perl-$PKG_VER.tar.gz
DESC="The Practical Extraction and Report Language"
build () {
- #export BUILD_ZLIB=False
- #export BUILD_BZIP2=0
+ export BUILD_ZLIB=False
+ export BUILD_BZIP2=0
sh Configure -des -Dprefix=/usr -Dlibs=-lm -Uloclibpth -Ulocincpth
make
+}
+
+check () {
make test
+}
+
+package () {
make DESTDIR=$PKG_DEST install
unset BUILD_ZLIB BUILD_BZIP2
}
diff --git a/repo/system/psmisc.xibuild b/repo/system/psmisc.xibuild
index 9b8a71e..fee5483 100644
--- a/repo/system/psmisc.xibuild
+++ b/repo/system/psmisc.xibuild
@@ -10,5 +10,8 @@ build () {
./autogen.sh
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/python-requests.xibuild b/repo/system/python-requests.xibuild
index 7752729..145473b 100644
--- a/repo/system/python-requests.xibuild
+++ b/repo/system/python-requests.xibuild
@@ -5,7 +5,7 @@ DEPS=(python)
SOURCE=git://github.com/psf/requests.git
DESC="the requests module for python"
-build () {
+package () {
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
index 88b3fff..76c0592 100644
--- a/repo/system/python.xibuild
+++ b/repo/system/python.xibuild
@@ -9,10 +9,10 @@ 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 () {
+ make DESTDIR=$PKG_DEST install
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
index 4c1f4ed..db34667 100644
--- a/repo/system/readline.xibuild
+++ b/repo/system/readline.xibuild
@@ -8,18 +8,22 @@ SOURCE=https://ftp.gnu.org/gnu/readline/readline-$PKG_VER.tar.gz
DESC="a set of libraries that offer command line editing and history capabilities"
-build () {
+patch () {
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
+}
+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
+}
+package () {
+ 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
index 35197b1..a9f561a 100644
--- a/repo/system/rtmpdump.xibuild
+++ b/repo/system/rtmpdump.xibuild
@@ -6,10 +6,15 @@ SOURCE=git://git.ffmpeg.org/rtmpdump
BRANCH="fa8646d"
DESC="Tool to download rtmp streams"
-build () {
+patch () {
sed -e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' -e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' -i Makefile -i librtmp/Makefile
+}
+build () {
make SYS=posix
+}
+
+package () {
make \
prefix='/usr' \
sbindir='/usr/bin' \
diff --git a/repo/system/shadow.xibuild b/repo/system/shadow.xibuild
index e190686..ea32c22 100644
--- a/repo/system/shadow.xibuild
+++ b/repo/system/shadow.xibuild
@@ -7,7 +7,7 @@ PKG_VER=4.10
SOURCE=https://github.com/shadow-maint/shadow/releases/download/v$PKG_VER/shadow-$PKG_VER.tar.xz
DESC="Password and account management tool suite with support for shadow files and PAM"
-build () {
+patch () {
curl https://www.linuxfromscratch.org/patches/lfs/development/shadow-$PKG_VER-useradd_segfault-1.patch > shadow-$PKG_VER-useradd_segfault-1.patch
patch -Np1 -i shadow-$PKG_VER-useradd_segfault-1.patch
@@ -27,16 +27,16 @@ build () {
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
+}
+build () {
+ ./configure --sysconfdir=/etc --with-group-name-max-length=32
+ make
}
package () {
+ make exec_prefix=/usr DESTDIR=$PKG_DEST install
+ make DESTDIR=$PKG_DEST -C man install-man
mkdir -p $PKG_DEST/etc/default
}
diff --git a/repo/system/sysklogd.xibuild b/repo/system/sysklogd.xibuild
index bf1a021..34713bf 100644
--- a/repo/system/sysklogd.xibuild
+++ b/repo/system/sysklogd.xibuild
@@ -8,5 +8,8 @@ DESC="Programs for logging system messages"
build () {
./configure && make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/sysvinit.xibuild b/repo/system/sysvinit.xibuild
index fc4cb18..7a52901 100644
--- a/repo/system/sysvinit.xibuild
+++ b/repo/system/sysvinit.xibuild
@@ -6,10 +6,14 @@ PKG_VER=3.01
SOURCE=http://download.savannah.nongnu.org/releases/sysvinit/sysvinit-$PKG_VER.tar.xz
DESC="The sysvinit system for controlling startup, running and shutdown of the system"
-build () {
+patch () {
curl https://www.linuxfromscratch.org/patches/lfs/development/sysvinit-$PKG_VER-consolidated-1.patch > sysvinit-$PKG_VER-consolidated-1.patch
patch -Np1 -i sysvinit-$PKG_VER-consolidated-1.patch
-
+}
+build () {
make
+}
+
+package () {
make ROOT=$PKG_DEST install
}
diff --git a/repo/system/tar.xibuild b/repo/system/tar.xibuild
index 66f297d..5ebac62 100644
--- a/repo/system/tar.xibuild
+++ b/repo/system/tar.xibuild
@@ -9,6 +9,9 @@ DESC="Utility used to store, backup and transport files"
build () {
FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/tcl.xibuild b/repo/system/tcl.xibuild
index cdd1455..6c39ed9 100644
--- a/repo/system/tcl.xibuild
+++ b/repo/system/tcl.xibuild
@@ -30,9 +30,10 @@ build () {
-i pkgs/itcl4.2.1/itclConfig.sh
unset SRCDIR
+}
+check () {
make test
-
}
package () {
diff --git a/repo/system/xxhash.xibuild b/repo/system/xxhash.xibuild
index ef0e347..b389d46 100644
--- a/repo/system/xxhash.xibuild
+++ b/repo/system/xxhash.xibuild
@@ -9,6 +9,9 @@ DESC="xxHash is an Extremely fast Hash algorithm"
build () {
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/system/xz.xibuild b/repo/system/xz.xibuild
index bf48653..5d04634 100644
--- a/repo/system/xz.xibuild
+++ b/repo/system/xz.xibuild
@@ -12,7 +12,12 @@ build () {
./autogen.sh
./configure --prefix=/usr --disable-static --docdir=/usr/share/doc/xz-$PKG_VER
make
+}
+
+check () {
make check
- make DESTDIR=$PKG_DEST install
}
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/zip.xibuild b/repo/system/zip.xibuild
index 3c1f1e1..46cbc91 100644
--- a/repo/system/zip.xibuild
+++ b/repo/system/zip.xibuild
@@ -8,5 +8,8 @@ DESC="Compressor/archiver for creating and modifying zipfiles"
build () {
make -f unix/Makefile generic_gcc
+}
+
+package () {
make -f unix/Makefile prefix=$PKG_DEST/usr install
}
diff --git a/repo/system/zlib.xibuild b/repo/system/zlib.xibuild
index d22e0c1..6b822f9 100644
--- a/repo/system/zlib.xibuild
+++ b/repo/system/zlib.xibuild
@@ -10,11 +10,14 @@ DESC="compression and decompression routines used by some programs"
build () {
./configure --prefix=/usr
make
+}
+
+check () {
make check
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
rm -fv $PKG_DEST/usr/lib/libz.a
}
diff --git a/repo/system/zstd.xibuild b/repo/system/zstd.xibuild
index 2fd4bfc..6f6a058 100644
--- a/repo/system/zstd.xibuild
+++ b/repo/system/zstd.xibuild
@@ -8,8 +8,13 @@ DESC="the Zstandard real-time compression algorithm"
build () {
make
+}
+check () {
# fix these tests to work
- #make check
+ make check || true
+}
+
+package () {
make prefix=$PKG_DEST/usr install
}
diff --git a/repo/util/bash.xibuild b/repo/util/bash.xibuild
index 5b5afd0..81fec13 100644
--- a/repo/util/bash.xibuild
+++ b/repo/util/bash.xibuild
@@ -8,10 +8,10 @@ DESC="The free Bourne Again Shell"
build () {
./configure --without-bash-malloc --prefix=/usr
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
ln $PKG_DEST/usr/bin/bash $PKG_DEST/usr/bin/sh
}
diff --git a/repo/util/curl.xibuild b/repo/util/curl.xibuild
index b5da8e4..a3ce1d8 100644
--- a/repo/util/curl.xibuild
+++ b/repo/util/curl.xibuild
@@ -2,7 +2,8 @@
DEPS=(cacerts openssl zlib zstd libnghttp libpsl)
-SOURCE=https://curl.se/download/curl-7.80.0.tar.xz
+PKG_VER=7.80.0
+SOURCE=https://curl.se/download/curl-$PKG_VER.tar.xz
DESC="A utility for transfering files with URL syntax"
build () {
@@ -12,6 +13,8 @@ build () {
--enable-threaded-resolver \
--with-ca-path=/etc/ssl/certs &&
make
+}
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/diffutils.xibuild b/repo/util/diffutils.xibuild
index 2a14984..c55449a 100644
--- a/repo/util/diffutils.xibuild
+++ b/repo/util/diffutils.xibuild
@@ -2,11 +2,15 @@
DEPS=(glibc bash)
-SOURCE=https://ftp.gnu.org/gnu/diffutils/diffutils-3.8.tar.xz
+PKG_VER=3.8
+SOURCE=https://ftp.gnu.org/gnu/diffutils/diffutils-$PKG_VER.tar.xz
DESC="Utility programs for creating patch files"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/e2fsprogs.xibuild b/repo/util/e2fsprogs.xibuild
index c2de603..ee3b311 100644
--- a/repo/util/e2fsprogs.xibuild
+++ b/repo/util/e2fsprogs.xibuild
@@ -2,7 +2,8 @@
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
+PKG_VER=1.46.4
+SOURCE=https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v$PKG_VER/e2fsprogs-$PKG_VER.tar.xz
DESC="Ext2/3/4 filesystem utils"
build () {
@@ -16,11 +17,10 @@ build () {
--disable-uuidd \
--disable-fsck
make
- make DESTDIR=$PKG_DEST install
}
-
package () {
+ make DESTDIR=$PKG_DEST install
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/util/elfutils.xibuild b/repo/util/elfutils.xibuild
index 4fef630..9162ffa 100644
--- a/repo/util/elfutils.xibuild
+++ b/repo/util/elfutils.xibuild
@@ -8,6 +8,12 @@ DESC="Handle ELF object files and DWARF debugging information"
build () {
./configure --prefix=/usr --disable-debuginfod --enable-libdebuginfod=dummy
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/file.xibuild b/repo/util/file.xibuild
index 150810b..9e55dc6 100644
--- a/repo/util/file.xibuild
+++ b/repo/util/file.xibuild
@@ -2,13 +2,20 @@
DEPS=(glibc zlib xz bzip2)
-SOURCE=http://ftp.astron.com/pub/file/file-5.40.tar.gz
+PKG_VER=5.40
+SOURCE=http://ftp.astron.com/pub/file/file-$PKG_VER.tar.gz
DESC="A utility for determining the type of a given file or files"
build () {
./configure --prefix=/usr
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/gawk.xibuild b/repo/util/gawk.xibuild
index e06c4e3..7efbc0b 100644
--- a/repo/util/gawk.xibuild
+++ b/repo/util/gawk.xibuild
@@ -2,11 +2,15 @@
DEPS=(sh glibc mpfr)
-SOURCE=https://ftp.gnu.org/gnu/gawk/gawk-5.1.0.tar.xz
+PKG_VER=5.1.0
+SOURCE=https://ftp.gnu.org/gnu/gawk/gawk-$PKG_VER.tar.xz
DESC="GNU's awk"
build () {
./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/grep.xibuild b/repo/util/grep.xibuild
index aab9964..ad7b9d4 100644
--- a/repo/util/grep.xibuild
+++ b/repo/util/grep.xibuild
@@ -2,12 +2,19 @@
DEPS=(glibc pcre)
-SOURCE=https://ftp.gnu.org/gnu/grep/grep-3.7.tar.xz
+PKG_VER=3.7
+SOURCE=https://ftp.gnu.org/gnu/grep/grep-$PKG_VER.tar.xz
DESC="A string search utility"
build () {
./configure --prefix=/usr --bindir=/bin
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/groff.xibuild b/repo/util/groff.xibuild
index 83d970a..8dcbd33 100644
--- a/repo/util/groff.xibuild
+++ b/repo/util/groff.xibuild
@@ -2,11 +2,15 @@
DEPS=(perl)
-SOURCE=https://ftp.gnu.org/gnu/groff/groff-1.22.4.tar.gz
+PKG_VER=1.22.4
+SOURCE=https://ftp.gnu.org/gnu/groff/groff-$PKG_VER.tar.gz
DESC="GNU troff text-formatting system"
build () {
PAGE=A4 ./configure --prefix=/usr
make -j1
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/inetutils.xibuild b/repo/util/inetutils.xibuild
index 89bf87c..a0c8ea8 100644
--- a/repo/util/inetutils.xibuild
+++ b/repo/util/inetutils.xibuild
@@ -2,11 +2,15 @@
DEPS=(pam libcap readline ncurses libxcrypt)
-SOURCE=https://ftp.gnu.org/gnu/inetutils/inetutils-2.2.tar.xz
+PKG_VER=2.2
+SOURCE=https://ftp.gnu.org/gnu/inetutils/inetutils-$PKG_VER.tar.xz
DESC="A collection of common programs for basic networking"
build () {
./configure --prefix=/usr --bindir=/usr/bin --localstatedir=/var --disable-logger --disable-whois --disable-rcp --disable-rexec --disable-rlogin --disable-rsh
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/iproute2.xibuild b/repo/util/iproute2.xibuild
index 94baef1..96ec60b 100644
--- a/repo/util/iproute2.xibuild
+++ b/repo/util/iproute2.xibuild
@@ -10,5 +10,8 @@ build () {
rm -fv man/man8/arpd.8
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/keyutils.xibuild b/repo/util/keyutils.xibuild
index a2341dc..0b0992f 100644
--- a/repo/util/keyutils.xibuild
+++ b/repo/util/keyutils.xibuild
@@ -2,10 +2,14 @@
DEPS=(glibc sh)
-SOURCE=https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-1.6.3.tar.gz
+PKG_VER=1.6.3
+SOURCE=https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-$PKG_VER.tar.gz
DESC="Linux Key Management Utils"
build () {
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/less.xibuild b/repo/util/less.xibuild
index a2bb435..8903ef2 100644
--- a/repo/util/less.xibuild
+++ b/repo/util/less.xibuild
@@ -2,11 +2,15 @@
DEPS=(glibc ncurses pcre2)
-SOURCE=https://www.greenwoodsoftware.com/less/less-590.tar.gz
+PKG_VER=590
+SOURCE=https://www.greenwoodsoftware.com/less/less-$PKG_VER.tar.gz
DESC="A terminal based program for viewing text files"
build () {
./configure --prefix=/usr --sysconfdir=/etc
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/make-ca.xibuild b/repo/util/make-ca.xibuild
index ff1ed76..22d495f 100644
--- a/repo/util/make-ca.xibuild
+++ b/repo/util/make-ca.xibuild
@@ -2,11 +2,14 @@
DEPS=(p11-kit nss)
-SOURCE=https://github.com/djlucas/make-ca/releases/download/v1.7/make-ca-1.7.tar.xz
+PKG_VER=1.7
+SOURCE=https://github.com/djlucas/make-ca/releases/download/v$PKG_VER/make-ca-$PKG_VER.tar.xz
DESC="A utility to deliver and manage a complete PKI configuration"
build () {
-
make DESTDIR=$PKG_DEST install &&
+}
+
+package () {
install -vdm755 $PKG_DEST/etc/ssl/local
}
diff --git a/repo/util/man-db.xibuild b/repo/util/man-db.xibuild
index 92ce361..7f5d02c 100644
--- a/repo/util/man-db.xibuild
+++ b/repo/util/man-db.xibuild
@@ -2,13 +2,13 @@
DEPS=(bash gdbm zlib groff libpipeline less)
-SOURCE=http://download.savannah.nongnu.org/releases/man-db/man-db-2.9.4.tar.xz
+PKG_VER=2.9.4
+SOURCE=http://download.savannah.nongnu.org/releases/man-db/man-db-$PKG_VER.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 \
+ --docdir=/usr/share/doc/man-db-$PKG_VER \
--sysconfdir=/etc \
--disable-setuid \
--enable-cache-owner=bin \
@@ -18,5 +18,8 @@ build () {
--with-systemdtmpfilesdir= \
--with-systemdsystemunitdir=
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/openssh.xibuild b/repo/util/openssh.xibuild
index 3ed91ef..a7e4b75 100644
--- a/repo/util/openssh.xibuild
+++ b/repo/util/openssh.xibuild
@@ -2,7 +2,8 @@
DEPS=(glibc krb5 openssl libedit ldns libxcrypt zlib pam)
-SOURCE=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.8p1.tar.gz
+PKG_VER=8.8p1
+SOURCE=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$PKG_VER.tar.gz
DESC="Premier connectivity tool for remote login with the SSH protocol"
build () {
@@ -14,17 +15,17 @@ build () {
--with-superuser-path=/usr/sbin:/usr/bin \
--with-pid-dir=/run
make
- make DESTDIR=$PKG_DEST install
}
package () {
+ make DESTDIR=$PKG_DEST install
install -v -m755 contrib/ssh-copy-id $PKG_DEST/usr/bin
install -v -m644 contrib/ssh-copy-id.1 \
$PKG_DEST/usr/share/man/man1
- install -v -m755 -d $PKG_DEST/usr/share/doc/openssh-8.8p1
+ install -v -m755 -d $PKG_DEST/usr/share/doc/openssh-$PKG_VER
install -v -m644 INSTALL LICENCE OVERVIEW README* \
- $PKG_DEST/usr/share/doc/openssh-8.8p1
+ $PKG_DEST/usr/share/doc/openssh-$PKG_VER
}
diff --git a/repo/util/procps-ng.xibuild b/repo/util/procps-ng.xibuild
index a5748ec..2c8731c 100644
--- a/repo/util/procps-ng.xibuild
+++ b/repo/util/procps-ng.xibuild
@@ -2,15 +2,22 @@
DEPS=(glibc ncurses)
-SOURCE=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.17.tar.xz
+PKG_VER=3.3.17
+SOURCE=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-$PKG_VER.tar.xz
DESC="Utilities for monitoring your system and its processes"
build () {
./configure --prefix=/usr \
- --docdir=/usr/share/doc/procps-ng-3.3.17 \
+ --docdir=/usr/share/doc/procps-ng-$PKG_VER \
--disable-static \
--disable-kill
make
+}
+
+check () {
make check
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/rsync.xibuild b/repo/util/rsync.xibuild
index f2547fd..e6ba587 100644
--- a/repo/util/rsync.xibuild
+++ b/repo/util/rsync.xibuild
@@ -2,13 +2,16 @@
DEPS=(sh)
-SOURCE=https://www.samba.org/ftp/rsync/src/rsync-3.2.3.tar.gz
+PKG_VER=3.2.3
+SOURCE=https://www.samba.org/ftp/rsync/src/rsync-$PKG_VER.tar.gz
DESC="A utility that provides fast incremental file transfer"
-
build () {
./configure --prefix=/usr --disable-md2man --disable-lz4 --disable-xxhash --without-included-zlib &&
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/util-linux.xibuild b/repo/util/util-linux.xibuild
index aeb7edf..46228c1 100644
--- a/repo/util/util-linux.xibuild
+++ b/repo/util/util-linux.xibuild
@@ -2,15 +2,19 @@
DEPS=(shadow coreutils libcap libxcrypt readline)
-SOURCE=https://cdn.kernel.org/pub/linux/utils/util-linux/v2.37/util-linux-2.37.2.tar.xz
+PKG_VER=2.37
+SOURCE=https://cdn.kernel.org/pub/linux/utils/util-linux/v$PKG_VER/util-linux-$PKG_VER.tar.xz
DESC="System Utilities for Linux"
build () {
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
--libdir=/usr/lib \
- --docdir=/usr/share/doc/util-linux-2.20 \
+ --docdir=/usr/share/doc/util-linux-$PKG_VER\
--disable-static \
runstatedir=/run
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}
diff --git a/repo/util/vim.xibuild b/repo/util/vim.xibuild
index 27e04ad..06c05a1 100644
--- a/repo/util/vim.xibuild
+++ b/repo/util/vim.xibuild
@@ -5,15 +5,19 @@ DEPS=(gpm acl glibc libgcrypt pcre zlib)
SOURCE=https://github.com/vim/vim.git
DESC="Vi Improved"
-build () {
+patch () {
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+}
+
+build () {
./configure --prefix=/usr --disable-gtk-check --disable-motif-check --disable-athena-check --disable-gui --disable-xsmp --without-x -disable-canberra --disable-libsodium --disable-gpm --disable-libsodium
make
- make DESTDIR=$PKG_DEST install
}
package () {
+make DESTDIR=$PKG_DEST install
+
cat > vimrc << "EOF"
" Begin /etc/vimrc
" Ensure defaults are set before customizing settings, not after
diff --git a/repo/util/which.xibuild b/repo/util/which.xibuild
index 5f682dc..8a70016 100644
--- a/repo/util/which.xibuild
+++ b/repo/util/which.xibuild
@@ -2,12 +2,17 @@
DEPS=(glibc bash)
-SOURCE=http://ftp.gnu.org/gnu/which/which-2.21.tar.gz
+PKG_VER=2.21
+
+SOURCE=http://ftp.gnu.org/gnu/which/which-$PKG_VER.tar.gz
DESC="A utility to show the full path of commands"
build () {
CC=gcc ./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}