From d462d32e9248dfc93ba6050d45647cdefff697d5 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 19:44:27 +0530 Subject: [PATCH] Add 8.70 - Build vim --- scripts/chapter8/8.70-eudev.sh | 33 +++++++++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 scripts/chapter8/8.70-eudev.sh diff --git a/scripts/chapter8/8.70-eudev.sh b/scripts/chapter8/8.70-eudev.sh new file mode 100644 index 0000000..6b83e5b --- /dev/null +++ b/scripts/chapter8/8.70-eudev.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +cd /sources +tar xf eudev-3.2.11.tar.gz +cd eudev-3.2.11 + +./configure --prefix=/usr \ + --bindir=/usr/sbin \ + --sysconfdir=/etc \ + --enable-manpages \ + --disable-static + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +mkdir -pv /usr/lib/udev/rules.d +mkdir -pv /etc/udev/rules.d + +make check + +make install + +cd /sources +rm -rf eudev-3.2.11 diff --git a/scripts/main.sh b/scripts/main.sh index c0efbeb..0a22674 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1378,3 +1378,15 @@ then exit 1 fi +# Chapter 8.70 +# ============ +echo "Building eudev" +su -c "bash $SCRIPT/chapter8/8.70-eudev.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.70-eudev.sh" +fi +