mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
0b9dd56e47
PR: ports/82858 Submitted by: Alex Kapranoff <kappa@rambler-co.ru> (maintainer)
89 lines
3.2 KiB
Makefile
89 lines
3.2 KiB
Makefile
# New ports collection makefile for: maradns
|
|
# Date created: 26 May 2001
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= maradns
|
|
PORTVERSION= 1.0.30
|
|
CATEGORIES= dns
|
|
MASTER_SITES= http://www.maradns.org/download/ \
|
|
http://maradns.3va.net/download/ \
|
|
http://kapranoff.ru/~kappa/files/
|
|
|
|
MAINTAINER= alex@kapranoff.ru
|
|
COMMENT= DNS server with focus on security and simplicity
|
|
|
|
USE_REINPLACE= yes
|
|
REINPLACE_ARGS= -i ""
|
|
USE_BZIP2= yes
|
|
MAKE_ENV= FLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
|
|
|
USE_RC_SUBR= yes
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
RC_SUBR=${RC_SUBR}
|
|
|
|
MAN1= askmara.1 getzone.1
|
|
MAN5= mararc.5
|
|
MAN8= maradns.8 zoneserver.8
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|/etc/mara|${PREFIX}/etc/mara|g'
|
|
@${FIND} ${WRKSRC} -name '*Makefile*' | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|make|\$$\{MAKE\}|g ; \
|
|
s|^FLAGS =|#FLAGS =|g ; \
|
|
s|-lpthread|${PTHREAD_LIBS}|g'
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tuzona/getzone ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tuzona/zoneserver ${PREFIX}/sbin
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_mararc \
|
|
${PREFIX}/etc/mararc.sample
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/askmara.1 ${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/getzone.1 ${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/mararc.5 ${MANPREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/maradns.8 ${MANPREFIX}/man/man8
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/zoneserver.8 ${MANPREFIX}/man/man8
|
|
${MKDIR} ${PREFIX}/etc/maradns
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_csv1 \
|
|
${PREFIX}/etc/maradns/example_csv1
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
'-e s!%%SERVICE%%!maradns!g' \
|
|
${FILESDIR}/rc_d.sh > ${PREFIX}/etc/rc.d/maradns.sh
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
'-e s!%%SERVICE%%!zoneserver!g' \
|
|
${FILESDIR}/rc_d.sh > ${PREFIX}/etc/rc.d/zoneserver.sh
|
|
@${CHMOD} 755 ${PREFIX}/etc/rc.d/maradns.sh
|
|
@${CHMOD} 755 ${PREFIX}/etc/rc.d/zoneserver.sh
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}/en/misc/spammers/hiddenonline
|
|
${INSTALL_DATA} ${WRKSRC}/00README.FIRST ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/QuickStart ${DOCSDIR}/en
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/README ${DOCSDIR}/en
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/faq.* ${DOCSDIR}/en
|
|
@${MKDIR} ${DOCSDIR}/en/examples
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_* \
|
|
${DOCSDIR}/en/examples
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/misc/0README ${DOCSDIR}/en/misc
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/misc/recursive-case-insensitive \
|
|
${DOCSDIR}/en/misc
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/*.* ${DOCSDIR}/en/misc
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/misc/spammers/*.* \
|
|
${DOCSDIR}/en/misc/spammers
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/misc/spammers/hiddenonline/*.* \
|
|
${DOCSDIR}/en/misc/spammers/hiddenonline
|
|
@${MKDIR} ${DOCSDIR}/en/tutorial
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/tutorial/*.* ${DOCSDIR}/en/tutorial
|
|
@${MKDIR} ${DOCSDIR}/fr/tutorial
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fr/QuickStart ${DOCSDIR}/fr
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fr/faq.* ${DOCSDIR}/fr
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fr/tutorial/*.* ${DOCSDIR}/fr/tutorial
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|