source: trunk/package/dnsmasq/Makefile @ 18470

Last change on this file since 18470 was 18470, checked in by jow, 7 years ago

[package] dnsmasq: Set a list of addnhosts files.
e.g.

list 'addnhosts' '/var/etc/hosts.olsr'
list 'addnhosts' '/var/etc/hosts.olsrv6'

hosts.olsr for ipv4 and hosts.olsrv6 for ipv6 addresses.
Signed-off-by: Patrick Grimm <patrick@…>

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
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.50
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
16PKG_MD5SUM:=f7b1e17c590e493039537434c57c9de7
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
33/etc/dnsmasq.conf
34endef
35
36define Build/Compile
37        $(MAKE) -C $(PKG_BUILD_DIR) \
38                $(TARGET_CONFIGURE_OPTS) \
39                CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
40                BINDIR="/usr/sbin" MANDIR="/usr/man" \
41                AWK="awk" \
42                all
43endef
44
45define 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/config
49        $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
50        $(INSTALL_DATA) ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
51        $(INSTALL_DIR) $(1)/etc/init.d
52        $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
53endef
54
55$(eval $(call BuildPackage,dnsmasq))
Note: See TracBrowser for help on using the repository browser.