1 # Created by: Simon Dick <simond@irrelevant.org>
7 CATEGORIES= dns databases
8 MASTER_SITES= http://mydns.bboy.net/download/
10 MAINTAINER= ale@FreeBSD.org
11 COMMENT= DNS server designed to utilize the MySQL database
15 OPTIONS_DEFINE= ALIAS OPENSSL PGSQL NLS DOCS NLS
18 CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc
23 SUB_FILES= pkg-message
27 DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
29 .include <bsd.port.options.mk>
31 .if ${PORT_OPTIONS:MALIAS}
32 CONFIGURE_ARGS+=--enable-alias
35 .if ${PORT_OPTIONS:MOPENSSL}
37 CONFIGURE_ARGS+=--with-openssl \
38 --with-openssl-include=${OPENSSLINC} \
39 --with-openssl-lib=${OPENSSLLIB}
42 .if ${PORT_OPTIONS:MPGSQL}
44 CONFIGURE_ARGS+=--without-mysql \
45 --with-pgsql-include=${LOCALBASE}/include \
46 --with-pgsql-lib=${LOCALBASE}/lib
50 CONFIGURE_ARGS+=--without-pgsql \
51 --with-mysql-include=${LOCALBASE}/include/mysql \
52 --with-mysql-lib=${LOCALBASE}/lib/mysql
56 .if ${PORT_OPTIONS:MNLS}
60 CONFIGURE_ARGS+=--disable-nls
61 PLIST_SUB+= NLS="@comment "
65 .if ${PORT_OPTIONS:MDOCS}
66 @${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
68 @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
70 @${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${STAGEDIR}${DOCSDIR}/contrib/
71 @${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${STAGEDIR}${DOCSDIR}/contrib/
72 @${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${STAGEDIR}${DOCSDIR}/contrib/
73 @${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/contrib/
75 @${STAGEDIR}${PREFIX}/sbin/mydns --dump-config > ${STAGEDIR}${PREFIX}/etc/mydns.conf.sample
77 .include <bsd.port.mk>