2006-06-27 03:35:46 +03:00
|
|
|
#
|
2008-05-03 15:11:35 +03:00
|
|
|
# Copyright (C) 2006-2008 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
|
|
|
|
|
2005-05-18 21:05:44 +03:00
|
|
|
PKG_NAME:=ppp
|
|
|
|
PKG_VERSION:=2.4.3
|
2009-03-15 14:08:31 +02: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/
|
|
|
|
PKG_MD5SUM:=848f6c3cafeb6074ffeb293c3af79b7c
|
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
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-09-27 20:33:45 +03:00
|
|
|
include $(INCLUDE_DIR)/kernel.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
|
|
|
|
This package contains the PPP (Point-to-Point Protocol) daemon.
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
This package contains a RADIUS (Remote Authentication Dial-In User
|
|
|
|
Service) plugin for ppp.
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
This package contains an utility to report PPP statistics.
|
|
|
|
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)" \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Build/Compile
|
2005-05-18 21:05:44 +03:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)/usr
|
2005-03-06 05:53:29 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-04 08:30:27 +03:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2005-05-18 21:05:44 +03:00
|
|
|
COPTS="$(TARGET_CFLAGS)" \
|
2006-05-24 10:19:27 +03:00
|
|
|
PRECOMPILED_FILTER=1 \
|
|
|
|
STAGING_DIR="$(STAGING_DIR)" \
|
2005-05-18 21:05:44 +03:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
all install
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
2005-08-26 18:52:12 +03:00
|
|
|
|
2008-08-22 08:02:04 +03:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppd $(1)/usr/sbin/
|
|
|
|
$(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/
|
2007-01-08 23:33:53 +02:00
|
|
|
ln -sf /tmp/resolv.conf.auto $(1)/etc/ppp/resolv.conf
|
2006-05-24 10:19:27 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ppp-mod-pppoa/install
|
2006-11-23 02:29:07 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pppd/$(PKG_VERSION)
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/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/
|
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)
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/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)
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/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
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/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))
|