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.2.12.06
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://www.maradns.org
/download
/1.2/$(PKG_VERSION
)/
17 PKG_MD5SUM
:=9219647108d283725011e37e29771b90
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/maradns
28 TITLE
:=Small and secure DNS Server
29 URL
:=http
://www.maradns.org
/
33 define Package
/maradns
/conffiles
37 define Build
/Configure
38 # it's not GNU autoconf stuff
39 (cd
$(PKG_BUILD_DIR
); \
40 $(TARGET_CONFIGURE_OPTS
) \
46 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
47 CFLAGS
="$(TARGET_CFLAGS)" \
48 FLAGS
="$(TARGET_CFLAGS)" \
52 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/{bin
,sbin
}
53 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/man
/man
{1,5,8}
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 PREFIX
="$(PKG_INSTALL_DIR)/usr" \
56 RPM_BUILD_ROOT
="$(PKG_INSTALL_DIR)" \
61 define Package
/maradns
/install
62 $(INSTALL_DIR
) $(1)/etc
63 $(INSTALL_DATA
) .
/files
/mararc
$(1)/etc
/mararc
64 $(INSTALL_DIR
) $(1)/etc
/init.d
65 $(INSTALL_BIN
) .
/files
/maradns.init
$(1)/etc
/init.d
/maradns
66 $(INSTALL_DIR
) $(1)/usr
/bin
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{askmara
,getzone
,fetchzone
,duende
} $(1)/usr
/bin
/
68 $(INSTALL_DIR
) $(1)/usr
/sbin
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/{maradns
,zoneserver
} $(1)/usr
/sbin
/
72 $(eval
$(call BuildPackage
,maradns
))