[packages_10.03.1] collectd: backport r29404
[openwrt/svn-archive/archive.git] / net / maradns / Makefile
1 #
2 # Copyright (C) 2006-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=maradns
11 PKG_VERSION:=1.3.07.09
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.maradns.org/download/1.3/$(PKG_VERSION)/
16 PKG_MD5SUM:=1d221438fb4d9317263555262b9c652c
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/maradns
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libpthread
24 TITLE:=Small and secure DNS Server
25 URL:=http://www.maradns.org/
26 SUBMENU:=IP Addresses and Names
27 endef
28
29 define Package/maradns/description
30 maradns is a DNS server written with security, simplicity, and
31 performance in mind.
32 endef
33
34 define Package/maradns/conffiles
35 /etc/mararc
36 endef
37
38 define Build/Configure
39 # it's not GNU autoconf stuff
40 (cd $(PKG_BUILD_DIR); \
41 $(TARGET_CONFIGURE_OPTS) \
42 ./configure \
43 );
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 CFLAGS="$(TARGET_CFLAGS)" \
49 FLAGS="$(TARGET_CFLAGS)" \
50 CC="$(TARGET_CC)" \
51 HOSTCC="$(HOSTCC)" \
52 V=
53 mkdir -p $(PKG_INSTALL_DIR)/usr/{bin,sbin}
54 mkdir -p $(PKG_INSTALL_DIR)/usr/man/man{1,5,8}
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 PREFIX="$(PKG_INSTALL_DIR)/usr" \
57 RPM_BUILD_ROOT="$(PKG_INSTALL_DIR)" \
58 V= \
59 install
60 endef
61
62 define Package/maradns/install
63 $(INSTALL_DIR) $(1)/etc
64 $(INSTALL_DATA) ./files/mararc $(1)/etc/mararc
65 $(INSTALL_DIR) $(1)/etc/init.d
66 $(INSTALL_BIN) ./files/maradns.init $(1)/etc/init.d/maradns
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{askmara,getzone,fetchzone,duende} $(1)/usr/bin/
69 $(INSTALL_DIR) $(1)/usr/sbin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{maradns,zoneserver} $(1)/usr/sbin/
71 endef
72
73 $(eval $(call BuildPackage,maradns))