ath9k: fix misplaced ifdef
[openwrt.git] / package / dnsmasq / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dnsmasq
11 PKG_VERSION:=2.59
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
16 PKG_MD5SUM:=b5757ef2d7b651748eeebb88af29d7d6
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/dnsmasq
23 SECTION:=net
24 CATEGORY:=Base system
25 TITLE:=A lightweight DNS and DHCP server
26 URL:=http://www.thekelleys.org.uk/dnsmasq/
27 endef
28
29 define Package/dnsmasq/description
30 It is intended to provide coupled DNS and DHCP service to a LAN.
31 endef
32
33 define Package/dnsmasq/conffiles
34 /etc/config/dhcp
35 /etc/dnsmasq.conf
36 endef
37
38 TARGET_CFLAGS += \
39 -ffunction-sections -fdata-sections \
40 $(if $(CONFIG_IPV6),,-DNO_IPV6)
41
42 MAKE_FLAGS := \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 LDFLAGS="-Wl,--gc-sections" \
46 PREFIX="/usr"
47
48 define Package/dnsmasq/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnsmasq $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
53 $(INSTALL_DATA) ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
56 endef
57
58 $(eval $(call BuildPackage,dnsmasq))
This page took 0.043699 seconds and 5 git commands to generate.