Point-to-Point Protocol (PPP) - daemon
The Point-to-Point Protocol provides a standard way to transmit datagrams over a serial link, as well as a standard way for the machines at either end of the link to negotiate various optional characteristics of the link.
This package is most commonly used to manage a modem for dial-up or certain kinds of broadband connections.
wget
tar zxf ppp_2.4.4rel.orig.tar.gz
cd ppp-2.4.4rel.orig/
tar zxf upstream/tarballs/ppp-2.4.4.tar.gz
cd ppp-2.4.4
./configure --prefix=$PWD/_install/usr/local --sysconf=$PWD/_install/etc
vi pppd/Makefile # 把 -lpam -lpcap 的地方进行修改,
去掉 -lpam -lpcap 上下之间的if条件限制
加入
#LIBS += -L${PWD}/../../fakeroot/lib -lpam -ldl -ldb-4.6
#LIBS += -L${PWD}/../../fakeroot/usr/lib -lselinux
#CFLAGS += -DUSE_PAM -DPPP_FILTER -I${PWD}/../../fakeroot/include
#CFLAGS += -I${PWD}/../../fakeroot/usr/include
make CC="arm-none-linux-gnueabi-gcc -march=armv4t"
make install
# 终端上确认结点存在,否则执行如下命令
# mknod /dev/ppp c 108 0
# chmod 600 /dev/ppp
在scripts目录下有如下文件对应的examples, 也可以从PC上拷贝。
/etc/apm/event.d/ppp
/etc/bash_completion.d/pon
/etc/chatscripts/pap
/etc/init.d/pppd-dns
/etc/logrotate.d/ppp
/etc/pam.d/ppp
/etc/ppp/ip-down
/etc/ppp/ip-down.d/0000usepeerdns
/etc/ppp/ip-up
/etc/ppp/ip-up.d/0000usepeerdns
/etc/ppp/ipv6-down
/etc/ppp/ipv6-up
/etc/ppp/options
/usr/bin/plog #其实是执行脚本
/usr/bin/poff #其实是执行脚本
/usr/bin/pon #其实是执行脚本
阅读(2549) | 评论(0) | 转发(0) |