@
aa65535 @
LazyZhu 我的Makefile
#
# Copyright (C) 2006-2009
OpenWrt.org#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/
rules.mkPKG_NAME:=deadwood
PKG_VERSION:=3.2.06
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=
http://maradns.samiam.org/deadwood/stable/$(PKG_VERSION)#PKG_MD5SUM:=1d221438fb4d9317263555262b9c652c
include $(INCLUDE_DIR)/
package.mkdefine Package/deadwood
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpthread
TITLE:=Small and secure DNS Server
URL:=
http://www.maradns.org/ SUBMENU:=IP Addresses and Names
endef
define Package/deadwood/description
maradns is a DNS server written with security, simplicity, and
performance in mind.
endef
define Package/deadwood/conffiles
/etc/maradns/dwood3rc
endef
#define Build/Configure
# it's not GNU autoconf stuff
# (cd $(PKG_BUILD_DIR)/src; \
#$(TARGET_CONFIGURE_OPTS) \
# ./configure \
);
#endef
# cd $(PKG_BUILD_DIR)/src; \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \
CFLAGS="$(TARGET_CFLAGS)" \
FLAGS="$(TARGET_CFLAGS)" \
CC="$(TARGET_CC)" \
HOSTCC="$(HOSTCC)" \
V=
#mkdir -p $(PKG_INSTALL_DIR)/usr/{bin,sbin}
#mkdir -p $(PKG_INSTALL_DIR)/usr/man/man{1,5,8}
$(MAKE) -C $(PKG_BUILD_DIR)/tools \
CFLAGS="$(TARGET_CFLAGS)" \
FLAGS="$(TARGET_CFLAGS)" \
CC="$(TARGET_CC)" \
#PREFIX="$(PKG_INSTALL_DIR)/usr" \
#RPM_BUILD_ROOT="$(PKG_INSTALL_DIR)" \
V=
#install
endef
define Package/deadwood/install
$(INSTALL_DIR) $(1)/etc/maradns
$(INSTALL_DATA) ./files/dwood3rc $(1)/etc/maradns/dwood3rc
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/deadwood.init $(1)/etc/init.d/deadwood
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Deadwood $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/duende $(1)/usr/bin/
endef
$(eval $(call BuildPackage,deadwood))