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$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mydns
|
2004-05-24 11:01:16 +02:00
|
|
|
PORTVERSION= 0.11.0
|
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
|
|
|
|
|
|
|
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
|
2004-03-14 07:17:56 +01:00
|
|
|
USE_LIBTOOL_VER= 13
|
2002-08-06 01:35:09 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
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
|
|
|
|
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)
|
|
|
|
USE_OPENSSL= yes
|
2003-09-27 06:08:21 +02:00
|
|
|
CONFIGURE_ARGS+=--with-openssl
|
|
|
|
.endif
|
|
|
|
|
2004-02-11 23:35:34 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
2004-05-25 11:19:42 +02:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
2004-02-11 23:35:34 +01:00
|
|
|
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
2003-04-07 17:50:42 +02:00
|
|
|
CONFIGURE_ARGS+=--without-mysql
|
|
|
|
PKGNAMESUFFIX= -pg
|
2003-01-03 19:57:59 +01:00
|
|
|
.else
|
2003-04-07 17:50:42 +02:00
|
|
|
CONFIGURE_ARGS+=--without-pgsql
|
|
|
|
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
|
|
|
|
2004-07-10 21:07:27 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-02-23 06:42:31 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
|
|
|
|
BROKEN= "Does not compile on alpha 5.x"
|
|
|
|
.endif
|
|
|
|
|
2003-09-27 06:08:21 +02: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 11:00:16 +01:00
|
|
|
@${ECHO} " WITH_OPENSSL=yes Enable OpenSSL (needed if MySQL is linked with OpenSSL)"
|
2003-09-27 06:08:21 +02:00
|
|
|
@${ECHO} ""
|
|
|
|
|
2002-08-06 01:35:09 +02:00
|
|
|
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)
|
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/
|
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
|
|
|
|
@${SED} -e 's,%%%PREFIX%%%,${PREFIX},g' ${PKGMESSAGE}
|
|
|
|
|
2004-02-23 06:42:31 +01:00
|
|
|
.include <bsd.port.post.mk>
|