2002-08-05 23:35:09 +00:00
|
|
|
# New ports collection makefile for: mydns
|
|
|
|
# Date created: 23 July 2002
|
|
|
|
# Whom: Simon Dick <simond@irrelevant.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mydns
|
2006-02-09 14:04:43 +00:00
|
|
|
PORTVERSION= 1.1.0
|
2011-09-05 12:14:19 +00:00
|
|
|
PORTREVISION= 6
|
2003-09-05 04:54:37 +00:00
|
|
|
CATEGORIES= dns databases
|
2002-08-05 23:35:09 +00:00
|
|
|
MASTER_SITES= http://mydns.bboy.net/download/
|
|
|
|
|
2004-01-18 10:50:15 +00:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= DNS server designed to utilize the MySQL database
|
2002-08-05 23:35:09 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2003-04-07 15:50:42 +00:00
|
|
|
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc
|
2004-02-11 22:35:34 +00:00
|
|
|
USE_ICONV= yes
|
2002-08-05 23:35:09 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
2012-08-05 23:19:36 +00:00
|
|
|
USE_RC_SUBR= mydns
|
2005-03-08 16:27:45 +00:00
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2003-08-21 16:41:12 +00:00
|
|
|
INFO= mydns
|
2002-08-05 23:35:09 +00:00
|
|
|
MAN5= mydns.conf.5
|
2004-03-12 22:20:53 +00:00
|
|
|
MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-conf.8
|
2002-08-05 23:35:09 +00:00
|
|
|
|
2003-08-21 16:41:12 +00:00
|
|
|
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
|
2002-08-05 23:35:09 +00:00
|
|
|
|
2004-02-11 22:35:34 +00:00
|
|
|
.if defined(WITH_ALIAS)
|
2003-09-27 04:08:21 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-alias
|
|
|
|
.endif
|
|
|
|
|
2004-02-11 22:35:34 +00:00
|
|
|
.if defined(WITH_OPENSSL)
|
|
|
|
USE_OPENSSL= yes
|
2005-10-17 06:19:06 +00:00
|
|
|
CONFIGURE_ARGS+=--with-openssl \
|
|
|
|
--with-openssl-include=${OPENSSLINC} \
|
|
|
|
--with-openssl-lib=${OPENSSLLIB}
|
2003-09-27 04:08:21 +00:00
|
|
|
.endif
|
|
|
|
|
2004-02-11 22:35:34 +00:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 00:35:55 +00:00
|
|
|
USE_PGSQL= yes
|
2005-10-17 06:19:06 +00:00
|
|
|
CONFIGURE_ARGS+=--without-mysql \
|
|
|
|
--with-pgsql-include=${LOCALBASE}/include \
|
|
|
|
--with-pgsql-lib=${LOCALBASE}/lib
|
2003-04-07 15:50:42 +00:00
|
|
|
PKGNAMESUFFIX= -pg
|
2003-01-03 18:57:59 +00:00
|
|
|
.else
|
2005-10-17 06:19:06 +00:00
|
|
|
CONFIGURE_ARGS+=--without-pgsql \
|
|
|
|
--with-mysql-include=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql-lib=${LOCALBASE}/lib/mysql
|
2003-04-07 15:50:42 +00:00
|
|
|
PKGNAMESUFFIX= -mysql
|
2003-12-17 10:00:16 +00:00
|
|
|
USE_MYSQL= yes
|
2002-08-05 23:35:09 +00:00
|
|
|
.endif
|
2003-01-03 18:57:59 +00:00
|
|
|
|
2004-07-10 19:07:27 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2013-04-24 18:10:30 +00:00
|
|
|
USES+= gettext
|
2004-07-10 19:07:27 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-09-27 04:08:21 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_PGSQL=yes Build with PostgreSQL support"
|
|
|
|
@${ECHO} " WITH_ALIAS=yes Enable server side aliases"
|
2003-12-17 10:00:16 +00:00
|
|
|
@${ECHO} " WITH_OPENSSL=yes Enable OpenSSL (needed if MySQL is linked with OpenSSL)"
|
2003-09-27 04:08:21 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
|
2002-08-05 23:35:09 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-04-07 15:50:42 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/contrib
|
2002-08-05 23:35:09 +00:00
|
|
|
.for f in ${DOCS}
|
2003-04-07 15:50:42 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
2002-08-05 23:35:09 +00:00
|
|
|
.endfor
|
2003-08-21 16:41:12 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${DOCSDIR}/contrib/
|
2006-02-09 14:04:43 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${DOCSDIR}/contrib/
|
2004-02-11 22:35:34 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${DOCSDIR}/contrib/
|
2002-09-16 10:10:26 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/
|
2002-08-05 23:35:09 +00:00
|
|
|
.endif
|
|
|
|
@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
|
2005-03-08 16:27:45 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-08-05 23:35:09 +00:00
|
|
|
|
2006-02-09 14:04:43 +00:00
|
|
|
.include <bsd.port.mk>
|