source: trunk/package/dnsmasq/Makefile @ 29375

Last change on this file since 29375 was 29375, checked in by jow, 5 years ago

[package] dnsmasq: automatically add host entry for own hostname and ptr record for lan ip address

  • 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-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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dnsmasq
11PKG_VERSION:=2.59
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
16PKG_MD5SUM:=b5757ef2d7b651748eeebb88af29d7d6
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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/
27endef
28
29define Package/dnsmasq/description
30  It is intended to provide coupled DNS and DHCP service to a LAN.
31endef
32
33define Package/dnsmasq/conffiles
34/etc/config/dhcp
35/etc/dnsmasq.conf
36endef
37
38TARGET_CFLAGS += -ffunction-sections -fdata-sections
39
40MAKE_FLAGS := \
41        $(TARGET_CONFIGURE_OPTS) \
42        CFLAGS="$(TARGET_CFLAGS)" \
43        LDFLAGS="-Wl,--gc-sections" \
44        PREFIX="/usr"
45
46define Package/dnsmasq/install
47        $(INSTALL_DIR) $(1)/usr/sbin
48        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dnsmasq $(1)/usr/sbin/
49        $(INSTALL_DIR) $(1)/etc/config
50        $(INSTALL_DATA) ./files/dhcp.conf $(1)/etc/config/dhcp
51        $(INSTALL_DATA) ./files/dnsmasq.conf $(1)/etc/dnsmasq.conf
52        $(INSTALL_DIR) $(1)/etc/init.d
53        $(INSTALL_BIN) ./files/dnsmasq.init $(1)/etc/init.d/dnsmasq
54endef
55
56$(eval $(call BuildPackage,dnsmasq))
Note: See TracBrowser for help on using the repository browser.