Update maradns to 1.3.07.08 (#3632)
[openwrt/svn-archive/archive.git] / net / maradns / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=maradns
12 PKG_VERSION:=1.3.07.08
13 PKG_RELEASE:=1
14
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
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/maradns
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libpthread
25 TITLE:=Small and secure DNS Server
26 URL:=http://www.maradns.org/
27 SUBMENU:=DNS
28 endef
29
30 define Package/maradns/description
31 maradns is a DNS server written with security, simplicity, and
32 performance in mind.
33 endef
34
35 define Package/maradns/conffiles
36 /etc/mararc
37 endef
38
39 define Build/Configure
40 # it's not GNU autoconf stuff
41 (cd $(PKG_BUILD_DIR); \
42 $(TARGET_CONFIGURE_OPTS) \
43 ./configure \
44 );
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 CFLAGS="$(TARGET_CFLAGS)" \
50 FLAGS="$(TARGET_CFLAGS)" \
51 CC="$(TARGET_CC)" \
52 HOSTCC="$(HOSTCC)" \
53 V=
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)" \
59 V= \
60 install
61 endef
62
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/
72 endef
73
74 $(eval $(call BuildPackage,maradns))