View | Details | Raw Unified | Return to bug 218723 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-25 / +25 lines)
Lines 9-23 MASTER_SITES= ftp://ftp.cc.umanitoba.ca/ Link Here
9
		http://atreides.freenix.no/~anders/ \
9
		http://atreides.freenix.no/~anders/ \
10
		ftp://totem.fix.no/pub/mirrors/misc/
10
		ftp://totem.fix.no/pub/mirrors/misc/
11
DISTNAME=	${PORTNAME}
11
DISTNAME=	${PORTNAME}
12
EXTRACT_SUFX=	.tar.Z
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Dynamic Relay Authorization Control, a POP-before-SMTP implementation
14
COMMENT=	Dynamic Relay Authorization Control, a POP-before-SMTP implementation
16
15
16
LICENSE=	DRAC
17
LICENSE_NAME=	DRAC
18
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
19
LICENSE_PERMS=	no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
20
17
PLIST_FILES=	sbin/rpc.dracd include/drac.h lib/libdrac.a \
21
PLIST_FILES=	sbin/rpc.dracd include/drac.h lib/libdrac.a \
18
		etc/dracd.allow-sample
22
		"@sample etc/dracd.allow.sample"
19
23
20
USE_CSTD=	gnu89
24
USE_CSTD=	gnu89
25
USES=		tar:Z
21
26
22
MAKE_JOBS_UNSAFE=	yes
27
MAKE_JOBS_UNSAFE=	yes
23
OPTIONS_DEFINE=		DB DOCS
28
OPTIONS_DEFINE=		DB DOCS
Lines 27-52 POSTFIX_DESC= Use POSTFIX Link Here
27
EXIM_DESC=		Use EXIM
32
EXIM_DESC=		Use EXIM
28
DB_DESC=		Use database with POSTFIX
33
DB_DESC=		Use database with POSTFIX
29
34
30
.include <bsd.port.options.mk>
35
POSTFIX_RUN_DEPENDS=	postfix:mail/postfix
31
36
EXIM_RUN_DEPENDS=	exim:mail/exim
32
DEFS=		-DWITH_TI_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
37
DOCS_PLIST_FILES=	man/man3/dracauth.3.gz man/man1/rpc.dracd.1.gz
33
38
POSTFIX_VARS=		DEFS+=-DTERM_KD
34
.if ${PORT_OPTIONS:MPOSTFIX}
39
EXIM_VARS=		DEFS+=-DTERM_KD -DREQ_HASH -DCIDR_KEY
35
DEFS+=		-DTERM_KD
40
DEFS=			-DWITH_TI_RPC -DFLOCK_LOCK -DGETHOST -DDASH_C
36
RUN_DEPENDS+=	postfix:mail/postfix
37
.if ${PORT_OPTIONS:MDB}
38
USES+=		bdb
39
.endif
40
.elif ${PORT_OPTIONS:MEXIM}
41
DEFS+=		-DTERM_KD -DREQ_HASH -DCIDR_KEY
42
RUN_DEPENDS+=	exim:mail/exim
43
.endif
44
41
45
NO_WRKSUBDIR=	yes
42
NO_WRKSUBDIR=	yes
46
USE_RC_SUBR=	dracd
43
USE_RC_SUBR=	dracd
47
44
48
.if ${PORT_OPTIONS:MDOCS}
45
.include <bsd.port.options.mk>
49
PLIST_FILES+=	man/man3/dracauth.3.gz man/man1/rpc.dracd.1.gz
46
47
.if ${PORT_OPTIONS:MPOSTFIX} && ${PORT_OPTIONS:MDB}
48
USES+=		bdb
50
.endif
49
.endif
51
50
52
.if defined(WITH_TI_RPC)
51
.if defined(WITH_TI_RPC)
Lines 84-97 post-patch: Link Here
84
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/rpc.dracd.1m
83
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/rpc.dracd.1m
85
84
86
do-install:
85
do-install:
87
	@${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${STAGEDIR}${PREFIX}/sbin/
86
	${INSTALL_PROGRAM} ${WRKSRC}/rpc.dracd ${STAGEDIR}${PREFIX}/sbin/
88
	@${INSTALL_DATA} ${WRKSRC}/drac.h ${STAGEDIR}${PREFIX}/include/
87
	${INSTALL_DATA} ${WRKSRC}/drac.h ${STAGEDIR}${PREFIX}/include/
89
	@${INSTALL_DATA} ${WRKSRC}/libdrac.a ${STAGEDIR}${PREFIX}/lib/
88
	${INSTALL_DATA} ${WRKSRC}/libdrac.a ${STAGEDIR}${PREFIX}/lib/
90
	@${INSTALL_DATA} ${WRKSRC}/dracd.allow-sample \
89
	${INSTALL_DATA} ${WRKSRC}/dracd.allow-sample \
91
		${STAGEDIR}${PREFIX}/etc/
90
		${STAGEDIR}${PREFIX}/etc/dracd.allow.sample
91
92
.if ${PORT_OPTIONS:MDOCS}
92
.if ${PORT_OPTIONS:MDOCS}
93
	@${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${STAGEDIR}${PREFIX}/man/man3/
93
	${INSTALL_MAN} ${WRKSRC}/dracauth.3 ${STAGEDIR}${PREFIX}/man/man3/
94
	@${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m \
94
	${INSTALL_MAN} ${WRKSRC}/rpc.dracd.1m \
95
		${STAGEDIR}${PREFIX}/man/man1/rpc.dracd.1
95
		${STAGEDIR}${PREFIX}/man/man1/rpc.dracd.1
96
.endif
96
.endif
97
97
(-)./files/patch-Makefile (-3 / +3 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	2003-01-12 21:45:12.000000000 +0100
1
--- Makefile.orig	2003-01-12 20:45:12 UTC
2
+++ Makefile	2014-04-04 23:35:46.000000000 +0200
2
+++ Makefile
3
@@ -5,9 +5,11 @@
3
@@ -5,9 +5,11 @@
4
 
4
 
5
 # Paths
5
 # Paths
Lines 15-21 Link Here
15
 
15
 
16
 # OS-Dependant settings
16
 # OS-Dependant settings
17
 
17
 
18
@@ -33,22 +35,19 @@
18
@@ -33,22 +35,19 @@ MAN = /usr/local/man/man
19
 # -DCIDR_KEY	# keys in CIDR format
19
 # -DCIDR_KEY	# keys in CIDR format
20
 # -DTERM_KD	# keys and data nul-terminated
20
 # -DTERM_KD	# keys and data nul-terminated
21
 
21
 
(-)./files/patch-rpc.dracd.1m (-4 / +4 lines)
Lines 1-6 Link Here
1
--- rpc.dracd.1m.old	Sun Jan 14 19:18:52 2001
1
--- rpc.dracd.1m.orig	1998-07-23 15:13:59 UTC
2
+++ rpc.dracd.1m	Sun Jan 14 19:19:28 2001
2
+++ rpc.dracd.1m
3
@@ -16,13 +16,13 @@
3
@@ -16,13 +16,13 @@ ftp.cc.umanitoba.ca:/src
4
 \f4rpc.dracd\f1
4
 \f4rpc.dracd\f1
5
 is the Dynamic Relay Authorization Control server.
5
 is the Dynamic Relay Authorization Control server.
6
 It uses the Berkeley db package to maintain a relay authorization
6
 It uses the Berkeley db package to maintain a relay authorization
Lines 16-22 Link Here
16
 If this file does not exist, all local IP addresses are permitted.
16
 If this file does not exist, all local IP addresses are permitted.
17
 .SS Allow File Format
17
 .SS Allow File Format
18
 The Allow File file consists of entries of the form:
18
 The Allow File file consists of entries of the form:
19
@@ -58,10 +58,10 @@
19
@@ -58,10 +58,10 @@ Use a different database file name.
20
 .SH FILES
20
 .SH FILES
21
 .PD 0
21
 .PD 0
22
 .TP 30
22
 .TP 30
(-)./files/patch-rpc.dracd.c (-6 / +6 lines)
Lines 1-5 Link Here
1
--- rpc.dracd.c.orig	Tue Nov 21 05:22:05 2000
1
--- rpc.dracd.c.orig	2003-01-12 20:22:22 UTC
2
+++ rpc.dracd.c	Sun Apr 29 20:41:31 2001
2
+++ rpc.dracd.c
3
@@ -8,7 +8,6 @@
3
@@ -8,7 +8,6 @@
4
 #include <errno.h>
4
 #include <errno.h>
5
 #include <syslog.h>
5
 #include <syslog.h>
Lines 8-20 Link Here
8
 #include <netconfig.h>
8
 #include <netconfig.h>
9
 #endif
9
 #endif
10
 #include <stdlib.h>
10
 #include <stdlib.h>
11
@@ -35,9 +34,6 @@
11
@@ -36,9 +35,6 @@
12
 #define DB_VERSION_MAJOR 1
13
 #endif
12
 #endif
14
 #include "drac.h"
13
 #include "drac.h"
15
-
14
 
16
-#define DBFILE "/etc/mail/dracd.db"
15
-#define DBFILE "/etc/mail/dracd.db"
17
-#define ALFILE "/etc/mail/dracd.allow"
16
-#define ALFILE "/etc/mail/dracd.allow"
18
 
17
-
19
 struct net_def {
18
 struct net_def {
20
     struct net_def *nd_next;
19
     struct net_def *nd_next;
20
     struct in_addr nd_mask;
(-)./files/patch-testing.c (-2 / +2 lines)
Lines 1-5 Link Here
1
--- testing.c.orig	1998-08-10 18:36:14.000000000 -0700
1
--- testing.c.orig	1998-08-11 01:36:14 UTC
2
+++ testing.c	2008-06-04 04:50:08.000000000 -0700
2
+++ testing.c
3
@@ -3,6 +3,7 @@
3
@@ -3,6 +3,7 @@
4
  */
4
  */
5
 
5
 

Return to bug 218723