2003-01-18 22:27:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# pppd
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-03-17 19:36:13 +01:00
|
|
|
PPPD_VERSION = 2.4.5
|
|
|
|
PPPD_SOURCE = ppp-$(PPPD_VERSION).tar.gz
|
|
|
|
PPPD_SITE = ftp://ftp.samba.org/pub/ppp
|
|
|
|
PPPD_TARGET_BINS = chat pppd pppdump pppstats
|
2010-04-10 22:47:05 +02:00
|
|
|
PPPD_MANPAGES = $(if $(BR2_HAVE_DOCUMENTATION),chat pppd pppdump pppstats)
|
2010-10-06 19:34:47 +02:00
|
|
|
PPPD_RADIUS_MANPAGES = $(if $(BR2_HAVE_DOCUMENTATION),pppd-radattr pppd-radius)
|
|
|
|
PPPD_RADIUS_CONF = dictionary dictionary.ascend dictionary.compat \
|
|
|
|
dictionary.merit dictionary.microsoft \
|
|
|
|
issue port-id-map realms server radiusclient.conf
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-03-17 19:36:13 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PPPD_FILTER),y)
|
|
|
|
PPPD_DEPENDENCIES += libpcap
|
|
|
|
PPPD_MAKE_OPT += FILTER=y
|
|
|
|
endif
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-03-17 19:36:13 +01:00
|
|
|
ifeq ($(BR2_INET_IPV6),y)
|
|
|
|
PPPD_MAKE_OPT += HAVE_INET6=y
|
|
|
|
endif
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-10-06 19:34:47 +02:00
|
|
|
define PPPD_CONFIGURE_CMDS
|
2005-05-16 19:40:04 +02:00
|
|
|
$(SED) 's/FILTER=y/#FILTER=y/' $(PPPD_DIR)/pppd/Makefile.linux
|
2009-02-19 06:31:05 +01:00
|
|
|
$(SED) 's/ifneq ($$(wildcard \/usr\/include\/pcap-bpf.h),)/ifdef FILTER/' $(PPPD_DIR)/*/Makefile.linux
|
2012-06-11 09:20:39 +02:00
|
|
|
( cd $(@D); ./configure --prefix=/usr )
|
2010-10-06 19:34:47 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define PPPD_BUILD_CMDS
|
|
|
|
$(MAKE) CC="$(TARGET_CC)" COPTS="$(TARGET_CFLAGS)" \
|
|
|
|
-C $(@D) $(PPPD_MAKE_OPT)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PPPD_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(PPPD_TARGET_BINS))
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/pppoe-discovery
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/pppd
|
|
|
|
rm -rf $(TARGET_DIR)/etc/ppp/radius
|
|
|
|
for m in $(PPPD_MANPAGES); do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man8/$$m.8; \
|
|
|
|
done
|
|
|
|
for m in $(PPPD_RADIUS_MANPAGES); do \
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man8/$$m.8; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PPPD_RADIUS),y)
|
|
|
|
define PPPD_INSTALL_RADIUS
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/radius/radattr.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/radattr.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/radius/radius.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/radius.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/radius/radrealms.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/radrealms.so
|
|
|
|
for m in $(PPPD_RADIUS_CONF); do \
|
|
|
|
$(INSTALL) -m 644 -D $(PPPD_DIR)/pppd/plugins/radius/etc/$$m \
|
|
|
|
$(TARGET_DIR)/etc/ppp/radius/$$m; \
|
|
|
|
done
|
|
|
|
$(SED) 's:/usr/local/etc:/etc:' \
|
|
|
|
$(TARGET_DIR)/etc/ppp/radius/radiusclient.conf
|
|
|
|
$(SED) 's:/usr/local/sbin:/usr/sbin:' \
|
|
|
|
$(TARGET_DIR)/etc/ppp/radius/radiusclient.conf
|
|
|
|
$(SED) 's:/etc/radiusclient:/etc/ppp/radius:g' \
|
|
|
|
$(TARGET_DIR)/etc/ppp/radius/*
|
|
|
|
for m in $(PPPD_RADIUS_MANPAGES); do \
|
|
|
|
$(INSTALL) -m 644 -D $(PPPD_DIR)/pppd/plugins/radius/$$m.8 \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man8/$$m.8; \
|
|
|
|
done
|
|
|
|
endef
|
|
|
|
endif
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2010-10-06 19:34:47 +02:00
|
|
|
define PPPD_INSTALL_TARGET_CMDS
|
2010-03-17 19:36:13 +01:00
|
|
|
for sbin in $(PPPD_TARGET_BINS); do \
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/$$sbin/$$sbin \
|
|
|
|
$(TARGET_DIR)/usr/sbin/$$sbin; \
|
|
|
|
done
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/minconn.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/minconn.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/passprompt.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/passprompt.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/passwordfd.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/passwordfd.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/pppoatm/pppoatm.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/pppoatm.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/rp-pppoe/rp-pppoe.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/rp-pppoe.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/rp-pppoe/pppoe-discovery \
|
|
|
|
$(TARGET_DIR)/usr/sbin/pppoe-discovery
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/winbind.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/winbind.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/pppol2tp/openl2tp.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/openl2tp.so
|
|
|
|
$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/pppol2tp/pppol2tp.so \
|
|
|
|
$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/pppol2tp.so
|
2010-10-06 19:34:47 +02:00
|
|
|
$(PPPD_INSTALL_RADIUS)
|
2010-03-17 19:36:13 +01:00
|
|
|
for m in $(PPPD_MANPAGES); do \
|
|
|
|
$(INSTALL) -m 644 -D $(PPPD_DIR)/$$m/$$m.8 \
|
|
|
|
$(TARGET_DIR)/usr/share/man/man8/$$m.8; \
|
|
|
|
done
|
2010-10-06 19:34:47 +02:00
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|