2009-09-10 13:07:04 +03:00
|
|
|
#
|
2010-03-05 22:10:37 +02:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-06-27 03:35:46 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-21 10:12:49 +02:00
|
|
|
|
2005-03-06 05:53:29 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
2010-03-29 00:55:54 +03:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2005-03-06 05:53:29 +02:00
|
|
|
|
2005-05-18 21:05:44 +03:00
|
|
|
PKG_NAME:=ppp
|
2009-05-21 01:36:38 +03:00
|
|
|
PKG_VERSION:=2.4.4
|
2010-09-19 18:18:53 +03:00
|
|
|
PKG_RELEASE:=11
|
2005-05-18 21:05:44 +03:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-05-24 10:19:27 +03:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/
|
2009-05-21 01:36:38 +03:00
|
|
|
PKG_MD5SUM:=183800762e266132218b204dfb428d29
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2007-09-23 02:32:24 +03:00
|
|
|
PKG_BUILD_DEPENDS:=libpcap
|
2006-09-24 23:49:31 +03:00
|
|
|
|
2010-03-05 22:10:37 +02:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-09-24 23:49:31 +03:00
|
|
|
define Package/ppp/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=http://ppp.samba.org/
|
|
|
|
endef
|
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=+kmod-ppp
|
|
|
|
TITLE:=PPP daemon
|
|
|
|
MENU:=1
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/ppp/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains the PPP (Point-to-Point Protocol) daemon.
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
2010-10-07 18:20:04 +03:00
|
|
|
define Package/ppp/conffiles
|
|
|
|
/etc/ppp/chap-secrets
|
|
|
|
/etc/ppp/filter
|
|
|
|
/etc/ppp/ip-down
|
|
|
|
/etc/ppp/ip-up
|
|
|
|
/etc/ppp/ipv6-down
|
|
|
|
/etc/ppp/ipv6-up
|
|
|
|
/etc/ppp/options
|
|
|
|
endef
|
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoa
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=ppp +linux-atm +kmod-pppoa
|
|
|
|
TITLE:=PPPoA plugin
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ppp-mod-pppoa/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains a PPPoA (PPP over ATM) plugin for ppp.
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoe
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=ppp +kmod-pppoe
|
|
|
|
TITLE:=PPPoE plugin
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ppp-mod-pppoe/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains a PPPoE (PPP over Ethernet) plugin for ppp.
|
2005-05-18 21:05:44 +03:00
|
|
|
endef
|
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-radius
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=RADIUS plugin
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ppp-mod-radius/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains a RADIUS (Remote Authentication Dial-In User Service)
|
|
|
|
plugin for ppp.
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
|
|
|
|
2010-10-07 18:20:04 +03:00
|
|
|
define Package/ppp-mod-radius/conffiles
|
|
|
|
/etc/ppp/radius.conf
|
|
|
|
/etc/ppp/radius/dictionary
|
|
|
|
/etc/ppp/radius/dictionary.asnet
|
|
|
|
/etc/ppp/radius/dictionary.microsoft
|
|
|
|
/etc/ppp/radius/servers
|
|
|
|
endef
|
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/chat
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=Establish conversation with a modem
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/chat/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains an utility to establish conversation with other PPP servers
|
|
|
|
(via a modem).
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pppdump
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=Read PPP record file
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pppdump/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains an utility to read PPP record file.
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pppstats
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/ppp/Default)
|
2006-09-24 23:49:31 +03:00
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=Report PPP statistics
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
|
|
|
|
2007-09-07 11:34:51 +03:00
|
|
|
define Package/pppstats/description
|
2010-03-05 22:10:37 +02:00
|
|
|
This package contains an utility to report PPP statistics.
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-09-27 20:33:45 +03:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,, \
|
|
|
|
UNAME_S="Linux" \
|
|
|
|
UNAME_R="$(LINUX_VERSION)" \
|
|
|
|
UNAME_M="$(ARCH)" \
|
|
|
|
)
|
2010-03-29 00:55:54 +03:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux
|
|
|
|
cp \
|
|
|
|
$(LINUX_DIR)/include/linux/compiler.h \
|
|
|
|
$(LINUX_DIR)/include/linux/atm*.h \
|
|
|
|
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
|
2006-09-27 20:33:45 +03:00
|
|
|
endef
|
|
|
|
|
2010-03-05 22:10:37 +02:00
|
|
|
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
|
2006-05-24 10:19:27 +03:00
|
|
|
PRECOMPILED_FILTER=1 \
|
2010-03-05 22:10:37 +02:00
|
|
|
STAGING_DIR="$(STAGING_DIR)"
|
2005-08-26 18:52:12 +03:00
|
|
|
|
2008-08-22 08:02:04 +03:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2010-03-05 22:10:37 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/include/pppd $(1)/usr/include/
|
2008-08-22 08:03:37 +03:00
|
|
|
endef
|
2008-08-22 08:02:04 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/pppd $(1)/usr/sbin/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/lib/network
|
|
|
|
$(INSTALL_BIN) ./files/ppp.sh $(1)/lib/network/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ppp
|
2007-01-05 17:34:48 +02:00
|
|
|
$(INSTALL_CONF) ./files/etc/ppp/chap-secrets $(1)/etc/ppp/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DATA) ./files/etc/ppp/filter $(1)/etc/ppp/
|
|
|
|
$(INSTALL_BIN) ./files/etc/ppp/ip-up $(1)/etc/ppp/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ppp/ip-up.d
|
|
|
|
$(INSTALL_BIN) ./files/etc/ppp/ip-down $(1)/etc/ppp/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ppp/ip-down.d
|
2007-11-07 15:24:10 +02:00
|
|
|
$(INSTALL_BIN) ./files/etc/ppp/ipv6-up $(1)/etc/ppp/
|
|
|
|
$(INSTALL_BIN) ./files/etc/ppp/ipv6-down $(1)/etc/ppp/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DATA) ./files/etc/ppp/options $(1)/etc/ppp/
|
[backfire] merge ppp, pppoe, pptp and 3g fixes
r21283, r21284, r21285, r21287, r21302, r21303, r21341,
r21361, r21379, r21383, r21386, r21387, r21388, r21389,
r21390, r21391, r21392, r21393, r21426, r21556, r21563
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-24 20:06:58 +03:00
|
|
|
ln -sf /tmp/resolv.conf.ppp $(1)/etc/ppp/resolv.conf
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2010-10-07 18:20:04 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoa/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/pppoatm.so \
|
2006-05-24 10:19:27 +03:00
|
|
|
$(1)/usr/lib/pppd/$(PKG_VERSION)/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/lib/network
|
|
|
|
$(INSTALL_BIN) ./files/pppoa.sh $(1)/lib/network/
|
[backfire] merge ppp, pppoe, pptp and 3g fixes
r21283, r21284, r21285, r21287, r21302, r21303, r21341,
r21361, r21379, r21383, r21386, r21387, r21388, r21389,
r21390, r21391, r21392, r21393, r21426, r21556, r21563
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21564 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-24 20:06:58 +03:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/atm
|
|
|
|
$(INSTALL_DATA) ./files/etc/hotplug.d/atm/20-atm-modem $(1)/etc/hotplug.d/atm/
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoe/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
|
2006-05-24 10:19:27 +03:00
|
|
|
$(1)/usr/lib/pppd/$(PKG_VERSION)/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/lib/network
|
|
|
|
$(INSTALL_BIN) ./files/pppoe.sh $(1)/lib/network/
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-radius/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/pppd/$(PKG_VERSION)/radius.so \
|
2006-09-24 23:49:31 +03:00
|
|
|
$(1)/usr/lib/pppd/$(PKG_VERSION)/
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/ppp
|
|
|
|
$(INSTALL_DATA) ./files/etc/ppp/radius.conf $(1)/etc/ppp/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ppp/radius
|
|
|
|
$(INSTALL_DATA) ./files/etc/ppp/radius/dictionary* \
|
2006-05-24 10:19:27 +03:00
|
|
|
$(1)/etc/ppp/radius/
|
2007-01-05 17:34:48 +02:00
|
|
|
$(INSTALL_CONF) ./files/etc/ppp/radius/servers \
|
2006-05-24 10:19:27 +03:00
|
|
|
$(1)/etc/ppp/radius/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/chat/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/chat $(1)/usr/sbin/
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/pppdump/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/pppdump $(1)/usr/sbin/
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/pppstats/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2010-03-05 22:10:37 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/pppstats $(1)/usr/sbin/
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
$(eval $(call BuildPackage,ppp))
|
|
|
|
$(eval $(call BuildPackage,ppp-mod-pppoa))
|
|
|
|
$(eval $(call BuildPackage,ppp-mod-pppoe))
|
|
|
|
$(eval $(call BuildPackage,ppp-mod-radius))
|
|
|
|
$(eval $(call BuildPackage,chat))
|
|
|
|
$(eval $(call BuildPackage,pppdump))
|
|
|
|
$(eval $(call BuildPackage,pppstats))
|