Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] snmppp: extract license text from source files
@ 2015-07-21 16:29 Luca Ceresoli
  2015-07-21 19:54 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Ceresoli @ 2015-07-21 16:29 UTC (permalink / raw)
  To: buildroot

There is no proper license file in the SNMP++ tarballs, so let's
extract it from a source file instead of copying it entirely.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 package/snmppp/snmppp.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/snmppp/snmppp.mk b/package/snmppp/snmppp.mk
index 026fe6e..1b73eba 100644
--- a/package/snmppp/snmppp.mk
+++ b/package/snmppp/snmppp.mk
@@ -11,7 +11,7 @@ SNMPPP_DEPENDENCIES = host-pkgconf
 SNMPPP_INSTALL_STAGING = YES
 SNMPPP_CONF_OPTS = $(if $(BR2_PACKAGE_SNMPPP_LOGGING),--enable-logging,--disable-logging)
 SNMPPP_LICENSE = SNMP++
-SNMPPP_LICENSE_FILES = src/v3.cpp
+SNMPPP_LICENSE_FILES = license.txt
 
 ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
 SNMPPP_CONF_OPTS += --enable-snmpv3
@@ -20,4 +20,10 @@ else
 SNMPPP_CONF_OPTS += --disable-snmpv3
 endif
 
+define SNMPPP_EXTRACT_LICENSE
+	grep '_##' $(@D)/src/v3.cpp >$(@D)/license.txt
+endef
+
+SNMPPP_POST_EXTRACT_HOOKS += SNMPPP_EXTRACT_LICENSE
+
 $(eval $(autotools-package))
-- 
1.9.1

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

end of thread, other threads:[~2015-07-22 21:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 16:29 [Buildroot] [PATCH] snmppp: extract license text from source files Luca Ceresoli
2015-07-21 19:54 ` Thomas Petazzoni
2015-07-22 21:01   ` Yann E. MORIN
2015-07-22 21:26     ` Thomas Petazzoni
2015-07-22 21:33       ` Yann E. MORIN
2015-07-22 21:37         ` Thomas Petazzoni
2015-07-22 21:47           ` Yann E. MORIN
2015-07-22 21:50             ` Thomas Petazzoni

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