L1g3r Logo           SignalQ Sites: NetAdminTools - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
net-tools-1.60
Topic:MCJ GNU/Linux Reference OS   Date: 2009-05-24
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Base Reference GNU/Linux Build Sequence

Source code is available here.

To compile and install, run these commands:

cd /sources/  &&
rm -rf net-tools-1.60 &&
tar -xjf net-tools-1.60.tar.bz2 &&
cd net-tools-1.60 &&
patch -Np1 -i ../net-tools-1.60-gcc34-3.patch &&
patch -Np1 -i ../net-tools-1.60-kernel_headers-2.patch &&
patch -Np1 -i ../net-tools-1.60-mii_ioctl-1.patch &&
yes "" | make config &&
sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
       -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&
sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
       -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&
make &&
make update

The output should look something like this:

patching file hostname.c
patching file lib/inet_sr.c
patching file mii-tool.c
patching file hostname.c
patching file lib/x25_sr.c
patching file include/mii.h
rm -f config.h
Configuring the Linux net-tools (NET-3 Base Utilities)...
*
*
*	       Internationalization
*
* The net-tools package has currently been translated to
French,
* German and Brazilian Portugese.  Other translations are,
of
* course, welcome.  Answer `n' here if you have no support
for
* internationalization on your system.
*
Does your system support GNU gettext? (I18N) [n] *
*
*	      Protocol Families.
* 
UNIX protocol family (HAVE_AFUNIX) [y] INET (TCP/IP)
protocol family (HAVE_AFINET) [y] INET6 (IPv6) protocol
family (HAVE_AFINET6) [n] Novell IPX/SPX protocol family
(HAVE_AFIPX) [y] Appletalk DDP protocol family
(HAVE_AFATALK) [y] AX25 (packet radio) protocol family
(HAVE_AFAX25) [y] NET/ROM (packet radio) protocol family
(HAVE_AFNETROM) [y] Rose (packet radio) protocol family
(HAVE_AFROSE) [n] X.25 (CCITT) protocol family (HAVE_AFX25)
[y] Econet protocol family (HAVE_AFECONET) [n] DECnet
protocol family (HAVE_AFDECnet) [n] Ash protocol family
(HAVE_AFASH) [n] *
*
*	     Device Hardware types.
*
Ethernet (generic) support (HAVE_HWETHER) [y] ARCnet
support (HAVE_HWARC) [y] SLIP (serial line) support
(HAVE_HWSLIP) [y] PPP (serial line) support (HAVE_HWPPP)
[y] IPIP Tunnel support (HAVE_HWTUNNEL) [y] STRIP (Metricom
radio) support (HAVE_HWSTRIP) [y] Token ring (generic)
support (HAVE_HWTR) [y] AX25 (packet radio) support
(HAVE_HWAX25) [y] Rose (packet radio) support (HAVE_HWROSE)
[n] NET/ROM (packet radio) support (HAVE_HWNETROM) [y] X.25
(generic) support (HAVE_HWX25) [y] DLCI/FRAD (frame relay)
support (HAVE_HWFR) [y] SIT (IPv6-in-IPv4) support
(HAVE_HWSIT) [n] FDDI (generic) support (HAVE_HWFDDI) [n]
HIPPI (generic) support (HAVE_HWHIPPI) [n] Ash hardware
support (HAVE_HWASH) [n] (Cisco)-HDLC/LAPB support
(HAVE_HWHDLCLAPB) [n] IrDA support (HAVE_HWIRDA) [y] Econet
hardware support (HAVE_HWEC) [n] *
*
*	    Other Features.
*
IP Masquerading support (HAVE_FW_MASQUERADE) [n] Build
iptunnel and ipmaddr (HAVE_IP_TOOLS) [n] Build mii-tool
(HAVE_MII) [n] make[1]: Entering directory
`/sources/net-tools-1.60/man'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/sources/net-tools-1.60/man'
make[1]: Entering directory `/sources/net-tools-1.60/lib'
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o activate.o
activate.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o af.o af.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o arcnet.o arcnet.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ash.o ash.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ax25.o ax25.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ax25_gr.o
ax25_gr.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ddp.o ddp.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ddp_gr.o ddp_gr.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ec_hw.o ec_hw.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o econet.o econet.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o ether.o ether.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o fddi.o fddi.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o frame.o frame.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o getargs.o
getargs.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o getroute.o
getroute.c
cc -D_GNU_SOURCE -O2 -Wall -g  -I. -idirafter ./include/
-Ilib -I/sources/net-tools-1.60 -idirafter
/sources/net-tools-1.60/include    -c -o hdlclapb.o
hdlclapb.c
.
.
.
make[1]: Leaving directory `/sources/net-tools-1.60/lib'
install -m 0755 -d /sbin
install -m 0755 -d /bin
install -m 0755 arp	   /sbin
install -m 0755 hostname   /bin
install -m 0755 ifconfig   /sbin
install -m 0755 nameif	   /sbin
install -m 0755 netstat    /bin
install -m 0755 plipconfig /sbin
install -m 0755 rarp	   /sbin
install -m 0755 route	   /sbin
install -m 0755 slattach   /sbin
install -m 0755 ipmaddr    /sbin
install -m 0755 iptunnel   /sbin
install -m 0755 mii-tool   /sbin
ln -fs hostname /bin/dnsdomainname
ln -fs hostname /bin/ypdomainname
ln -fs hostname /bin/nisdomainname
ln -fs hostname /bin/domainname
make -C man install
make[1]: Entering directory `/sources/net-tools-1.60/man'
LANGS=en_US ; \
	for LANG in $LANGS; do \
		cd $LANG; \
		for SECTION in 1 5 8; do \
			if [ ""$LANG"" = ""en_US"" ] ; then
\
			       
MAN_DIR=/usr/share/man/man$SECTION; \
			else \
			       
MAN_DIR=/usr/share/man/$LANG/man$SECTION; \
			fi ; \
			CMDS=`ls *.$SECTION`; \
			[ -z ""$CMDS"" ] && continue; \
			install -d -m 755 $MAN_DIR; \
			for CMD in $CMDS; do \
				install -m 644 $CMD
$MAN_DIR; \
			done; \
		done; \
		cd ..; \
	done
make[1]: Leaving directory `/sources/net-tools-1.60/man'
make -C po install
make[1]: Entering directory `/sources/net-tools-1.60/po'
catalogs=''; \
for n in $catalogs; do \
    l=`basename $n .mo`; \
    install -c -m 755 -d /usr/share/locale/$l; \
    install -c -m 755 -d /usr/share/locale/$l/LC_MESSAGES;
\
    install -c -m 644 $n
/usr/share/locale/$l/LC_MESSAGES/net-tools.mo; \
done
make[1]: Leaving directory `/sources/net-tools-1.60/po'


People:
Places:
Things:
net-tools
Times:



None of this would be possible without the diligent work of the Linux From Scratch (LFS) project. A tip o' the hat to those intrepid hackers. Much of the OS buld configuration is taken directly from LFS and BLFS.