source: branches/8.09/package/dnsmasq/Makefile @ 17464

Last change on this file since 17464 was 17464, checked in by nico, 7 years ago

[8.09] [package] dnsmasq: fix 2 DoS vulnerabilities in TFTP handling

  • CVE-2009-2957
  • CVE-2009-2958
  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dnsmasq
11PKG_VERSION:=2.47
12PKG_RELEASE:=3.1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
16PKG_MD5SUM:=4524081e56d0b935717d493e8e8d3e11
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/dnsmasq
21  SECTION:=net
22  CATEGORY:=Base system
23  TITLE:=A lightweight DNS and DHCP server
24  URL:=http://www.thekelleys.org.uk/dnsmasq/
25endef
26
27define Package/dnsmasq/description
28 It is intended to provide coupled DNS and DHCP service to a LAN.
29endef
30
31define Package/dnsmasq/conffiles
32/etc/config/dhcp
33endef
34
35define Build/Compile
36        $(MAKE) -C $(PKG_BUILD_DIR) \
37                $(TARGET_CONFIGURE_OPTS) \
38                CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
39                BINDIR="/usr/sbin" MANDIR="/usr/man" \
40                AWK="awk" \
41                all
42endef
43
44define Package/dnsmasq/install
45        $(INSTALL_DIR) $(1)/usr/sbin
46        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dnsmasq $(1)/usr/sbin/
47        $(INSTALL_DIR) $(1)/etc/config
48        $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
49        $(INSTALL_DIR) $(1)/etc/init.d
50        $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
51endef
52
53$(eval $(call BuildPackage,dnsmasq))
Note: See TracBrowser for help on using the repository browser.