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