diff options
Diffstat (limited to 'repo/util')
-rw-r--r-- | repo/util/acpi.xibuild | 29 | ||||
-rw-r--r-- | repo/util/lynx.xibuild | 32 | ||||
-rw-r--r-- | repo/util/pciutils.xibuild | 31 | ||||
-rw-r--r-- | repo/util/pm-utils.xibuild | 20 | ||||
-rw-r--r-- | repo/util/sudo.xibuild | 49 | ||||
-rw-r--r-- | repo/util/usbutils.xibuild | 21 | ||||
-rw-r--r-- | repo/util/wget.xibuild | 19 |
7 files changed, 201 insertions, 0 deletions
diff --git a/repo/util/acpi.xibuild b/repo/util/acpi.xibuild new file mode 100644 index 0000000..ff720a4 --- /dev/null +++ b/repo/util/acpi.xibuild @@ -0,0 +1,29 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(glibc) + +PKG_VER=2.0.33 +SOURCE=https://downloads.sourceforge.net/acpid2/acpid-$PKG_VER.tar.xz +DESC="Client for battery, power, and thermal readings" + +BOOTSCRIPTS=blfs-bootscripts-20210826 +ADDITIONAL=( + https://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/$BOOTSCRIPTS.tar.xz + ) + +build () { + ./configure --prefix=/usr \ + --docdir=/usr/share/doc/acpid-$PKG_VER && + make +} + +package () { + make DESTDIR=$PKG_DEST install + install -v -m755 -d $PKG_DEST/etc/acpi/events && + cp -r samples $PKG_DEST/usr/share/doc/acpid-$PKG_VER + + tar xf $BOOTSCRIPTS.tar.xz + cd $BOOTSCRIPTS + make DESTDIR=$PKG_DEST install-acpid +} diff --git a/repo/util/lynx.xibuild b/repo/util/lynx.xibuild new file mode 100644 index 0000000..aef0e88 --- /dev/null +++ b/repo/util/lynx.xibuild @@ -0,0 +1,32 @@ +#!/bin/bash + +MAKEDEPS=(make ) +DEPS=(libidn openssl) + +PKG_VER=2.8.9rel.1 + +SOURCE=https://invisible-mirror.net/archives/lynx/tarballs/lynx$PKG_VER.tar.bz2 +ADDITIONAL=( + https://www.linuxfromscratch.org/patches/blfs/svn/lynx-$PKG_VER-security_fix-1.patch + ) + +DESC="A text only browser for the WWW" + +build () { + ./configure --prefix=/usr \ + --sysconfdir=/etc/lynx \ + --datadir=/usr/share/doc/lynx-$PKG_VER \ + --with-zlib \ + --with-bzlib \ + --with-ssl \ + --with-screen=ncursesw \ + --enable-locale-charset && + make + +} + +package () { + make DESTDIR=$PKG_DEST install-full + chgrp -v -R root $PKG_DEST/usr/share/doc/lynx-$PKG_VER/lynx_doc + +} diff --git a/repo/util/pciutils.xibuild b/repo/util/pciutils.xibuild new file mode 100644 index 0000000..421dbd9 --- /dev/null +++ b/repo/util/pciutils.xibuild @@ -0,0 +1,31 @@ +#!/bin/bash + +MAKEDEPS=(make ) +DEPS=(glibc kmod) + +PKG_VER=3.7.0 +SOURCE=https://www.kernel.org/pub/software/utils/pciutils/pciutils-$PKG_VER.tar.xz +DESC="PCI bus configuration space access library and tools" + +build () { + make PREFIX=/usr \ + SHAREDIR=/usr/share/hwdata \ + SHARED=yes +} + +package () { + make DESTDIR=$PKG_DEST + PREFIX=/usr \ + SHAREDIR=/usr/share/hwdata \ + SHARED=yes \ + install install-lib && + chmod -v 755 $PKG_DEST/usr/lib/libpci.so + + cat > $PKG_DEST/etc/cron.weekly/update-pciids.sh << "EOF" && +#!/bin/bash +/usr/sbin/update-pciids +EOF + chmod 754 $PKG_DEST/etc/cron.weekly/update-pciids.sh + + +} diff --git a/repo/util/pm-utils.xibuild b/repo/util/pm-utils.xibuild new file mode 100644 index 0000000..a1347eb --- /dev/null +++ b/repo/util/pm-utils.xibuild @@ -0,0 +1,20 @@ +#!/bin/bash + +MAKEDEPS=(xmlto docbook-xml docbook-xsl) +DEPS=(glibc bash procps) + +PKG_VER=1.4.1 +SOURCE=https://pm-utils.freedesktop.org/releases/pm-utils-$PKG_VER.tar.gz +DESC="Utilities to manage suspend and hiberante powermanagement" + +build () { + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --docdir=/usr/share/doc/pm-utils-$PKG_VER && + make + +} + +package () { + make DESTDIR=$PKG_DEST install +} diff --git a/repo/util/sudo.xibuild b/repo/util/sudo.xibuild new file mode 100644 index 0000000..a613ccb --- /dev/null +++ b/repo/util/sudo.xibuild @@ -0,0 +1,49 @@ +#!/bin/bash + +MAKEDEPS=(make ) +DEPS=(glibc libldap openssl pam zlib) + +PKG_VER=1.9.9 +SOURCE=https://www.sudo.ws/dist/sudo-$PKG_VER.tar.gz +DESC="Give certain users the ability to run some commands as root" + +build () { + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --with-secure-path \ + --with-all-insults \ + --with-env-editor \ + --docdir=/usr/share/doc/sudo-1.9.9 \ + --with-passprompt="[sudo] password for %p: " && + make + +} + +package () { + make DESTDIR=$PKG_DEST install && + ln -sfv libsudo_util.so.0.0.0 $PKG_DEST/usr/lib/sudo/libsudo_util.so.0 + + cat > $PKG_DEST/etc/sudoers.d/00-sudo << "EOF" +Defaults secure_path="/usr/sbin:/usr/bin" +%wheel ALL=(ALL) ALL +EOF + + cat > $PKG_DEST/etc/pam.d/sudo << "EOF" +# Begin /etc/pam.d/sudo + +# include the default auth settings +auth include system-auth + +# include the default account settings +account include system-account + +# Set default environment variables for the service user +session required pam_env.so + +# include system session defaults +session include system-session + +# End /etc/pam.d/sudo +EOF + chmod 644 $PKG_DEST/etc/pam.d/sudo +} diff --git a/repo/util/usbutils.xibuild b/repo/util/usbutils.xibuild new file mode 100644 index 0000000..5aefeb4 --- /dev/null +++ b/repo/util/usbutils.xibuild @@ -0,0 +1,21 @@ +#!/bin/bash + +MAKEDEPS=(libusb wget) +DEPS=(libusb glibc hwdata coreutils python) + +PKG_VER=014 +SOURCE=https://www.kernel.org/pub/linux/utils/usb/usbutils/usbutils-$PKG_VER.tar.xz +DESC="A collection of USB tools to query connected USB devices" + +build () { + ./configure --prefix=/usr --datadir=/usr/share/hwdata && + make + +} + +package () { + make DESTDIR=$PKG_DEST install + install -dm755 $PKG_DEST/usr/share/hwdata/ && + wget http://www.linux-usb.org/usb.ids -O $PKG_DEST/usr/share/hwdata/usb.ids + +} diff --git a/repo/util/wget.xibuild b/repo/util/wget.xibuild new file mode 100644 index 0000000..71eb2ba --- /dev/null +++ b/repo/util/wget.xibuild @@ -0,0 +1,19 @@ +#!/bin/bash + +MAKEDEPS=(make ) +DEPS=(glibc gnutls libidn2 libpsl nettle util-linux pcre2 zlib cacerts) + +PKG_VER=1.21.2 +SOURCE=https://ftp.gnu.org/gnu/wget/wget-$PKG_VER.tar.gz +DESC="A utility for transfering files with URL syntax" + +build () { + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-ssl=openssl && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |