Skip to contentSkip to conversation

noip: use a simpler sed command with our $(SED) variable

PATCH New Vicente Olivert Riera 2 participants 4 messages Oct 20, 2015 – Oct 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 noip: use a simpler sed command with our $(SED) variable

---
 package/noip/noip.mk |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
package/noip/noip.mk +1 -2
index fceea1e..98edfca 100644
@@ -11,8 +11,7 @@ NOIP_LICENSE = GPLv2+
 NOIP_LICENSE_FILES = COPYING
 
 define NOIP_BUILD_CMDS
-	sed -i -e "s:\(#define CONFIG_FILENAME\).*:\1 \"/etc/no-ip2.conf\":" \
-		$(@D)/noip2.c
+	$(SED) "/^#define CONFIG_FILENAME/ s/PREFIX//" $(@D)/noip2.c
 	$(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
 		PREFIX=/usr CONFDIR=/etc
 endef
Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/3 noip: add $(TARGET_MAKE_ENV) before $(MAKE)

---
 package/noip/noip.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
package/noip/noip.mk +2 -2
index 98edfca..a61d141 100644
@@ -12,8 +12,8 @@ NOIP_LICENSE_FILES = COPYING
 
 define NOIP_BUILD_CMDS
 	$(SED) "/^#define CONFIG_FILENAME/ s/PREFIX//" $(@D)/noip2.c
-	$(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
-		PREFIX=/usr CONFDIR=/etc
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC="$(TARGET_CC)" \
+		CFLAGS="$(TARGET_CFLAGS)" PREFIX=/usr CONFDIR=/etc
 endef
 
 define NOIP_INSTALL_TARGET_CMDS
Signature · 1 line
1.7.1
#2 lore raw

PATCH 3/3 noip: add a hash file

In reply to Vicente Olivert Riera
---
 package/noip/noip.hash |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
 create mode 100644 package/noip/noip.hash
package/noip/noip.hash new file +2 -0
new file mode 100644
index 0000000..166438d
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 82b9bafab96a0c53b21aaef688bf70b3572e26217b5e2072bdb09da3c4a6f593  noip-duc-linux.tar.gz
Signature · 1 line
1.7.1
#3 lore raw

PATCH 1/3 noip: use a simpler sed command with our $(SED) variable

In reply to Vicente Olivert Riera

Dear Vicente Olivert Riera,

Quoted 4 lines · Vicente Olivert Riera
---
 package/noip/noip.mk |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

All three patches applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com