mac80211: update to wireless-testing 2010-11-10 + some pending work
[openwrt.git] / package / ppp / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=ppp
12 PKG_VERSION:=2.4.4
13 PKG_RELEASE:=13
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
17 PKG_MD5SUM:=183800762e266132218b204dfb428d29
18
19 PKG_BUILD_DEPENDS:=libpcap
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ppp/Default
26 SECTION:=net
27 CATEGORY:=Network
28 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
29 URL:=http://ppp.samba.org/
30 endef
31
32 define Package/ppp
33 $(call Package/ppp/Default)
34 DEPENDS:=+kmod-ppp
35 TITLE:=PPP daemon
36 MENU:=1
37 endef
38
39 define Package/ppp/description
40 This package contains the PPP (Point-to-Point Protocol) daemon.
41 endef
42
43 define Package/ppp/conffiles
44 /etc/ppp/chap-secrets
45 /etc/ppp/filter
46 /etc/ppp/ip-down
47 /etc/ppp/ip-up
48 /etc/ppp/ipv6-down
49 /etc/ppp/ipv6-up
50 /etc/ppp/options
51 endef
52
53 define Package/ppp-mod-pppoa
54 $(call Package/ppp/Default)
55 DEPENDS:=ppp +linux-atm +kmod-pppoa
56 TITLE:=PPPoA plugin
57 endef
58
59 define Package/ppp-mod-pppoa/description
60 This package contains a PPPoA (PPP over ATM) plugin for ppp.
61 endef
62
63 define Package/ppp-mod-pppoe
64 $(call Package/ppp/Default)
65 DEPENDS:=ppp +kmod-pppoe
66 TITLE:=PPPoE plugin
67 endef
68
69 define Package/ppp-mod-pppoe/description
70 This package contains a PPPoE (PPP over Ethernet) plugin for ppp.
71 endef
72
73 define Package/ppp-mod-radius
74 $(call Package/ppp/Default)
75 DEPENDS:=ppp
76 TITLE:=RADIUS plugin
77 endef
78
79 define Package/ppp-mod-radius/description
80 This package contains a RADIUS (Remote Authentication Dial-In User Service)
81 plugin for ppp.
82 endef
83
84 define Package/ppp-mod-radius/conffiles
85 /etc/ppp/radius.conf
86 /etc/ppp/radius/
87 endef
88
89 define Package/chat
90 $(call Package/ppp/Default)
91 DEPENDS:=ppp
92 TITLE:=Establish conversation with a modem
93 endef
94
95 define Package/chat/description
96 This package contains an utility to establish conversation with other PPP servers
97 (via a modem).
98 endef
99
100 define Package/pppdump
101 $(call Package/ppp/Default)
102 DEPENDS:=ppp
103 TITLE:=Read PPP record file
104 endef
105
106 define Package/pppdump/description
107 This package contains an utility to read PPP record file.
108 endef
109
110 define Package/pppstats
111 $(call Package/ppp/Default)
112 DEPENDS:=ppp
113 TITLE:=Report PPP statistics
114 endef
115
116 define Package/pppstats/description
117 This package contains an utility to report PPP statistics.
118 endef
119
120
121 define Build/Configure
122 $(call Build/Configure/Default,, \
123 UNAME_S="Linux" \
124 UNAME_R="$(LINUX_VERSION)" \
125 UNAME_M="$(ARCH)" \
126 )
127 mkdir -p $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux
128 cp \
129 $(LINUX_DIR)/include/linux/compiler.h \
130 $(LINUX_DIR)/include/linux/atm*.h \
131 $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
132 endef
133
134 MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
135 PRECOMPILED_FILTER=1 \
136 STAGING_DIR="$(STAGING_DIR)"
137
138 define Build/InstallDev
139 $(INSTALL_DIR) $(1)/usr/include
140 $(CP) $(PKG_INSTALL_DIR)/include/pppd $(1)/usr/include/
141 endef
142
143 define Package/ppp/install
144 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
145 $(INSTALL_DIR) $(1)/usr/sbin
146 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/pppd $(1)/usr/sbin/
147 $(INSTALL_DIR) $(1)/lib/network
148 $(INSTALL_BIN) ./files/ppp.sh $(1)/lib/network/
149 $(INSTALL_DIR) $(1)/etc/ppp
150 $(INSTALL_CONF) ./files/etc/ppp/chap-secrets $(1)/etc/ppp/
151 $(INSTALL_DATA) ./files/etc/ppp/filter $(1)/etc/ppp/
152 $(INSTALL_BIN) ./files/etc/ppp/ip-up $(1)/etc/ppp/
153 $(INSTALL_DIR) $(1)/etc/ppp/ip-up.d
154 $(INSTALL_BIN) ./files/etc/ppp/ip-down $(1)/etc/ppp/
155 $(INSTALL_DIR) $(1)/etc/ppp/ip-down.d
156 $(INSTALL_BIN) ./files/etc/ppp/ipv6-up $(1)/etc/ppp/
157 $(INSTALL_BIN) ./files/etc/ppp/ipv6-down $(1)/etc/ppp/
158 $(INSTALL_DATA) ./files/etc/ppp/options $(1)/etc/ppp/
159 ln -sf /tmp/resolv.conf.ppp $(1)/etc/ppp/resolv.conf
160 endef
161
162 define Package/ppp-mod-pppoa/install
163 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
164 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/pppoatm.so \
165 $(1)/usr/lib/pppd/$(PKG_VERSION)/
166 $(INSTALL_DIR) $(1)/lib/network
167 $(INSTALL_BIN) ./files/pppoa.sh $(1)/lib/network/
168 $(INSTALL_DIR) $(1)/etc/hotplug.d/atm
169 $(INSTALL_DATA) ./files/etc/hotplug.d/atm/20-atm-modem $(1)/etc/hotplug.d/atm/
170 endef
171
172 define Package/ppp-mod-pppoe/install
173 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
174 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
175 $(1)/usr/lib/pppd/$(PKG_VERSION)/
176 $(INSTALL_DIR) $(1)/lib/network
177 $(INSTALL_BIN) ./files/pppoe.sh $(1)/lib/network/
178 endef
179
180 define Package/ppp-mod-radius/install
181 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
182 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/radius.so \
183 $(1)/usr/lib/pppd/$(PKG_VERSION)/
184 $(INSTALL_DIR) $(1)/etc/ppp
185 $(INSTALL_DATA) ./files/etc/ppp/radius.conf $(1)/etc/ppp/
186 $(INSTALL_DIR) $(1)/etc/ppp/radius
187 $(INSTALL_DATA) ./files/etc/ppp/radius/dictionary* \
188 $(1)/etc/ppp/radius/
189 $(INSTALL_CONF) ./files/etc/ppp/radius/servers \
190 $(1)/etc/ppp/radius/
191 endef
192
193 define Package/chat/install
194 $(INSTALL_DIR) $(1)/usr/sbin
195 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/chat $(1)/usr/sbin/
196 endef
197
198 define Package/pppdump/install
199 $(INSTALL_DIR) $(1)/usr/sbin
200 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/pppdump $(1)/usr/sbin/
201 endef
202
203 define Package/pppstats/install
204 $(INSTALL_DIR) $(1)/usr/sbin
205 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/pppstats $(1)/usr/sbin/
206 endef
207
208 $(eval $(call BuildPackage,ppp))
209 $(eval $(call BuildPackage,ppp-mod-pppoa))
210 $(eval $(call BuildPackage,ppp-mod-pppoe))
211 $(eval $(call BuildPackage,ppp-mod-radius))
212 $(eval $(call BuildPackage,chat))
213 $(eval $(call BuildPackage,pppdump))
214 $(eval $(call BuildPackage,pppstats))
This page took 0.046146 seconds and 5 git commands to generate.