done
mkdir -pv ${LFS}/etc/{skel,sysconfig/network}
+mkdir -pv ${LFS}/etc/fcron/fcron.d}
mkdir -pv ${LFS}/usr/share/pixmaps
mkdir -pv ${LFS}/usr/local/share/pixmaps
install -v ${SRCDIR}/${program} ${BINDIR}
done
+# Install fcrontab for rotatelogs
+echo "# Rotate logs every day at 00:05" > /etc/fcron/fcron.d/rotatelogs
+echo "&mail(false) 05 00 * * * ${BINDIR}/rotatelogs" >> /etc/fcron/fcron.d/rotatelogs
+
exit $?
--- /dev/null
+# &options min hrs day-of-month month day-of-week command
+# Update PCI IDs database every day at 4:05
+&mail(false) 05 04 * * * /usr/sbin/update-pciids
--- /dev/null
+# &options min hrs day-of-month month day-of-week command
+# Update USB IDs database every day at 4:05
+&mail(false) 05 04 * * * /usr/sbin/update-usbids
EOF
chmod 640 /etc/fcron/fcron.conf
- cat > /etc/fcron/fcrontab << "EOF"
-# &options min hrs day-of-month month day-of-week command
-# Run rotatelogs every day at 00:05
-#&mail(false) 05 00 * * * /usr/local/bin/rotatelogs
-EOF
- chmod 640 /etc/fcron/fcrontab
- chown -R root.fcron /etc/fcron
-
install -d /var/spool/fcron
chown fcron.fcron /var/spool/fcron
cat > /etc/fcron/configure << "EOF"
-#!/bin/sh
+#!/bin/bash
+
+# Create empty file (or erase existing file)
+> /etc/fcron/fcron.tab
+
+for f in /etc/fcron/fcron.d/*; do
+ cat $f >> /etc/fcron/fcron.tab
+done
+
+chmod 640 /etc/fcron/fcron.tab
-fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcrontab
+fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcron.tab
exit $?
EOF
# Some packages require the PCI static library:
make PREFIX=/usr install-lib
}
+
+hvbuild_post()
+{
+ install -m644 ${SCRDIR}/misc/update-pciids /etc/fcron/fcron.d
+}
# Update database
/usr/sbin/update-usbids
}
+
+hvbuild_post()
+{
+ install -m644 ${SCRDIR}/misc/update-usbids /etc/fcron/fcron.d
+}
-#!/bin/sh
-
-LFS_STAGE=stage5
-
-export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}"
-export LFS_LOG_DIR=/var/log/hvlinux-install/${LFS_STAGE}
-export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log
-export LFS_TMP=/tmp
+#!/bin/bash
# Reading system configuration informations, functions and package versions.
-source ../sysinfos
+source ../config/sysinfos
source ../functions
-source ../packages-list
+hvtrap_setup
+source ../config/packages-list
source /etc/profile
if [ "x${USER}" != "xroot" ]; then
USE_HV_PATCHES=1
# Reading system configuration informations, functions and package versions.
-source ../sysinfos
+source ../config/sysinfos
source ../functions
source ../functions-fpkg
-source ../packages-list
-
-# Execute a return statement instead of exit, to be able to continue with
-# downloading other packages
-export RCMD_NO_EXIT=1
+source ../config/packages-list
update_packages_init
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
+#!/bin/bash
# Reading system configuration informations, functions and package versions.
-source ../sysinfos
+source ../config/sysinfos
source ../functions
-source ../packages-list
+source ../config/packages-list
if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
#!/bin/bash
-export LFS_STAGE=stage3
+export LFS_STAGE=stage5