1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Alex Dupre 2014-05-12 15:43:44 +00:00
parent f31c1c5aea
commit ae039cc57f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353839
2 changed files with 19 additions and 25 deletions

View File

@ -10,10 +10,13 @@ MASTER_SITES= http://mydns.bboy.net/download/
MAINTAINER= ale@FreeBSD.org
COMMENT= DNS server designed to utilize the MySQL database
LICENSE= GPLv2
OPTIONS_DEFINE= ALIAS OPENSSL PGSQL NLS DOCS NLS
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-confdir=${PREFIX}/etc
USES= iconv
USE_BZIP2= yes
USES= tar:bzip2 iconv
USE_RC_SUBR= mydns
@ -21,15 +24,9 @@ SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
INFO= mydns
MAN5= mydns.conf.5
MAN8= mydns.8 mydnscheck.8 mydnsexport.8 mydnsimport.8 mydnsptrconvert.8 mydns-conf.8
DOCS= AUTHORS COPYING ChangeLog NEWS QUICKSTART.mysql QUICKSTART.postgres README TODO
NO_STAGE= yes
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALIAS}
@ -65,27 +62,17 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
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"
@${ECHO} " WITH_OPENSSL=yes Enable OpenSSL (needed if MySQL is linked with OpenSSL)"
@${ECHO} ""
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/contrib
@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
.for f in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
.endfor
@${INSTALL_DATA} ${WRKSRC}/contrib/*.php ${DOCSDIR}/contrib/
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pl ${DOCSDIR}/contrib/
@${INSTALL_DATA} ${WRKSRC}/contrib/*.pm ${DOCSDIR}/contrib/
@${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/
@${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
@${PREFIX}/sbin/mydns --dump-config >${PREFIX}/etc/mydns.conf.sample
@${CAT} ${PKGMESSAGE}
@${STAGEDIR}${PREFIX}/sbin/mydns --dump-config > ${STAGEDIR}${PREFIX}/etc/mydns.conf.sample
.include <bsd.port.mk>

View File

@ -4,6 +4,13 @@ bin/mydnsexport
bin/mydnsimport
bin/mydnsptrconvert
etc/mydns.conf.sample
man/man5/mydns.conf.5.gz
man/man8/mydns.8.gz
man/man8/mydnscheck.8.gz
man/man8/mydnsexport.8.gz
man/man8/mydnsimport.8.gz
man/man8/mydnsptrconvert.8.gz
man/man8/mydns-conf.8.gz
sbin/mydns
%%NLS%%share/locale/es/LC_MESSAGES/mydns.mo
%%NLS%%share/locale/fr/LC_MESSAGES/mydns.mo