aboutsummaryrefslogtreecommitdiffstats
path: root/dns/maradns/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'dns/maradns/Makefile')
-rw-r--r--dns/maradns/Makefile98
1 files changed, 57 insertions, 41 deletions
diff --git a/dns/maradns/Makefile b/dns/maradns/Makefile
index 904086682ef0..8dafac2e9197 100644
--- a/dns/maradns/Makefile
+++ b/dns/maradns/Makefile
@@ -6,10 +6,9 @@
#
PORTNAME= maradns
-PORTVERSION= 1.0.30
+PORTVERSION= 1.2.01
CATEGORIES= dns
-MASTER_SITES= http://www.maradns.org/download/ \
- http://maradns.3va.net/download/ \
+MASTER_SITES= http://www.maradns.org/download/1.2/${PORTVERSION}/ \
http://kapranoff.ru/~kappa/files/
MAINTAINER= alex@kapranoff.ru
@@ -24,9 +23,10 @@ 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
+MAN1= askmara.1 getzone.1 fetchzone.1
+MAN5= mararc.5 csv1.5 csv2.5 csv2_txt.5
+MAN8= maradns.8 zoneserver.8 duende.8
+#MANLANG= "" fr.ISO8859-1
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
@@ -37,52 +37,68 @@ post-patch:
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_PROGRAM} ${WRKSRC}/tcp/getzone ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tcp/fetchzone ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tcp/zoneserver ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/tools/duende ${PREFIX}/bin
${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/fetchzone.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/en/man/maradns.8 ${MANPREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/en/man/zoneserver.8 ${MANPREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/duende.8 ${MANPREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/mararc.5 ${MANPREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/csv1.5 ${MANPREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/csv2.5 ${MANPREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/csv2_txt.5 ${MANPREFIX}/man/man5
+# @${MKDIR} ${MANPREFIX}/man/fr.ISO8859-1/man1
+# @${MKDIR} ${MANPREFIX}/man/fr.ISO8859-1/man5
+# @${MKDIR} ${MANPREFIX}/man/fr.ISO8859-1/man8
+# ${INSTALL_MAN} ${WRKSRC}/doc/fr/man/askmara.1 ${MANPREFIX}/man/fr.ISO8859-1/man1
+# ${INSTALL_MAN} ${WRKSRC}/doc/fr/man/getzone.1 ${MANPREFIX}/man/fr.ISO8859-1/man1
+# ${INSTALL_MAN} ${WRKSRC}/doc/fr/man/csv1.5 ${MANPREFIX}/man/fr.ISO8859-1/man5
+# ${INSTALL_MAN} ${WRKSRC}/doc/fr/man/mararc.5 ${MANPREFIX}/man/fr.ISO8859-1/man5
+# ${INSTALL_MAN} ${WRKSRC}/doc/fr/man/maradns.8 ${MANPREFIX}/man/fr.ISO8859-1/man8
+# ${INSTALL_MAN} ${WRKSRC}/doc/fr/man/zoneserver.8 ${MANPREFIX}/man/fr.ISO8859-1/man8
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_full_mararc \
+ ${PREFIX}/etc/mararc.sample
${MKDIR} ${PREFIX}/etc/maradns
- ${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_csv1 \
- ${PREFIX}/etc/maradns/example_csv1
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_csv2 \
+ ${PREFIX}/etc/maradns/example_csv2
@${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
+ '-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
+ '-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
-
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/examples/* \
+ ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}/fr
+ ${INSTALL_DATA} ${WRKSRC}/doc/fr/examples/* \
+ ${EXAMPLESDIR}/fr
.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
+ @${MKDIR} ${DOCSDIR}/en
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/*.* \
+ ${DOCSDIR}/en
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/QuickStart \
+ ${DOCSDIR}/en
+ ${INSTALL_DATA} ${WRKSRC}/doc/en/README \
+ ${DOCSDIR}/en
+ ${CP} -R ${WRKSRC}/doc/en/misc ${DOCSDIR}/en
+ ${CP} -R ${WRKSRC}/doc/en/pdf ${DOCSDIR}/en
+ ${CP} -R ${WRKSRC}/doc/en/tutorial ${DOCSDIR}/en
+ ${CP} -R ${WRKSRC}/doc/en/text ${DOCSDIR}/en
+ @${MKDIR} ${DOCSDIR}/fr
+ ${INSTALL_DATA} ${WRKSRC}/doc/fr/*.* \
+ ${DOCSDIR}/fr
+ ${INSTALL_DATA} ${WRKSRC}/doc/fr/QuickStart \
+ ${DOCSDIR}/fr
+ ${CP} -R ${WRKSRC}/doc/fr/tutorial ${DOCSDIR}/fr
.endif
.include <bsd.port.mk>