2006-08-07 13:26:16 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rp-pppoe
|
|
|
|
PKG_VERSION:=3.5
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://roaringpenguin.com/penguin/pppoe/
|
|
|
|
PKG_MD5SUM:=97972f8f8f6a3ab9b7070333a6a29c4b
|
2006-08-07 13:26:16 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/rp-pppoe/Default
|
2006-08-07 13:26:16 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+ppp
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=PPPoE (PPP over Ethernet)
|
|
|
|
URL:=http://roaringpenguin.com/penguin/pppoe/
|
2006-08-07 13:26:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-client
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/rp-pppoe/Default)
|
|
|
|
TITLE+= client
|
2006-08-07 13:26:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-relay
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/rp-pppoe/Default)
|
|
|
|
TITLE+= relay
|
2006-08-07 13:26:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-server
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/rp-pppoe/Default)
|
|
|
|
TITLE+= server
|
2006-08-07 13:26:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-sniff
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Package/rp-pppoe/Default)
|
|
|
|
TITLE+= sniffer
|
2006-08-07 13:26:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default,,, src)
|
2006-08-07 13:26:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-client/install
|
|
|
|
install -d -m0755 $(1)/etc/init.d
|
|
|
|
install -m0755 ./files/pppoe-client.init $(1)/etc/init.d/pppoe-client
|
|
|
|
install -d -m0755 $(1)/etc/ppp
|
|
|
|
install -m0644 $(PKG_INSTALL_DIR)/etc/pppoe.conf $(1)/etc/
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/adsl-* $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-relay/install
|
|
|
|
install -d -m0755 $(1)/etc/default
|
|
|
|
install -m0755 ./files/pppoe-relay.default $(1)/etc/default/pppoe-relay
|
|
|
|
install -d -m0755 $(1)/etc/init.d
|
|
|
|
install -m0755 ./files/pppoe-relay.init $(1)/etc/init.d/pppoe-relay
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-relay $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-server/install
|
|
|
|
install -d -m0755 $(1)/etc/default
|
|
|
|
install -m0755 ./files/pppoe-server.default $(1)/etc/default/pppoe-server
|
|
|
|
install -d -m0755 $(1)/etc/init.d
|
|
|
|
install -m0755 ./files/pppoe-server.init $(1)/etc/init.d/pppoe-server
|
|
|
|
install -d -m0755 $(1)/etc/ppp
|
|
|
|
install -m0644 $(PKG_INSTALL_DIR)/etc/ppp/pppoe-server-options $(1)/etc/ppp/
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-server $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rp-pppoe-sniff/install
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/pppoe-sniff $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rp-pppoe-client))
|
|
|
|
$(eval $(call BuildPackage,rp-pppoe-relay))
|
|
|
|
$(eval $(call BuildPackage,rp-pppoe-server))
|
|
|
|
$(eval $(call BuildPackage,rp-pppoe-sniff))
|