mag

a binary package manager in one C file: apk and pacman repos, CRUX, Void and Exherbo ports
git clone https://github.com/tortr-rs/mag
Log | Files | Refs | README | LICENSE

commit 20de28cec1af29789255d2a15185cb344ac5ed67
parent 9de20393d74d181ebfddcb78e946ad53b31ce120
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 14 Nov 2026 14:21:37 +0000

repo: 50 ports by hand with real checksums, the kernel, linux-firmware and sof-firmware among them

Diffstat:
Arepo/app-arch/bzip2 | 8++++++++
Arepo/app-arch/libarchive | 11+++++++++++
Arepo/app-arch/lz4 | 8++++++++
Arepo/app-arch/pigz | 11+++++++++++
Arepo/app-arch/xz | 9+++++++++
Arepo/app-arch/zstd | 8++++++++
Arepo/app-editors/mg | 9+++++++++
Arepo/app-misc/tmux | 9+++++++++
Arepo/app-shells/dash | 10++++++++++
Arepo/app-shells/oksh | 9+++++++++
Arepo/dev-build/bc | 9+++++++++
Arepo/dev-build/bison | 9+++++++++
Arepo/dev-build/byacc | 10++++++++++
Arepo/dev-build/cmake | 9+++++++++
Arepo/dev-build/flex | 9+++++++++
Arepo/dev-build/gmake | 9+++++++++
Arepo/dev-build/m4 | 9+++++++++
Arepo/dev-build/pkgconf | 10++++++++++
Arepo/dev-build/samurai | 9+++++++++
Arepo/dev-lang/llvm | 9+++++++++
Arepo/dev-lang/perl | 9+++++++++
Arepo/dev-lang/python | 9+++++++++
Arepo/dev-libs/expat | 9+++++++++
Arepo/dev-libs/libevent | 9+++++++++
Arepo/dev-libs/libffi | 9+++++++++
Arepo/dev-libs/libressl | 9+++++++++
Arepo/dev-libs/netbsd-curses | 8++++++++
Arepo/dev-libs/pcre2 | 9+++++++++
Arepo/net-libs/libnl | 9+++++++++
Arepo/net-misc/curl | 9+++++++++
Arepo/net-misc/dhcpcd | 9+++++++++
Arepo/net-misc/dropbear | 9+++++++++
Arepo/net-misc/iproute2 | 9+++++++++
Arepo/net-wireless/iw | 8++++++++
Arepo/net-wireless/wpa_supplicant | 14++++++++++++++
Arepo/sys-apps/dinit | 9+++++++++
Arepo/sys-apps/eudev | 9+++++++++
Arepo/sys-apps/file | 9+++++++++
Arepo/sys-apps/kmod | 10++++++++++
Arepo/sys-apps/opendoas | 9+++++++++
Arepo/sys-apps/pciutils | 8++++++++
Arepo/sys-apps/usbutils | 9+++++++++
Arepo/sys-apps/util-linux | 9+++++++++
Arepo/sys-boot/limine | 9+++++++++
Arepo/sys-firmware/sof-firmware | 9+++++++++
Arepo/sys-firmware/wireless-regdb | 8++++++++
Arepo/sys-fs/dosfstools | 9+++++++++
Arepo/sys-fs/e2fsprogs | 9+++++++++
Arepo/sys-kernel/linux | 16++++++++++++++++
Arepo/sys-kernel/linux-firmware | 8++++++++
Arepo/sys-libs/musl | 9+++++++++
Arepo/sys-process/htop | 9+++++++++
52 files changed, 480 insertions(+), 0 deletions(-)

diff --git a/repo/app-arch/bzip2 b/repo/app-arch/bzip2 @@ -0,0 +1,8 @@ +desc: block-sorting compression +version: 1.0.8 +url: https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz +sha256: ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 +deps: sys-libs/musl +steps: + make -j$JOBS libbz2.a bzip2 bzip2recover + make PREFIX=$DESTDIR$PREFIX install diff --git a/repo/app-arch/libarchive b/repo/app-arch/libarchive @@ -0,0 +1,11 @@ +desc: bsdtar, bsdcpio and the library under them; the tar of this system +version: 3.8.11 +url: https://github.com/libarchive/libarchive/releases/download/v${version}/libarchive-${version}.tar.xz +sha256: a3dc0872b1b39da34dc18ef1b944f0f11ffd37425d70ae04be679279f1cf43d2 +deps: sys-libs/zlib app-arch/xz app-arch/zstd app-arch/bzip2 app-arch/lz4 dev-libs/libressl +steps: + ./configure --prefix=$PREFIX --disable-shared --without-xml2 --without-expat --without-iconv --without-nettle + make -j$JOBS + make DESTDIR=$DESTDIR install + ln -s bsdtar $DESTDIR$PREFIX/bin/tar + ln -s bsdcpio $DESTDIR$PREFIX/bin/cpio diff --git a/repo/app-arch/lz4 b/repo/app-arch/lz4 @@ -0,0 +1,8 @@ +desc: extremely fast compression +version: 1.11.1 +url: https://github.com/lz4/lz4/releases/download/v${version}/lz4-${version}.tar.gz +sha256: 683fed08a844ad012196381e40badf80c0bbe4962959761416d41c9e67d77ec7 +deps: sys-libs/musl +steps: + make -j$JOBS BUILD_SHARED=no prefix=$PREFIX + make BUILD_SHARED=no prefix=$PREFIX DESTDIR=$DESTDIR install diff --git a/repo/app-arch/pigz b/repo/app-arch/pigz @@ -0,0 +1,11 @@ +desc: parallel gzip +version: 2.8 +url: https://zlib.net/pigz/pigz-${version}.tar.gz +sha256: eb872b4f0e1f0ebe59c9f7bd8c506c4204893ba6a8492de31df416f0d5170fd0 +deps: sys-libs/zlib +steps: + make -j$JOBS + install -D pigz $DESTDIR$PREFIX/bin/pigz + ln -s pigz $DESTDIR$PREFIX/bin/unpigz + ln -s pigz $DESTDIR$PREFIX/bin/gzip + ln -s pigz $DESTDIR$PREFIX/bin/gunzip diff --git a/repo/app-arch/xz b/repo/app-arch/xz @@ -0,0 +1,9 @@ +desc: LZMA compression, the xz tools and liblzma +version: 5.8.4 +url: https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.xz +sha256: 4ce24038fd4221e0d13bc1a2de7a4db56e90b92b3bf75321f6c14be73f65de4b +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared --disable-nls --disable-doc + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/app-arch/zstd b/repo/app-arch/zstd @@ -0,0 +1,8 @@ +desc: fast compression from Facebook +version: 1.5.7 +url: https://github.com/facebook/zstd/releases/download/v${version}/zstd-${version}.tar.gz +sha256: eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3 +deps: sys-libs/musl +steps: + make -j$JOBS prefix=$PREFIX HAVE_THREAD=0 HAVE_ZLIB=0 HAVE_LZMA=0 HAVE_LZ4=0 + make prefix=$PREFIX DESTDIR=$DESTDIR install diff --git a/repo/app-editors/mg b/repo/app-editors/mg @@ -0,0 +1,9 @@ +desc: micro Emacs-style editor from OpenBSD +version: 4.7 +url: https://github.com/troglobit/mg/releases/download/v${version}/mg-${version}.tar.gz +sha256: c8a38ad43a260874a3b5471963253e1a4dbdaf251e71ff451bc1fef000d1166c +deps: dev-libs/netbsd-curses +steps: + ./configure --prefix=$PREFIX + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/app-misc/tmux b/repo/app-misc/tmux @@ -0,0 +1,9 @@ +desc: terminal multiplexer +version: 3.8 +url: https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz +sha256: e79c699c7e949dccd0a4a125e17b8d1261e311b16979dbc8eb34542f3966d82e +deps: dev-libs/libevent dev-libs/netbsd-curses dev-build/byacc +steps: + ./configure --prefix=$PREFIX + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/app-shells/dash b/repo/app-shells/dash @@ -0,0 +1,10 @@ +desc: the small POSIX shell, /bin/sh +version: 0.5.13.6 +url: http://gondor.apana.org.au/~herbert/dash/files/dash-${version}.tar.gz +sha256: 26aac476f476cef391c600cb064417d82a5465d8fc7c4fd56158c276e86538c1 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared + make -j$JOBS + make DESTDIR=$DESTDIR install + ln -s dash $DESTDIR$PREFIX/bin/sh diff --git a/repo/app-shells/oksh b/repo/app-shells/oksh @@ -0,0 +1,9 @@ +desc: the portable OpenBSD ksh, for interactive use +version: 7.9 +url: https://github.com/ibara/oksh/releases/download/oksh-${version}/oksh-${version}.tar.gz +sha256: 51b2d92515950c959dbf24f6fc33336db8c0526c2a50fee4ca598a18a6114a49 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --no-thanks + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-build/bc b/repo/dev-build/bc @@ -0,0 +1,9 @@ +desc: Gavin Howard's bc and dc +version: 7.0.3 +url: https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz +sha256: 91eb74caed0ee6655b669711a4f350c25579778694df248e28363318e03c7fc4 +deps: sys-libs/musl +steps: + ./configure.sh -G -O3 --prefix=$PREFIX --disable-nls + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-build/bison b/repo/dev-build/bison @@ -0,0 +1,9 @@ +desc: GNU bison. only a build tool of the kernel, nothing else may depend on it +version: 3.8.2 +url: https://ftp.gnu.org/gnu/bison/bison-${version}.tar.xz +sha256: 9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2 +deps: dev-build/m4 +steps: + ./configure --prefix=$PREFIX --disable-nls + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-build/byacc b/repo/dev-build/byacc @@ -0,0 +1,10 @@ +desc: Berkeley yacc, the parser generator that isn't bison +version: 20260126 +url: https://invisible-mirror.net/archives/byacc/byacc-${version}.tgz +sha256: b618c5fb44c2f5f048843db90f7d1b24f78f47b07913c8c7ba8c942d3eb24b00 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --program-prefix= + make -j$JOBS + make DESTDIR=$DESTDIR install + ln -s yacc $DESTDIR$PREFIX/bin/byacc diff --git a/repo/dev-build/cmake b/repo/dev-build/cmake @@ -0,0 +1,9 @@ +desc: cross platform build system generator +version: 4.5.0 +url: https://github.com/Kitware/CMake/releases/download/v${version}/cmake-${version}.tar.gz +sha256: 424352d6133e8455e020da787008e8dc67abb18820af3532572ab35657e49213 +deps: dev-libs/libressl dev-build/samurai +steps: + ./bootstrap --prefix=$PREFIX --parallel=$JOBS --generator=Ninja --no-system-libs -- -DCMAKE_USE_OPENSSL=ON + samu + DESTDIR=$DESTDIR samu install diff --git a/repo/dev-build/flex b/repo/dev-build/flex @@ -0,0 +1,9 @@ +desc: flex, the lexer generator. only a build tool of the kernel, nothing else may depend on it +version: 2.6.4 +url: https://github.com/westes/flex/releases/download/v${version}/flex-${version}.tar.gz +sha256: e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995 +deps: dev-build/m4 +steps: + ./configure --prefix=$PREFIX --disable-nls --disable-shared + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-build/gmake b/repo/dev-build/gmake @@ -0,0 +1,9 @@ +desc: GNU make. only here to build the kernel and musl, nothing else may depend on it +version: 4.4.1 +url: https://ftp.gnu.org/gnu/make/make-${version}.tar.gz +sha256: dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --program-prefix=g --disable-nls + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-build/m4 b/repo/dev-build/m4 @@ -0,0 +1,9 @@ +desc: GNU m4. only a build tool of the kernel (through bison and flex), nothing else may depend on it +version: 1.4.20 +url: https://ftp.gnu.org/gnu/m4/m4-${version}.tar.xz +sha256: e236ea3a1ccf5f6c270b1c4bb60726f371fa49459a8eaaebc90b216b328daf2b +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-nls + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-build/pkgconf b/repo/dev-build/pkgconf @@ -0,0 +1,10 @@ +desc: pkg-config without the GNU +version: 3.0.10 +url: https://distfiles.ariadne.space/pkgconf/pkgconf-${version}.tar.xz +sha256: 9371b2f6372da574d4c6dc96fe9b1463037bcf6afcb6671c1555afde7b17e2de +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared + make -j$JOBS + make DESTDIR=$DESTDIR install + ln -s pkgconf $DESTDIR$PREFIX/bin/pkg-config diff --git a/repo/dev-build/samurai b/repo/dev-build/samurai @@ -0,0 +1,9 @@ +desc: ninja in C99, no make needed +version: 1.3 +url: https://github.com/michaelforney/samurai/releases/download/${version}/samurai-${version}.tar.gz +sha256: 1bc020a9e133432df51911ac71cc34322f828934d9a2282ba2916d88c15976af +deps: sys-libs/musl +steps: + make -j$JOBS + make PREFIX=$PREFIX DESTDIR=$DESTDIR install + ln -s samu $DESTDIR$PREFIX/bin/ninja diff --git a/repo/dev-lang/llvm b/repo/dev-lang/llvm @@ -0,0 +1,9 @@ +desc: llvm, clang, lld: the compiler, linker and tools of the whole system +version: 23.1.5 +url: https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/llvm-project-${version}.src.tar.xz +sha256: fb50b1eac93ddeb3aa8dab4cfe324dff74f4a9c2bdee6160c9e36188f8d06a6e +deps: dev-build/cmake dev-build/samurai dev-lang/python sys-libs/zlib app-arch/zstd +steps: + cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_ZLIB=ON -DLLVM_ENABLE_ZSTD=ON -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF -DCLANG_DEFAULT_LINKER=lld -DCLANG_DEFAULT_RTLIB=compiler-rt -DLLVM_ENABLE_LIBXML2=OFF + samu -C build -j$JOBS + DESTDIR=$DESTDIR samu -C build install diff --git a/repo/dev-lang/perl b/repo/dev-lang/perl @@ -0,0 +1,9 @@ +desc: perl. a build tool of the kernel and of a lot of ports +version: 5.44.0 +url: https://www.cpan.org/src/5.0/perl-${version}.tar.xz +sha256: 505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91 +deps: sys-libs/musl +steps: + sh Configure -des -Dprefix=$PREFIX -Dcc=clang -Uusedl -Dman1dir=none -Dman3dir=none + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-lang/python b/repo/dev-lang/python @@ -0,0 +1,9 @@ +desc: python +version: 3.15.2 +url: https://www.python.org/ftp/python/${version}/Python-${version}.tar.xz +sha256: 8b5536d280142ecf6cdfe15d12a21ba1c65e300bbf7b28a8d0cdb849575797de +deps: sys-libs/zlib app-arch/xz dev-libs/libffi dev-libs/expat dev-libs/libressl dev-build/pkgconf +steps: + ./configure --prefix=$PREFIX --without-ensurepip --with-system-expat --disable-test-modules + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-libs/expat b/repo/dev-libs/expat @@ -0,0 +1,9 @@ +desc: stream-oriented XML parser +version: 2.10.0 +url: https://github.com/libexpat/libexpat/releases/download/R_2_10_0/expat-${version}.tar.xz +sha256: c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared --without-docbook + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-libs/libevent b/repo/dev-libs/libevent @@ -0,0 +1,9 @@ +desc: event notification library +version: 2.1.13-stable +url: https://github.com/libevent/libevent/releases/download/release-${version}/libevent-${version}.tar.gz +sha256: f7e9383b8c0baa81b687e5b5eecc01beefaf1b19b64151d95ed61647fe7a315c +deps: dev-libs/libressl +steps: + ./configure --prefix=$PREFIX --disable-shared --disable-samples + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-libs/libffi b/repo/dev-libs/libffi @@ -0,0 +1,9 @@ +desc: foreign function interface +version: 3.8.1 +url: https://github.com/libffi/libffi/releases/download/v${version}/libffi-${version}.tar.gz +sha256: 81e879c094cc5ec3186c48510c6385ac6b3e866192e8bc71a35245703757ee40 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared --disable-docs + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-libs/libressl b/repo/dev-libs/libressl @@ -0,0 +1,9 @@ +desc: the OpenBSD fork of OpenSSL: TLS and crypto +version: 4.4.1 +url: https://cdn.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${version}.tar.gz +sha256: 290cdf1b53c086255dc302f118b98602a444e9ae6d11e9bfdd8c9b1b60aa3a22 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --sysconfdir=/etc --disable-shared + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/dev-libs/netbsd-curses b/repo/dev-libs/netbsd-curses @@ -0,0 +1,8 @@ +desc: curses from NetBSD, the ncurses that is not GNU +version: 0.3.2 +url: http://ftp.barfooze.de/pub/sabotage/tarballs/netbsd-curses-${version}.tar.xz +sha256: d28358b833e6cabcf229fecef98c649e2e90c29858aa34220476faf0e5ce10a1 +deps: sys-libs/musl +steps: + make -j$JOBS PREFIX=$PREFIX + make PREFIX=$PREFIX DESTDIR=$DESTDIR install diff --git a/repo/dev-libs/pcre2 b/repo/dev-libs/pcre2 @@ -0,0 +1,9 @@ +desc: Perl compatible regular expressions +version: 10.49 +url: https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2 +sha256: 53c156e1ba416a20da8e65395daa132da0d80e76910424caca3fcdae7831d384 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared --enable-jit + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/net-libs/libnl b/repo/net-libs/libnl @@ -0,0 +1,9 @@ +desc: netlink library, for iw and wpa_supplicant +version: 3.12.0 +url: https://github.com/thom311/libnl/releases/download/libnl3_12_0/libnl-${version}.tar.gz +sha256: fc51ca7196f1a3f5fdf6ffd3864b50f4f9c02333be28be4eeca057e103c0dd18 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --sysconfdir=/etc --disable-shared --disable-cli + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/net-misc/curl b/repo/net-misc/curl @@ -0,0 +1,9 @@ +desc: URL transfer tool and libcurl +version: 8.23.0 +url: https://curl.se/download/curl-${version}.tar.xz +sha256: 8dadd7d2536a314f982ad05a651b713f426bf7d02cc2c76cffb9796f2218e6c5 +deps: dev-libs/libressl sys-libs/zlib app-arch/zstd +steps: + ./configure --prefix=$PREFIX --disable-shared --with-openssl --with-ca-bundle=/etc/ssl/cert.pem --without-libpsl --disable-ldap + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/net-misc/dhcpcd b/repo/net-misc/dhcpcd @@ -0,0 +1,9 @@ +desc: DHCP and IPv6 router solicitation client +version: 10.5.2 +url: https://github.com/NetworkConfiguration/dhcpcd/releases/download/v${version}/dhcpcd-${version}.tar.xz +sha256: 3e476657fdb6eeb38b277da3a48d0ac0113ecce5858ebdcddff2b629faed52b4 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --sysconfdir=/etc --dbdir=/var/lib/dhcpcd --runstatedir=/run --libexecdir=$PREFIX/lib/dhcpcd + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/net-misc/dropbear b/repo/net-misc/dropbear @@ -0,0 +1,9 @@ +desc: small SSH server and client +version: 2026.94 +url: https://matt.ucc.asn.au/dropbear/releases/dropbear-${version}.tar.bz2 +sha256: e098034a843699200c8c977a991fff73159735bf795d5f72ef672c41a6b1ae81 +deps: sys-libs/zlib +steps: + ./configure --prefix=$PREFIX --disable-pam --disable-lastlog --disable-utmp --disable-wtmp --disable-zlib + make -j$JOBS PROGRAMS="dropbear dbclient dropbearkey scp" + make DESTDIR=$DESTDIR PROGRAMS="dropbear dbclient dropbearkey scp" install diff --git a/repo/net-misc/iproute2 b/repo/net-misc/iproute2 @@ -0,0 +1,9 @@ +desc: ip, ss, tc: the network tools of the kernel +version: 7.3.0 +url: https://cdn.kernel.org/pub/linux/utils/net/iproute2/iproute2-${version}.tar.xz +sha256: 5c1789d290bba048a6135ed1ab81b0402dd0fb528d1f1421765c42b1fc3d6289 +deps: dev-build/bison dev-build/flex dev-build/pkgconf +steps: + ./configure + make -j$JOBS + make DESTDIR=$DESTDIR PREFIX=$PREFIX SBINDIR=$PREFIX/bin install diff --git a/repo/net-wireless/iw b/repo/net-wireless/iw @@ -0,0 +1,8 @@ +desc: nl80211 wireless configuration tool +version: 6.17 +url: https://cdn.kernel.org/pub/software/network/iw/iw-${version}.tar.xz +sha256: 7d182e498289ab39b257da6780d562e415377107f50358ee5b55b8cfe40b1e33 +deps: net-libs/libnl dev-build/pkgconf +steps: + make -j$JOBS + make PREFIX=$PREFIX DESTDIR=$DESTDIR install diff --git a/repo/net-wireless/wpa_supplicant b/repo/net-wireless/wpa_supplicant @@ -0,0 +1,14 @@ +desc: WPA/WPA2/WPA3 supplicant for wifi +version: 2.12 +url: https://w1.fi/releases/wpa_supplicant-${version}.tar.gz +sha256: 08e23937e16d0155e55cab2b51f51fbe10d80a1aa91c4e15442645059b737ef6 +deps: net-libs/libnl dev-libs/libressl dev-build/pkgconf +steps: + cd wpa_supplicant + cp defconfig .config + echo CONFIG_CTRL_IFACE_DBUS_NEW=n >>.config + echo CONFIG_READLINE=n >>.config + make -j$JOBS + install -D wpa_supplicant $DESTDIR$PREFIX/sbin/wpa_supplicant + install -D wpa_cli $DESTDIR$PREFIX/sbin/wpa_cli + install -D wpa_passphrase $DESTDIR$PREFIX/bin/wpa_passphrase diff --git a/repo/sys-apps/dinit b/repo/sys-apps/dinit @@ -0,0 +1,9 @@ +desc: service manager and init +version: 0.23.0 +url: https://github.com/davmac314/dinit/releases/download/v${version}/dinit-${version}.tar.xz +sha256: b99067eb85f6e69c7e1411b6e0956ea1ae0831598bae5a4361ebef87317c326e +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --sbindir=$PREFIX/bin --sysconfdir=/etc --disable-shutdown --unit-dir=/etc/dinit.d + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-apps/eudev b/repo/sys-apps/eudev @@ -0,0 +1,9 @@ +desc: udev without systemd: device nodes and hotplug +version: 3.3.0 +url: https://github.com/eudev-project/eudev/releases/download/v${version}/eudev-${version}.tar.gz +sha256: 8fba6e4f49ea4b1938828a3c2e7cc48874816c68621386e527076b6477f5d6ef +deps: sys-apps/kmod sys-apps/util-linux +steps: + ./configure --prefix=$PREFIX --sysconfdir=/etc --disable-shared --disable-manpages --disable-hwdb + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-apps/file b/repo/sys-apps/file @@ -0,0 +1,9 @@ +desc: file type detection +version: 5.48 +url: https://astron.com/pub/file/file-${version}.tar.gz +sha256: ed14656883b23a364b4057c05595d93252da9bc473d30106519519d0da141283 +deps: sys-libs/zlib +steps: + ./configure --prefix=$PREFIX --disable-shared --disable-libseccomp --disable-bzlib --disable-xzlib --disable-zstdlib + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-apps/kmod b/repo/sys-apps/kmod @@ -0,0 +1,10 @@ +desc: kernel module tools: modprobe, insmod, lsmod +version: 34.3 +url: https://cdn.kernel.org/pub/linux/utils/kernel/kmod/kmod-${version}.tar.xz +sha256: 985554de49c21a58abd68c6cda2251384e1e5bb08b3b14c7f02b51f4c90c2958 +deps: app-arch/zstd app-arch/xz sys-libs/zlib +steps: + ./configure --prefix=$PREFIX --sysconfdir=/etc --disable-shared --with-zstd --with-xz --with-zlib --disable-manpages + make -j$JOBS + make DESTDIR=$DESTDIR install + for t in depmod insmod lsmod modinfo modprobe rmmod; do ln -sf kmod $DESTDIR$PREFIX/bin/$t; done diff --git a/repo/sys-apps/opendoas b/repo/sys-apps/opendoas @@ -0,0 +1,9 @@ +desc: doas, the small sudo +version: 6.8.2 +url: https://github.com/Duncaen/OpenDoas/releases/download/v${version}/opendoas-${version}.tar.xz +sha256: 4e98828056d6266bd8f2c93e6ecf12a63a71dbfd70a5ea99ccd4ab6d0745adf0 +deps: dev-build/byacc +steps: + ./configure --prefix=$PREFIX --without-pam --with-timestamp + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-apps/pciutils b/repo/sys-apps/pciutils @@ -0,0 +1,8 @@ +desc: lspci and setpci +version: 3.15.0 +url: https://cdn.kernel.org/pub/software/utils/pciutils/pciutils-${version}.tar.xz +sha256: c02940f430841ecf158d5d9a50007afc4d5353c8678a2455003ca0b2c4e9f5ff +deps: sys-libs/zlib +steps: + make -j$JOBS PREFIX=$PREFIX SHARED=no ZLIB=yes DNS=no + make PREFIX=$PREFIX SHARED=no DESTDIR=$DESTDIR install diff --git a/repo/sys-apps/usbutils b/repo/sys-apps/usbutils @@ -0,0 +1,9 @@ +desc: lsusb +version: 020 +url: https://cdn.kernel.org/pub/linux/utils/usb/usbutils/usbutils-${version}.tar.xz +sha256: 20287d68fcd9ebb50a05ba0645a4af7583bd8dfc7307215ba121e4bc6d057aa1 +deps: sys-apps/eudev dev-build/samurai +steps: + meson setup build --prefix=$PREFIX + samu -C build + DESTDIR=$DESTDIR samu -C build install diff --git a/repo/sys-apps/util-linux b/repo/sys-apps/util-linux @@ -0,0 +1,9 @@ +desc: mount, fdisk, lsblk, losetup and the other basics from the kernel people +version: 2.42 +url: https://cdn.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-${version}.tar.xz +sha256: 3452b260bbaa775d6e749ac3bb22111785003fc1f444970025c8da26dfa758e9 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --disable-shared --disable-nls --disable-liblastlog2 --without-python --without-systemd --without-udev --disable-makeinstall-chown --disable-makeinstall-setuid + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-boot/limine b/repo/sys-boot/limine @@ -0,0 +1,9 @@ +desc: the bootloader, BIOS and UEFI +version: 12.10.0 +url: https://github.com/limine-bootloader/limine/releases/download/v${version}/limine-${version}.tar.xz +sha256: 58ccb2bf39bdbda60cbbb2a2678c42e27a4424d6190a5f370e4e060bba20116b +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --enable-uefi-x86-64 --enable-bios --enable-bios-cd + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-firmware/sof-firmware b/repo/sys-firmware/sof-firmware @@ -0,0 +1,9 @@ +desc: Intel Sound Open Firmware and topologies, for the sound card of most laptops since 2018 +version: 2026.09.2 +url: https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-${version}.tar.gz +sha256: 5f7bc30b2b5c1e6b0da55a33fc44e2b7f56ae9b06952edcde614f51ef6b943e1 +deps: +steps: + mkdir -p $DESTDIR/lib/firmware/intel + for d in sof sof-ipc4 sof-ipc4-lib sof-ipc4-tplg sof-ace-tplg sof-tplg; do [ -d $d ] && cp -R $d $DESTDIR/lib/firmware/intel/; done + install -Dm644 LICENCE.Intel $DESTDIR/lib/firmware/intel/LICENCE.sof diff --git a/repo/sys-firmware/wireless-regdb b/repo/sys-firmware/wireless-regdb @@ -0,0 +1,8 @@ +desc: the wireless regulatory database the kernel asks for +version: 2026.09.03 +url: https://cdn.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-${version}.tar.xz +sha256: b22e0901227b820cd1c280abe681a15b773a5103a5e10dc442e94ebb34cbf58d +deps: +steps: + install -Dm644 regulatory.db $DESTDIR/lib/firmware/regulatory.db + install -Dm644 regulatory.db.p7s $DESTDIR/lib/firmware/regulatory.db.p7s diff --git a/repo/sys-fs/dosfstools b/repo/sys-fs/dosfstools @@ -0,0 +1,9 @@ +desc: mkfs.fat and fsck.fat, for the EFI partition +version: 4.2 +url: https://github.com/dosfstools/dosfstools/releases/download/v${version}/dosfstools-${version}.tar.gz +sha256: 64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527 +deps: sys-libs/musl +steps: + ./configure --prefix=$PREFIX --without-udev + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-fs/e2fsprogs b/repo/sys-fs/e2fsprogs @@ -0,0 +1,9 @@ +desc: mkfs.ext4, e2fsck and the ext tools +version: 1.47.4 +url: https://cdn.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v${version}/e2fsprogs-${version}.tar.xz +sha256: fd5bf388cbdbe006a3d3b318d983b2948382440acc85a87f1e7d108653e8db0b +deps: sys-apps/util-linux +steps: + ./configure --prefix=$PREFIX --sysconfdir=/etc --disable-nls --disable-fuse2fs --disable-uuidd --disable-libblkid --disable-libuuid + make -j$JOBS + make DESTDIR=$DESTDIR install diff --git a/repo/sys-kernel/linux b/repo/sys-kernel/linux @@ -0,0 +1,16 @@ +desc: the kernel. built with clang and lld; gmake, flex, bison and bc are build tools for it and for nothing else +version: 6.18.63 +url: https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${version}.tar.xz +sha256: 81764a545072d160748beff4d9de2e7d95aa9f16e8261110288f067a2cc61d71 +deps: dev-build/gmake dev-build/bison dev-build/flex dev-build/bc dev-lang/perl dev-lang/llvm sys-apps/kmod +steps: + K="gmake LLVM=1 HOSTCC=clang -j$JOBS" + $K defconfig + scripts/config -d UNWINDER_ORC -e UNWINDER_FRAME_POINTER -d DEBUG_INFO_BTF -d MODULE_SIG -d SYSTEM_TRUSTED_KEYRING -d SYSTEM_REVOCATION_KEYS + scripts/config -e DEVTMPFS -e DEVTMPFS_MOUNT -e EFI_STUB -e FW_LOADER -e FW_LOADER_COMPRESS -e FW_LOADER_COMPRESS_ZSTD -e BLK_DEV_INITRD + $K olddefconfig + $K bzImage modules + install -Dm644 arch/x86/boot/bzImage $DESTDIR/boot/vmlinuz-$VERSION + install -Dm644 System.map $DESTDIR/boot/System.map-$VERSION + install -Dm644 .config $DESTDIR/boot/config-$VERSION + $K INSTALL_MOD_PATH=$DESTDIR modules_install diff --git a/repo/sys-kernel/linux-firmware b/repo/sys-kernel/linux-firmware @@ -0,0 +1,8 @@ +desc: firmware blobs for wifi, graphics, ethernet and the rest, compressed with zstd +version: 20261019 +url: https://cdn.kernel.org/pub/linux/kernel/firmware/linux-firmware-${version}.tar.xz +sha256: a10d1ab5baf2c74ba92e8c7cf313e691696c26bddfa6df00db795e48d70cd4ca +deps: app-arch/zstd +steps: + install -d $DESTDIR/lib/firmware + ./copy-firmware.sh --zstd $DESTDIR/lib/firmware diff --git a/repo/sys-libs/musl b/repo/sys-libs/musl @@ -0,0 +1,9 @@ +desc: the libc most of the ports build against. its Makefile needs gmake, so gmake is a build dep here as well as for the kernel +version: 1.2.5 +url: https://musl.libc.org/releases/musl-${version}.tar.gz +sha256: a9a118bbe84d8764da0ea0d28b3ab3fae8477fc7e4085d90102b8596fc7c75e4 +deps: dev-build/gmake +steps: + CC=clang ./configure --prefix=$PREFIX --disable-shared + gmake -j$JOBS + gmake DESTDIR=$DESTDIR install diff --git a/repo/sys-process/htop b/repo/sys-process/htop @@ -0,0 +1,9 @@ +desc: interactive process viewer +version: 3.5.3 +url: https://github.com/htop-dev/htop/releases/download/${version}/htop-${version}.tar.xz +sha256: a8b164386494cb85bb255a415a3f5f80afe7a0c4491da5d113b3a0f951087e65 +deps: dev-libs/netbsd-curses +steps: + ./configure --prefix=$PREFIX --disable-unicode + make -j$JOBS + make DESTDIR=$DESTDIR install