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
14 PKG_MD5SUM
:=97972f8f8f6a3ab9b7070333a6a29c4b
16 PKG_SOURCE_URL
:=http
://roaringpenguin.com
/penguin
/pppoe
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
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
29 SUBMENU
:=Roaring Penguin PPPoE
(PPP over Ethernet
) implementation
30 TITLE
:=Roaring Penguin PPPoE
(PPP over Ethernet
) implementation
33 define Package
/rp-pppoe-client
34 $(call Package
/rp-pppoe
)
35 TITLE
:=PPPoE
(PPP over Ethernet
) client
38 define Package
/rp-pppoe-relay
39 $(call Package
/rp-pppoe
)
40 TITLE
:=PPPoE
(PPP over Ethernet
) relay
43 define Package
/rp-pppoe-server
44 $(call Package
/rp-pppoe
)
45 TITLE
:=PPPoE
(PPP over Ethernet
) server
48 define Package
/rp-pppoe-sniff
49 $(call Package
/rp-pppoe
)
50 TITLE
:=PPPoE
(PPP over Ethernet
) sniffer
53 define Build
/Configure
54 (cd
$(PKG_BUILD_DIR
)/src
; rm -rf config.
{cache
,status
}; \
55 $(TARGET_CONFIGURE_OPTS
) \
56 CFLAGS
="$(TARGET_CFLAGS)" \
58 --target
=$(GNU_TARGET_NAME
) \
59 --host
=$(GNU_TARGET_NAME
) \
60 --build
=$(GNU_HOST_NAME
) \
66 --datadir=/usr
/share \
67 --includedir=/usr
/include \
68 --infodir=/usr
/share
/info \
70 --libexecdir
=/usr
/lib \
71 --localstatedir
=/var \
72 --mandir=/usr
/share
/man \
75 $(DISABLE_LARGEFILE
) \
81 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
82 DESTDIR
="$(PKG_INSTALL_DIR)" \
86 define Package
/rp-pppoe-client
/install
87 install -d
-m0755
$(1)/etc
/init.d
88 install -m0755 .
/files
/pppoe-client.init
$(1)/etc
/init.d
/pppoe-client
89 install -d
-m0755
$(1)/etc
/ppp
90 install -m0644
$(PKG_INSTALL_DIR
)/etc
/pppoe.conf
$(1)/etc
/
91 install -d
-m0755
$(1)/usr
/sbin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe
$(1)/usr
/sbin
/
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/adsl-
* $(1)/usr
/sbin
/
96 define Package
/rp-pppoe-relay
/install
97 install -d
-m0755
$(1)/etc
/default
98 install -m0755 .
/files
/pppoe-relay.default
$(1)/etc
/default
/pppoe-relay
99 install -d
-m0755
$(1)/etc
/init.d
100 install -m0755 .
/files
/pppoe-relay.init
$(1)/etc
/init.d
/pppoe-relay
101 install -d
-m0755
$(1)/usr
/sbin
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-relay
$(1)/usr
/sbin
/
105 define Package
/rp-pppoe-server
/install
106 install -d
-m0755
$(1)/etc
/default
107 install -m0755 .
/files
/pppoe-server.default
$(1)/etc
/default
/pppoe-server
108 install -d
-m0755
$(1)/etc
/init.d
109 install -m0755 .
/files
/pppoe-server.init
$(1)/etc
/init.d
/pppoe-server
110 install -d
-m0755
$(1)/etc
/ppp
111 install -m0644
$(PKG_INSTALL_DIR
)/etc
/ppp
/pppoe-server-options
$(1)/etc
/ppp
/
112 install -d
-m0755
$(1)/usr
/sbin
113 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-server
$(1)/usr
/sbin
/
116 define Package
/rp-pppoe-sniff
/install
117 install -d
-m0755
$(1)/usr
/sbin
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/pppoe-sniff
$(1)/usr
/sbin
/
121 $(eval
$(call BuildPackage
,rp-pppoe-client
))
122 $(eval
$(call BuildPackage
,rp-pppoe-relay
))
123 $(eval
$(call BuildPackage
,rp-pppoe-server
))
124 $(eval
$(call BuildPackage
,rp-pppoe-sniff
))