2 # Copyright (C) 2006-2009 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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://thekelleys.org.uk
/dnsmasq
17 PKG_MD5SUM
:=4524081e56d0b935717d493e8e8d3e11
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/dnsmasq
24 TITLE
:=A lightweight DNS and DHCP server
25 URL
:=http
://www.thekelleys.org.uk
/dnsmasq
/
28 define Package
/dnsmasq
/description
29 It is intended to provide coupled DNS and DHCP service to a LAN.
32 define Package
/dnsmasq
/conffiles
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
40 BINDIR
="/usr/sbin" MANDIR
="/usr/man" \
45 define Package
/dnsmasq
/install
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/dnsmasq
$(1)/usr
/sbin
/
48 $(INSTALL_DIR
) $(1)/etc
/config
49 $(INSTALL_DATA
) .
/files
/dhcp.conf
$(1)/etc
/config
/dhcp
50 $(INSTALL_DIR
) $(1)/etc
/init.d
51 $(INSTALL_BIN
) .
/files
/dnsmasq.init
$(1)/etc
/init.d
/dnsmasq
54 $(eval
$(call BuildPackage
,dnsmasq
))