fix lxdialog cc/ldflags check script for darwin/osx
[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.33
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:=45696461b6e6bc929273b1191ca50447
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 DEFAULT:=y
28 TITLE:=A lightweight DNS and DHCP server
29 DESCRIPTION:=\
30 It is intended to provide coupled DNS and DHCP service to a LAN.
31 URL:=http://www.thekelleys.org.uk/dnsmasq/
32 endef
33
34 define Package/dnsmasq/conffiles
35 /etc/dnsmasq.conf
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
42 BINDIR="/usr/sbin" MANDIR="/usr/man" \
43 all
44 endef
45
46 define Package/dnsmasq/install
47 install -m0755 -d $(1)/usr/sbin
48 install -m0755 $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
49 install -m0755 -d $(1)/etc
50 install -m0644 ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
51 install -m0755 -d $(1)/etc/init.d
52 install -m0755 ./files/dnsmasq.init $(1)/etc/init.d/S50dnsmasq
53 endef
54
55 $(eval $(call BuildPackage,dnsmasq))
This page took 0.04493 seconds and 5 git commands to generate.