noip: use a simpler sed command with our $(SED) variable
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 20 Oct 2015 13:52:53 +0000 (14:52 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 21 Oct 2015 20:12:33 +0000 (22:12 +0200)
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/noip/noip.mk

index fceea1ed50d28efc510c3f38a966d8192dfc7b19..98edfcac54ae49cdec7ea8839bf96021670bc076 100644 (file)
@@ -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