aboutsummaryrefslogtreecommitdiff
path: root/dns/mydns-ng
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-09-27 04:08:21 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-09-27 04:08:21 +0000
commitda61f14a6cb08c8b2c17f42d99d9a567771fe9e5 (patch)
treeafdaa15b872a60cb1dfd138b5cd13af0b4072147 /dns/mydns-ng
parent0dc801978b0d85445ab83e44142d71252289ca4c (diff)
downloadports-da61f14a6cb08c8b2c17f42d99d9a567771fe9e5.tar.gz
ports-da61f14a6cb08c8b2c17f42d99d9a567771fe9e5.zip
Notes
Diffstat (limited to 'dns/mydns-ng')
-rw-r--r--dns/mydns-ng/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/dns/mydns-ng/Makefile b/dns/mydns-ng/Makefile
index 4f466f0a5810..545070c424d1 100644
--- a/dns/mydns-ng/Makefile
+++ b/dns/mydns-ng/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mydns
PORTVERSION= 0.10.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= dns databases
MASTER_SITES= http://mydns.bboy.net/download/
@@ -31,6 +31,14 @@ DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres READM
.include <bsd.port.pre.mk>
+.if defined (WITH_ALIAS)
+CONFIGURE_ARGS+=--enable-alias
+.endif
+
+.if defined (WITH_OPENSSL)
+CONFIGURE_ARGS+=--with-openssl
+.endif
+
.if defined (WITH_PGSQL)
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
CONFIGURE_ARGS+=--without-mysql
@@ -47,6 +55,15 @@ LIB_DEPENDS+= mysqlclient.12:${PORTSDIR}/databases/mysql40-client
.endif
.endif
+pre-fetch:
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " WITH_PGSQL=yes Build with PostgreSQL support"
+ @${ECHO} " WITH_ALIAS=yes Enable server side aliases"
+ @${ECHO} " WITH_OPENSSL=yes Enable OpenSSL (needed if MySQL is linked with OpenSSL"
+ @${ECHO} ""
+
post-install:
@${SED} 's|%%%PREFIX%%%|${PREFIX}|g' < ${FILESDIR}/mydns.sh > ${WRKSRC}/mydns.sh
@${INSTALL_SCRIPT} ${WRKSRC}/mydns.sh ${PREFIX}/etc/rc.d/mydns.sh.sample