allow package directories to override the path to configure
[openwrt.git] / package / dnsmasq / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dnsmasq
12 PKG_VERSION:=2.35
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
17 PKG_MD5SUM:=57b8643dc394cf2fbd1bced64536c6df
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dnsmasq
25 SECTION:=net
26 CATEGORY:=Base system
27 TITLE:=A lightweight DNS and DHCP server
28 DESCRIPTION:=\
29 It is intended to provide coupled DNS and DHCP service to a LAN.
30 URL:=http://www.thekelleys.org.uk/dnsmasq/
31 endef
32
33 define Package/dnsmasq/conffiles
34 /etc/dnsmasq.conf
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
41 BINDIR="/usr/sbin" MANDIR="/usr/man" \
42 all
43 endef
44
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
49 $(INSTALL_DATA) ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
52 endef
53
54 $(eval $(call BuildPackage,dnsmasq))
This page took 0.040213 seconds and 5 git commands to generate.