update dnsmasq to latest upstream release (v2.24)
[openwrt.git] / package / dnsmasq / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=dnsmasq
6 PKG_VERSION:=2.24
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=d269531be1f130ab642c71c593138d31
9
10 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,DNSMASQ,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 touch $@
21
22 $(PKG_BUILD_DIR)/.built:
23 $(MAKE) -C $(PKG_BUILD_DIR) \
24 CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
25 BINDIR=/usr/sbin MANDIR=/usr/man
26 touch $@
27
28 $(IPKG_DNSMASQ):
29 install -d -m0755 $(IDIR_DNSMASQ)/usr/sbin
30 cp $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_DNSMASQ)/usr/sbin/
31 $(STRIP) $(IDIR_DNSMASQ)/usr/sbin/*
32 install -d -m0755 $(IDIR_DNSMASQ)/etc/init.d/
33 install -m0644 ./files/dnsmasq.conf $(IDIR_DNSMASQ)/etc/dnsmasq.conf
34 install -m0755 ./files/S50dnsmasq $(IDIR_DNSMASQ)/etc/init.d/S50dnsmasq
35 $(IPKG_BUILD) $(IDIR_DNSMASQ) $(PACKAGE_DIR)
36
This page took 0.039296 seconds and 5 git commands to generate.