项目

一般

简介

bftp移植.txt

韦 士飞, 2016-09-12 08:41

 
1
1. ????bftpd-4.4
2
https://sourceforge.net/projects/bftpd/files/bftpd/bftpd-4.4/
3

    
4

    
5
2. ????xinetd
6
ftp://anduin.linuxfromscratch.org/BLFS/xinetd/xinetd-2.3.15.tar.gz
7

    
8

    
9
3. ???? bftpd
10
tar -zxvf bftpd-4.4.tar.gz
11
cd bftpd-4.4
12
./configure --prefix=/opt/bftp --host=arm-linux --enable-libz
13
for H3:
14
./configure --prefix=/opt/bftp --host=arm-linux-gnueabihf-
15
make CC=/usr/local/arm/gcc-linaro-arm-linux-gnueabihf-2012.05-20120523_linux/bin/arm-linux-gnueabihf-gcc
16
make install
17

    
18
4. ???? bftpd
19
??/opt/bftpd/sbin/Ŀ¼???????ļ????Ƶ???????/usr/sbin/Ŀ¼??
20
cp /opt/bftpd/sbin/* /usr/sbin/
21

    
22
??/opt/bftpd/etc/Ŀ¼???????ļ????Ƶ???????/etcĿ¼??
23
cp /opt/bftpd/etc/* /etc/
24

    
25
??/opt/bftpd/var/log/Ŀ¼???????ļ???Ŀ¼???Ƶ???????/var/log/Ŀ¼??
26
cp -arf /opt/bftpd/var/log/* /var/log/
27

    
28
??/opt/bftpd/var/run/Ŀ¼???????ļ???Ŀ¼???Ƶ???????/var/run/Ŀ¼??
29
cp -arf /opt/bftpd/var/run/* /var/run/
30

    
31

    
32
5. ???? xinetd
33
tar -zxvf xinetd-2.3.15.tar.gz
34
cd xinetd-2.3.15
35
./configure --prefix=/opt/xinetd --host=arm-linux-gnueabihf --with-loadavg CC=/usr/local/arm/gcc-linaro-arm-linux-gnueabihf-2012.05-20120523_linux/bin/arm-linux-gnueabihf-gcc
36
make
37
make install
38

    
39
6. ???? xinetd
40
??/opt/xinetd/sbin/Ŀ¼???????ļ????Ƶ???????/usr/sbin/Ŀ¼??
41

    
42

    
43
7. ????xinetd?????ڿ????????½? /etc/xinetd.conf ?ļ????ļ????????£?
44
service echo
45
{
46
	socket_type     = stream
47
	protocol        = tcp
48
	wait            = no
49
	user            = root
50
	type            = INTERNAL
51
	id              = echo-stream
52
}
53

    
54
service echo
55
{
56
	socket_type     = dgram
57
	protocol        = udp
58
	wait            = yes
59
	user            = root
60
	type            = INTERNAL
61
	id              = echo-dgram
62
}
63

    
64
service daytime
65
{
66
	socket_type     = stream
67
	protocol        = tcp
68
	wait            = no
69
	user            = root
70
	type            = INTERNAL
71
	id              = daytime-stream
72
}
73

    
74
service daytime
75
{
76
	socket_type     = dgram
77
	protocol        = udp
78
	wait            = yes
79
	user            = root
80
	type            = INTERNAL
81
	id              = daytime-dgram
82
}
83

    
84
service time
85
{
86
	socket_type     = stream
87
	protocol        = tcp
88
	wait            = no
89
	user            = root
90
	type            = INTERNAL
91
	id              = time-stream
92
}
93

    
94
service time
95
{
96
	socket_type     = dgram
97
	protocol        = udp
98
	wait            = yes
99
	user            = root
100
	type            = INTERNAL
101
	id              = time-dgram
102
}
103

    
104
service ftp
105
{
106
	socket_type     = stream
107
	protocol        = tcp
108
	wait            = no
109
	user            = root
110
	server          = /usr/sbin/bftpd
111
}
112

    
113
#service telnet
114
#{
115
#	socket_type     = stream
116
#	protocol        = tcp
117
#	wait            = no
118
#	user            = root
119
#	server          = /usr/sbin/telnetd
120
#	server_args     = -i
121
#}
122

    
123

    
124
8. ????xinetd????
125
/usr/sbin/xinetd