2013-04-30 00:27:05 +02:00
|
|
|
# Created by: Simon Dick <simond@irrelevant.org>
|
2002-08-06 01:35:09 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mydns
|
2006-02-09 15:04:43 +01:00
|
|
|
PORTVERSION= 1.1.0
|
2018-11-10 19:12:57 +01:00
|
|
|
PORTREVISION= 8
|
2003-09-05 06:54:37 +02:00
|
|
|
CATEGORIES= dns databases
|
2002-08-06 01:35:09 +02:00
|
|
|
MASTER_SITES= http://mydns.bboy.net/download/
|
|
|
|
|
2004-01-18 11:50:15 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= DNS server designed to utilize the MySQL database
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2014-05-12 17:43:44 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= ALIAS OPENSSL PGSQL NLS DOCS NLS
|
|
|
|
|
2002-08-06 01:35:09 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-04-07 17:50:42 +02:00
|
|
|
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc
|
2014-05-12 17:43:44 +02:00
|
|
|
USES= tar:bzip2 iconv
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= mydns
|
2005-03-08 17:27:45 +01:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2003-08-21 18:41:12 +02:00
|
|
|
INFO= mydns
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2003-08-21 18:41:12 +02:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2013-04-30 00:30:35 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MALIAS}
|
2003-09-27 06:08:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-alias
|
|
|
|
.endif
|
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2017-03-15 15:45:30 +01:00
|
|
|
USES+= ssl
|
2005-10-17 08:19:06 +02:00
|
|
|
CONFIGURE_ARGS+=--with-openssl \
|
|
|
|
--with-openssl-include=${OPENSSLINC} \
|
|
|
|
--with-openssl-lib=${OPENSSLLIB}
|
2003-09-27 06:08:21 +02:00
|
|
|
.endif
|
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2014-11-22 21:40:08 +01:00
|
|
|
USES+= pgsql
|
2005-10-17 08:19:06 +02:00
|
|
|
CONFIGURE_ARGS+=--without-mysql \
|
|
|
|
--with-pgsql-include=${LOCALBASE}/include \
|
|
|
|
--with-pgsql-lib=${LOCALBASE}/lib
|
2003-04-07 17:50:42 +02:00
|
|
|
PKGNAMESUFFIX= -pg
|
2003-01-03 19:57:59 +01:00
|
|
|
.else
|
2005-10-17 08:19:06 +02:00
|
|
|
CONFIGURE_ARGS+=--without-pgsql \
|
|
|
|
--with-mysql-include=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql-lib=${LOCALBASE}/lib/mysql
|
2003-04-07 17:50:42 +02:00
|
|
|
PKGNAMESUFFIX= -mysql
|
2003-12-17 11:00:16 +01:00
|
|
|
USE_MYSQL= yes
|
2002-08-06 01:35:09 +02:00
|
|
|
.endif
|
2003-01-03 19:57:59 +01:00
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2004-07-10 21:07:27 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-08-06 01:35:09 +02:00
|
|
|
post-install:
|
2013-04-30 00:27:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-05-12 17:43:44 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
|
2002-08-06 01:35:09 +02:00
|
|
|
.for f in ${DOCS}
|
2014-05-12 17:43:44 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
2002-08-06 01:35:09 +02:00
|
|
|
.endfor
|
2014-05-12 17:43:44 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${STAGEDIR}${DOCSDIR}/contrib/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${STAGEDIR}${DOCSDIR}/contrib/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${STAGEDIR}${DOCSDIR}/contrib/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/contrib/
|
2002-08-06 01:35:09 +02:00
|
|
|
.endif
|
2014-05-12 17:43:44 +02:00
|
|
|
@${STAGEDIR}${PREFIX}/sbin/mydns --dump-config > ${STAGEDIR}${PREFIX}/etc/mydns.conf.sample
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2006-02-09 15:04:43 +01:00
|
|
|
.include <bsd.port.mk>
|