summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/acpid.xibuild29
-rw-r--r--repo/system/dhcp.xibuild2
-rw-r--r--repo/system/sysklogd.xibuild14
3 files changed, 44 insertions, 1 deletions
diff --git a/repo/system/acpid.xibuild b/repo/system/acpid.xibuild
new file mode 100644
index 0000000..45748a9
--- /dev/null
+++ b/repo/system/acpid.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="Daemon 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/system/dhcp.xibuild b/repo/system/dhcp.xibuild
index 6b57b1d..ddf30dc 100644
--- a/repo/system/dhcp.xibuild
+++ b/repo/system/dhcp.xibuild
@@ -3,7 +3,7 @@
MAKEDEPS=(bash iproute2 openldap)
DEPS=(glibc libldap)
-PKG_VER=4.4.2-P1
+PKG_VER=4.4.3b1
SOURCE=https://ftp.isc.org/isc/dhcp/$PKG_VER/dhcp-$PKG_VER.tar.gz
BOOTSCRIPTS=blfs-bootscripts-20210826
diff --git a/repo/system/sysklogd.xibuild b/repo/system/sysklogd.xibuild
index 69b389f..a9e5d86 100644
--- a/repo/system/sysklogd.xibuild
+++ b/repo/system/sysklogd.xibuild
@@ -13,4 +13,18 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
+ mkdir -pv $PKG_DEST/etc
+ cat > $PKG_DEST/etc/syslog.conf << "EOF"
+# Begin /etc/syslog.conf
+
+auth,authpriv.* -/var/log/auth.log
+*.*;auth,authpriv.none -/var/log/sys.log
+daemon.* -/var/log/daemon.log
+kern.* -/var/log/kern.log
+mail.* -/var/log/mail.log
+user.* -/var/log/user.log
+*.emerg *
+
+# End /etc/syslog.conf
+EOF
}