3 include $(TOPDIR
)/rules.mk
8 PKG_BUILDDEP
:=libpcap linux-atm
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
)/include/package.mk
26 DESCRIPTION
:=PPP
(Point-to-Point Protocol
) daemon
27 URL
:=http
://ppp.samba.org
/
30 define Package
/ppp-mod-pppoa
33 DEPENDS
:=ppp
+linux-atm
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
80 rm -rf
$(PKG_INSTALL_DIR
)
81 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
82 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
84 COPTS
="$(TARGET_CFLAGS)" \
85 PRECOMPILED_FILTER
=1 \
86 STAGING_DIR
="$(STAGING_DIR)" \
87 DESTDIR
="$(PKG_INSTALL_DIR)/usr" \
91 define Package
/ppp
/install
92 install -d
-m0755
$(1)/etc
/ppp
93 install -m0600 .
/files
/etc
/ppp
/chap-secrets
$(1)/etc
/ppp
/
94 install -m0644 .
/files
/etc
/ppp
/filter $(1)/etc
/ppp
/
95 install -m0755 .
/files
/etc
/ppp
/ip-up
$(1)/etc
/ppp
/
96 install -d
-m0755
$(1)/etc
/ppp
/ip-up.d
97 install -m0755 .
/files
/etc
/ppp
/ip-down
$(1)/etc
/ppp
/
98 install -d
-m0755
$(1)/etc
/ppp
/ip-down.d
99 install -m0644 .
/files
/etc
/ppp
/options
$(1)/etc
/ppp
/
100 ln
-sf
/tmp
/resolv.conf
$(1)/etc
/ppp
/resolv.conf
101 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
102 install -d
-m0755
$(1)/usr
/sbin
103 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppd
$(1)/usr
/sbin
/
106 define Package
/ppp-mod-pppoa
/install
107 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
108 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/pppoatm.so \
109 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
110 install -d
-m0755
$(1)/sbin
111 install -m0755 .
/files
/ifup.pppoa
$(1)/sbin
/
114 define Package
/ppp-mod-pppoe
/install
115 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
116 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/rp-pppoe.so \
117 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
118 install -d
-m0755
$(1)/sbin
119 install -m0755 .
/files
/ifup.pppoe
$(1)/sbin
/
122 define Package
/ppp-mod-radius
/install
123 install -d
-m0755
$(1)/etc
/ppp
124 install -m644 .
/files
/etc
/ppp
/radius.conf
$(1)/etc
/ppp
/
125 install -d
-m0755
$(1)/etc
/ppp
/radius
126 install -m644 .
/files
/etc
/ppp
/radius
/dictionary
* \
128 install -m600 .
/files
/etc
/ppp
/radius
/servers \
130 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
131 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/radius.so \
132 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
135 define Package
/chat
/install
136 install -d
-m0755
$(1)/usr
/sbin
137 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/chat
$(1)/usr
/sbin
/
140 define Package
/pppdump
/install
141 install -d
-m0755
$(1)/usr
/sbin
142 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppdump
$(1)/usr
/sbin
/
145 define Package
/pppstats
/install
146 install -d
-m0755
$(1)/usr
/sbin
147 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppstats
$(1)/usr
/sbin
/
151 $(eval
$(call BuildPackage
,ppp
))
152 $(eval
$(call BuildPackage
,ppp-mod-pppoa
))
153 $(eval
$(call BuildPackage
,ppp-mod-pppoe
))
154 $(eval
$(call BuildPackage
,ppp-mod-radius
))
155 $(eval
$(call BuildPackage
,chat
))
156 $(eval
$(call BuildPackage
,pppdump
))
157 $(eval
$(call BuildPackage
,pppstats
))