* [Buildroot] [PATCH 1/1] package/pppd: install pon/poff option
@ 2015-06-01 2:19 Doug Kehn
2015-06-01 3:07 ` Baruch Siach
0 siblings, 1 reply; 2+ messages in thread
From: Doug Kehn @ 2015-06-01 2:19 UTC (permalink / raw)
To: buildroot
Config option for installing pon and poff scritps.
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
---
package/pppd/Config.in | 5 +++++
package/pppd/pppd.mk | 8 ++++++++
2 files changed, 13 insertions(+)
diff --git a/package/pppd/Config.in b/package/pppd/Config.in
index b77d7b0..f1f1da0 100644
--- a/package/pppd/Config.in
+++ b/package/pppd/Config.in
@@ -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"
diff --git a/package/pppd/pppd.mk b/package/pppd/pppd.mk
index 0f9945f..bab9f8b 100644
--- a/package/pppd/pppd.mk
+++ b/package/pppd/pppd.mk
@@ -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
--
2.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/pppd: install pon/poff option
2015-06-01 2:19 [Buildroot] [PATCH 1/1] package/pppd: install pon/poff option Doug Kehn
@ 2015-06-01 3:07 ` Baruch Siach
0 siblings, 0 replies; 2+ messages in thread
From: Baruch Siach @ 2015-06-01 3:07 UTC (permalink / raw)
To: buildroot
Hi Doug,
On Sun, May 31, 2015 at 09:19:07PM -0500, Doug Kehn wrote:
> +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
--
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 -
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-01 3:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-01 2:19 [Buildroot] [PATCH 1/1] package/pppd: install pon/poff option Doug Kehn
2015-06-01 3:07 ` Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox