Skip to contentSkip to conversation

package/pppd: install pon/poff option

PATCH Superseded Doug Kehn 2 participants 2 messages Jun 1, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Doug Kehn

author
#0 lore raw

PATCH 1/1 package/pppd: install pon/poff option

Config option for installing pon and poff scritps.

---
 package/pppd/Config.in | 5 +++++
 package/pppd/pppd.mk   | 8 ++++++++
 2 files changed, 13 insertions(+)
package/pppd/Config.in +5 -0
index b77d7b0..f1f1da0 100644
@@ -22,6 +22,11 @@ config BR2_PACKAGE_PPPD_RADIUS
 	help
 	  Install RADIUS support for pppd
 
+config BR2_PACKAGE_PPPD_PON_POFF
+	bool "pon poff scripts"
+	help
+	  Install pon and poff scripts.
+
 endif
 
 comment "pppd needs a toolchain w/ dynamic library"
package/pppd/pppd.mk +8 -0
index 0f9945f..bab9f8b 100644
@@ -75,6 +75,13 @@ define PPPD_INSTALL_RADIUS
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_PPPD_PON_POFF),y)
+define PPPD_INSTALL_PON_POFF
+	$(INSTALL) -D -m 0755 $(PPPD_DIR)/scripts/pon $(TARGET_DIR)/usr/bin/pon
+	$(INSTALL) -D -m 0755 $(PPPD_DIR)/scripts/poff $(TARGET_DIR)/usr/bin/poff
+endef
+endif
+
 define PPPD_INSTALL_TARGET_CMDS
 	for sbin in $(PPPD_TARGET_BINS); do \
 		$(INSTALL) -D $(PPPD_DIR)/$$sbin/$$sbin \
@@ -99,6 +106,7 @@ define PPPD_INSTALL_TARGET_CMDS
 	$(INSTALL) -D $(PPPD_DIR)/pppd/plugins/pppol2tp/pppol2tp.so \
 		$(TARGET_DIR)/usr/lib/pppd/$(PPPD_VERSION)/pppol2tp.so
 	$(PPPD_INSTALL_RADIUS)
+	$(PPPD_INSTALL_PON_POFF)
 endef
 
 define PPPD_INSTALL_STAGING_CMDS
Signature · 1 line
2.4.1
#1 lore raw

PATCH 1/1 package/pppd: install pon/poff option

Hi Doug,

package/pppd/Config.in config BR2_PACKAGE_PPPD_RADIUS · line 28

Quoted 4 lines · Doug Kehn
package/pppd/Config.in +4 -0
+config BR2_PACKAGE_PPPD_PON_POFF
+	bool "pon poff scripts"
+	help
+	  Install pon and poff scripts.

No need to add an option for these scripts. Their size is negligible (less than 5K combined) compared to pppd itself. Just install them unconditionally.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -