View | Details | Raw Unified | Return to bug 16822
Collapse All | Expand All

(-)ddup/Makefile (-7 / +23 lines)
Lines 6-31 Link Here
6
# $FreeBSD: ports/net/ddup/Makefile,v 1.4 2000/02/10 23:15:48 jedgar Exp $
6
# $FreeBSD: ports/net/ddup/Makefile,v 1.4 2000/02/10 23:15:48 jedgar Exp $
7
#
7
#
8
8
9
DISTNAME=	ddup-2.1
9
DISTNAME=	ddup-2.2Dm
10
CATEGORIES=	net
10
CATEGORIES=	net
11
MASTER_SITES=	ftp://gandy.dyndns.org/pub/ddup/ \
11
MASTER_SITES=	ftp://ddup.sourceforge.net/pub/ddup/
12
		http://www.phix.com/~java/
13
12
14
MAINTAINER=	cjm2@altavista.net
13
MAINTAINER=	cjm2@altavista.net
15
14
16
WRKSRC=		${WRKDIR}/ddup-nic
17
18
MAN1=		ddup.1
15
MAN1=		ddup.1
19
MANCOMPRESSED=	yes
16
MANCOMPRESSED=	yes
20
17
18
# Uncomment this if you want to enable debugging.
19
#DEBUG=		-g
20
21
pre-build:
22
	echo "char *file_name = \"${PREFIX}/etc/ddup.conf\";" > ${WRKSRC}/options.h
23
24
do-build:
25
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c ddup.c
26
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c ddup_functions.c
27
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c getopt.c
28
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c getopt1.c
29
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c parse_config.c
30
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c parse_option.c
31
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -c update.c
32
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEBUG} -o ddup ddup.o ddup_functions.o getopt.o getopt1.o parse_config.o parse_option.o update.o ${LIBS}
33
21
do-install:
34
do-install:
22
	${INSTALL_PROGRAM} ${WRKSRC}/ddup ${PREFIX}/sbin
35
	${INSTALL_PROGRAM} ${WRKSRC}/ddup ${PREFIX}/sbin
23
	${INSTALL_SCRIPT} ${WRKSRC}/testip ${PREFIX}/sbin
36
	${INSTALL_SCRIPT} ${WRKSRC}/testip ${PREFIX}/sbin
24
	${INSTALL_MAN} ${WRKSRC}/ddup.1.gz ${MANPREFIX}/man/man1
37
	${INSTALL_MAN} ${WRKSRC}/ddup.1.gz ${PREFIX}/man/man1
25
	${INSTALL_DATA} ${WRKSRC}/ddup.conf ${PREFIX}/etc/ddup.conf.default
26
	${MKDIR} ${PREFIX}/share/doc/ddup
38
	${MKDIR} ${PREFIX}/share/doc/ddup
27
	${INSTALL_MAN} ${WRKSRC}/INSTALL-C ${PREFIX}/share/doc/ddup
39
	${INSTALL_MAN} ${WRKSRC}/INSTALL-C ${PREFIX}/share/doc/ddup
28
	${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/ddup
40
	${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/ddup
41
	${INSTALL_MAN} ${WRKSRC}/COPYING ${PREFIX}/share/doc/ddup
42
43
post-install:
29
	strip ${PREFIX}/sbin/ddup
44
	strip ${PREFIX}/sbin/ddup
45
	cat pkg/MESSAGE
30
46
31
.include <bsd.port.mk>
47
.include <bsd.port.mk>
(-)ddup/files/md5 (-1 / +1 lines)
Line 1 Link Here
1
MD5 (ddup-2.1.tar.gz) = 3dd30ae02503b23b47a61e428ac9fdcb
1
MD5 (ddup-2.2Dm.tar.gz) = d05ac8fda0409d8e9bb8e964aa94104c
(-)ddup/patches/patch-ab (-49 lines)
Lines 1-49 Link Here
1
--- Makefile.orig	Mon Jan 31 21:08:49 2000
2
+++ Makefile	Wed Feb  9 18:56:37 2000
3
@@ -2,14 +2,14 @@
4
 # $Id: Makefile,v 2.6 2000/02/01 02:07:43 thomas Exp thomas $
5
 # Change these options
6
 
7
-CC = gcc
8
-INSTALL_PATH = /usr/sbin/bin
9
+CC ?= gcc
10
+INSTALL_PATH = ${PREFIX}/sbin
11
 
12
 # DEBUG = -g
13
 DEBUG =
14
 
15
 # For Linux and others
16
-DEFINES =
17
+DEFINES = -DCONFIGFILE=\"${PREFIX}/etc/ddup.conf\"
18
 LIBS =
19
 
20
 # For AIX
21
@@ -21,22 +21,22 @@
22
 all : ddup
23
 
24
 ddup : ddup.o parse_config.o parse_option.o getopt.o getopt1.o
25
-	${CC} ${DEFINES} ${DEBUG} -o ddup ddup.o getopt.o getopt1.o parse_config.o parse_option.o ${LIBS}
26
+	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -o ddup ddup.o getopt.o getopt1.o parse_config.o parse_option.o ${LIBS}
27
 
28
 ddup.o : ddup.c
29
-	${CC} ${DEFINES} ${DEBUG} -c ddup.c
30
+	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c ddup.c
31
 
32
 getopt.o : getopt.c
33
-	${CC} ${DEFINES} ${DEBUG} -c getopt.c
34
+	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c getopt.c
35
 
36
 getopt1.o : getopt1.c
37
-	${CC} ${DEFINES} ${DEBUG} -c getopt1.c
38
+	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c getopt1.c
39
 
40
 parse_config.o : parse_config.c
41
-	${CC} ${DEFINES} ${DEBUG} -c parse_config.c
42
+	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c parse_config.c
43
 
44
 parse_option.o : parse_option.c
45
-	${CC} ${DEFINES} ${DEBUG} -c parse_option.c
46
+	${CC} ${CFLAGS} ${DEFINES} ${DEBUG} -c parse_option.c
47
 
48
 install : ddup
49
 	cp ddup ${INSTALL_PATH}/ddup
(-)ddup/patches/patch-ac (-11 lines)
Lines 1-11 Link Here
1
--- parse_config.c.orig	Mon Jan 17 16:56:33 2000
2
+++ parse_config.c	Wed Feb  9 18:57:17 2000
3
@@ -18,7 +18,7 @@
4
 void read_config(char **username_ptr, char **pass_ptr)
5
 {
6
   FILE *fptr;
7
-  char *file_name = "/etc/ddup.conf";
8
+  char *file_name = CONFIGFILE;
9
   char line[1024];
10
   char *string;
11
   int x = 0;
(-)ddup/patches/patch-ad (-22 / +10 lines)
Lines 1-28 Link Here
1
--- testip.orig	Wed Feb  9 19:06:02 2000
1
--- testip.orig	Sat Feb 19 13:31:53 2000
2
+++ testip	Wed Feb  9 19:07:11 2000
2
+++ testip	Sat Feb 19 13:33:40 2000
3
@@ -3,11 +3,13 @@
3
@@ -5,7 +5,7 @@
4
 # This defines the host as the first argument (eg. testip gandy.dyndns.org
5
 # makes HOST = gandy.dyndns.org
6
 HOST=$1
4
 HOST=$1
7
+
8
 # Change IFACE to your network interface name
5
 # Change IFACE to your network interface name
9
-IFACE="ppp0"
6
 IFACE="tun0"
10
+IFACE="tun0"
7
-IFCHECK=$(/sbin/ifconfig|grep -1 $IFACE|cut -s -d ' ' -f12|grep addr|cut -d ':' -f2)
11
 IFCHECK=$(/sbin/ifconfig|grep -1 $IFACE|cut -s -d ' ' -f12|grep addr|cut -d ':' -f2)
8
+IFCHECK=$(/sbin/ifconfig -a|grep -1 $IFACE|cut -s -d ' ' -f12|grep addr|cut -d ':' -f2)
12
+
13
 # This line uses the 'host' command to check DNS you can comment this out
9
 # This line uses the 'host' command to check DNS you can comment this out
14
-#if you use the nslookup one
10
 #if you use the nslookup one
15
+# if you use the nslookup one
16
 DNSCHECK=$(host $HOST|cut -d ' ' -f4)
11
 DNSCHECK=$(host $HOST|cut -d ' ' -f4)
17
 
12
@@ -21,4 +21,3 @@
18
 # This line uses the 'nslookup' command to check DNS you can uncomment
13
 	#for options
19
@@ -18,7 +20,6 @@
14
 	/usr/local/sbin/ddup --host $HOST --wildcard
20
 	echo "We're ok"
21
 else	
22
 	# This can be changed for proxy support or mx check the manpage
23
-	#for options
24
-	/etc/ppp/ddup --host $HOST --wildcard
25
+	# for options
26
+	/usr/local/sbin/ddup --host $HOST --wildcard
27
 fi
15
 fi
28
-	
16
-	
(-)ddup/pkg/DESCR (-3 / +2 lines)
Lines 4-10 Link Here
4
DD-UP is a program that is used to update a host
4
DD-UP is a program that is used to update a host
5
provided by the Free DynDNS service of dyndns.org.
5
provided by the Free DynDNS service of dyndns.org.
6
6
7
WWW: http://www.gandy.dyndns.org/~thomas/ddup.shtml
7
WWW: http://ddup.sourceforce.net/
8
8
9
- Chris
9
EMAIL: cjm2@altavista.net
10
cjm2@altavista.net
(-)ddup/pkg/MESSAGE (+5 lines)
Line 0 Link Here
1
********************************************************
2
*** If you are upgrading or are a first time user    ***
3
*** you MUST make your configuration file by typing  ***
4
*** ddup --makeconf                                  ***
5
********************************************************
(-)ddup/pkg/PLIST (-1 / +1 lines)
Lines 1-6 Link Here
1
etc/ddup.conf.default
2
sbin/ddup
1
sbin/ddup
3
sbin/testip
2
sbin/testip
4
share/doc/ddup/README
3
share/doc/ddup/README
5
share/doc/ddup/INSTALL-C
4
share/doc/ddup/INSTALL-C
5
share/doc/ddup/COPYING
6
@dirrm share/doc/ddup
6
@dirrm share/doc/ddup

Return to bug 16822