Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] pppd: add config option to install scripts shipped with pppd's source
@ 2015-01-14  0:37 Zoltan Gyarmati
  2015-01-15 18:10 ` Gustavo Zacarias
  0 siblings, 1 reply; 4+ messages in thread
From: Zoltan Gyarmati @ 2015-01-14  0:37 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
---
 package/pppd/Config.in | 8 ++++++++
 package/pppd/pppd.mk   | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/package/pppd/Config.in b/package/pppd/Config.in
index b77d7b0..6933fcf 100644
--- a/package/pppd/Config.in
+++ b/package/pppd/Config.in
@@ -22,6 +22,14 @@ config BR2_PACKAGE_PPPD_RADIUS
 	help
 	  Install RADIUS support for pppd
 
+config BR2_PACKAGE_PPPD_INSTALL_SCRIPTS
+	string "Install these PPP scripts"
+	default ""
+	help
+	  Space delimited list to specify which scripts
+	  need to be installed from pppd source tree's
+	  scripts directory
+
 endif
 
 comment "pppd needs a toolchain w/ dynamic library"
diff --git a/package/pppd/pppd.mk b/package/pppd/pppd.mk
index 453445b..34e1d59 100644
--- a/package/pppd/pppd.mk
+++ b/package/pppd/pppd.mk
@@ -14,6 +14,7 @@ PPPD_LICENSE_FILES = \
 
 PPPD_INSTALL_STAGING = YES
 PPPD_TARGET_BINS = chat pppd pppdump pppstats
+PPPD_TARGET_SCRIPTS = $(call qstrip,$(BR2_PACKAGE_PPPD_INSTALL_SCRIPTS))
 PPPD_RADIUS_CONF = \
 	dictionary dictionary.ascend dictionary.compat \
 	dictionary.merit dictionary.microsoft \
@@ -83,6 +84,10 @@ define PPPD_INSTALL_TARGET_CMDS
 		$(INSTALL) -D $(PPPD_DIR)/$$sbin/$$sbin \
 			$(TARGET_DIR)/usr/sbin/$$sbin; \
 	done
+	for scriptfile in $(PPPD_TARGET_SCRIPTS); do \
+		$(INSTALL) -D $(PPPD_DIR)/scripts/$$scriptfile \
+			$(TARGET_DIR)/usr/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 \
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-21 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14  0:37 [Buildroot] [PATCH 1/1] pppd: add config option to install scripts shipped with pppd's source Zoltan Gyarmati
2015-01-15 18:10 ` Gustavo Zacarias
2015-01-21 18:19   ` Yann E. MORIN
2015-01-21 20:46     ` Zoltan Gyarmati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox