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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://roaringpenguin.com
/files
/download
17 PKG_MD5SUM
:=0e32760f498f9cde44081ee6aafc823b
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/rp-pppoe
/Default
29 TITLE
:=PPPoE
(PPP over Ethernet
)
30 URL
:=http
://roaringpenguin.com
/penguin
/pppoe
/
33 define Package
/rp-pppoe-client
34 $(call Package
/rp-pppoe
/Default
)
38 define Package
/rp-pppoe-relay
39 $(call Package
/rp-pppoe
/Default
)
43 define Package
/rp-pppoe-server
44 $(call Package
/rp-pppoe
/Default
)
48 define Package
/rp-pppoe-sniff
49 $(call Package
/rp-pppoe
/Default
)
53 define Build
/Configure
54 $(call Build
/Configure
/Default
,, \
55 ac_cv_path_PPPD
=/usr
/sbin
/pppd
, \
61 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
62 RPM_INSTALL_ROOT
="$(PKG_INSTALL_DIR)" \
66 define Package
/rp-pppoe-client
/install
67 $(INSTALL_DIR
) $(1)/etc
/init.d
68 $(INSTALL_BIN
) .
/files
/pppoe-client.init
$(1)/etc
/init.d
/pppoe-client
69 $(INSTALL_DIR
) $(1)/etc
/ppp
70 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/ppp
/pppoe.conf
$(1)/etc
/ppp
/
71 $(INSTALL_DIR
) $(1)/usr
/sbin
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe
$(1)/usr
/sbin
/
75 define Package
/rp-pppoe-relay
/install
76 $(INSTALL_DIR
) $(1)/etc
/default
77 $(INSTALL_BIN
) .
/files
/pppoe-relay.default
$(1)/etc
/default
/pppoe-relay
78 $(INSTALL_DIR
) $(1)/etc
/init.d
79 $(INSTALL_BIN
) .
/files
/pppoe-relay.init
$(1)/etc
/init.d
/pppoe-relay
80 $(INSTALL_DIR
) $(1)/usr
/sbin
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-relay
$(1)/usr
/sbin
/
84 define Package
/rp-pppoe-server
/install
85 $(INSTALL_DIR
) $(1)/etc
/default
86 $(INSTALL_BIN
) .
/files
/pppoe-server.default
$(1)/etc
/default
/pppoe-server
87 $(INSTALL_DIR
) $(1)/etc
/init.d
88 $(INSTALL_BIN
) .
/files
/pppoe-server.init
$(1)/etc
/init.d
/pppoe-server
89 $(INSTALL_DIR
) $(1)/etc
/ppp
90 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/ppp
/pppoe-server-options
$(1)/etc
/ppp
/
91 $(INSTALL_DIR
) $(1)/usr
/sbin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-server
$(1)/usr
/sbin
/
95 define Package
/rp-pppoe-sniff
/install
96 $(INSTALL_DIR
) $(1)/usr
/sbin
97 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-sniff
$(1)/usr
/sbin
/
100 $(eval
$(call BuildPackage
,rp-pppoe-client
))
101 $(eval
$(call BuildPackage
,rp-pppoe-relay
))
102 $(eval
$(call BuildPackage
,rp-pppoe-server
))
103 $(eval
$(call BuildPackage
,rp-pppoe-sniff
))