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
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://thekelleys.org.uk
/dnsmasq
18 PKG_MD5SUM
:=d1f593a8352db1d6ad3dccc9b775295d
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/dnsmasq
27 TITLE
:=A lightweight DNS and DHCP server
28 DESCRIPTION
:=A lightweight DNS and DHCP server. It is intended to provide
\\\
29 coupled DNS and DHCP service to a LAN.
30 URL
:=http
://www.thekelleys.org.uk
/dnsmasq
/
33 define Package
/dnsmasq
/conffiles
38 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
39 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS)" \
40 BINDIR
="/usr/sbin" MANDIR
="/usr/man" \
44 define Package
/dnsmasq
/install
45 install -m0755
-d
$(1)/etc
46 install -m0644 .
/files
/dnsmasq.conf
$(1)/etc
/dnsmasq.conf
47 install -m0755
-d
$(1)/etc
/init.d
48 install -m0755 .
/files
/dnsmasq.init
$(1)/etc
/init.d
/S50dnsmasq
49 install -m0755
-d
$(1)/usr
/sbin
50 install -m0755
$(PKG_BUILD_DIR
)/src
/dnsmasq
$(1)/usr
/sbin
/
53 $(eval
$(call BuildPackage
,dnsmasq
))