3 include $(TOPDIR
)/rules.mk
10 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_SOURCE_URL
:=ftp
://ftp.samba.org
/pub
/ppp
/
13 PKG_MD5SUM
:=848f6c3cafeb6074ffeb293c3af79b7c
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
26 DESCRIPTION
:=PPP
(Point-to-Point Protocol
) daemon
27 URL
:=http
://ppp.samba.org
/
30 define Package
/ppp-mod-pppoa
35 DESCRIPTION
:=PPPoA
(PPP over ATM
) plugin for ppp
38 define Package
/ppp-mod-pppoe
44 DESCRIPTION
:=PPPoE
(PPP over Ethernet
) plugin for ppp
47 define Package
/ppp-mod-radius
52 DESCRIPTION
:=RADIUS
(Remote Authentication Dial-In User Service
) plugin for ppp
59 TITLE
:=Establish conversation with a modem
60 DESCRIPTION
:=Utility to establish conversation with other PPP servers
(via a modem
)
63 define Package
/pppdump
67 TITLE
:=Read PPP record file
68 DESCRIPTION
:=Utility to read PPP record file
71 define Package
/pppstats
75 TITLE
:=Report PPP statistics
76 DESCRIPTION
:=Utility to report PPP statistics
81 rm -rf
$(PKG_INSTALL_DIR
)
82 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
83 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
85 COPTS
="$(TARGET_CFLAGS)" \
86 PRECOMPILED_FILTER
=1 \
87 STAGING_DIR
="$(STAGING_DIR)" \
88 DESTDIR
="$(PKG_INSTALL_DIR)/usr" \
92 define Package
/ppp
/install
93 install -d
-m0755
$(1)/etc
/ppp
94 install -m0600 .
/files
/etc
/ppp
/chap-secrets
$(1)/etc
/ppp
/
95 install -m0644 .
/files
/etc
/ppp
/filter $(1)/etc
/ppp
/
96 install -m0755 .
/files
/etc
/ppp
/ip-up
$(1)/etc
/ppp
/
97 install -d
-m0755
$(1)/etc
/ppp
/ip-up.d
98 install -m0755 .
/files
/etc
/ppp
/ip-down
$(1)/etc
/ppp
/
99 install -d
-m0755
$(1)/etc
/ppp
/ip-down.d
100 install -m0644 .
/files
/etc
/ppp
/options
$(1)/etc
/ppp
/
101 ln
-sf
/tmp
/resolv.conf
$(1)/etc
/ppp
/resolv.conf
102 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
103 install -d
-m0755
$(1)/usr
/sbin
104 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppd
$(1)/usr
/sbin
/
107 define Package
/ppp-mod-pppoa
/install
108 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
109 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/pppoatm.so \
110 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
111 install -d
-m0755
$(1)/sbin
112 install -m0755 .
/files
/ifup.pppoa
$(1)/sbin
/
115 define Package
/ppp-mod-pppoe
/install
116 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
117 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/rp-pppoe.so \
118 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
119 install -d
-m0755
$(1)/sbin
120 install -m0755 .
/files
/ifup.pppoe
$(1)/sbin
/
123 define Package
/ppp-mod-radius
/install
124 install -d
-m0755
$(1)/etc
/ppp
125 install -m644 .
/files
/etc
/ppp
/radius.conf
$(1)/etc
/ppp
/
126 install -d
-m0755
$(1)/etc
/ppp
/radius
127 install -m644 .
/files
/etc
/ppp
/radius
/dictionary
* \
129 install -m600 .
/files
/etc
/ppp
/radius
/servers \
131 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
132 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/radius.so \
133 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
136 define Package
/chat
/install
137 install -d
-m0755
$(1)/usr
/sbin
138 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/chat
$(1)/usr
/sbin
/
141 define Package
/pppdump
/install
142 install -d
-m0755
$(1)/usr
/sbin
143 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppdump
$(1)/usr
/sbin
/
146 define Package
/pppstats
/install
147 install -d
-m0755
$(1)/usr
/sbin
148 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppstats
$(1)/usr
/sbin
/
152 $(eval
$(call BuildPackage
,ppp
))
153 $(eval
$(call BuildPackage
,ppp-mod-pppoa
))
154 $(eval
$(call BuildPackage
,ppp-mod-pppoe
))
155 $(eval
$(call BuildPackage
,ppp-mod-radius
))
156 $(eval
$(call BuildPackage
,chat
))
157 $(eval
$(call BuildPackage
,pppdump
))
158 $(eval
$(call BuildPackage
,pppstats
))