2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2007-08-24 18:43:45 +08:00
|
|
|
#
|
|
|
|
# rp-pppoe
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2007-08-24 18:43:45 +08:00
|
|
|
|
2020-07-14 05:17:10 +08:00
|
|
|
RP_PPPOE_VERSION = 3.14
|
|
|
|
RP_PPPOE_SITE = https://dianne.skoll.ca/projects/rp-pppoe/download
|
2017-03-30 21:43:32 +08:00
|
|
|
RP_PPPOE_LICENSE = GPL-2.0
|
2012-09-04 12:06:36 +08:00
|
|
|
RP_PPPOE_LICENSE_FILES = doc/LICENSE
|
2010-11-03 03:32:36 +08:00
|
|
|
RP_PPPOE_DEPENDENCIES = pppd
|
|
|
|
RP_PPPOE_SUBDIR = src
|
|
|
|
RP_PPPOE_TARGET_FILES = pppoe pppoe-server pppoe-relay pppoe-sniff
|
2014-12-06 14:42:38 +08:00
|
|
|
RP_PPPOE_TARGET_SCRIPTS = pppoe-connect pppoe-init pppoe-setup pppoe-start \
|
|
|
|
pppoe-status pppoe-stop
|
2014-09-28 03:32:38 +08:00
|
|
|
RP_PPPOE_MAKE_OPTS = PLUGIN_DIR=/usr/lib/pppd/$(PPPD_VERSION)
|
2014-09-28 03:32:44 +08:00
|
|
|
RP_PPPOE_CONF_OPTS = --disable-debugging
|
2016-10-22 21:03:17 +08:00
|
|
|
|
|
|
|
# The pppd, echo, setsid and id paths must be the ones on the
|
|
|
|
# target. Indeed, the result of these checks is used to replace
|
|
|
|
# variables in scripts that are installed in the target.
|
2010-11-03 03:32:36 +08:00
|
|
|
RP_PPPOE_CONF_ENV = \
|
|
|
|
rpppoe_cv_pack_bitfields=normal \
|
2016-10-22 21:03:17 +08:00
|
|
|
ac_cv_path_PPPD=/usr/sbin/pppd \
|
|
|
|
ac_cv_path_ECHO=/bin/echo \
|
|
|
|
ac_cv_path_SETSID=/usr/bin/setsid \
|
|
|
|
ac_cv_path_ID=/usr/bin/id \
|
2010-11-03 03:32:36 +08:00
|
|
|
PPPD_H=$(PPPD_DIR)/pppd/pppd.h
|
|
|
|
|
|
|
|
define RP_PPPOE_INSTALL_TARGET_CMDS
|
2014-12-03 07:21:02 +08:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/configs/pppoe.conf \
|
|
|
|
$(TARGET_DIR)/etc/ppp/pppoe.conf
|
2010-11-03 03:32:36 +08:00
|
|
|
for ff in $(RP_PPPOE_TARGET_FILES); do \
|
2014-11-30 22:18:25 +08:00
|
|
|
$(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
|
2010-11-03 03:32:36 +08:00
|
|
|
done
|
2014-12-06 14:42:38 +08:00
|
|
|
for ff in $(RP_PPPOE_TARGET_SCRIPTS); do \
|
|
|
|
$(INSTALL) -m 0755 $(@D)/scripts/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
|
|
|
|
done
|
2010-11-03 03:32:36 +08:00
|
|
|
endef
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|