summaryrefslogtreecommitdiff
path: root/repo/util
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-27 18:34:26 +0100
committerdavidovski <david@davidovski.xyz>2022-05-27 18:34:26 +0100
commit4615385d6c8203001962a7a31dd02cdb1a73544b (patch)
tree0ff0ea93838f9c39ee5a09066ad05d9567e31437 /repo/util
parent7b0628f037dcbf85cfb381d5e05dea39a2059d33 (diff)
added tor
Diffstat (limited to 'repo/util')
-rw-r--r--repo/util/dracut/dracut.xibuild2
-rw-r--r--repo/util/htop/htop.xibuild4
-rw-r--r--repo/util/iproute2/iproute2.xibuild2
-rw-r--r--repo/util/lvm2/device-mapper.xibuild11
-rw-r--r--repo/util/lvm2/dmeventd.initd26
-rw-r--r--repo/util/lvm2/fix-stdio-usage.patch49
-rw-r--r--repo/util/lvm2/lvm.confd5
-rw-r--r--repo/util/lvm2/lvm.initd38
-rw-r--r--repo/util/lvm2/lvm2.xibuild48
-rw-r--r--repo/util/lvm2/mallinfo.patch11
-rw-r--r--repo/util/lvm2/mlockall-default-config.patch22
-rw-r--r--repo/util/mksh/mksh.xibuild2
-rw-r--r--repo/util/mpd-mpc/mpd-mpc.xibuild11
-rw-r--r--repo/util/net-tools/net-tools.xibuild2
-rw-r--r--repo/util/pm-utils/pm-utils.xibuild2
15 files changed, 7 insertions, 228 deletions
diff --git a/repo/util/dracut/dracut.xibuild b/repo/util/dracut/dracut.xibuild
index 3bc9e0a..a489fba 100644
--- a/repo/util/dracut/dracut.xibuild
+++ b/repo/util/dracut/dracut.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make asciidoc musl-fts"
-DEPS="bash sbase cpio findutils grep gzip kmod pkgconf procps-ng sed util-linux xz"
+DEPS="bash sbase cpio findutils grep gzip kmod pkg-config procps-ng sed util-linux xz"
DESC="An initramfs infastructure aimin gto have as little possible hardcoded into the initramfs"
diff --git a/repo/util/htop/htop.xibuild b/repo/util/htop/htop.xibuild
index c2918f5..0f8d5c2 100644
--- a/repo/util/htop/htop.xibuild
+++ b/repo/util/htop/htop.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
-MAKEDEPS="autoconf autotools make"
-DEPS="libcap libnl ncurses lm-sensors hwloc"
+MAKEDEPS="autoconf make"
+DEPS="libcap libnl ncurses lm-sensors "
PKG_VER=3.1.2
SOURCE=https://github.com/htop-dev/htop/releases/download/$PKG_VER/htop-$PKG_VER.tar.xz
diff --git a/repo/util/iproute2/iproute2.xibuild b/repo/util/iproute2/iproute2.xibuild
index 3d0062d..47d2e9a 100644
--- a/repo/util/iproute2/iproute2.xibuild
+++ b/repo/util/iproute2/iproute2.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make "
-DEPS="musl iptables libelf"
+DEPS="musl libelf"
SOURCE=https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
DESC="IP Routing Utilities"
diff --git a/repo/util/lvm2/device-mapper.xibuild b/repo/util/lvm2/device-mapper.xibuild
deleted file mode 100644
index 8db667b..0000000
--- a/repo/util/lvm2/device-mapper.xibuild
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-DESC="Device-mapper event daemon"
-
-package() {
- install -Dm755 dmeventd.initd "$PKG_DEST"/etc/init.d/dmeventd
-
- add_from_main sbin/dmeventd
- add_from_main usr/lib/libdevmapper.a "sbin/dm*"
- add_from_main lib/libdevmapper*
-}
-
diff --git a/repo/util/lvm2/dmeventd.initd b/repo/util/lvm2/dmeventd.initd
deleted file mode 100644
index c46f8ba..0000000
--- a/repo/util/lvm2/dmeventd.initd
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.3 2014/02/08 21:17:46 robbat2 Exp $
-
-PIDFILE=/run/dmeventd.pid
-BIN=/sbin/dmeventd
-
-depend() {
- # As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
- # means dmeventd is NOT notified, as it cannot be safely running
- after lvm device-mapper
-}
-
-start() {
- ebegin "Starting dmeventd"
- start-stop-daemon --start --exec $BIN --pidfile $PIDFILE
- eend $?
-}
-
-stop() {
- ebegin "Stopping dmeventd"
- start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE
- eend $?
-}
-
diff --git a/repo/util/lvm2/fix-stdio-usage.patch b/repo/util/lvm2/fix-stdio-usage.patch
deleted file mode 100644
index 5ac99fd..0000000
--- a/repo/util/lvm2/fix-stdio-usage.patch
+++ /dev/null
@@ -1,49 +0,0 @@
---- ./tools/lvmcmdline.c
-+++ ./tools/lvmcmdline.c
-@@ -1252,7 +1252,7 @@
- int err = is_valid_fd(STDERR_FILENO);
-
- if (!is_valid_fd(STDIN_FILENO) &&
-- !(stdin = fopen(_PATH_DEVNULL, "r"))) {
-+ !freopen(_PATH_DEVNULL, "r", stdin)) {
- if (err)
- perror("stdin stream open");
- else
-@@ -1262,7 +1262,7 @@
- }
-
- if (!is_valid_fd(STDOUT_FILENO) &&
-- !(stdout = fopen(_PATH_DEVNULL, "w"))) {
-+ !freopen(_PATH_DEVNULL, "w", stdout)) {
- if (err)
- perror("stdout stream open");
- /* else no stdout */
-@@ -1270,7 +1270,7 @@
- }
-
- if (!is_valid_fd(STDERR_FILENO) &&
-- !(stderr = fopen(_PATH_DEVNULL, "w"))) {
-+ !freopen(_PATH_DEVNULL, "w", stderr)) {
- printf("stderr stream open: %s\n",
- strerror(errno));
- return 0;
---- ./lib/commands/toolcontext.c
-+++ ./lib/commands/toolcontext.c
-@@ -1869,7 +1869,7 @@
- /* FIXME Make this configurable? */
- reset_lvm_errno(1);
-
--#ifndef VALGRIND_POOL
-+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
- /* Set in/out stream buffering before glibc */
- if (set_buffering
- #ifdef SYS_gettid
-@@ -2274,7 +2274,7 @@
-
- if (cmd->pending_delete_mem)
- dm_pool_destroy(cmd->pending_delete_mem);
--#ifndef VALGRIND_POOL
-+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
- if (cmd->linebuffer) {
- /* Reset stream buffering to defaults */
- if (is_valid_fd(STDIN_FILENO) &&
diff --git a/repo/util/lvm2/lvm.confd b/repo/util/lvm2/lvm.confd
deleted file mode 100644
index 9d150f6..0000000
--- a/repo/util/lvm2/lvm.confd
+++ /dev/null
@@ -1,5 +0,0 @@
-# LVM should normally only be started after mdadm-raid is available
-# this is because LVM physical volumes are very often MD devices.
-
-rc_after="mdadm-raid"
-
diff --git a/repo/util/lvm2/lvm.initd b/repo/util/lvm2/lvm.initd
deleted file mode 100644
index db6adbe..0000000
--- a/repo/util/lvm2/lvm.initd
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/sbin/openrc-run
-
-depend() {
- before checkfs fsck swap
- after hwdrivers modules device-mapper
-}
-
-dm_in_proc() {
- local rc=0 i=
- for i in devices misc; do
- grep -qs 'device-mapper' /proc/$i
- rc=$(($rc + $?))
- done
- return $rc
-}
-
-start() {
- local rc=0 msg=
- ebegin "Setting up the Logical Volume Manager"
- if [ -e /proc/modules ] && ! dm_in_proc; then
- modprobe dm-mod 2>/dev/null
- fi
- if [ -d /proc/lvm ] || dm_in_proc; then
- vgscan --mknodes --ignorelockingfailure >/dev/null 2>&1
- vgchange --sysinit --activate y >/dev/null 2>&1
- rc=$?
- else
- rc=1
- fi
- eend $rc
-}
-
-stop() {
- ebegin "Shutting down the Logical Volume Manager"
- vgchange --ignorelockingfailure -a n >/dev/null 2>&1
- eend $?
-}
-
diff --git a/repo/util/lvm2/lvm2.xibuild b/repo/util/lvm2/lvm2.xibuild
deleted file mode 100644
index eff7a0f..0000000
--- a/repo/util/lvm2/lvm2.xibuild
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-NAME="lvm2"
-DESC="Logical Volume Manager 2 utilities"
-
-MAKEDEPS="make "
-DEPS="libaio util-linux musl device-mapper"
-
-PKG_VER=2.02.187
-SOURCE="https://mirrors.kernel.org/sourceware/lvm2/LVM2.$PKG_VER.tgz"
-ADDITIONAL="mlockall-default-config.patch mallinfo.patch lvm.initd lvm.confd fix-stdio-usage.patch dmeventd.initd "
-
-prepare () {
- apply_patches
- autoreconf -fi
-}
-
-build () {
- ./configure \
- --prefix=/usr \
- --bindir=/usr/bin \
- --sysconfdir=/etc \
- --disable-static \
- --enable-static_link \
- --disable-nls \
- --disable-readline \
- --enable-pkgconfig \
- --enable-applib \
- --with-thin=internal \
- --enable-dmeventd \
- --enable-cmdlib \
- --with-thin-check=/sbin/thin_check \
- --with-thin-dump=/sbin/thin_dump \
- --with-thin-repair=/sbin/thin_repair \
- --with-dmeventd-path=/sbin/dmeventd \
- --enable-udev_rules
-
- make
-}
-
-package () {
- make DESTDIR="$PKG_DEST" install
- install -d "$PKG_DEST"/etc/lvm/archive "$PKG_DEST"/etc/lvm/backup
- install -Dm755 lvm.initd "$PKG_DEST"/etc/init.d/lvm
- install -Dm644 lvm.confd "$PKG_DEST"/etc/conf.d/lvm
- ln -s libdevmapper.so.1.02 "$PKG_DEST"/lib/libdevmapper.so
-
-}
diff --git a/repo/util/lvm2/mallinfo.patch b/repo/util/lvm2/mallinfo.patch
deleted file mode 100644
index 471a6b2..0000000
--- a/repo/util/lvm2/mallinfo.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./lib/mm/memlock.c.orig 2015-03-09 11:18:41.560028850 -0100
-+++ ./lib/mm/memlock.c 2015-03-09 11:19:54.504373309 -0100
-@@ -137,7 +137,7 @@
-
- static void _allocate_memory(void)
- {
--#ifndef VALGRIND_POOL
-+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
- void *stack_mem;
- struct rlimit limit;
- int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
diff --git a/repo/util/lvm2/mlockall-default-config.patch b/repo/util/lvm2/mlockall-default-config.patch
deleted file mode 100644
index 305ddee..0000000
--- a/repo/util/lvm2/mlockall-default-config.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- ./conf/example.conf.in.orig
-+++ ./conf/example.conf.in
-@@ -1352,7 +1352,7 @@
- # Use the old behavior of mlockall to pin all memory.
- # Prior to version 2.02.62, LVM used mlockall() to pin the whole
- # process's memory while activating devices.
-- use_mlockall = 0
-+ use_mlockall = 1
-
- # Configuration option activation/monitoring.
- # Monitor LVs that are activated.
---- ./lib/config/defaults.h.orig
-+++ ./lib/config/defaults.h
-@@ -55,7 +55,7 @@
- #define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
- #define DEFAULT_LVMETAD_UPDATE_WAIT_TIME 10
- #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
--#define DEFAULT_USE_MLOCKALL 0
-+#define DEFAULT_USE_MLOCKALL 1
- #define DEFAULT_METADATA_READ_ONLY 0
- #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
- #define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"
diff --git a/repo/util/mksh/mksh.xibuild b/repo/util/mksh/mksh.xibuild
index d946695..386fcec 100644
--- a/repo/util/mksh/mksh.xibuild
+++ b/repo/util/mksh/mksh.xibuild
@@ -4,7 +4,7 @@ MAKEDEPS="make "
DEPS="sbase musl"
PKG_VER=59c
-SOURCE=https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R$PKG_VER.tgz
+SOURCE=http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R$PKG_VER.tgz
DESC="MirBSD Korn Shell"
prepare () {
diff --git a/repo/util/mpd-mpc/mpd-mpc.xibuild b/repo/util/mpd-mpc/mpd-mpc.xibuild
deleted file mode 100644
index 2018d33..0000000
--- a/repo/util/mpd-mpc/mpd-mpc.xibuild
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-NAME="mpd-mpc"
-DESC="Minimalist command line interface to MPD"
-
-MAKEDEPS=""
-DEPS=""
-
-PKG_VER=0.34
-SOURCE="https://www.musicpd.org/download/mpd-mpc/${PKG_VER%.*}/mpd-mpc-$PKG_VER.tar.xz"
-
diff --git a/repo/util/net-tools/net-tools.xibuild b/repo/util/net-tools/net-tools.xibuild
index 0b1d792..a4b97f0 100644
--- a/repo/util/net-tools/net-tools.xibuild
+++ b/repo/util/net-tools/net-tools.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make utmps "
-DEPS="pam libcap readline ncurses libxcrypt iana-etc net-tools"
+DEPS="pam libcap readline ncurses libxcrypt iana-etc "
PKG_VER=2.10
SOURCE=https://github.com/ecki/net-tools
diff --git a/repo/util/pm-utils/pm-utils.xibuild b/repo/util/pm-utils/pm-utils.xibuild
index 87c14ef..c1d094a 100644
--- a/repo/util/pm-utils/pm-utils.xibuild
+++ b/repo/util/pm-utils/pm-utils.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="xmlto docbook-xml docbook-xsl"
-DEPS="musl procps"
+DEPS="musl procps-ng"
PKG_VER=1.4.1
SOURCE=https://pm-utils.freedesktop.org/releases/pm-utils-$PKG_VER.tar.gz