summaryrefslogtreecommitdiffstats
path: root/dns/mydns-ng/Makefile
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2002-08-05 23:35:09 +0000
committeranders <anders@FreeBSD.org>2002-08-05 23:35:09 +0000
commit78a07efdd4e98ae833f6749202aefc6b0bf1bd6f (patch)
tree5a872ce8cc9913e12079a820dbf077dfe4a2fea4 /dns/mydns-ng/Makefile
parente39290d859867b1eabb5c719e42e06c22affe2a9 (diff)
downloadFreeBSD-ports-78a07efdd4e98ae833f6749202aefc6b0bf1bd6f.zip
FreeBSD-ports-78a07efdd4e98ae833f6749202aefc6b0bf1bd6f.tar.gz
Add mydns, the MySQL DNS server.
PR: 41132 Submitted by: Simon Dick <simond@irrelevant.org>
Diffstat (limited to 'dns/mydns-ng/Makefile')
-rw-r--r--dns/mydns-ng/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/dns/mydns-ng/Makefile b/dns/mydns-ng/Makefile
new file mode 100644
index 0000000..b2c78dd
--- /dev/null
+++ b/dns/mydns-ng/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: mydns
+# Date created: 23 July 2002
+# Whom: Simon Dick <simond@irrelevant.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mydns
+PORTVERSION= 0.8.2
+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
+USE_REINPLACE= yes
+
+MAN5= mydns.conf.5
+MAN8= mydns.8
+
+DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART README TODO
+
+.include <bsd.port.pre.mk>
+
+.if !defined(NOPORTDOCS)
+USE_PERL5= yes
+.else
+pre-configure:
+ @${REINPLACE_CMD} -E -e "s|^(all: vars manpages info) html-doc|\1|" \
+ ${WRKSRC}/doc/Makefile.in
+.endif
+
+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
+ @install-info ${PREFIX}/info/mydns.info ${PREFIX}/info/dir
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d -m 0755 ${DOCSDIR}/html ${DOCSDIR}/extras
+.for f in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
+.endfor
+ @${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}/html/
+ @${INSTALL_DATA} ${WRKSRC}/extras/admin.php ${DOCSDIR}/extras/
+ @${INSTALL_DATA} ${WRKSRC}/extras/README ${DOCSDIR}/extras/
+.endif
+ @${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
+ @${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud