Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. # $Id$
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=dnsmasq
  10. PKG_VERSION:=2.47
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
  14. PKG_MD5SUM:=4524081e56d0b935717d493e8e8d3e11
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/dnsmasq
  17. SECTION:=net
  18. CATEGORY:=Base system
  19. TITLE:=A lightweight DNS and DHCP server
  20. URL:=http://www.thekelleys.org.uk/dnsmasq/
  21. endef
  22. define Package/dnsmasq/description
  23. It is intended to provide coupled DNS and DHCP service to a LAN.
  24. endef
  25. define Package/dnsmasq/conffiles
  26. /etc/config/dhcp
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) \
  30. $(TARGET_CONFIGURE_OPTS) \
  31. CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
  32. BINDIR="/usr/sbin" MANDIR="/usr/man" \
  33. AWK="awk" \
  34. all
  35. endef
  36. define Package/dnsmasq/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
  41. $(INSTALL_DIR) $(1)/etc/init.d
  42. $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
  43. endef
  44. $(eval $(call BuildPackage,dnsmasq))