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> |