2005-03-21 10:12:49 +02:00
|
|
|
# $Id$
|
|
|
|
|
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
|
2005-11-07 03:12:51 +02:00
|
|
|
PKG_RELEASE:=7
|
2006-05-30 21:55:52 +03:00
|
|
|
PKG_BUILDDEP:=libpcap linux-atm
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
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
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
MENU:=1
|
|
|
|
DEFAULT:=y
|
|
|
|
TITLE:=PPP daemon
|
|
|
|
DESCRIPTION:=PPP (Point-to-Point Protocol) daemon
|
|
|
|
URL:=http://ppp.samba.org/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoa
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-05-30 21:55:52 +03:00
|
|
|
DEPENDS:=ppp +linux-atm
|
2006-05-24 10:19:27 +03:00
|
|
|
TITLE:=PPPoA plugin
|
|
|
|
DESCRIPTION:=PPPoA (PPP over ATM) plugin for ppp
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoe
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEFAULT:=y
|
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=PPPoE plugin
|
|
|
|
DESCRIPTION:=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
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=RADIUS plugin
|
|
|
|
DESCRIPTION:=RADIUS (Remote Authentication Dial-In User Service) plugin for ppp
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/chat
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=Establish conversation with a modem
|
|
|
|
DESCRIPTION:=Utility to establish conversation with other PPP servers (via a modem)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pppdump
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=Read PPP record file
|
|
|
|
DESCRIPTION:=Utility to read PPP record file
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pppstats
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=ppp
|
|
|
|
TITLE:=Report PPP statistics
|
|
|
|
DESCRIPTION:=Utility to report PPP statistics
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
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) \
|
2005-05-18 21:05:44 +03:00
|
|
|
CC=$(TARGET_CC) \
|
|
|
|
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
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp/install
|
|
|
|
install -d -m0755 $(1)/etc/ppp
|
|
|
|
install -m0600 ./files/etc/ppp/chap-secrets $(1)/etc/ppp/
|
|
|
|
install -m0644 ./files/etc/ppp/filter $(1)/etc/ppp/
|
|
|
|
install -m0755 ./files/etc/ppp/ip-up $(1)/etc/ppp/
|
|
|
|
install -d -m0755 $(1)/etc/ppp/ip-up.d
|
|
|
|
install -m0755 ./files/etc/ppp/ip-down $(1)/etc/ppp/
|
|
|
|
install -d -m0755 $(1)/etc/ppp/ip-down.d
|
|
|
|
install -m0644 ./files/etc/ppp/options $(1)/etc/ppp/
|
|
|
|
ln -sf /tmp/resolv.conf $(1)/etc/ppp/resolv.conf
|
|
|
|
install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppd $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ppp-mod-pppoa/install
|
|
|
|
install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/pppoatm.so \
|
|
|
|
$(1)/usr/lib/pppd/$(PKG_VERSION)/
|
|
|
|
install -d -m0755 $(1)/sbin
|
|
|
|
install -m0755 ./files/ifup.pppoa $(1)/sbin/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-pppoe/install
|
|
|
|
install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/rp-pppoe.so \
|
|
|
|
$(1)/usr/lib/pppd/$(PKG_VERSION)/
|
|
|
|
install -d -m0755 $(1)/sbin
|
|
|
|
install -m0755 ./files/ifup.pppoe $(1)/sbin/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/ppp-mod-radius/install
|
|
|
|
install -d -m0755 $(1)/etc/ppp
|
|
|
|
install -m644 ./files/etc/ppp/radius.conf $(1)/etc/ppp/
|
|
|
|
install -d -m0755 $(1)/etc/ppp/radius
|
2005-05-18 21:05:44 +03:00
|
|
|
install -m644 ./files/etc/ppp/radius/dictionary* \
|
2006-05-24 10:19:27 +03:00
|
|
|
$(1)/etc/ppp/radius/
|
2005-05-18 21:05:44 +03:00
|
|
|
install -m600 ./files/etc/ppp/radius/servers \
|
2006-05-24 10:19:27 +03:00
|
|
|
$(1)/etc/ppp/radius/
|
|
|
|
install -d -m0755 $(1)/usr/lib/pppd/$(PKG_VERSION)
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/lib/pppd/$(PKG_VERSION)/radius.so \
|
|
|
|
$(1)/usr/lib/pppd/$(PKG_VERSION)/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/chat/install
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/chat $(1)/usr/sbin/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/pppdump/install
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppdump $(1)/usr/sbin/
|
|
|
|
endef
|
2005-05-18 21:05:44 +03:00
|
|
|
|
2006-05-24 10:19:27 +03:00
|
|
|
define Package/pppstats/install
|
|
|
|
install -d -m0755 $(1)/usr/sbin
|
|
|
|
install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/pppstats $(1)/usr/sbin/
|
|
|
|
$(RSTRIP) $(1)
|
|
|
|
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))
|