summaryrefslogtreecommitdiff
path: root/repo/util
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
commitcb447620084a20be80d116c81c2e9ec110be7118 (patch)
tree9fc0d714abbb5c6326b60616a5fd27ec9f984895 /repo/util
parent153011e9129c6055ef21c48caf65a23e74a91418 (diff)
restructured repo system
Diffstat (limited to 'repo/util')
-rw-r--r--repo/util/bash.xibuild17
-rw-r--r--repo/util/curl.xibuild17
-rw-r--r--repo/util/diffutils.xibuild12
-rw-r--r--repo/util/e2fsprogs.xibuild27
-rw-r--r--repo/util/elfutils.xibuild13
-rw-r--r--repo/util/file.xibuild15
-rw-r--r--repo/util/gawk.xibuild12
-rw-r--r--repo/util/grep.xibuild13
-rw-r--r--repo/util/groff.xibuild12
-rw-r--r--repo/util/inetutils.xibuild12
-rw-r--r--repo/util/iproute2.xibuild14
-rw-r--r--repo/util/keyutils.xibuild11
-rw-r--r--repo/util/less.xibuild12
-rw-r--r--repo/util/make-ca.xibuild12
-rw-r--r--repo/util/man-db.xibuild22
-rw-r--r--repo/util/openssh.xibuild30
-rw-r--r--repo/util/procps-ng.xibuild16
-rw-r--r--repo/util/rsync.xibuild14
-rw-r--r--repo/util/util-linux.xibuild16
-rw-r--r--repo/util/vim.xibuild34
-rw-r--r--repo/util/which.xibuild14
21 files changed, 345 insertions, 0 deletions
diff --git a/repo/util/bash.xibuild b/repo/util/bash.xibuild
new file mode 100644
index 0000000..5b5afd0
--- /dev/null
+++ b/repo/util/bash.xibuild
@@ -0,0 +1,17 @@
+#!/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
+}
+
+package () {
+ ln $PKG_DEST/usr/bin/bash $PKG_DEST/usr/bin/sh
+}
+
diff --git a/repo/util/curl.xibuild b/repo/util/curl.xibuild
new file mode 100644
index 0000000..b5da8e4
--- /dev/null
+++ b/repo/util/curl.xibuild
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+DEPS=(cacerts openssl zlib zstd libnghttp libpsl)
+
+SOURCE=https://curl.se/download/curl-7.80.0.tar.xz
+DESC="A utility for transfering files with URL syntax"
+
+build () {
+ ./configure --prefix=/usr \
+ --disable-static \
+ --with-openssl \
+ --enable-threaded-resolver \
+ --with-ca-path=/etc/ssl/certs &&
+ make
+
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/diffutils.xibuild b/repo/util/diffutils.xibuild
new file mode 100644
index 0000000..2a14984
--- /dev/null
+++ b/repo/util/diffutils.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(glibc bash)
+
+SOURCE=https://ftp.gnu.org/gnu/diffutils/diffutils-3.8.tar.xz
+DESC="Utility programs for creating patch files"
+
+build () {
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/e2fsprogs.xibuild b/repo/util/e2fsprogs.xibuild
new file mode 100644
index 0000000..c2de603
--- /dev/null
+++ b/repo/util/e2fsprogs.xibuild
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+DEPS=(sh util-linux)
+
+SOURCE=https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.46.4/e2fsprogs-1.46.4.tar.xz
+DESC="Ext2/3/4 filesystem utils"
+
+build () {
+ mkdir -v build
+ cd build
+ ../configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-elf-shlibs \
+ --disable-libblkid \
+ --disable-libuuid \
+ --disable-uuidd \
+ --disable-fsck
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+
+package () {
+ rm -fv $PKG_DEST/usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
+ gunzip -v $PKG_DEST/usr/share/info/libext2fs.info.gz
+ install-info --dir-file=$PKG_DEST/usr/share/info/dir $PKG_DEST/usr/share/info/libext2fs.info
+}
diff --git a/repo/util/elfutils.xibuild b/repo/util/elfutils.xibuild
new file mode 100644
index 0000000..4fef630
--- /dev/null
+++ b/repo/util/elfutils.xibuild
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+DEPS=(glibc)
+
+SOURCE=https://sourceware.org/elfutils/ftp/elfutils-latest.tar.bz2
+DESC="Handle ELF object files and DWARF debugging information"
+
+build () {
+ ./configure --prefix=/usr --disable-debuginfod --enable-libdebuginfod=dummy
+ make
+ make check
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/file.xibuild b/repo/util/file.xibuild
new file mode 100644
index 0000000..150810b
--- /dev/null
+++ b/repo/util/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/util/gawk.xibuild b/repo/util/gawk.xibuild
new file mode 100644
index 0000000..e06c4e3
--- /dev/null
+++ b/repo/util/gawk.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(sh glibc mpfr)
+
+SOURCE=https://ftp.gnu.org/gnu/gawk/gawk-5.1.0.tar.xz
+DESC="GNU's awk"
+
+build () {
+ ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/grep.xibuild b/repo/util/grep.xibuild
new file mode 100644
index 0000000..aab9964
--- /dev/null
+++ b/repo/util/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/util/groff.xibuild b/repo/util/groff.xibuild
new file mode 100644
index 0000000..83d970a
--- /dev/null
+++ b/repo/util/groff.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(perl)
+
+SOURCE=https://ftp.gnu.org/gnu/groff/groff-1.22.4.tar.gz
+DESC="GNU troff text-formatting system"
+
+build () {
+ PAGE=A4 ./configure --prefix=/usr
+ make -j1
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/inetutils.xibuild b/repo/util/inetutils.xibuild
new file mode 100644
index 0000000..89bf87c
--- /dev/null
+++ b/repo/util/inetutils.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(pam libcap readline ncurses libxcrypt)
+
+SOURCE=https://ftp.gnu.org/gnu/inetutils/inetutils-2.2.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
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/iproute2.xibuild b/repo/util/iproute2.xibuild
new file mode 100644
index 0000000..94baef1
--- /dev/null
+++ b/repo/util/iproute2.xibuild
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DEPS=(glibc iptables libelf)
+
+SOURCE=https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
+DESC="IP Routing Utilities"
+
+build () {
+ sed -i /ARPD/d Makefile
+ rm -fv man/man8/arpd.8
+
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/keyutils.xibuild b/repo/util/keyutils.xibuild
new file mode 100644
index 0000000..a2341dc
--- /dev/null
+++ b/repo/util/keyutils.xibuild
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+DEPS=(glibc sh)
+
+SOURCE=https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-1.6.3.tar.gz
+DESC="Linux Key Management Utils"
+
+build () {
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/less.xibuild b/repo/util/less.xibuild
new file mode 100644
index 0000000..a2bb435
--- /dev/null
+++ b/repo/util/less.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(glibc ncurses pcre2)
+
+SOURCE=https://www.greenwoodsoftware.com/less/less-590.tar.gz
+DESC="A terminal based program for viewing text files"
+
+build () {
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/make-ca.xibuild b/repo/util/make-ca.xibuild
new file mode 100644
index 0000000..ff1ed76
--- /dev/null
+++ b/repo/util/make-ca.xibuild
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+DEPS=(p11-kit nss)
+
+SOURCE=https://github.com/djlucas/make-ca/releases/download/v1.7/make-ca-1.7.tar.xz
+DESC="A utility to deliver and manage a complete PKI configuration"
+
+build () {
+
+ make DESTDIR=$PKG_DEST install &&
+ install -vdm755 $PKG_DEST/etc/ssl/local
+}
diff --git a/repo/util/man-db.xibuild b/repo/util/man-db.xibuild
new file mode 100644
index 0000000..92ce361
--- /dev/null
+++ b/repo/util/man-db.xibuild
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+DEPS=(bash gdbm zlib groff libpipeline less)
+
+SOURCE=http://download.savannah.nongnu.org/releases/man-db/man-db-2.9.4.tar.xz
+DESC="A utility for reading man pages"
+
+build () {
+ ./configure --prefix=/usr
+ ./configure --prefix=/usr \
+ --docdir=/usr/share/doc/man-db-2.9.4 \
+ --sysconfdir=/etc \
+ --disable-setuid \
+ --enable-cache-owner=bin \
+ --with-browser=/usr/bin/lynx \
+ --with-vgrind=/usr/bin/vgrind \
+ --with-grap=/usr/bin/grap \
+ --with-systemdtmpfilesdir= \
+ --with-systemdsystemunitdir=
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/openssh.xibuild b/repo/util/openssh.xibuild
new file mode 100644
index 0000000..3ed91ef
--- /dev/null
+++ b/repo/util/openssh.xibuild
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+DEPS=(glibc krb5 openssl libedit ldns libxcrypt zlib pam)
+
+SOURCE=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.8p1.tar.gz
+DESC="Premier connectivity tool for remote login with the SSH protocol"
+
+build () {
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/ssh \
+ --with-md5-passwords \
+ --with-privsep-path=/var/lib/sshd \
+ --with-default-path=/usr/bin \
+ --with-superuser-path=/usr/sbin:/usr/bin \
+ --with-pid-dir=/run
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+
+package () {
+ 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 -m644 INSTALL LICENCE OVERVIEW README* \
+ $PKG_DEST/usr/share/doc/openssh-8.8p1
+
+}
diff --git a/repo/util/procps-ng.xibuild b/repo/util/procps-ng.xibuild
new file mode 100644
index 0000000..a5748ec
--- /dev/null
+++ b/repo/util/procps-ng.xibuild
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+DEPS=(glibc ncurses)
+
+SOURCE=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-3.3.17.tar.xz
+DESC="Utilities for monitoring your system and its processes"
+
+build () {
+ ./configure --prefix=/usr \
+ --docdir=/usr/share/doc/procps-ng-3.3.17 \
+ --disable-static \
+ --disable-kill
+ make
+ make check
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/rsync.xibuild b/repo/util/rsync.xibuild
new file mode 100644
index 0000000..f2547fd
--- /dev/null
+++ b/repo/util/rsync.xibuild
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DEPS=(sh)
+
+SOURCE=https://www.samba.org/ftp/rsync/src/rsync-3.2.3.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
+ make DESTDIR=$PKG_DEST install
+}
+
diff --git a/repo/util/util-linux.xibuild b/repo/util/util-linux.xibuild
new file mode 100644
index 0000000..aeb7edf
--- /dev/null
+++ b/repo/util/util-linux.xibuild
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+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
+DESC="System Utilities for Linux"
+
+build () {
+ ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
+ --libdir=/usr/lib \
+ --docdir=/usr/share/doc/util-linux-2.20 \
+ --disable-static \
+ runstatedir=/run
+ make
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/util/vim.xibuild b/repo/util/vim.xibuild
new file mode 100644
index 0000000..27e04ad
--- /dev/null
+++ b/repo/util/vim.xibuild
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+DEPS=(gpm acl glibc libgcrypt pcre zlib)
+
+SOURCE=https://github.com/vim/vim.git
+DESC="Vi Improved"
+
+build () {
+ echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+ ./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 () {
+ cat > vimrc << "EOF"
+" Begin /etc/vimrc
+" Ensure defaults are set before customizing settings, not after
+source $VIMRUNTIME/defaults.vim
+let skip_defaults_vim=1
+set nocompatible
+set backspace=2
+set mouse=
+syntax on
+if (&term == "xterm") || (&term == "putty")
+ set background=dark
+endif
+" End /etc/vimrc
+EOF
+ curl -sL https://davidovski.xyz/r/vim/vimrc >> vimrc
+ mkdir -pv $PKG_DEST/etc
+ cp -v vimrc $PKG_DEST/etc/vimrc
+}
diff --git a/repo/util/which.xibuild b/repo/util/which.xibuild
new file mode 100644
index 0000000..5f682dc
--- /dev/null
+++ b/repo/util/which.xibuild
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DEPS=(glibc bash)
+
+SOURCE=http://ftp.gnu.org/gnu/which/which-2.21.tar.gz
+DESC="A utility to show the full path of commands"
+
+build () {
+ CC=gcc ./configure --prefix=/usr
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+