UPDATE: net/inadyn-1.99.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

UPDATE: net/inadyn-1.99.4

Ralf Horstmann-2
Hi,

here is an update to inadyn-1.99.4:

- change of upstream
- several dyndns provider updates
- support for getting IP from an interface instead of from a web service
- many smaller changes

Tested on i386, amd64 and sparc64.

I've submitted some patches upstream and they have been included already, so
next version will hopefully need fewer OpenBSD specific patches.

Cheers,
Ralf

Index: Makefile
===================================================================
RCS file: /usr/cvs/openbsd/ports/net/inadyn/Makefile,v
retrieving revision 1.3
diff -u -u -p -r1.3 Makefile
--- Makefile 11 Mar 2013 11:35:47 -0000 1.3
+++ Makefile 24 Nov 2013 16:13:56 -0000
@@ -2,11 +2,11 @@
 
 COMMENT = small memory footprint dynamic dns updater
 
-DISTNAME = inadyn-1.98.0
+DISTNAME = inadyn-1.99.4
 
 CATEGORIES = net
 
-HOMEPAGE = http://vmlinux.org/jocke/inadyn.shtml
+HOMEPAGE = http://troglobit.com/inadyn.html
 
 MAINTAINER = Pierre-Emmanuel Andre <[hidden email]>
 
@@ -15,7 +15,7 @@ PERMIT_PACKAGE_CDROM = Yes
 
 WANTLIB = c
 
-MASTER_SITES = ftp://ftp.vmlinux.org/pub/People/jocke/inadyn/
+MASTER_SITES = ftp://troglobit.com/inadyn/
 EXTRACT_SUFX = .tar.bz2
 
 USE_GMAKE = Yes
Index: distinfo
===================================================================
RCS file: /usr/cvs/openbsd/ports/net/inadyn/distinfo,v
retrieving revision 1.1.1.1
diff -u -u -p -r1.1.1.1 distinfo
--- distinfo 21 Jul 2011 12:17:02 -0000 1.1.1.1
+++ distinfo 24 Nov 2013 16:14:25 -0000
@@ -1,5 +1,2 @@
-MD5 (inadyn-1.98.0.tar.bz2) = FY8B7hX0/sA7SQkkKV5yHA==
-RMD160 (inadyn-1.98.0.tar.bz2) = Bl/UcBEvUAWjhxcjSugD7RmANd8=
-SHA1 (inadyn-1.98.0.tar.bz2) = UVub7j2Vi4FRsh7669FAdBfbcDc=
-SHA256 (inadyn-1.98.0.tar.bz2) = Fn+DDVyoB2Mc5xBAMAKG+DYXs/CwLkjGy3Enxc3caCE=
-SIZE (inadyn-1.98.0.tar.bz2) = 50753
+SHA256 (inadyn-1.99.4.tar.bz2) = /kQiSe0m7hDb9tm0bEo2QmCxZIMXefAimsiHFlI/i/c=
+SIZE (inadyn-1.99.4.tar.bz2) = 51094
Index: files/inadyn.conf
===================================================================
RCS file: /usr/cvs/openbsd/ports/net/inadyn/files/inadyn.conf,v
retrieving revision 1.1.1.1
diff -u -u -p -r1.1.1.1 inadyn.conf
--- files/inadyn.conf 21 Jul 2011 12:17:02 -0000 1.1.1.1
+++ files/inadyn.conf 24 Nov 2013 16:18:46 -0000
@@ -5,5 +5,5 @@
 update_period_sec 600 # Check for a new IP every 600 seconds
 username test
 password test
-dyndns_system [hidden email]
+dyndns_system [hidden email]
 alias test.homeip.net
Index: patches/patch-Makefile
===================================================================
RCS file: /usr/cvs/openbsd/ports/net/inadyn/patches/patch-Makefile,v
retrieving revision 1.1.1.1
diff -u -u -p -r1.1.1.1 patch-Makefile
--- patches/patch-Makefile 21 Jul 2011 12:17:02 -0000 1.1.1.1
+++ patches/patch-Makefile 24 Nov 2013 15:55:21 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-Makefile,v 1.1.1.1 2011/07/21 12:17:02 pea Exp $
---- Makefile.orig Mon Feb 28 09:34:36 2011
-+++ Makefile Tue May 10 11:05:15 2011
-@@ -16,7 +16,7 @@ CC           ?= $(CROSS)gcc
+--- Makefile.orig Thu Aug  8 01:39:43 2013
++++ Makefile Sun Nov 24 11:07:12 2013
+@@ -17,7 +17,7 @@ CC           ?= $(CROSS)gcc
  prefix       ?= /usr/local
  sysconfdir   ?= /etc
  datadir       = $(prefix)/share/doc/inadyn
@@ -10,21 +10,3 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2011/
 
  # This magic trick looks like a comment, but works on BSD PMake
  #include <config.mk>
-@@ -27,14 +27,14 @@ BASE_OBJS     = src/base64utils.o src/md5.o src/dyndns
- src/os.o src/os_psos.o src/tcp.o src/inadyn_cmd.o
- OBJS      = $(BASE_OBJS) $(CFG_OBJ) $(EXTRA_OBJS)
- CFLAGS        = -Iinclude -DVERSION_STRING=\"$(VERSION)\" $(CFG_INC) $(EXTRA_CFLAGS)
--CFLAGS       += -O2 -W -Wall
--LDLIBS       += -lresolv $(EXTRA_LIBS)
-+CFLAGS       ?= -O2 -W -Wall
-+LDLIBS       += $(EXTRA_LIBS)
- DISTFILES     = README COPYING LICENSE
-
- # Pattern rules
- .c.o:
- @printf "  CC      $@\n"
-- @$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-
- # Build rules
- all: $(EXEC)
Index: patches/patch-man_inadyn_8
===================================================================
RCS file: patches/patch-man_inadyn_8
diff -N patches/patch-man_inadyn_8
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-man_inadyn_8 24 Nov 2013 15:55:01 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- man/inadyn.8.orig Thu Aug  8 01:39:43 2013
++++ man/inadyn.8 Sun Nov 24 12:00:21 2013
+@@ -18,7 +18,7 @@
+ .Sh SYNOPSIS
+ .Nm inadyn
+ .Bk
+-.Op Fl a, -alias Ar ALIAS Ns Op , Ns Ar HASH
++.Op Fl a, -alias Ar ALIAS
+ .Op Fl b, -background
+ .Op Fl B, -bind Ar IFNAME
+ .Op Fl d, -drop-privs Ar USER Ns Op : Ns Ar GROUP
Index: patches/patch-src_dyndns_c
===================================================================
RCS file: /usr/cvs/openbsd/ports/net/inadyn/patches/patch-src_dyndns_c,v
retrieving revision 1.1.1.1
diff -u -u -p -r1.1.1.1 patch-src_dyndns_c
--- patches/patch-src_dyndns_c 21 Jul 2011 12:17:02 -0000 1.1.1.1
+++ patches/patch-src_dyndns_c 24 Nov 2013 15:59:07 -0000
@@ -1,18 +1,13 @@
 $OpenBSD: patch-src_dyndns_c,v 1.1.1.1 2011/07/21 12:17:02 pea Exp $
---- src/dyndns.c.orig Fri May  6 13:04:10 2011
-+++ src/dyndns.c Fri May  6 13:04:55 2011
-@@ -19,11 +19,13 @@
+--- src/dyndns.c.orig Sat Nov 23 09:57:09 2013
++++ src/dyndns.c Sat Nov 23 09:57:09 2013
+@@ -19,6 +19,9 @@
   */
 
  #define MODULE_TAG ""
--#include <resolv.h>
- #include <stdlib.h>
- #include <string.h>
- #include <sys/time.h>
- #include <sys/types.h>
++#include <sys/types.h>
 +#include <netinet/in.h>
 +#include <arpa/nameser.h>
-+#include <resolv.h>
- #include <sys/stat.h>
- #include <time.h>
-
+ #include <resolv.h>
+ #include <stdlib.h>
+ #include <string.h>
Index: patches/patch-src_inadyn_cmd_c
===================================================================
RCS file: /usr/cvs/openbsd/ports/net/inadyn/patches/patch-src_inadyn_cmd_c,v
retrieving revision 1.1.1.1
diff -u -u -p -r1.1.1.1 patch-src_inadyn_cmd_c
--- patches/patch-src_inadyn_cmd_c 21 Jul 2011 12:17:02 -0000 1.1.1.1
+++ patches/patch-src_inadyn_cmd_c 24 Nov 2013 15:59:36 -0000
@@ -1,12 +1,17 @@
 $OpenBSD: patch-src_inadyn_cmd_c,v 1.1.1.1 2011/07/21 12:17:02 pea Exp $
---- src/inadyn_cmd.c.orig Fri May  6 13:40:40 2011
-+++ src/inadyn_cmd.c Fri May  6 13:41:14 2011
-@@ -650,7 +650,7 @@ static RC_TYPE set_change_persona_handler(CMD_DATA *p_
- }
+--- src/inadyn_cmd.c.orig Thu Aug  8 01:39:43 2013
++++ src/inadyn_cmd.c Sun Nov 24 11:42:22 2013
+@@ -596,11 +600,11 @@ static RC_TYPE set_change_persona_handler(CMD_DATA *p_
+ if (p_gid)
+ {
+ if ((strlen(p_gid + 1) > 0) &&  /* if something is present after : */
+-    sscanf(p_gid + 1, "%32[a-zA-Z-]", groupname) != 1)
++    sscanf(p_gid + 1, "%32[a-zA-Z_-]", groupname) != 1)
+ return RC_DYNDNS_INVALID_OPTION;
  }
 
-- if (sscanf(arg, "%[a-z]", username) != 1)
-+ if (sscanf(arg, "%[_a-z]", username) != 1)
- {
+- snprintf(fmt, sizeof(fmt), "%%%ld[a-zA-Z-]", login_len_max);
++ snprintf(fmt, sizeof(fmt), "%%%ld[a-zA-Z_-]", login_len_max);
+ if (sscanf(arg, fmt, username) != 1)
  return RC_DYNDNS_INVALID_OPTION;
- }
+
Index: patches/patch-src_os_unix_c
===================================================================
RCS file: patches/patch-src_os_unix_c
diff -N patches/patch-src_os_unix_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_os_unix_c 24 Nov 2013 15:31:20 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- src/os_unix.c.orig Sat Nov 23 09:57:09 2013
++++ src/os_unix.c Sat Nov 23 09:57:09 2013
+@@ -223,7 +223,7 @@ RC_TYPE os_syslog_close(void)
+
+ RC_TYPE os_change_persona(OS_USER_INFO *p_usr_info)
+ {
+- int rc;
++ int rc = 0;
+
+ do
+ {