summaryrefslogtreecommitdiffstats
path: root/dns/mydns-ng/Makefile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2003-01-03 18:57:59 +0000
committerijliao <ijliao@FreeBSD.org>2003-01-03 18:57:59 +0000
commite9b02b6de79ee97a0c2ae40430ae711c08bcbd4f (patch)
tree89ef2c93b4fdd26ae0baa32c9e258cba679c103d /dns/mydns-ng/Makefile
parentc7c298fe40c759a9f8ff44ec490ffc01c5484efa (diff)
downloadFreeBSD-ports-e9b02b6de79ee97a0c2ae40430ae711c08bcbd4f.zip
FreeBSD-ports-e9b02b6de79ee97a0c2ae40430ae711c08bcbd4f.tar.gz
upgrade to 0.9.5
PR: 46354 Submitted by: maintainer
Diffstat (limited to 'dns/mydns-ng/Makefile')
-rw-r--r--dns/mydns-ng/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/dns/mydns-ng/Makefile b/dns/mydns-ng/Makefile
index 99b8a72..08632ba 100644
--- a/dns/mydns-ng/Makefile
+++ b/dns/mydns-ng/Makefile
@@ -6,14 +6,12 @@
#
PORTNAME= mydns
-PORTVERSION= 0.9.3
+PORTVERSION= 0.9.5
CATEGORIES= net databases
MASTER_SITES= http://mydns.bboy.net/download/
MAINTAINER= simond@irrelevant.org
-LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-confdir=${PREFIX}/etc --without-libiconv-prefix
USE_BZIP2= yes
@@ -26,6 +24,14 @@ DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART README TODO
.include <bsd.port.pre.mk>
+.if defined (WITH_PGSQL)
+LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
+CONFIGURE_ARGS+= --without-mysql
+.else
+LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
+CONFIGURE_ARGS+= --without-pgsql
+.endif
+
.if !defined(NOPORTDOCS)
USE_PERL5= yes
.else
@@ -34,6 +40,9 @@ pre-configure:
${WRKSRC}/doc/Makefile.in
.endif
+post-build:
+ cd ${WRKSRC}/doc && ${MAKE} html
+
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
OpenPOWER on IntegriCloud