3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=http
://thekelleys.org.uk
/dnsmasq
12 PKG_MD5SUM
:=489198ec87101087043adc98bbe062dc
15 include $(TOPDIR
)/package
/rules.mk
17 define Package
/dnsmasq
21 TITLE
:=A lightweight DNS and DHCP server
22 DESCRIPTION
:=A lightweight DNS and DHCP server. It is intended to provide
\\\
23 coupled DNS and DHCP service to a LAN.
24 URL
:=http
://www.thekelleys.org.uk
/dnsmasq
/
27 define Package
/dnsmasq
/conffiles
32 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
33 CC
="$(TARGET_CC)" CFLAGS
="$(TARGET_CFLAGS)" \
34 BINDIR
="/usr/sbin" MANDIR
="/usr/man" \
38 define Package
/dnsmasq
/install
39 install -m0755
-d
$(1)/etc
40 install -m0644 .
/files
/dnsmasq.conf
$(1)/etc
/dnsmasq.conf
41 install -m0755
-d
$(1)/etc
/init.d
42 install -m0755 .
/files
/dnsmasq.init
$(1)/etc
/init.d
/S50dnsmasq
43 install -m0755
-d
$(1)/usr
/sbin
44 install -m0755
$(PKG_BUILD_DIR
)/src
/dnsmasq
$(1)/usr
/sbin
/
47 $(eval
$(call BuildPackage
,dnsmasq
))