1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add LICENSE

- Don't use a suffix based on selected options
- Add an entry to UPDATING about this
- Use options helpers
- Improve WWW

PR:		ports/191563
Submitted by:	gaod@hychen.org
This commit is contained in:
Danilo Egea Gondolfo 2014-07-24 19:31:09 +00:00
parent 26077569aa
commit 0c1b1d78ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362839
3 changed files with 38 additions and 32 deletions

View File

@ -5,6 +5,17 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20140724:
AFFECTS: users of dns/mydns-ng
AUTHOR: danilo@FreeBSD.org
The dns/mydns-ng port no longer has the suffix (-mysql|-pgsql). Before
you update this port the old one must be removed:
pkg remove mydns-ng-mysql
or
pkg remove mysql-ng-pgsql
20140723:
AFFECTS: users of devel/libevent

View File

@ -3,7 +3,7 @@
PORTNAME= mydns-ng
PORTVERSION= 1.2.8.31
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= dns databases
MASTER_SITES= SF/${PORTNAME}/mydns/${PORTVERSION}
DISTNAME= mydns-${PORTVERSION}
@ -11,6 +11,8 @@ DISTNAME= mydns-${PORTVERSION}
MAINTAINER= gaod@hychen.org
COMMENT= Next Generation DNS Server for sql based DNS services
LICENSE= GPLv2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc
USES= iconv
@ -20,42 +22,35 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
INFO= mydns
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
OPTIONS_DEFINE= DOCS PGSQL ALIAS SSL NLS
OPTIONS_DEFAULT= ALIAS
OPTIONS_DEFINE= DOCS ALIAS SSL NLS
OPTIONS_SINGLE= DATABASE
OPTIONS_SINGLE_DATABASE= PGSQL MYSQL
OPTIONS_DEFAULT= ALIAS MYSQL
ALIAS_DESC= Server side aliasas
ALIAS_CONFIGURE_ENABLE= alias
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
ALIAS_CONFIGURE_ENABLE= alias
.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL=yes
CONFIGURE_ARGS+=--with-openssl \
--with-openssl-include=${OPENSSLINC} \
--with-openssl-lib=${OPENSSLLIB}
.endif
SSL_USE= OPENSSL=yes
SSL_CONFIGURE_ON= --with-openssl \
--with-openssl-include=${OPENSSLINC} \
--with-openssl-lib=${OPENSSLLIB}
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--without-mysql \
--with-pgsql-include=${LOCALBASE}/include \
--with-pgsql-lib=${LOCALBASE}/lib
PKGNAMESUFFIX= -pgsql
.else
CONFIGURE_ARGS+=--without-pgsql \
--with-mysql-include=${LOCALBASE}/include/mysql \
--with-mysql-lib=${LOCALBASE}/lib/mysql
PKGNAMESUFFIX= -mysql
USE_MYSQL= yes
.endif
PGSQL_USE= PGSQL=yes
PGSQL_CONFIGURE_ON= --with-pgsql \
--with-pgsql-include=${LOCALBASE}/include \
--with-pgsql-lib=${LOCALBASE}/lib
PGSQL_CONFIGURE_OFF= --without-pgsql
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
CONFIGURE_ARGS+=--with-included-gettext
USES+= gettext
PLIST_SUB+= NLS=""
.endif
MYSQL_USE= MYSQL=yes
MYSQL_CONFIGURE_ON= --with-mysql \
--with-mysql-include=${LOCALBASE}/include/mysql \
--with-mysql-lib=${LOCALBASE}/lib/mysql
MYSQL_CONFIGURE_OFF= --without-mysql
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib

View File

@ -10,4 +10,4 @@ produced by Don Moore.
- 12-May-2004 Don Moore <bboy@bboy.net>
- 23-January-2009 Howard Wilkinsin <howard@cohtech.com>
WWW: http://sourceforge.net/projects/mydns-ng/
WWW: http://sourceforge.net/projects/mydns-ng/