1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= maradns
PKG_VERSION:= 2.0.09
PKG_RELEASE:= 2
PKG_HASH:= e1ee80836f0fbc47b9b94ec839e112ea19c40bed0b70d672d231849a4dea1083
PKG_DESCR:= small and secure DNS server
PKG_SECTION:= net/dns
PKG_DEPENDS:= libpthread librt duende
PKG_URL:= http://www.maradns.org
PKG_SITES:= http://maradns.samiam.org/download/2.0/${PKG_VERSION}/
PKG_NOPARALLEL:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
PKG_SUBPKGS:= MARADNS DUENDE DEADWOOD ZONESERVER ASKMARA FETCHZONE
PKGSD_DUENDE:= maradns deamonising tool
PKGSD_DEADWOOD:= small and secure recursive DNS server
PKGSN_DEADWOOD:= duende
PKGSD_ZONESERVER:= maradns zone transfer daemon
PKGSN_ZONESERVER:= duende
PKGSD_ASKMARA:= maradns simple dns query tool
PKGSD_FETCHZONE:= maradns zone retrieval tool
PKG_FLAVOURS_MARADNS:= WITH_IPV6
PKGFD_WITH_IPV6:= enable IPv6 support
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MARADNS,maradns,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,DUENDE,duende,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DUENDE},${PKG_SECTION}))
$(eval $(call PKG_template,DEADWOOD,deadwood,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_DEADWOOD},${PKG_SECTION}))
$(eval $(call PKG_template,ZONESERVER,zoneserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ZONESERVER},${PKG_SECTION}))
$(eval $(call PKG_template,ASKMARA,askmara,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ASKMARA},${PKG_SECTION}))
$(eval $(call PKG_template,FETCHZONE,fetchzone,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FETCHZONE},${PKG_SECTION}))
CONFIG_STYLE:= manual
FAKE_FLAGS+= PREFIX="${WRKINST}/usr" \
RPM_BUILD_ROOT="${WRKINST}"
CONFIGURE_ARGS:=
ifneq (${ADK_PACKAGE_MARADNS_WITH_IPV6},)
CONFIGURE_ARGS+= --ipv6
endif
pre-install:
@mkdir -p ${WRKINST}/usr/{sbin,bin,man/man{1,5,8}}
do-configure:
(cd ${WRKBUILD} && ./configure ${CONFIGURE_ARGS});
maradns-install:
${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns/logger
${INSTALL_DIR} ${IDIR_MARADNS}/usr/sbin
${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc
${INSTALL_DATA} ./files/sample.{zone,ptr} \
${IDIR_MARADNS}/etc/maradns/
${CP} ${WRKINST}/usr/sbin/maradns ${IDIR_MARADNS}/usr/sbin/
duende-install:
${INSTALL_DIR} ${IDIR_DUENDE}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/duende ${IDIR_DUENDE}/usr/bin/
deadwood-install:
${INSTALL_DIR} ${IDIR_DEADWOOD}/etc/maradns/logger
${INSTALL_DIR} ${IDIR_DEADWOOD}/usr/sbin
${INSTALL_DATA} ./files/dwood3rc ${IDIR_DEADWOOD}/etc/
${INSTALL_BIN} ${WRKINST}/usr/sbin/Deadwood \
${IDIR_DEADWOOD}/usr/sbin/
zoneserver-install:
${INSTALL_DIR} ${IDIR_ZONESERVER}/usr/sbin
${INSTALL_BIN} ${WRKINST}/usr/sbin/zoneserver \
${IDIR_ZONESERVER}/usr/sbin/
askmara-install:
${INSTALL_DIR} ${IDIR_ASKMARA}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/askmara ${IDIR_ASKMARA}/usr/bin/
fetchzone-install:
${INSTALL_DIR} ${IDIR_FETCHZONE}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/fetchzone ${IDIR_FETCHZONE}/usr/bin/
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|