diff options
Diffstat (limited to 'dns/noip/files')
-rw-r--r-- | dns/noip/files/patch-Makefile | 36 | ||||
-rw-r--r-- | dns/noip/files/patch-noip2.c | 27 |
2 files changed, 33 insertions, 30 deletions
diff --git a/dns/noip/files/patch-Makefile b/dns/noip/files/patch-Makefile index 6e2a312f68e3..e1b1c0917eb3 100644 --- a/dns/noip/files/patch-Makefile +++ b/dns/noip/files/patch-Makefile @@ -1,31 +1,31 @@ ---- Makefile.orig 2007-08-11 20:35:34.000000000 +0200 -+++ Makefile 2007-12-24 12:18:38.000000000 +0100 -@@ -1,13 +1,13 @@ +--- Makefile.orig 2009-11-17 20:19:54.000000000 +0100 ++++ Makefile 2009-11-17 20:22:51.000000000 +0100 +@@ -1,8 +1,8 @@ TGT=noip2 -CC=gcc -+MYCC=${CC} ++CC?=gcc + PKG=noip-2.1.tgz -PREFIX=/usr/local --CONFDIR=${PREFIX}/etc --BINDIR=${PREFIX}/bin -+MYPREFIX=${PREFIX} -+MYCONFDIR=${PREFIX}/etc -+MYBINDIR=${PREFIX}/bin ++PREFIX?=/usr/local + CONFDIR=${PREFIX}/etc + BINDIR=${PREFIX}/bin - # these defines are for Linux --LIBS= --ARCH=linux -+#LIBS= -+#ARCH=linux +@@ -11,7 +11,7 @@ + ARCH=linux # for Mac OS X and BSD systems that have getifaddr(), uncomment the next line - #ARCH=bsd_with_getifaddrs -@@ -21,7 +21,7 @@ +-#ARCH=bsd_with_getifaddrs ++ARCH=bsd_with_getifaddrs + + # for early BSD systems without getifaddrs(), uncomment the next line + #ARCH=bsd +@@ -22,7 +22,7 @@ # ARCH=sun ${TGT}: Makefile ${TGT}.c -- ${CC} -Wall -g -O2 -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} -+ ${MYCC} ${CFLAGS} -Dbsd_with_getifaddrs -DPREFIX=\"${MYPREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} +- ${CC} -Wall -g -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} ++ ${CC} -Wall -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} install: ${TGT} if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi diff --git a/dns/noip/files/patch-noip2.c b/dns/noip/files/patch-noip2.c index ad0fe024bb59..62399450912a 100644 --- a/dns/noip/files/patch-noip2.c +++ b/dns/noip/files/patch-noip2.c @@ -1,15 +1,15 @@ ---- noip2.c.orig 2007-08-27 23:54:19.000000000 +0200 -+++ noip2.c 2007-12-24 12:25:18.000000000 +0100 -@@ -185,7 +185,7 @@ +--- noip2.c.orig 2009-11-17 20:23:40.000000000 +0100 ++++ noip2.c 2009-11-17 20:27:45.000000000 +0100 +@@ -198,7 +198,7 @@ #define CLIENT_IP_PORT 8245 - #define VERSION "2.1.7" + #define VERSION "2.1.9" -#define USER_AGENT "User-Agent: Linux-DUC/"VERSION +#define USER_AGENT "User-Agent: FreeBSD-DUC/"VERSION #define SETTING_SCRIPT "settings.php?" #define USTRNG "username=" #define PWDSTRNG "&pass=" -@@ -292,7 +292,7 @@ +@@ -308,7 +308,7 @@ #define CMSG21 "Please select the Internet interface from this list.\n" #define CMSG22 "By typing the number associated with it." #define CMSG23 "Too many network devices. Limit is %d" @@ -18,7 +18,7 @@ #define CMSG25 "Can't create config file (%s)" #define CMSG25a "Re-run noip, adding '-c configfilename' as a parameter." #define CMSG26 "Can't rename config file (%s)" -@@ -502,7 +502,7 @@ +@@ -525,7 +525,7 @@ fprintf(stderr, "[ -d][ -D pid]"); #endif fprintf(stderr, "[ -i addr][ -S][ -M][ -h]"); @@ -27,7 +27,7 @@ fprintf(stderr, "Options: -C create configuration data\n"); fprintf(stderr, " -F force NAT off\n"); fprintf(stderr, " -Y select all hosts/groups\n"); -@@ -2119,17 +2119,12 @@ +@@ -2316,17 +2316,14 @@ dq = (unsigned char *)devs; // point at name list for (ifa = ifap; ifa; ifa = ifa->ifa_next) { if (ifa->ifa_addr->sa_family == AF_LINK) { @@ -40,12 +40,15 @@ - || ifd->ifi_type == IFT_BRIDGE - || ifd->ifi_type == IFT_OTHER - || ifd->ifi_type == IFT_GIF) -+ if (ifd->ifi_type == IFT_OTHER -+ || ifd->ifi_type == IFT_GIF -+ || ifd->ifi_type == IFT_LOOP -+ || ifd->ifi_type == IFT_FAITH) - continue; +- continue; -#endif ++ ++ if (ifd->ifi_type == IFT_OTHER ++ || ifd->ifi_type == IFT_GIF ++ || ifd->ifi_type == IFT_LOOP ++ || ifd->ifi_type == IFT_FAITH) ++ continue; ++ q = dq; // add new name into list p = ifa->ifa_name; devnum++; |