2002-08-06 01:35:09 +02:00
|
|
|
# New ports collection makefile for: mydns
|
|
|
|
# Date created: 23 July 2002
|
|
|
|
# Whom: Simon Dick <simond@irrelevant.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2009-03-29 13:56:20 +02:00
|
|
|
PORTNAME= mydns-ng
|
2009-05-31 20:34:18 +02:00
|
|
|
PORTREVISION= 1
|
2009-03-29 13:56:20 +02:00
|
|
|
PORTVERSION= 1.2.8.27
|
2003-09-05 06:54:37 +02:00
|
|
|
CATEGORIES= dns databases
|
2009-03-29 13:56:20 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mydns-ng
|
|
|
|
DISTNAME= mydns-${PORTVERSION}
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2009-03-29 13:56:20 +02:00
|
|
|
MAINTAINER= gaod@hychen.org
|
|
|
|
COMMENT= A Next Generation DNS Server for sql based DNS services
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2009-03-29 13:56:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/mydns-${PORTVERSION:R}
|
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
|
2004-02-11 23:35:34 +01:00
|
|
|
USE_ICONV= yes
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2009-03-29 13:56:20 +02:00
|
|
|
USE_RC_SUBR= mydns
|
2005-03-08 17:27:45 +01:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2003-08-21 18:41:12 +02:00
|
|
|
INFO= mydns
|
2002-08-06 01:35:09 +02:00
|
|
|
MAN5= mydns.conf.5
|
2004-03-12 23:20:53 +01:00
|
|
|
MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-conf.8
|
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
|
|
|
|
2009-03-29 13:56:20 +02:00
|
|
|
OPTIONS= PGSQL "Build with PostgreSQL backend instead of MySQL" OFF \
|
|
|
|
ALIAS "Enable server side aliases" ON \
|
|
|
|
OPENSSL "Enable OpenSSL (if MySQL is linked with OpenSSL)" OFF \
|
|
|
|
NLS "Native Language Support with gettext" OFF
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-11 23:35:34 +01:00
|
|
|
.if defined(WITH_ALIAS)
|
2003-09-27 06:08:21 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-alias
|
|
|
|
.endif
|
|
|
|
|
2004-02-11 23:35:34 +01:00
|
|
|
.if defined(WITH_OPENSSL)
|
2009-03-29 13:56:20 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
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
|
|
|
|
|
2004-02-11 23:35:34 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2005-10-17 08:19:06 +02:00
|
|
|
CONFIGURE_ARGS+=--without-mysql \
|
|
|
|
--with-pgsql-include=${LOCALBASE}/include \
|
|
|
|
--with-pgsql-lib=${LOCALBASE}/lib
|
2009-03-29 13:56:20 +02:00
|
|
|
PKGNAMESUFFIX= -pgsql
|
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
|
|
|
|
2009-05-31 20:34:18 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2009-03-29 13:56:20 +02:00
|
|
|
CONFIGURE_ARGS+=--with-included-gettext
|
2004-07-10 21:07:27 +02:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-08-06 01:35:09 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-04-07 17:50:42 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}/contrib
|
2002-08-06 01:35:09 +02:00
|
|
|
.for f in ${DOCS}
|
2003-04-07 17:50:42 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
2002-08-06 01:35:09 +02:00
|
|
|
.endfor
|
2003-08-21 18:41:12 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${DOCSDIR}/contrib/
|
2006-02-09 15:04:43 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${DOCSDIR}/contrib/
|
2004-02-11 23:35:34 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${DOCSDIR}/contrib/
|
2002-09-16 12:10:26 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/
|
2002-08-06 01:35:09 +02:00
|
|
|
.endif
|
|
|
|
@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
|
2005-03-08 17:27:45 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-08-06 01:35:09 +02:00
|
|
|
|
2009-03-29 13:56:20 +02:00
|
|
|
.include <bsd.port.post.mk>
|