fix MODULE_PARM removal in 2.6.17.
[openwrt.git] / package / dnsmasq / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=dnsmasq
6 PKG_VERSION:=2.27
7 PKG_RELEASE:=1
8
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
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 define Package/dnsmasq
18 SECTION:=base
19 CATEGORY:=Network
20 DEFAULT:=y
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/
25 endef
26
27 define Package/dnsmasq/conffiles
28 /etc/dnsmasq.conf
29 endef
30
31 define Build/Compile
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
34 BINDIR="/usr/sbin" MANDIR="/usr/man" \
35 all
36 endef
37
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/
45 endef
46
47 $(eval $(call BuildPackage,dnsmasq))
This page took 0.050983 seconds and 5 git commands to generate.