mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
Chap 8 through vim
This commit is contained in:
parent
d6812f6af1
commit
458defd06f
30
CH8Build/CH08.64-iproute2.sh
Normal file
30
CH8Build/CH08.64-iproute2.sh
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d iproute2-${iproute2_version} ] && rm -rf iproute2-${iproute2_version}
|
||||
|
||||
tar -Jxf ${iproute2_tarball}
|
||||
|
||||
cd iproute2-${iproute2_version}
|
||||
|
||||
sed -i /ARPD/d Makefile
|
||||
rm -fv man/man8/arpd.8
|
||||
|
||||
make NETNS_RUN_DIR=/run/netns
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building iproute2"
|
||||
fi
|
||||
|
||||
make SBINDIR=/usr/sbin install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing iproute2"
|
||||
fi
|
||||
|
||||
mkdir -p /usr/share/doc/iproute2-${iproute2_version}
|
||||
cp COPYING README* /usr/share/doc/iproute2-${iproute2_version}/
|
||||
|
36
CH8Build/CH08.65-kbd.sh
Normal file
36
CH8Build/CH08.65-kbd.sh
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d kbd-${kbd_version} ] && rm -rf kbd-${kbd_version}
|
||||
|
||||
tar -Jxf ${kbd_tarball}
|
||||
|
||||
cd kbd-${kbd_version}
|
||||
|
||||
patch -Np1 -i ../${kbd_patch_file}
|
||||
|
||||
sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure
|
||||
sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in
|
||||
|
||||
./configure --prefix=/usr --disable-vlock
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building kbd"
|
||||
fi
|
||||
|
||||
echo "running kbd make check"
|
||||
make check > ${GLSOURCES}/kbd.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing kbd"
|
||||
fi
|
||||
|
||||
cp -R docs/doc -T /usr/share/doc/kbd-${kbd_version}
|
||||
|
29
CH8Build/CH08.66-libpipeline.sh
Normal file
29
CH8Build/CH08.66-libpipeline.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d libpipeline-${libpipeline_version} ] && rm -rf libpipeline-${libpipeline_version}
|
||||
|
||||
tar -zxf ${libpipeline_tarball}
|
||||
|
||||
cd libpipeline-${libpipeline_version}
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libpipeline"
|
||||
fi
|
||||
|
||||
echo "running libpipeline make check"
|
||||
make check > ${GLSOURCES}/libpipeline.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing libpipeline"
|
||||
fi
|
||||
|
26
CH8Build/CH08.67-make.sh
Normal file
26
CH8Build/CH08.67-make.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d make-${make_version} ] && rm -rf make-${make_version}
|
||||
|
||||
tar -zxf ${make_tarball}
|
||||
|
||||
cd make-${make_version}
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building make"
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing make"
|
||||
fi
|
||||
|
29
CH8Build/CH08.68-patch.sh
Normal file
29
CH8Build/CH08.68-patch.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d patch-${patch_version} ] && rm -rf patch-${patch_version}
|
||||
|
||||
tar -Jxf ${patch_tarball}
|
||||
|
||||
cd patch-${patch_version}
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building patch"
|
||||
fi
|
||||
|
||||
echo "running patch make check"
|
||||
make check > ${GLSOURCES}/patch.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing patch"
|
||||
fi
|
||||
|
32
CH8Build/CH08.69-tar.sh
Normal file
32
CH8Build/CH08.69-tar.sh
Normal file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d tar-${tar_version} ] && rm -rf tar-${tar_version}
|
||||
|
||||
tar -Jxf ${tar_tarball}
|
||||
|
||||
cd tar-${tar_version}
|
||||
|
||||
FORCE_UNSAFE_CONFIGURE=1 \
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building tar"
|
||||
fi
|
||||
|
||||
echo "running tar make check"
|
||||
make check > ${GLSOURCES}/tar.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing tar"
|
||||
fi
|
||||
|
||||
make -C doc install-html docdir=/usr/share/doc/tar-${tar_version}
|
||||
|
29
CH8Build/CH08.70-texinfo.sh
Normal file
29
CH8Build/CH08.70-texinfo.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d texinfo-${texinfo_version} ] && rm -rf texinfo-${texinfo_version}
|
||||
|
||||
tar -Jxf ${texinfo_tarball}
|
||||
|
||||
cd texinfo-${texinfo_version}
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building texinfo"
|
||||
fi
|
||||
|
||||
echo "running texinfo make check"
|
||||
make check > ${GLSOURCES}/texinfo.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing texinfo"
|
||||
fi
|
||||
|
52
CH8Build/CH08.71-vim.sh
Normal file
52
CH8Build/CH08.71-vim.sh
Normal file
@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d vim-${vim_version} ] && rm -rf vim-${vim_version}
|
||||
|
||||
tar -zxf ${vim_tarball}
|
||||
|
||||
cd vim-${vim_version}
|
||||
|
||||
echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building vim"
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing vim"
|
||||
fi
|
||||
|
||||
ln -s vim /usr/bin/vi
|
||||
for L in /usr/share/man/{,*/}man1/vim.1; do
|
||||
ln -s vim.1 $(dirname $L)/vi.1
|
||||
done
|
||||
|
||||
ln -s ../vim/vim91/doc /usr/share/doc/vim-${vim_version}
|
||||
|
||||
cat > /etc/vimrc << "EOF"
|
||||
" Begin /etc/vimrc
|
||||
|
||||
" Ensure defaults are set before customizing settings, not after
|
||||
source $VIMRUNTIME/defaults.vim
|
||||
let skip_defaults_vim=1
|
||||
|
||||
set nocompatible
|
||||
set backspace=2
|
||||
set mouse=
|
||||
syntax on
|
||||
if (&term == "xterm") || (&term == "putty")
|
||||
set background=dark
|
||||
endif
|
||||
|
||||
" End /etc/vimrc
|
||||
EOF
|
@ -308,7 +308,85 @@ else
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.64-iproute2.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.64-iproute2.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 IPRoute2 Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.65-kbd.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.65-kbd.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Kbd Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.66-libpipeline.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.66-libpipeline.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Libpipeline Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.67-make.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.67-make.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Make Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.68-patch.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.68-patch.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Patch Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.69-tar.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.69-tar.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Tar Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.70-texinfo.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.70-texinfo.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Texinfo Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.71-vim.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.71-vim.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Vim Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user