normalize Makefiles.
[openwrt.git] / package / ppp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ppp
6 PKG_VERSION:=2.4.3
7 PKG_RELEASE:=7
8 PKG_BUILDDEP:=libpcap linux-atm
9
10 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
13 PKG_MD5SUM:=848f6c3cafeb6074ffeb293c3af79b7c
14 PKG_CAT:=zcat
15
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 define Package/ppp
21 SECTION:=net
22 CATEGORY:=Network
23 MENU:=1
24 DEFAULT:=y
25 TITLE:=PPP daemon
26 DESCRIPTION:=PPP (Point-to-Point Protocol) daemon
27 URL:=http://ppp.samba.org/
28 endef
29
30 define Package/ppp-mod-pppoa
31 SECTION:=net
32 CATEGORY:=Network
33 DEPENDS:=ppp +linux-atm
34 TITLE:=PPPoA plugin
35 DESCRIPTION:=PPPoA (PPP over ATM) plugin for ppp
36 endef
37
38 define Package/ppp-mod-pppoe
39 SECTION:=net
40 CATEGORY:=Network
41 DEFAULT:=y
42 DEPENDS:=ppp
43 TITLE:=PPPoE plugin
44 DESCRIPTION:=PPPoE (PPP over Ethernet) plugin for ppp
45 endef
46
47 define Package/ppp-mod-radius
48 SECTION:=net
49 CATEGORY:=Network
50 DEPENDS:=ppp
51 TITLE:=RADIUS plugin
52 DESCRIPTION:=RADIUS (Remote Authentication Dial-In User Service) plugin for ppp
53 endef
54
55 define Package/chat
56 SECTION:=net
57 CATEGORY:=Network
58 DEPENDS:=ppp
59 TITLE:=Establish conversation with a modem
60 DESCRIPTION:=Utility to establish conversation with other PPP servers (via a modem)
61 endef
62
63 define Package/pppdump
64 SECTION:=net
65 CATEGORY:=Network
66 DEPENDS:=ppp
67 TITLE:=Read PPP record file
68 DESCRIPTION:=Utility to read PPP record file
69 endef
70
71 define Package/pppstats
72 SECTION:=net
73 CATEGORY:=Network
74 DEPENDS:=ppp
75 TITLE:=Report PPP statistics
76 DESCRIPTION:=Utility to report PPP statistics
77 endef
78
79 define Build/Compile
80 rm -rf $(PKG_INSTALL_DIR)
81 mkdir -p $(PKG_INSTALL_DIR)/usr
82 $(MAKE) -C $(PKG_BUILD_DIR) \
83 CC=$(TARGET_CC) \
84 COPTS="$(TARGET_CFLAGS)" \
85 PRECOMPILED_FILTER=1 \
86 STAGING_DIR="$(STAGING_DIR)" \
87 DESTDIR="$(PKG_INSTALL_DIR)/usr" \
88 all install
89 endef
90
91 define Package/ppp/install
92 install -d -m0755 $(1)/etc/ppp
93 install -m0600 ./files/etc/ppp/chap-secrets $(1)/etc/ppp/
94 install -m0644 ./files/etc/ppp/filter $(1)/etc/ppp/
95 install -m0755 ./files/etc/ppp/ip-up $(1)/etc/ppp/
96 install -d -m0755 $(1)/etc/ppp/ip-up.d
97 install -m0755 ./files/etc/ppp/ip-down $(1)/etc/ppp/
98 install -d -m0755 $(1)/etc/ppp/ip-down.d
99 install -m0644 ./files/etc/ppp/options $(1)/etc/ppp/
100 ln -sf /tmp/resolv.conf $(1)/etc/ppp/resolv.conf
101 install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
102 install -d -m0755 $(1)/usr/sbin
103 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppd $(1)/usr/sbin/
104 endef
105
106 define Package/ppp-mod-pppoa/install
107 install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
108 install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
109 $(1)/usr/lib/pppd/$(PKG_VERSION)/
110 install -d -m0755 $(1)/sbin
111 install -m0755 ./files/ifup.pppoa $(1)/sbin/
112 endef
113
114 define Package/ppp-mod-pppoe/install
115 install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
116 install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
117 $(1)/usr/lib/pppd/$(PKG_VERSION)/
118 install -d -m0755 $(1)/sbin
119 install -m0755 ./files/ifup.pppoe $(1)/sbin/
120 endef
121
122 define Package/ppp-mod-radius/install
123 install -d -m0755 $(1)/etc/ppp
124 install -m644 ./files/etc/ppp/radius.conf $(1)/etc/ppp/
125 install -d -m0755 $(1)/etc/ppp/radius
126 install -m644 ./files/etc/ppp/radius/dictionary* \
127 $(1)/etc/ppp/radius/
128 install -m600 ./files/etc/ppp/radius/servers \
129 $(1)/etc/ppp/radius/
130 install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
131 install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
132 $(1)/usr/lib/pppd/$(PKG_VERSION)/
133 endef
134
135 define Package/chat/install
136 install -d -m0755 $(1)/usr/sbin
137 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/chat $(1)/usr/sbin/
138 endef
139
140 define Package/pppdump/install
141 install -d -m0755 $(1)/usr/sbin
142 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(1)/usr/sbin/
143 endef
144
145 define Package/pppstats/install
146 install -d -m0755 $(1)/usr/sbin
147 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(1)/usr/sbin/
148 $(RSTRIP) $(1)
149 endef
150
151 $(eval $(call BuildPackage,ppp))
152 $(eval $(call BuildPackage,ppp-mod-pppoa))
153 $(eval $(call BuildPackage,ppp-mod-pppoe))
154 $(eval $(call BuildPackage,ppp-mod-radius))
155 $(eval $(call BuildPackage,chat))
156 $(eval $(call BuildPackage,pppdump))
157 $(eval $(call BuildPackage,pppstats))
This page took 0.0521 seconds and 5 git commands to generate.