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

(-)mydns/Makefile (-14 / +6 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	mydns
8
PORTNAME=	mydns
9
PORTVERSION=	0.10.0
9
PORTVERSION=	0.10.1
10
PORTREVISION=	3
10
PORTREVISION=	0
11
CATEGORIES=	dns databases
11
CATEGORIES=	dns databases
12
MASTER_SITES=	http://mydns.bboy.net/download/
12
MASTER_SITES=	http://mydns.bboy.net/download/
13
13
Lines 28-35 Link Here
28
28
29
DOCS=		AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
29
DOCS=		AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
30
30
31
.include <bsd.port.pre.mk>
32
33
.if defined (WITH_ALIAS)
31
.if defined (WITH_ALIAS)
34
CONFIGURE_ARGS+=--enable-alias
32
CONFIGURE_ARGS+=--enable-alias
35
.endif
33
.endif
Lines 39-57 Link Here
39
.endif
37
.endif
40
38
41
.if defined (WITH_PGSQL)
39
.if defined (WITH_PGSQL)
42
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql7
40
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql-client
43
CONFIGURE_ARGS+=--without-mysql
41
CONFIGURE_ARGS+=--without-mysql
44
PKGNAMESUFFIX=	-pg
42
PKGNAMESUFFIX=	-pg
45
.else
43
.else
46
CONFIGURE_ARGS+=--without-pgsql
44
CONFIGURE_ARGS+=--without-pgsql
47
PKGNAMESUFFIX=	-mysql
45
PKGNAMESUFFIX=	-mysql
48
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
46
USE_MYSQL=	yes
49
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
50
.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
51
LIB_DEPENDS+=	mysqlclient.14:${PORTSDIR}/databases/mysql41-client
52
.else
53
LIB_DEPENDS+=	mysqlclient.12:${PORTSDIR}/databases/mysql40-client
54
.endif
55
.endif
47
.endif
56
48
57
pre-fetch:
49
pre-fetch:
Lines 60-66 Link Here
60
	@${ECHO} ""
52
	@${ECHO} ""
61
	@${ECHO} "      WITH_PGSQL=yes          Build with PostgreSQL support"
53
	@${ECHO} "      WITH_PGSQL=yes          Build with PostgreSQL support"
62
	@${ECHO} "      WITH_ALIAS=yes          Enable server side aliases"
54
	@${ECHO} "      WITH_ALIAS=yes          Enable server side aliases"
63
	@${ECHO} "      WITH_OPENSSL=yes        Enable OpenSSL (needed if MySQL is linked with OpenSSL"
55
	@${ECHO} "      WITH_OPENSSL=yes        Enable OpenSSL (needed if MySQL is linked with OpenSSL)"
64
	@${ECHO} ""
56
	@${ECHO} ""
65
57
66
post-install:
58
post-install:
Lines 78-81 Link Here
78
	@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
70
	@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
79
	@${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE}
71
	@${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE}
80
72
81
.include <bsd.port.post.mk>
73
.include <bsd.port.mk>
(-)mydns/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (mydns-0.10.0.tar.bz2) = 4791990d1017fa85461dcc9fa31089f7
1
MD5 (mydns-0.10.1.tar.bz2) = a931f7fdd3398dbd441ef8cce12793c6
(-)mydns/files/patch-src::mydns::conf.c (-5 / +5 lines)
Lines 1-11 Link Here
1
--- src/mydns/conf.c.orig	Fri Nov 28 12:04:45 2003
1
--- src/mydns/conf.c.orig	Fri Dec 12 06:02:22 2003
2
+++ src/mydns/conf.c	Fri Nov 28 12:04:58 2003
2
+++ src/mydns/conf.c	Tue Dec 16 08:16:03 2003
3
@@ -351,7 +351,7 @@
3
@@ -429,7 +429,7 @@
4
 
4
 
5
 	/* Set additional where clauses if provided */
5
 	/* Set additional where clauses if provided */
6
 	mydns_set_soa_where_clause(conf_get(&Conf, "soa-where", NULL));
6
 	mydns_set_soa_where_clause(conf_get(&Conf, "soa-where", NULL));
7
-	mydns_set_rr_where_clause(conf_get(&Conf, "soa-where", NULL));
7
-	mydns_set_rr_where_clause(conf_get(&Conf, "soa-where", NULL));
8
+	mydns_set_rr_where_clause(conf_get(&Conf, "rr-where", NULL));
8
+	mydns_set_rr_where_clause(conf_get(&Conf, "rr-where", NULL));
9
 }
10
 /*--- load_config() -----------------------------------------------------------------------------*/
11
 
9
 
10
 	/* Set recursive server if specified */
11
 	conf_set_recursive();

Return to bug 60289