2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=ftp
://ftp.samba.org
/pub
/ppp
/
17 PKG_MD5SUM
:=848f6c3cafeb6074ffeb293c3af79b7c
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 PKG_BUILDDEP
:=libpcap linux-atm
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/kernel.mk
28 define Package
/ppp
/Default
31 URL
:=http
://ppp.samba.org
/
35 $(call Package
/ppp
/Default
)
39 This package contains the PPP
(Point-to-Point Protocol
) daemon.
43 define Package
/ppp-mod-pppoa
44 $(call Package
/ppp
/Default
)
45 DEPENDS
:=ppp
+linux-atm
+kmod-pppoa
48 This package contains a PPPoA
(PPP over ATM
) plugin for ppp.
51 define Package
/ppp-mod-pppoe
52 $(call Package
/ppp
/Default
)
53 DEPENDS
:=ppp
+kmod-pppoe
56 This package contains a PPPoE
(PPP over Ethernet
) plugin for ppp.
59 define Package
/ppp-mod-radius
60 $(call Package
/ppp
/Default
)
64 This package contains a RADIUS
(Remote Authentication Dial-In User
\\\
65 Service
) plugin for ppp.
69 $(call Package
/ppp
/Default
)
71 TITLE
:=Establish conversation with a modem
73 This package contains an utility to establish conversation with other
\\\
74 PPP servers
(via a modem
).
77 define Package
/pppdump
78 $(call Package
/ppp
/Default
)
80 TITLE
:=Read PPP record file
82 This package contains an utility to read PPP record file.
85 define Package
/pppstats
86 $(call Package
/ppp
/Default
)
88 TITLE
:=Report PPP statistics
90 This package contains an utility to report PPP statistics.
93 define Build
/Configure
94 $(call Build
/Configure
/Default
,, \
96 UNAME_R
="$(LINUX_VERSION)" \
102 rm -rf
$(PKG_INSTALL_DIR
)
103 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
104 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
105 $(TARGET_CONFIGURE_OPTS
) \
106 COPTS
="$(TARGET_CFLAGS)" \
107 PRECOMPILED_FILTER
=1 \
108 STAGING_DIR
="$(STAGING_DIR)" \
109 DESTDIR
="$(PKG_INSTALL_DIR)/usr" \
113 define Package
/ppp
/install
114 $(INSTALL_DIR
) $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
115 $(INSTALL_DIR
) $(1)/usr
/sbin
116 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppd
$(1)/usr
/sbin
/
117 $(INSTALL_DIR
) $(1)/lib
/network
118 $(INSTALL_BIN
) .
/files
/ppp.sh
$(1)/lib
/network
/
119 $(INSTALL_DIR
) $(1)/etc
/ppp
120 install -m0600 .
/files
/etc
/ppp
/chap-secrets
$(1)/etc
/ppp
/
121 $(INSTALL_DATA
) .
/files
/etc
/ppp
/filter $(1)/etc
/ppp
/
122 $(INSTALL_BIN
) .
/files
/etc
/ppp
/ip-up
$(1)/etc
/ppp
/
123 $(INSTALL_DIR
) $(1)/etc
/ppp
/ip-up.d
124 $(INSTALL_BIN
) .
/files
/etc
/ppp
/ip-down
$(1)/etc
/ppp
/
125 $(INSTALL_DIR
) $(1)/etc
/ppp
/ip-down.d
126 $(INSTALL_DATA
) .
/files
/etc
/ppp
/options
$(1)/etc
/ppp
/
127 ln
-sf
/tmp
/resolv.conf
$(1)/etc
/ppp
/resolv.conf
130 define Package
/ppp-mod-pppoa
/install
131 $(INSTALL_DIR
) $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
132 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/pppoatm.so \
133 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
134 $(INSTALL_DIR
) $(1)/lib
/network
135 $(INSTALL_BIN
) .
/files
/pppoa.sh
$(1)/lib
/network
/
138 define Package
/ppp-mod-pppoe
/install
139 $(INSTALL_DIR
) $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
140 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/rp-pppoe.so \
141 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
142 $(INSTALL_DIR
) $(1)/lib
/network
143 $(INSTALL_BIN
) .
/files
/pppoe.sh
$(1)/lib
/network
/
146 define Package
/ppp-mod-radius
/install
147 $(INSTALL_DIR
) $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
148 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/radius.so \
149 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
150 $(INSTALL_DIR
) $(1)/etc
/ppp
151 $(INSTALL_DATA
) .
/files
/etc
/ppp
/radius.conf
$(1)/etc
/ppp
/
152 $(INSTALL_DIR
) $(1)/etc
/ppp
/radius
153 $(INSTALL_DATA
) .
/files
/etc
/ppp
/radius
/dictionary
* \
155 install -m0600 .
/files
/etc
/ppp
/radius
/servers \
159 define Package
/chat
/install
160 $(INSTALL_DIR
) $(1)/usr
/sbin
161 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/chat
$(1)/usr
/sbin
/
164 define Package
/pppdump
/install
165 $(INSTALL_DIR
) $(1)/usr
/sbin
166 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppdump
$(1)/usr
/sbin
/
169 define Package
/pppstats
/install
170 $(INSTALL_DIR
) $(1)/usr
/sbin
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppstats
$(1)/usr
/sbin
/
174 $(eval
$(call BuildPackage
,ppp
))
175 $(eval
$(call BuildPackage
,ppp-mod-pppoa
))
176 $(eval
$(call BuildPackage
,ppp-mod-pppoe
))
177 $(eval
$(call BuildPackage
,ppp-mod-radius
))
178 $(eval
$(call BuildPackage
,chat
))
179 $(eval
$(call BuildPackage
,pppdump
))
180 $(eval
$(call BuildPackage
,pppstats
))