freebsd-ports/dns/mydns/Makefile

78 lines
1.9 KiB
Makefile
Raw Normal View History

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