1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 661ea06fb18df6d2469b2bf824ffd93545a091af185362cbc738d1aa408210c3
10 PKG_DESCR
:= small and secure DNS server
14 PKG_URL
:= http
://www.maradns.org
15 PKG_SITES
:= http
://maradns.samiam.org
/download
/2.0/${PKG_VERSION}/
18 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.bz2
20 PKG_SUBPKGS
:= MARADNS DUENDE DEADWOOD ZONESERVER ASKMARA FETCHZONE
21 PKGSD_DUENDE
:= maradns deamonising tool
22 PKGSD_DEADWOOD
:= small and secure recursive DNS server
23 PKGSN_DEADWOOD
:= duende
24 PKGSD_ZONESERVER
:= maradns zone transfer daemon
25 PKGSN_ZONESERVER
:= duende
26 PKGSD_ASKMARA
:= maradns simple dns query tool
27 PKGSD_FETCHZONE
:= maradns zone retrieval tool
29 PKG_FLAVOURS_MARADNS
:= WITH_IPV6
30 PKGFD_WITH_IPV6
:= enable IPv6 support
32 include ${ADK_TOPDIR}/mk
/package.mk
34 $(eval
$(call PKG_template
,MARADNS
,maradns
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
35 $(eval
$(call PKG_template
,DUENDE
,duende
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DUENDE},${PKG_SECTION}))
36 $(eval
$(call PKG_template
,DEADWOOD
,deadwood
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DEADWOOD},${PKG_SECTION}))
37 $(eval
$(call PKG_template
,ZONESERVER
,zoneserver
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZONESERVER},${PKG_SECTION}))
38 $(eval
$(call PKG_template
,ASKMARA
,askmara
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ASKMARA},${PKG_SECTION}))
39 $(eval
$(call PKG_template
,FETCHZONE
,fetchzone
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FETCHZONE},${PKG_SECTION}))
42 FAKE_FLAGS
+= PREFIX
="${WRKINST}/usr" \
43 RPM_BUILD_ROOT
="${WRKINST}"
46 ifneq (${ADK_PACKAGE_MARADNS_WITH_IPV6},)
47 CONFIGURE_ARGS
+= --ipv6
51 @mkdir
-p
${WRKINST}/usr
/{sbin
,bin
,man
/man
{1,5,8}}
54 (cd
${WRKBUILD} && .
/configure
${CONFIGURE_ARGS});
57 ${INSTALL_DIR} ${IDIR_MARADNS}/etc
/maradns
/logger
58 ${INSTALL_DIR} ${IDIR_MARADNS}/usr
/sbin
59 ${INSTALL_DATA} .
/files
/mararc
${IDIR_MARADNS}/etc
/mararc
60 ${INSTALL_DATA} .
/files
/sample.
{zone
,ptr
} \
61 ${IDIR_MARADNS}/etc
/maradns
/
62 ${CP} ${WRKINST}/usr
/sbin
/maradns
${IDIR_MARADNS}/usr
/sbin
/
65 ${INSTALL_DIR} ${IDIR_DUENDE}/usr
/bin
66 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/duende
${IDIR_DUENDE}/usr
/bin
/
69 ${INSTALL_DIR} ${IDIR_DEADWOOD}/etc
/maradns
/logger
70 ${INSTALL_DIR} ${IDIR_DEADWOOD}/usr
/sbin
71 ${INSTALL_DATA} .
/files
/dwood3rc
${IDIR_DEADWOOD}/etc
/
72 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/Deadwood \
73 ${IDIR_DEADWOOD}/usr
/sbin
/
76 ${INSTALL_DIR} ${IDIR_ZONESERVER}/usr
/sbin
77 ${INSTALL_BIN} ${WRKINST}/usr
/sbin
/zoneserver \
78 ${IDIR_ZONESERVER}/usr
/sbin
/
81 ${INSTALL_DIR} ${IDIR_ASKMARA}/usr
/bin
82 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/askmara
${IDIR_ASKMARA}/usr
/bin
/
85 ${INSTALL_DIR} ${IDIR_FETCHZONE}/usr
/bin
86 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/fetchzone
${IDIR_FETCHZONE}/usr
/bin
/
88 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk