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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://roaringpenguin.com
/files
/download
16 PKG_MD5SUM
:=d58a13cc4185bca6121a606ff456dec0
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/rp-pppoe
/Default
24 TITLE
:=PPPoE
(PPP over Ethernet
)
25 URL
:=http
://roaringpenguin.com
/products
/pppoe
29 define Package
/rp-pppoe
/Default
/description
30 Dubbed RP-PPPoE
, this open-source product is ideal for Linux users with
31 a DSL
"modem" whose Internet service provider uses PPPoE.
34 define Package
/rp-pppoe-client
35 $(call Package
/rp-pppoe
/Default
)
39 define Package
/rp-pppoe-client
/description
40 $(call Package
/rp-pppoe
/Default
/description
)
41 This package contains pppoe-connect.
44 define Package
/rp-pppoe-relay
45 $(call Package
/rp-pppoe
/Default
)
49 define Package
/rp-pppoe-relay
/description
50 $(call Package
/rp-pppoe
/Default
/description
)
51 This package contains pppoe-relay.
54 define Package
/rp-pppoe-server
55 $(call Package
/rp-pppoe
/Default
)
59 define Package
/rp-pppoe-server
/description
60 $(call Package
/rp-pppoe
/Default
/description
)
61 This package contains pppoe-server.
64 define Package
/rp-pppoe-sniff
65 $(call Package
/rp-pppoe
/Default
)
69 define Package
/rp-pppoe-sniff
/description
70 $(call Package
/rp-pppoe
/Default
/description
)
71 This package contains pppoe-sniff.
74 TARGET_CFLAGS
+= -I
$(PKG_BUILD_DIR
)/src
/libevent
75 CONFIGURE_PATH
:= .
/src
76 CONFIGURE_ARGS
+= ac_cv_path_PPPD
=/usr
/sbin
/pppd
--enable-plugin
=..
/..
/ppp-2.4
.3/ipkg-install
/usr
/include/
77 MAKE_FLAGS
:= DESTDIR
="$(PKG_INSTALL_DIR)" install
80 define Package
/rp-pppoe-client
/install
81 $(INSTALL_DIR
) $(1)/etc
/init.d
82 $(INSTALL_BIN
) .
/files
/pppoe-client.init
$(1)/etc
/init.d
/pppoe-client
83 $(INSTALL_DIR
) $(1)/etc
/ppp
84 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/ppp
/pppoe.conf
$(1)/etc
/ppp
/
85 $(INSTALL_DIR
) $(1)/usr
/sbin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe
$(1)/usr
/sbin
/
87 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/pppoe-connect
$(1)/usr
/sbin
/
88 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/pppoe-start
$(1)/usr
/sbin
/
89 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/scripts
/pppoe-stop
$(1)/usr
/sbin
/
90 $(SED
) 's,modprobe,insmod,g' $(1)/usr
/sbin
/pppoe-connect
93 define Package
/rp-pppoe-relay
/install
94 $(INSTALL_DIR
) $(1)/etc
/default
95 $(INSTALL_BIN
) .
/files
/pppoe-relay.default
$(1)/etc
/default
/pppoe-relay
96 $(INSTALL_DIR
) $(1)/etc
/init.d
97 $(INSTALL_BIN
) .
/files
/pppoe-relay.init
$(1)/etc
/init.d
/pppoe-relay
98 $(INSTALL_DIR
) $(1)/usr
/sbin
99 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-relay
$(1)/usr
/sbin
/
102 define Package
/rp-pppoe-server
/install
103 $(INSTALL_DIR
) $(1)/etc
/default
104 $(INSTALL_BIN
) .
/files
/pppoe-server.default
$(1)/etc
/default
/pppoe-server
105 $(INSTALL_DIR
) $(1)/etc
/init.d
106 $(INSTALL_BIN
) .
/files
/pppoe-server.init
$(1)/etc
/init.d
/pppoe-server
107 $(INSTALL_DIR
) $(1)/etc
/ppp
108 $(INSTALL_DIR
) $(1)/etc
/ppp
/plugins
109 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/ppp
/pppoe-server-options
$(1)/etc
/ppp
/
110 $(INSTALL_DIR
) $(1)/usr
/sbin
111 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-server
$(1)/usr
/sbin
/
112 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/etc
/ppp
/plugins
/rp-pppoe.so
$(1)/etc
/ppp
/plugins
/
115 define Package
/rp-pppoe-sniff
/install
116 $(INSTALL_DIR
) $(1)/usr
/sbin
117 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-sniff
$(1)/usr
/sbin
/
120 $(eval
$(call BuildPackage
,rp-pppoe-client
))
121 $(eval
$(call BuildPackage
,rp-pppoe-relay
))
122 $(eval
$(call BuildPackage
,rp-pppoe-server
))
123 $(eval
$(call BuildPackage
,rp-pppoe-sniff
))