2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=1.3.07.08
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://www.maradns.org
/download
/1.3/$(PKG_VERSION
)/
17 PKG_MD5SUM
:=d44d7e1309c7c05654e62b52c6ab6822
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/maradns
25 TITLE
:=Small and secure DNS Server
26 URL
:=http
://www.maradns.org
/
30 define Package
/maradns
/description
31 maradns is a DNS server written with security
, simplicity
, and
35 define Package
/maradns
/conffiles
39 define Build
/Configure
40 # it's not GNU autoconf stuff
41 (cd
$(PKG_BUILD_DIR
); \
42 $(TARGET_CONFIGURE_OPTS
) \
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 CFLAGS
="$(TARGET_CFLAGS)" \
50 FLAGS
="$(TARGET_CFLAGS)" \
54 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/{bin
,sbin
}
55 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/man
/man
{1,5,8}
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 PREFIX
="$(PKG_INSTALL_DIR)/usr" \
58 RPM_BUILD_ROOT
="$(PKG_INSTALL_DIR)" \
63 define Package
/maradns
/install
64 $(INSTALL_DIR
) $(1)/etc
65 $(INSTALL_DATA
) .
/files
/mararc
$(1)/etc
/mararc
66 $(INSTALL_DIR
) $(1)/etc
/init.d
67 $(INSTALL_BIN
) .
/files
/maradns.init
$(1)/etc
/init.d
/maradns
68 $(INSTALL_DIR
) $(1)/usr
/bin
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/{askmara
,getzone
,fetchzone
,duende
} $(1)/usr
/bin
/
70 $(INSTALL_DIR
) $(1)/usr
/sbin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{maradns
,zoneserver
} $(1)/usr
/sbin
/
74 $(eval
$(call BuildPackage
,maradns
))