This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
diff -Nura rp-pppoe-3.11.orig/src/configure rp-pppoe-3.11/src/configure
--- rp-pppoe-3.11.orig/src/configure 2012-08-21 10:01:10.536440032 -0300
+++ rp-pppoe-3.11/src/configure 2012-08-21 10:01:45.353442397 -0300
@@ -4517,7 +4517,7 @@
modprobe pppoe > /dev/null 2>&1
fi
if test "$cross_compiling" = yes; then :
- ac_cv_linux_kernel_pppoe=no; $ECHO "cross-compiling, default: "
+ ac_cv_linux_kernel_pppoe=yes; $ECHO "cross-compiling, default: "
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff -Nura rp-pppoe-3.11.orig/src/pppoe-server.c rp-pppoe-3.11/src/pppoe-server.c
--- rp-pppoe-3.11.orig/src/pppoe-server.c 2012-08-21 10:01:10.535440032 -0300
+++ rp-pppoe-3.11/src/pppoe-server.c 2012-08-21 10:02:02.597443569 -0300
@@ -20,6 +20,9 @@
#include "config.h"
+/* Patched hack to make this cross compile */
+#define HAVE_LINUX_KERNEL_PPPOE 1
+
#if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
#define _POSIX_SOURCE 1 /* For sigaction defines */
#endif

View File

@@ -0,0 +1,19 @@
comment "rp-pppoe needs a uClibc or glibc toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_MMU
config BR2_PACKAGE_RP_PPPOE
bool "rp-pppoe"
depends on !BR2_STATIC_LIBS
depends on !BR2_TOOLCHAIN_USES_MUSL # pppd
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_PPPD
help
An implementation of the Point-to-point protocol over
Ethernet. Has userspace client and server deamons. You
likely only need this package if you are implementing the
pppoe server that will service other pppoe client
devices. Otherwise the normal client functionality already
exists in the pppd package (and kernel).
https://dianne.skoll.ca/projects/rp-pppoe/

View File

@@ -0,0 +1,2 @@
# Locally calculated after checking pgp signature
sha256 00794e04031546b0e9b8cf286f2a6d1ccfc4a621b2a3abb2d7ef2a7ab7cc86c2 rp-pppoe-3.12.tar.gz

View File

@@ -0,0 +1,41 @@
################################################################################
#
# rp-pppoe
#
################################################################################
RP_PPPOE_VERSION = 3.12
RP_PPPOE_SITE = http://www.roaringpenguin.com/files/download
RP_PPPOE_LICENSE = GPL-2.0
RP_PPPOE_LICENSE_FILES = doc/LICENSE
RP_PPPOE_DEPENDENCIES = pppd
RP_PPPOE_SUBDIR = src
RP_PPPOE_TARGET_FILES = pppoe pppoe-server pppoe-relay pppoe-sniff
RP_PPPOE_TARGET_SCRIPTS = pppoe-connect pppoe-init pppoe-setup pppoe-start \
pppoe-status pppoe-stop
RP_PPPOE_MAKE_OPTS = PLUGIN_DIR=/usr/lib/pppd/$(PPPD_VERSION)
RP_PPPOE_CONF_OPTS = --disable-debugging
# 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.
RP_PPPOE_CONF_ENV = \
rpppoe_cv_pack_bitfields=normal \
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 \
PPPD_H=$(PPPD_DIR)/pppd/pppd.h
define RP_PPPOE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0644 $(@D)/configs/pppoe.conf \
$(TARGET_DIR)/etc/ppp/pppoe.conf
for ff in $(RP_PPPOE_TARGET_FILES); do \
$(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
done
for ff in $(RP_PPPOE_TARGET_SCRIPTS); do \
$(INSTALL) -m 0755 $(@D)/scripts/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
done
endef
$(eval $(autotools-package))