[ar7] add back the fixed PHY patches from #3124, until we move this to platform_data
[openwrt.git] / package / ppp / Makefile
1 #
2 # Copyright (C) 2006-2009 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
10 PKG_NAME:=ppp
11 PKG_VERSION:=2.4.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
16 PKG_MD5SUM:=183800762e266132218b204dfb428d29
17
18 PKG_BUILD_DEPENDS:=libpcap
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/kernel.mk
22
23 define Package/ppp/Default
24 SECTION:=net
25 CATEGORY:=Network
26 URL:=http://ppp.samba.org/
27 endef
28
29 define Package/ppp
30 $(call Package/ppp/Default)
31 DEPENDS:=+kmod-ppp
32 TITLE:=PPP daemon
33 MENU:=1
34 endef
35
36 define Package/ppp/description
37 This package contains the PPP (Point-to-Point Protocol) daemon.
38 endef
39
40 define Package/ppp-mod-pppoa
41 $(call Package/ppp/Default)
42 DEPENDS:=ppp +linux-atm +kmod-pppoa
43 TITLE:=PPPoA plugin
44 endef
45
46 define Package/ppp-mod-pppoa/description
47 This package contains a PPPoA (PPP over ATM) plugin for ppp.
48 endef
49
50 define Package/ppp-mod-pppoe
51 $(call Package/ppp/Default)
52 DEPENDS:=ppp +kmod-pppoe
53 TITLE:=PPPoE plugin
54 endef
55
56 define Package/ppp-mod-pppoe/description
57 This package contains a PPPoE (PPP over Ethernet) plugin for ppp.
58 endef
59
60 define Package/ppp-mod-radius
61 $(call Package/ppp/Default)
62 DEPENDS:=ppp
63 TITLE:=RADIUS plugin
64 endef
65
66 define Package/ppp-mod-radius/description
67 This package contains a RADIUS (Remote Authentication Dial-In User
68 Service) plugin for ppp.
69 endef
70
71 define Package/chat
72 $(call Package/ppp/Default)
73 DEPENDS:=ppp
74 TITLE:=Establish conversation with a modem
75 endef
76
77 define Package/chat/description
78 This package contains an utility to establish conversation with other
79 PPP servers (via a modem).
80 endef
81
82 define Package/pppdump
83 $(call Package/ppp/Default)
84 DEPENDS:=ppp
85 TITLE:=Read PPP record file
86 endef
87
88 define Package/pppdump/description
89 This package contains an utility to read PPP record file.
90 endef
91
92 define Package/pppstats
93 $(call Package/ppp/Default)
94 DEPENDS:=ppp
95 TITLE:=Report PPP statistics
96 endef
97
98 define Package/pppstats/description
99 This package contains an utility to report PPP statistics.
100 endef
101
102
103 define Build/Configure
104 $(call Build/Configure/Default,, \
105 UNAME_S="Linux" \
106 UNAME_R="$(LINUX_VERSION)" \
107 UNAME_M="$(ARCH)" \
108 )
109 endef
110
111 define Build/Compile
112 rm -rf $(PKG_INSTALL_DIR)
113 mkdir -p $(PKG_INSTALL_DIR)/usr
114 $(MAKE) -C $(PKG_BUILD_DIR) \
115 $(TARGET_CONFIGURE_OPTS) \
116 COPTS="$(TARGET_CFLAGS)" \
117 PRECOMPILED_FILTER=1 \
118 STAGING_DIR="$(STAGING_DIR)" \
119 DESTDIR="$(PKG_INSTALL_DIR)/usr" \
120 all install
121 endef
122
123 define Build/InstallDev
124 $(INSTALL_DIR) $(1)/usr/include
125 $(CP) $(PKG_INSTALL_DIR)/usr/include/pppd $(1)/usr/include/
126 endef
127
128 define Package/ppp/install
129 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
130 $(INSTALL_DIR) $(1)/usr/sbin
131 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppd $(1)/usr/sbin/
132 $(INSTALL_DIR) $(1)/lib/network
133 $(INSTALL_BIN) ./files/ppp.sh $(1)/lib/network/
134 $(INSTALL_DIR) $(1)/etc/ppp
135 $(INSTALL_CONF) ./files/etc/ppp/chap-secrets $(1)/etc/ppp/
136 $(INSTALL_DATA) ./files/etc/ppp/filter $(1)/etc/ppp/
137 $(INSTALL_BIN) ./files/etc/ppp/ip-up $(1)/etc/ppp/
138 $(INSTALL_DIR) $(1)/etc/ppp/ip-up.d
139 $(INSTALL_BIN) ./files/etc/ppp/ip-down $(1)/etc/ppp/
140 $(INSTALL_DIR) $(1)/etc/ppp/ip-down.d
141 $(INSTALL_BIN) ./files/etc/ppp/ipv6-up $(1)/etc/ppp/
142 $(INSTALL_BIN) ./files/etc/ppp/ipv6-down $(1)/etc/ppp/
143 $(INSTALL_DATA) ./files/etc/ppp/options $(1)/etc/ppp/
144 ln -sf /tmp/resolv.conf.auto $(1)/etc/ppp/resolv.conf
145 endef
146
147 define Package/ppp-mod-pppoa/install
148 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
149 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
150 $(1)/usr/lib/pppd/$(PKG_VERSION)/
151 $(INSTALL_DIR) $(1)/lib/network
152 $(INSTALL_BIN) ./files/pppoa.sh $(1)/lib/network/
153 endef
154
155 define Package/ppp-mod-pppoe/install
156 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
157 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
158 $(1)/usr/lib/pppd/$(PKG_VERSION)/
159 $(INSTALL_DIR) $(1)/lib/network
160 $(INSTALL_BIN) ./files/pppoe.sh $(1)/lib/network/
161 endef
162
163 define Package/ppp-mod-radius/install
164 $(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
165 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
166 $(1)/usr/lib/pppd/$(PKG_VERSION)/
167 $(INSTALL_DIR) $(1)/etc/ppp
168 $(INSTALL_DATA) ./files/etc/ppp/radius.conf $(1)/etc/ppp/
169 $(INSTALL_DIR) $(1)/etc/ppp/radius
170 $(INSTALL_DATA) ./files/etc/ppp/radius/dictionary* \
171 $(1)/etc/ppp/radius/
172 $(INSTALL_CONF) ./files/etc/ppp/radius/servers \
173 $(1)/etc/ppp/radius/
174 endef
175
176 define Package/chat/install
177 $(INSTALL_DIR) $(1)/usr/sbin
178 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/chat $(1)/usr/sbin/
179 endef
180
181 define Package/pppdump/install
182 $(INSTALL_DIR) $(1)/usr/sbin
183 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(1)/usr/sbin/
184 endef
185
186 define Package/pppstats/install
187 $(INSTALL_DIR) $(1)/usr/sbin
188 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(1)/usr/sbin/
189 endef
190
191 $(eval $(call BuildPackage,ppp))
192 $(eval $(call BuildPackage,ppp-mod-pppoa))
193 $(eval $(call BuildPackage,ppp-mod-pppoe))
194 $(eval $(call BuildPackage,ppp-mod-radius))
195 $(eval $(call BuildPackage,chat))
196 $(eval $(call BuildPackage,pppdump))
197 $(eval $(call BuildPackage,pppstats))
This page took 0.053164 seconds and 5 git commands to generate.