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
14 PKG_BUILDDEP
:=libpcap linux-atm
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=ftp
://ftp.samba.org
/pub
/ppp
/
19 PKG_MD5SUM
:=848f6c3cafeb6074ffeb293c3af79b7c
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
33 DESCRIPTION
:=PPP
(Point-to-Point Protocol
) daemon
34 URL
:=http
://ppp.samba.org
/
37 define Package
/ppp-mod-pppoa
40 DEPENDS
:=ppp
+linux-atm
+kmod-pppoa
42 DESCRIPTION
:=PPPoA
(PPP over ATM
) plugin for ppp
45 define Package
/ppp-mod-pppoe
49 DEPENDS
:=ppp
+kmod-pppoe
51 DESCRIPTION
:=PPPoE
(PPP over Ethernet
) plugin for ppp
54 define Package
/ppp-mod-radius
59 DESCRIPTION
:=RADIUS
(Remote Authentication Dial-In User Service
) plugin for ppp
66 TITLE
:=Establish conversation with a modem
67 DESCRIPTION
:=Utility to establish conversation with other PPP servers
(via a modem
)
70 define Package
/pppdump
74 TITLE
:=Read PPP record file
75 DESCRIPTION
:=Utility to read PPP record file
78 define Package
/pppstats
82 TITLE
:=Report PPP statistics
83 DESCRIPTION
:=Utility to report PPP statistics
87 rm -rf
$(PKG_INSTALL_DIR
)
88 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
89 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
90 $(TARGET_CONFIGURE_OPTS
) \
91 COPTS
="$(TARGET_CFLAGS)" \
92 PRECOMPILED_FILTER
=1 \
93 STAGING_DIR
="$(STAGING_DIR)" \
94 DESTDIR
="$(PKG_INSTALL_DIR)/usr" \
98 define Package
/ppp
/install
99 install -d
-m0755
$(1)/lib
/network
100 install -m0755 .
/files
/ppp.sh
$(1)/lib
/network
/
101 install -d
-m0755
$(1)/etc
/ppp
102 install -m0600 .
/files
/etc
/ppp
/chap-secrets
$(1)/etc
/ppp
/
103 install -m0644 .
/files
/etc
/ppp
/filter $(1)/etc
/ppp
/
104 install -m0755 .
/files
/etc
/ppp
/ip-up
$(1)/etc
/ppp
/
105 install -d
-m0755
$(1)/etc
/ppp
/ip-up.d
106 install -m0755 .
/files
/etc
/ppp
/ip-down
$(1)/etc
/ppp
/
107 install -d
-m0755
$(1)/etc
/ppp
/ip-down.d
108 install -m0644 .
/files
/etc
/ppp
/options
$(1)/etc
/ppp
/
109 ln
-sf
/tmp
/resolv.conf
$(1)/etc
/ppp
/resolv.conf
110 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
111 install -d
-m0755
$(1)/usr
/sbin
112 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppd
$(1)/usr
/sbin
/
115 define Package
/ppp-mod-pppoa
/install
116 install -d
-m0755
$(1)/lib
/network
117 install -m0755 .
/files
/pppoa.sh
$(1)/lib
/network
/
118 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
119 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/pppoatm.so \
120 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
123 define Package
/ppp-mod-pppoe
/install
124 install -d
-m0755
$(1)/lib
/network
125 install -m0755 .
/files
/pppoe.sh
$(1)/lib
/network
/
126 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
127 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/rp-pppoe.so \
128 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
131 define Package
/ppp-mod-radius
/install
132 install -d
-m0755
$(1)/etc
/ppp
133 install -m644 .
/files
/etc
/ppp
/radius.conf
$(1)/etc
/ppp
/
134 install -d
-m0755
$(1)/etc
/ppp
/radius
135 install -m644 .
/files
/etc
/ppp
/radius
/dictionary
* \
137 install -m600 .
/files
/etc
/ppp
/radius
/servers \
139 install -d
-m0755
$(1)/usr
/lib
/pppd
/$(PKG_VERSION
)
140 install -m0755
$(PKG_INSTALL_DIR
)/usr
/lib
/pppd
/$(PKG_VERSION
)/radius.so \
141 $(1)/usr
/lib
/pppd
/$(PKG_VERSION
)/
144 define Package
/chat
/install
145 install -d
-m0755
$(1)/usr
/sbin
146 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/chat
$(1)/usr
/sbin
/
149 define Package
/pppdump
/install
150 install -d
-m0755
$(1)/usr
/sbin
151 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppdump
$(1)/usr
/sbin
/
154 define Package
/pppstats
/install
155 install -d
-m0755
$(1)/usr
/sbin
156 install -m0755
$(PKG_INSTALL_DIR
)/usr
/sbin
/pppstats
$(1)/usr
/sbin
/
159 $(eval
$(call BuildPackage
,ppp
))
160 $(eval
$(call BuildPackage
,ppp-mod-pppoa
))
161 $(eval
$(call BuildPackage
,ppp-mod-pppoe
))
162 $(eval
$(call BuildPackage
,ppp-mod-radius
))
163 $(eval
$(call BuildPackage
,chat
))
164 $(eval
$(call BuildPackage
,pppdump
))
165 $(eval
$(call BuildPackage
,pppstats
))