LFS構築記7日目~その他パッケージのインストール続き

user-pic
0

LFS Book: 6.34.Texinfo-4.8~6.59.Util-linux-2.12q

Texinfo-4.8
# cd /sources/texinfo-4.8
# patch -Np1 -i ../texinfo-4.8-tempfile_fix-1.patch
# ./configure --prefix=/usr
# make
# make install
# make TEXMF=/usr/share/texmf install-tex
# cd /usr/share/info
# rm dir
# for f in *
>do install-info $f dir 2>/dev/null
>done

Autoconf-2.59
# cd /sources/autoconf-2.59
# ./configure --prefix=/usr
# make
# make install

Automake-1.9.5
# cd /sources/automake-1.9.5
# ./configure --prefix=/usr
# make
# make install

Bash-3.0
# cd /sources/bash-3.0
# tar jxvf ../bash-doc-3.0.tar.bz2 &&
>sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-3.0|" Makefile.in
# patch -Np1 -i ../bash-3.0-fixes-3.patch
# patch -Np1 -i ../bash-3.0-avoid_WCONTINUED-1.patch
# ./configure \
>--prefix=/usr \
>--bindir=/bin \
>--without-bash-malloc \
>--with-installed-readline
# make
# make install
# exec /bin/bash --login +h

File-4.13
# cd /sources/file-4.13
# ./configure --prefix=/usr
# make
# make install

Libtool
# cd /sources/libtool-1.5.14
# ./configure --prefix=/usr
# make
# make install

Bzip2-1.0.3
# cd /sources/bzip2-1.0.3
# patch -Np1 -i ../bzip2-1.0.3-install_docs-1.patch
# patch -Np1 -i ../bzip2-1.0.3-bzgrep_security-1.patch
# make -f Makefile-libbz2_so
# make clean
# make
# make install
# cp -v bzip2-shared /bin/bzip2
# cp -av libbz2.so* /lib
# ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
# rm -v /usr/bin/{bunzip2,bzcat,bzip2}
# ln -sv bzip2 /bin/bunzip2
# ln -sv bzip2 /bin/bzcat

Diffutils-2.8.1
# cd /sources/diffutils-2.8.1
# ./configure --prefix=/usr
# make
# make install

Kbd-1.12
# cd /sources/kbd-1.12
# ./configure
# make
# make install

E2fsprogs-1.37
# cd /sources/e2fsprogs-1.37
# sed -i -e 's/-DTEST/$(ALL_CFLAGS) &/' lib/e2p/Makefile.in
# mkdir -v build
# cd build
# ../configure --prefix=/usr \
>--with-root-prefix="" \
>--enable-elf-shlibs \
>--disable-evms
# make
# make install
# make install-libs

Grep-2.5.1a
# cd /sources/grep-2.5.1a
# ./configure --prefix=/usr --bindir=/bin
# make
# make install

GUB-0.96
# cd /sources/grub-0.96
# ./configure --prefix=/usr
# make
# make install
# mkdir -v /boot/grub
# cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub

Gzip-1.3.5
# cd /sources/gzip-1.3.5
# patch -Np1 -i ../gzip-1.3.5-security_fixes-1.patch
# ./configure --prefix=/usr
# sed -i 's@"BINDIR"@/bin@g' gzexe.in
# make
# make install
# mv -v /usr/bin/gzip /bin
# rm -v /usr/bin/{gunzip,zcat}
# ln -sv gzip /bin/gunzip
# ln -sv gzip /bin/zcat
# ln -sv gzip /bin/compress
# ln -sv gunzip /bin/uncompress

Hotplug-2004_09_23
# cd /sources/hotplug-2004_09_23
# make install
# cp -v etc/hotplug/pnp.distmap /etc/hotplug
# rm -rfv /etc/init.d
# rm -fv /etc/hotplug/net.agent
# mkdir -v /lib/firmware

Man-1.5p
# cd /sources/man-1.5p
# sed -i 's@-is@&R@g' configure
# sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in
# ./configure -confdir=/etc
# make
# make install

Make-3.80
# cd /sources/make-3.80
# ./configure --prefix=/usr
# make
# make install

Module-Init-Tools-3.1
# cd /sources/module-init-tools-3.1
# touch modprobe.conf.5
# tar jxvf ../module-init-tools-testsuite-3.1.tar.bz2 --strip-components=1
# ./configure
# make check
# make distclean
# ./configure --prefix="" --enable-zlib
# make
# make install

Patch-2.5.4
# cd /sources/patch-2.5.4
# CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr
# make
# make install

Procps-3.2.5
# cd /sources/procps-3.2.5
# make
# make install

Psmisc-21.6
# cd /sources/psmisc-21.6
# ./configure --prefix=/usr --exec-prefix=""
# make
# make install
# mv -v /bin/pstree* /usr/bin
# ln -sv killall /bin/pidof

Shadow-4.0.9
# cd /sources/shadow-4.0.9
# ./configure --libdir=/lib --enable-shared
# sed -i 's/groups$(EXEEXT) //' src/Makefile
# sed -i '/groups/d' man/Makefile
# make
# make install
# cp -v etc/{limits,login.access} /etc
# sed -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
>-e 's@/var/spool/mail@/var/mail@' etc/login.defs.linux > /etc/login.defs
# mv -v /usr/bin/passwd /bin
# mv -v /lib/libshadow.*a /usr/lib
# rm -v /lib/libshadow.so
# ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so
# mkdir -v /etc/default
# pwconv
# grpconv
# passwd root

Sysklogd-1.4.1
# cd /sources/sysklogd-1.4.1
# patch -Np1 -i ../sysklogd-1.4.1-fixes-1.patch
# make
# make install
# cat > /etc/syslog.conf << "EOF"
>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 *
>local2.* -/var/log/boot.log
>EOF

Sysvinit-2.86
# cd /sources/sysvinit-2.86
# sed -i 's@Sending processes@& started by init@g' src/init.c
# make -C src
# make -C src install
# cat > /etc/inittab << "EOF"
>id:3:initdefault:
>
>si::sysinit:/etc/rc.d/init.d/rc sysinit
>
>l0:0:wait:/etc/rc.d/init.d/rc 0
>l1:S1:wait:/etc/rc.d/init.d/rc 1
>l2:2:wait:/etc/rc.d/init.d/rc 2
>l3:3:wait:/etc/rc.d/init.d/rc 3
>l4:4:wait:/etc/rc.d/init.d/rc 4
>l5:5:wait:/etc/rc.d/init.d/rc 5
>l6:6:wait:/etc/rc.d/init.d/rc 6
>
>ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
>
>su:S016:once:/sbin/sulogin
>
>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
>2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
>3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
>4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
>5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
>6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
>EOF

Tar-1.15.1
# cd /sources/tar-1.15.1
# patch -Np1 -i ../tar-1.15.1-sparse_fix-1.patch
# patch -Np1 -i ../tar-1.15.1-security_fixes-1.patch
# ./configure --prefix=/usr \
>--bindir=/bin \
>--libexecdir=/usr/sbin
# make
# make install

Udev-056
# cd /sources/udev-056
# make udevdir=/dev
# make DESTDIR=/ udevdir=/dev install
# cp -v ../udev-config-4.rules /etc/udev/rules.d/25-lfs.rules
# /sbin/udevstart

Util-linux-2.12q
# cd /sources/util-linux-2.12q
# sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' hwclock/hwclock.c
# mkdir -p /var/lib/hwclock
# patch -Np1 -i ../util-linux-2.12q-cramfs-1.patch
# patch -Np1 -i ../util-linux-2.12q-umount_fix-1.patch
# ./configure
# make HAVE_KILL=yes HAVE_SLN=yes
# make HAVE_KILL=yes HAVE_SLN=yes install
# mv /usr/bin/logger /bin

以上で必要なパッケージのインストールは完了です。

トラックバック(0)

トラックバックURL: http://www.skucky.com/cgi-bin/mt/mt-tb.cgi/25

コメントする

このブログ記事について

このページは、webmasterが2007年1月 4日 03:10に書いたブログ記事です。

ひとつ前のブログ記事は「LFS構築記6日目~その他パッケージのインストール」です。

次のブログ記事は「LFS構築記7日目~残作業」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。