Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=dnsmasq
  10. PKG_VERSION:=2.42
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
  14. PKG_MD5SUM:=78a23a31a35b8427a8589b76c1ae3ff6
  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 Build/Compile
  26. $(MAKE) -C $(PKG_BUILD_DIR) \
  27. $(TARGET_CONFIGURE_OPTS) \
  28. CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
  29. BINDIR="/usr/sbin" MANDIR="/usr/man" \
  30. AWK="awk" \
  31. all
  32. endef
  33. define Package/dnsmasq/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
  40. endef
  41. $(eval $(call BuildPackage,dnsmasq))