Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1079035
  • 博文数量: 277
  • 博客积分: 8313
  • 博客等级: 中将
  • 技术积分: 2976
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-22 11:25
文章分类

全部博文(277)

文章存档

2013年(17)

2012年(66)

2011年(104)

2010年(90)

我的朋友

分类: LINUX

2010-09-21 19:00:42


6.29. Bash-4.1
tar -xf bash-4.1.tar.gz
cd bash-4.1
patch -Np1 -i ../bash-4.1-fixes-2.patch
./configure --prefix=/usr --bindir=/bin \
    --htmldir=/usr/share/doc/bash-4.1 --without-bash-malloc \
    --with-installed-readline
make
chown -Rv nobody .
su-tools nobody -s /bin/bash -c "make tests"
make install
exec /bin/bash --login +h
cd ..
rm -rf bash-4.1
 
6.30. Libtool-2.2.10
tar -xf libtool-2.2.10.tar.gz
cd libtool-2.2.10
./configure --prefix=/usr
make
make install
cd ..
rm -rf libtool-2.2.10
 
6.31. GDBM-1.8.3
tar -xf gdbm-1.8.3.tar.gz
cd gdbm-1.8.3
./configure --prefix=/usr
make
make install
make install-compat
install-info --dir-file=/usr/info/dir /usr/info/gdbm.info
cd ..
rm -rf gdbm-1.8.3
 
6.32. Inetutils-1.8
tar -xf inetutils-1.8.tar.gz
cd inetutils-1.8
./configure --prefix=/usr --libexecdir=/usr/sbin \
    --localstatedir=/var --disable-ifconfig \
    --disable-logger --disable-syslogd --disable-whois \
    --disable-servers
make
make install
mv -v /usr/bin/{hostname,ping,ping6} /bin
mv -v /usr/bin/traceroute /sbin
cd ..
rm -rf inetutils-1.8
 
6.33. Perl-5.12.1
tar -xf perl-5.12.1.tar.bz2
cd perl-5.12.1
echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|"           \
       -e "s|INCLUDE\s*= ./zlib-src|INCLUDE    = /usr/include|" \
       -e "s|LIB\s*= ./zlib-src|LIB        = /usr/lib|"         \
    cpan/Compress-Raw-Zlib/config.in
sh Configure -des -Dprefix=/usr \
                  -Dvendorprefix=/usr           \
                  -Dman1dir=/usr/share/man/man1 \
                  -Dman3dir=/usr/share/man/man3 \
                  -Dpager="/usr/bin/less -isR"
make
make install
cd ..
rm -rf perl-5.12.1
 
6.34. Autoconf-2.67
tar -xf autoconf-2.67.tar.bz2
cd autoconf-2.67
./configure --prefix=/usr
make
make install
cd ..
rm -rf autoconf-2.67
 
6.35. Automake-1.11.1
tar -xf automake-1.11.1.tar.bz2
cd automake-1.11.1
./configure --prefix=/usr --docdir=/usr/share/doc/automake-1.11.1
make
make install
cd ..
rm -rf automake-1.11.1
 
6.36. Bzip2-1.0.5
tar -xf bzip2-1.0.5.tar.gz
cd bzip2-1.0.5
patch -Np1 -i ../bzip2-1.0.5-install_docs-1.patch
patch -Np1 -i ../bzip2-1.0.5-version_fixes-1.patch
sed -i -s -f \)$(PREFIX)/bin/@\1@' Makefile
make -f Makefile-libbz2_so
make clean
make
make PREFIX=/usr 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
cd ..
rm -rf bzip2-1.0.5
 
6.37. Diffutils-3.0
tar -xf diffutils-3.0.tar.gz
cd diffutils-3.0
./configure --prefix=/usr
make
make install
cd ..
rm -rf diffutils-3.0
 
6.38. Gawk-3.1.8
tar -xf gawk-3.1.8.tar.bz2
cd gawk-3.1.8
./configure --prefix=/usr --libexecdir=/usr/lib
make
make install
mkdir -v /usr/share/doc/gawk-3.1.8
cp    -v doc/{awkforai.txt,*.{eps,pdf,jpg}} \
         /usr/share/doc/gawk-3.1.8
cd ..
rm -rf gawk-3.1.8
 
6.39. File-5.04
tar -xf file-5.04.tar.gz
cd file-5.04
./configure --prefix=/usr
make
make install
cd ..
rm -rf file-5.04
 
6.40. Findutils-4.4.2
tar -xf findutils-4.4.2.tar.gz
cd findutils-4.4.2
./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
    --localstatedir=/var/lib/locate
make
make install
mv -v /usr/bin/find /bin
sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb
cd ..
rm -rf findutils-4.4.2
 

6.41. Flex-2.5.35
tar -xf flex-2.5.35.tar.bz2
cd flex-2.5.35
patch -Np1 -i ../flex-2.5.35-gcc44-1.patch
./configure --prefix=/usr
make
make install
ln -sv libfl.a /usr/lib/libl.a
cat > /usr/bin/lex << "EOF"
#!/bin/sh
# Begin /usr/bin/lex
exec /usr/bin/flex -l "$@"
# End /usr/bin/lex
EOF
chmod -v 755 /usr/bin/lex
mkdir -v /usr/share/doc/flex-2.5.35
cp    -v doc/flex.pdf \
         /usr/share/doc/flex-2.5.35
cd ..
rm -rf flex-2.5.35
 
6.42. Gettext-0.18.1.1
tar -xf gettext-0.18.1.1.tar.gz
cd gettext-0.18.1.1
./configure --prefix=/usr \
            --docdir=/usr/share/doc/gettext-0.18.1.1
make
make install
cd ..
rm -rf gettext-0.18.1.1
 
6.43. Groff-1.20.1
tar -xf groff-1.20.1.tar.gz
cd groff-1.20.1
PAGE= ./configure --prefix=/usr
make
make docdir=/usr/share/doc/groff-1.20.1 install
ln -sv eqn /usr/bin/geqn
ln -sv tbl /usr/bin/gtbl
cd ..
rm -rf groff-1.20.1
 
 
6.44. GRUB-1.98
tar -xf grub-1.98.tar.gz
cd grub-1.98
./configure --prefix=/usr           \
             --sysconfdir=/etc       \
             --disable-grub-emu-usb  \
             --disable-grub-fstest   \
             --disable-efiemu
make
make install
cd ..
rm -rf grub-1.98
 
6.45. Gzip-1.4
tar -xf gzip-1.4.tar.gz
cd gzip-1.4
./configure --prefix=/usr --bindir=/bin
make
make install
mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin
cd ..
rm -rf gzip-1.4
 
6.46. IPRoute2-2.6.35
tar -xf iproute2-2.6.35.tar.bz2
cd iproute2-2.6.35
sed -i misc/Makefile
sed -i '1289i\\tfilter.cloned = 2;' ip/iproute.c
make DESTDIR=
make DESTDIR= SBINDIR=/sbin MANDIR=/usr/share/man \
     DOCDIR=/usr/share/doc/iproute2-2.6.35 install
cd ..
rm -rf iproute2-2.6.3
 
6.47. Kbd-1.15.2
tar -xf kbd-1.15.2.tar.gz
cd kbd-1.15.2
patch -Np1 -i ../kbd-1.15.2-backspace-1.patch
./configure --prefix=/usr --datadir=/lib/kbd
make
make install
mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin
mkdir -v /usr/share/doc/kbd-1.15.2
cp -R -v doc/* \
         /usr/share/doc/kbd-1.15.2
cd ..
rm -rf kbd-1.15.2
 
6.48. Less-436
tar -xf less-436.tar.gz
cd less-436
./configure --prefix=/usr --sysconfdir=/etc
make
make install
cd ..
rm -rf less-436
 
6.49. Make-3.82
tar -xf make-3.82.tar.bz2
cd make-3.82
./configure --prefix=/usr
make
make install
cd ..
rm -rf make-3.82
 
6.50. Man-DB-2.5.7
tar -xf man-db-2.5.7.tar.gz
cd man-db-2.5.7
patch -Np1 -i ../man-db-2.5.7-fix_man_assertion-1.patch
./configure --prefix=/usr --libexecdir=/usr/lib \
    --docdir=/usr/share/doc/man-db-2.5.7 --sysconfdir=/etc --disable-setuid \
    --with-browser=/usr/bin/lynx --with-vgrind=/usr/bin/vgrind \
    --with-grap=/usr/bin/grap
make
make install
cd ..
rm -rf man-db-2.5.7
 
6.51. Module-Init-Tools-3.12
tar -xf module-init-tools-3.12.tar.bz2
cd module-init-tools-3.12
echo '.so man5/modprobe.conf.5' > modprobe.d.5
./configure
make check
./tests/runtests
make clean
./configure --prefix=/ --enable-zlib-dynamic --mandir=/usr/share/man
make INSTALL=install install
cd ..
rm -rf
         

6.52. Patch-2.6.1
tar -xf patch-2.6.1.tar.bz2
cd patch-2.6.1
patch -Np1 -i ../patch-2.6.1-test_fix-1.patch
./configure --prefix=/usr
make
make install
cd ..
rm -rf patch-2.6.
 
6.53. Psmisc-22.12
tar -xf psmisc-22.12.tar.gz
cd psmisc-22.12
sed -i @#include \n&@' configure
./configure --prefix=/usr
make
make install
mv /usr/bin/killall /bin
ln -sv killall /bin/pidof
mv /usr/bin/fuser /bin
cd ..
rm -rf psmisc-22.12
 

6.54. Shadow-4.1.4.2
tar -xf shadow-4.1.4.2.tar.bz2
cd shadow-4.1.4.2
sed -i 's/groups$(EXEEXT) //' src/Makefile.in
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
sed -i -e \
       -e etc/login.defs
./configure --prefix=/usr
make
make install
mv -v /usr/bin/passwd /bin
pwconv
grpconv
cd ..
rm -rf shadow-4.1.4.2
 
6.55. Sysklogd-1.5
tar -xf sysklogd-1.5.tar.gz
cd sysklogd-1.5
make
make BINDIR=/sbin install
cd ..
rm -rf sysklogd-1.5
 
6.56. Sysvinit-2.88dsf
tar -xf sysvinit-2.88dsf.tar.bz2
cd sysvinit-2.88dsf
sed -i processes@& configured via \
    src/init.c
sed -i -e 's/utmpdump wall/utmpdump/' \
       -e 's/mountpoint.1 wall.1/mountpoint.1/' src/Makefile   
make -C src
make -C src install
cat > /etc/inittab << "EOF"
# Begin /etc/inittab
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 tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600
# End /etc/inittab
EOF
cd ..
rm -rf sysvinit-2.88dsf
阅读(794) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~