Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Feb 2000 19:32:18 -0500 (EST)
From:      cjm2@altavista.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16622: Upgrade to 2.1
Message-ID:  <200002100032.TAA31846@weeble.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         16622
>Category:       ports
>Synopsis:       Upgrade to 2.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  9 16:40:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Christopher J. Michaels
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
>Environment:

	FreeBSD 3.4-STABLE

>Description:

	Upgraded ddup from 2.0.4 to 2.1

>How-To-Repeat:

	See Fix

>Fix:
	
diff -ruN ddup.bak/Makefile ddup/Makefile
--- ddup.bak/Makefile	Sat Jan  8 12:05:15 2000
+++ ddup/Makefile	Wed Feb  9 19:24:07 2000
@@ -6,23 +6,27 @@
 # $FreeBSD: ports/net/ddup/Makefile,v 1.3 2000/01/08 17:05:15 ade Exp $
 #
 
-DISTNAME=	ddup-2.0.4
+DISTNAME=	ddup-2.1
 CATEGORIES=	net
-MASTER_SITES=	ftp://gandy.dyndns.org/pub/ddup/
+MASTER_SITES=	ftp://gandy.dyndns.org/pub/ddup/ \
+		http://www.phix.com/~java/
 
 MAINTAINER=	cjm2@altavista.net
 
 WRKSRC=		${WRKDIR}/ddup-nic
 
 MAN1=		ddup.1
-MANCOMPRESSED=	no
+MANCOMPRESSED=	yes
 
-post-configure:
-	@${PERL} -pi.orig -e 's:/etc/ddup.conf:${PREFIX}/etc/ddup.conf:' \
-		${WRKSRC}/INSTALL-C
-
-post-install:
-	${INSTALL_MAN} ${FILESDIR}/ddup.1 ${PREFIX}/man/man1
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/ddup ${PREFIX}/sbin
+	${INSTALL_SCRIPT} ${WRKSRC}/testip ${PREFIX}/sbin
+	${INSTALL_MAN} ${WRKSRC}/ddup.1.gz ${MANPREFIX}/man/man1
+	${INSTALL_DATA} ${WRKSRC}/ddup.conf ${PREFIX}/etc/ddup.conf.default
+	${MKDIR} ${PREFIX}/share/doc/ddup
+	${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/ddup
+	${INSTALL_MAN} ${WRKSRC}/INSTALL-C ${PREFIX}/share/doc/ddup
+	${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/ddup
 	strip ${PREFIX}/sbin/ddup
 
 .include <bsd.port.mk>
diff -ruN ddup.bak/files/ddup.1 ddup/files/ddup.1
--- ddup.bak/files/ddup.1	Sun Jan  2 06:32:15 2000
+++ ddup/files/ddup.1	Wed Dec 31 19:00:00 1969
@@ -1,92 +0,0 @@
-.\" Man page for ddup
-.\"
-.\" Copyright (c) 1999, Thomas Gandy
-.\"
-.\" You may distribute under the terms of the GNU General Public
-.\" License as specified in the README file that comes with the ddup
-.\" distribution.
-.\"
-.\" Christopher J. Michaels
-.\" cjm2@earthling.net
-.\"
-.\" $FreeBSD: ports/net/ddup/files/ddup.1,v 1.2 2000/01/02 11:32:15 obrien Exp $
-.\"
-.Dd Sept 30, 1999
-.Dt DDUP 1
-.Os
-.Sh NAME
-.Nm ddup
-.Nd Update a host with the DynDNS service
-.Sh SYNOPSIS
-.Nm ddup
-.Fl -host Ar host.domain.ext
-.Op Fl -ip Ar address
-.Op Fl -wildcard
-.Op Fl -mx Ar mxhost
-.OP Fl -backmx
-.Op Fl -proxyserv Ar server
-.Op Fl -proxyport Ar port
-.Op Fl -help
-.Op Fl -debug
-.Sh DESCRIPTION
-.Nm DDUP
-is a program that is used to update a host provided by the Free DynDNS service of DynDNS.org
-.Pp
-The options are as follows:
-.Bl -tag -width Fl
-.It Fl -host Ar host.domain.ext
-Hostname to update.  Where
-.Nm host.domain.ext
-is your domain.
-e.g. gandy.dyndns.org gandy.ath.cx
-.It Fl -ip Ar address
-Forces manual IP specification.  Where
-.Nm address
-is your IP address.
-.It Fl -wildcard
-Enables wildcard hostnames.  e.g. www.gandy.dyndns.org, mail.gandy.dyndns.org.
-.It Fl -mx Ar mxhost
-Sets the MX record for
-.Nm host.domain.ext
-to
-.Nm mxhost .
-.It Fl -backmx
-Needs
-.Nm -mx
-and sets your
-.Nm mxhost
-to be a backup MX record.
-.It Fl -proxyserv Ar server
-Use
-.Nm server
-as an HTTP proxy.
-.It Fl -proxyport Ar port
-Connect to the HTTP proxy at
-.Nm port .
-.It Fl -help
-List command line options.
-.It Fl -debug
-Prints debug output of what is sent to the DynDNS server.
-.Sh MX RECORDS
-.Nm MX
-stands for Mail Exchanger.  To use this feature you must find a host such as your
-Internet Service Provider that will setup their e-mail server to recieve mail for your
-domain.  If you haven't made arrangements with someone this field will not work
-PLEASE don't use it if you don't have a MX record setup on a different host.
-.Sh CONFIGURATION
-.Nm DDUP\'s
-configuration file has 3 options that need to be configured.
-.Bl -tag -width "allowed_user=          " -compact
-.It Nm allowed_user=
-Login name of user allowed to run ddup.
-There may be multiple
-.Nm allowed_user
-options in the configuration file, one to a line.
-.It Nm user=
-User name registered with DynDNS.org.
-.It Nm pass=
-Password for the above user name.
-.Sh FILES
-.Bl -tag -width /usr/local/etc/ddup.conf -compact
-.It Pa ddup.conf
-configuration file
diff -ruN ddup.bak/files/md5 ddup/files/md5
--- ddup.bak/files/md5	Sun Oct 31 21:08:06 1999
+++ ddup/files/md5	Wed Feb  9 19:14:42 2000
@@ -1 +1 @@
-MD5 (ddup-2.0.4.tar.gz) = e803bbedd98a77f9c0579e3521566f27
+MD5 (ddup-2.1.tar.gz) = 3dd30ae02503b23b47a61e428ac9fdcb
diff -ruN ddup.bak/patches/patch-ab ddup/patches/patch-ab
--- ddup.bak/patches/patch-ab	Sat Jan  8 12:05:22 2000
+++ ddup/patches/patch-ab	Wed Feb  9 18:58:44 2000
@@ -1,44 +1,49 @@
---- Makefile.orig	Tue Aug  3 16:19:22 1999
-+++ Makefile	Thu Jan  6 20:36:09 2000
-@@ -2,8 +2,9 @@
- # $Id: Makefile,v 2.1 1999/08/03 20:17:25 thomas Exp thomas $
+--- Makefile.orig	Mon Jan 31 21:08:49 2000
++++ Makefile	Wed Feb  9 18:56:37 2000
+@@ -2,14 +2,14 @@
+ # $Id: Makefile,v 2.6 2000/02/01 02:07:43 thomas Exp thomas $
  # Change these options
  
 -CC = gcc
--INSTALL_PATH = /usr/sbin
+-INSTALL_PATH = /usr/sbin/bin
 +CC ?= gcc
 +INSTALL_PATH = ${PREFIX}/sbin
-+CFLAGS += -DCONFIGFILE=\"${PREFIX}/etc/ddup.conf\"
  
- # no need to edit past here
+ # DEBUG = -g
+ DEBUG =
  
-@@ -13,22 +14,23 @@
- 	${CC} -o ddup ddup.o getopt.o getopt1.o parse_config.o parse_option.o
+ # For Linux and others
+-DEFINES =
++DEFINES = -DCONFIGFILE=\"${PREFIX}/etc/ddup.conf\"
+ LIBS =
+ 
+ # For AIX
+@@ -21,22 +21,22 @@
+ all : ddup
+ 
+ ddup : ddup.o parse_config.o parse_option.o getopt.o getopt1.o
+-	${CC} ${DEFINES} ${DEBUG} -o ddup ddup.o getopt.o getopt1.o parse_config.o parse_option.o ${LIBS}
++	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -o ddup ddup.o getopt.o getopt1.o parse_config.o parse_option.o ${LIBS}
  
  ddup.o : ddup.c
--	${CC} -c ddup.c
-+	${CC} ${CFLAGS} -c ddup.c
+-	${CC} ${DEFINES} ${DEBUG} -c ddup.c
++	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c ddup.c
  
  getopt.o : getopt.c
--	${CC} -c getopt.c
-+	${CC} ${CFLAGS} -c getopt.c
+-	${CC} ${DEFINES} ${DEBUG} -c getopt.c
++	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c getopt.c
  
  getopt1.o : getopt1.c
--	${CC} -c getopt1.c
-+	${CC} ${CFLAGS} -c getopt1.c
+-	${CC} ${DEFINES} ${DEBUG} -c getopt1.c
++	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c getopt1.c
  
  parse_config.o : parse_config.c
--	${CC} -c parse_config.c
-+	${CC} ${CFLAGS} -c parse_config.c
+-	${CC} ${DEFINES} ${DEBUG} -c parse_config.c
++	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c parse_config.c
  
  parse_option.o : parse_option.c
--	${CC} -c parse_option.c
-+	${CC} ${CFLAGS} -c parse_option.c
+-	${CC} ${DEFINES} ${DEBUG} -c parse_option.c
++	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c parse_option.c
  
  install : ddup
--	cp ddup ${INSTALL_PATH}/ddup
-+	${BSD_INSTALL_PROGRAM} ddup ${INSTALL_PATH}
-+	${BSD_INSTALL_DATA} ddup.conf ${PREFIX}/etc/ddup.conf.default
- 
- clean :
- 	rm -f *.o ddup
+ 	cp ddup ${INSTALL_PATH}/ddup
diff -ruN ddup.bak/patches/patch-ac ddup/patches/patch-ac
--- ddup.bak/patches/patch-ac	Sun Oct 31 21:08:06 1999
+++ ddup/patches/patch-ac	Wed Feb  9 18:59:05 2000
@@ -1,11 +1,11 @@
---- parse_config.c.orig	Tue Aug  3 15:22:19 1999
-+++ parse_config.c	Sun Oct 31 14:17:32 1999
-@@ -15,7 +15,7 @@
- 
- void read_config(char *username_ptr, char *pass_ptr) {
- 	FILE *fptr;
--	char *file_name = "/etc/ddup.conf";
-+	char *file_name = CONFIGFILE;
- 	char line[20];
- 	char *string;
- 	int x = 0;
+--- parse_config.c.orig	Mon Jan 17 16:56:33 2000
++++ parse_config.c	Wed Feb  9 18:57:17 2000
+@@ -18,7 +18,7 @@
+ void read_config(char **username_ptr, char **pass_ptr)
+ {
+   FILE *fptr;
+-  char *file_name = "/etc/ddup.conf";
++  char *file_name = CONFIGFILE;
+   char line[1024];
+   char *string;
+   int x = 0;
diff -ruN ddup.bak/patches/patch-ad ddup/patches/patch-ad
--- ddup.bak/patches/patch-ad	Wed Dec 31 19:00:00 1969
+++ ddup/patches/patch-ad	Wed Feb  9 19:07:25 2000
@@ -0,0 +1,28 @@
+--- testip.orig	Wed Feb  9 19:06:02 2000
++++ testip	Wed Feb  9 19:07:11 2000
+@@ -3,11 +3,13 @@
+ # This defines the host as the first argument (eg. testip gandy.dyndns.org
+ # makes HOST = gandy.dyndns.org
+ HOST=$1
++
+ # Change IFACE to your network interface name
+-IFACE="ppp0"
++IFACE="tun0"
+ IFCHECK=$(/sbin/ifconfig|grep -1 $IFACE|cut -s -d ' ' -f12|grep addr|cut -d ':' -f2)
++
+ # This line uses the 'host' command to check DNS you can comment this out
+-#if you use the nslookup one
++# if you use the nslookup one
+ DNSCHECK=$(host $HOST|cut -d ' ' -f4)
+ 
+ # This line uses the 'nslookup' command to check DNS you can uncomment
+@@ -18,7 +20,6 @@
+ 	echo "We're ok"
+ else	
+ 	# This can be changed for proxy support or mx check the manpage
+-	#for options
+-	/etc/ppp/ddup --host $HOST --wildcard
++	# for options
++	/usr/local/sbin/ddup --host $HOST --wildcard
+ fi
+-	
diff -ruN ddup.bak/pkg/COMMENT ddup/pkg/COMMENT
--- ddup.bak/pkg/COMMENT	Sun Oct 31 21:08:06 1999
+++ ddup/pkg/COMMENT	Wed Feb  9 19:11:43 2000
@@ -1 +1 @@
-A DynDNS client for FreeBSD
+A DynDNS.org client for UNIX
diff -ruN ddup.bak/pkg/DESCR ddup/pkg/DESCR
--- ddup.bak/pkg/DESCR	Sun Oct 31 21:08:06 1999
+++ ddup/pkg/DESCR	Wed Feb  9 19:13:03 2000
@@ -7,4 +7,4 @@
 WWW: http://www.gandy.dyndns.org/~thomas/ddup.shtml
 
 - Chris
-cjm2@earthling.net
+cjm2@altavista.net
diff -ruN ddup.bak/pkg/PLIST ddup/pkg/PLIST
--- ddup.bak/pkg/PLIST	Sun Oct 31 21:08:06 1999
+++ ddup/pkg/PLIST	Wed Feb  9 19:09:59 2000
@@ -1,2 +1,7 @@
 etc/ddup.conf.default
 sbin/ddup
+sbin/testip
+share/doc/ddup/README
+share/doc/ddup/INSTALL-C
+share/doc/ddup/COPYING
+@dirrm share/doc/ddup

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002100032.TAA31846>