Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2000 20:49:36 -0500 (EST)
From:      cjm2@altavista.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15962: net/ddup fix
Message-ID:  <200001070149.UAA29319@weeble.dyndns.org>

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

>Number:         15962
>Category:       ports
>Synopsis:       Recent change to ddup causes 'make install' to fail. Corrected.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan  7 05:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Christopher J. Michaels
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
none
>Environment:

FreeBSD cartman.weeble.dyndns.org 3.4-STABLE FreeBSD 3.4-STABLE #6: Sun Jan  2 12:06:58 EST 2000     cjm2@cartman.weeble.dyndns.org:/home/src/sys/compile/cartman  i386

>Description:

A recent change to net/ddup caused the install target to fail.  Corrected
this error and cleaned up some of my earlier non-fatal mistakes.

>How-To-Repeat:

'make install' after January 02, 2000 commit.

>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ddup
#	ddup/Makefile
#	ddup/pkg
#	ddup/pkg/COMMENT
#	ddup/pkg/DESCR
#	ddup/pkg/PLIST
#	ddup/files
#	ddup/files/md5
#	ddup/files/ddup.1
#	ddup/patches
#	ddup/patches/patch-ab
#	ddup/patches/patch-ac
#
echo c - ddup
mkdir -p ddup > /dev/null 2>&1
echo x - ddup/Makefile
sed 's/^X//' >ddup/Makefile << 'END-of-ddup/Makefile'
X# New ports collection makefile for:	ddup
X# Version required:	2.0.4
X# Date created:		30 September 1999
X# Whom:			cjm2
X#
X# $FreeBSD: ports/net/ddup/Makefile,v 1.2 2000/01/02 11:35:01 obrien Exp $
X#
X
XDISTNAME=	ddup-2.0.4
XCATEGORIES=	net
XMASTER_SITES=	ftp://gandy.dyndns.org/pub/ddup/
X
XMAINTAINER=	cjm2@altavista.net
X
XWRKSRC=		${WRKDIR}/ddup-nic
X
XMAN1=		ddup.1
XMANCOMPRESSED=	no
X
Xpost-configure:
X	@${PERL} -pi.orig -e 's:/etc/ddup.conf:${PREFIX}/etc/ddup.conf:' \
X		${WRKSRC}/INSTALL-C
X
Xpost-install:
X	${INSTALL_MAN} ${FILESDIR}/ddup.1 ${PREFIX}/man/man1
X	strip ${PREFIX}/sbin/ddup
X
X.include <bsd.port.mk>
END-of-ddup/Makefile
echo c - ddup/pkg
mkdir -p ddup/pkg > /dev/null 2>&1
echo x - ddup/pkg/COMMENT
sed 's/^X//' >ddup/pkg/COMMENT << 'END-of-ddup/pkg/COMMENT'
XA DynDNS client for FreeBSD
END-of-ddup/pkg/COMMENT
echo x - ddup/pkg/DESCR
sed 's/^X//' >ddup/pkg/DESCR << 'END-of-ddup/pkg/DESCR'
XDD-UP in C by Thomas Gandy (tegandy@enid.com)
X---------------------------------------------------------
X
XDD-UP is a program that is used to update a host
Xprovided by the Free DynDNS service of dyndns.org.
X
XWWW: http://www.gandy.dyndns.org/~thomas/ddup.shtml
X
X- Chris
Xcjm2@earthling.net
END-of-ddup/pkg/DESCR
echo x - ddup/pkg/PLIST
sed 's/^X//' >ddup/pkg/PLIST << 'END-of-ddup/pkg/PLIST'
Xetc/ddup.conf.default
Xsbin/ddup
END-of-ddup/pkg/PLIST
echo c - ddup/files
mkdir -p ddup/files > /dev/null 2>&1
echo x - ddup/files/md5
sed 's/^X//' >ddup/files/md5 << 'END-of-ddup/files/md5'
XMD5 (ddup-2.0.4.tar.gz) = e803bbedd98a77f9c0579e3521566f27
END-of-ddup/files/md5
echo x - ddup/files/ddup.1
sed 's/^X//' >ddup/files/ddup.1 << 'END-of-ddup/files/ddup.1'
X.\" Man page for ddup
X.\"
X.\" Copyright (c) 1999, Thomas Gandy
X.\"
X.\" You may distribute under the terms of the GNU General Public
X.\" License as specified in the README file that comes with the ddup
X.\" distribution.
X.\"
X.\" Christopher J. Michaels
X.\" cjm2@earthling.net
X.\"
X.\" $FreeBSD: ports/net/ddup/files/ddup.1,v 1.2 2000/01/02 11:32:15 obrien Exp $
X.\"
X.Dd Sept 30, 1999
X.Dt DDUP 1
X.Os
X.Sh NAME
X.Nm ddup
X.Nd Update a host with the DynDNS service
X.Sh SYNOPSIS
X.Nm ddup
X.Fl -host Ar host.domain.ext
X.Op Fl -ip Ar address
X.Op Fl -wildcard
X.Op Fl -mx Ar mxhost
X.OP Fl -backmx
X.Op Fl -proxyserv Ar server
X.Op Fl -proxyport Ar port
X.Op Fl -help
X.Op Fl -debug
X.Sh DESCRIPTION
X.Nm DDUP
Xis a program that is used to update a host provided by the Free DynDNS service of DynDNS.org
X.Pp
XThe options are as follows:
X.Bl -tag -width Fl
X.It Fl -host Ar host.domain.ext
XHostname to update.  Where
X.Nm host.domain.ext
Xis your domain.
Xe.g. gandy.dyndns.org gandy.ath.cx
X.It Fl -ip Ar address
XForces manual IP specification.  Where
X.Nm address
Xis your IP address.
X.It Fl -wildcard
XEnables wildcard hostnames.  e.g. www.gandy.dyndns.org, mail.gandy.dyndns.org.
X.It Fl -mx Ar mxhost
XSets the MX record for
X.Nm host.domain.ext
Xto
X.Nm mxhost .
X.It Fl -backmx
XNeeds
X.Nm -mx
Xand sets your
X.Nm mxhost
Xto be a backup MX record.
X.It Fl -proxyserv Ar server
XUse
X.Nm server
Xas an HTTP proxy.
X.It Fl -proxyport Ar port
XConnect to the HTTP proxy at
X.Nm port .
X.It Fl -help
XList command line options.
X.It Fl -debug
XPrints debug output of what is sent to the DynDNS server.
X.Sh MX RECORDS
X.Nm MX
Xstands for Mail Exchanger.  To use this feature you must find a host such as your
XInternet Service Provider that will setup their e-mail server to recieve mail for your
Xdomain.  If you haven't made arrangements with someone this field will not work
XPLEASE don't use it if you don't have a MX record setup on a different host.
X.Sh CONFIGURATION
X.Nm DDUP\'s
Xconfiguration file has 3 options that need to be configured.
X.Bl -tag -width "allowed_user=          " -compact
X.It Nm allowed_user=
XLogin name of user allowed to run ddup.
XThere may be multiple
X.Nm allowed_user
Xoptions in the configuration file, one to a line.
X.It Nm user=
XUser name registered with DynDNS.org.
X.It Nm pass=
XPassword for the above user name.
X.Sh FILES
X.Bl -tag -width /usr/local/etc/ddup.conf -compact
X.It Pa ddup.conf
Xconfiguration file
END-of-ddup/files/ddup.1
echo c - ddup/patches
mkdir -p ddup/patches > /dev/null 2>&1
echo x - ddup/patches/patch-ab
sed 's/^X//' >ddup/patches/patch-ab << 'END-of-ddup/patches/patch-ab'
X--- Makefile.orig	Tue Aug  3 16:19:22 1999
X+++ Makefile	Thu Jan  6 20:36:09 2000
X@@ -2,8 +2,9 @@
X # $Id: Makefile,v 2.1 1999/08/03 20:17:25 thomas Exp thomas $
X # Change these options
X 
X-CC = gcc
X-INSTALL_PATH = /usr/sbin
X+CC ?= gcc
X+INSTALL_PATH = ${PREFIX}/sbin
X+CFLAGS += -DCONFIGFILE=\"${PREFIX}/etc/ddup.conf\"
X 
X # no need to edit past here
X 
X@@ -13,22 +14,23 @@
X 	${CC} -o ddup ddup.o getopt.o getopt1.o parse_config.o parse_option.o
X 
X ddup.o : ddup.c
X-	${CC} -c ddup.c
X+	${CC} ${CFLAGS} -c ddup.c
X 
X getopt.o : getopt.c
X-	${CC} -c getopt.c
X+	${CC} ${CFLAGS} -c getopt.c
X 
X getopt1.o : getopt1.c
X-	${CC} -c getopt1.c
X+	${CC} ${CFLAGS} -c getopt1.c
X 
X parse_config.o : parse_config.c
X-	${CC} -c parse_config.c
X+	${CC} ${CFLAGS} -c parse_config.c
X 
X parse_option.o : parse_option.c
X-	${CC} -c parse_option.c
X+	${CC} ${CFLAGS} -c parse_option.c
X 
X install : ddup
X-	cp ddup ${INSTALL_PATH}/ddup
X+	${BSD_INSTALL_PROGRAM} ddup ${INSTALL_PATH}
X+	${BSD_INSTALL_DATA} ddup.conf ${PREFIX}/etc/ddup.conf.default
X 
X clean :
X 	rm -f *.o ddup
END-of-ddup/patches/patch-ab
echo x - ddup/patches/patch-ac
sed 's/^X//' >ddup/patches/patch-ac << 'END-of-ddup/patches/patch-ac'
X--- parse_config.c.orig	Tue Aug  3 15:22:19 1999
X+++ parse_config.c	Sun Oct 31 14:17:32 1999
X@@ -15,7 +15,7 @@
X 
X void read_config(char *username_ptr, char *pass_ptr) {
X 	FILE *fptr;
X-	char *file_name = "/etc/ddup.conf";
X+	char *file_name = CONFIGFILE;
X 	char line[20];
X 	char *string;
X 	int x = 0;
END-of-ddup/patches/patch-ac
exit


>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?200001070149.UAA29319>