[tools] firmware-utils: add a file {en,de}cryption tool, based on the PC1 encryption...
[openwrt.git] / package / dnsmasq / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dnsmasq
11 PKG_VERSION:=2.49
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
16 PKG_MD5SUM:=7ccc861d8a733474f9c0a0a127006ee9
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define 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/
25 endef
26
27 define Package/dnsmasq/description
28 It is intended to provide coupled DNS and DHCP service to a LAN.
29 endef
30
31 define Package/dnsmasq/conffiles
32 /etc/config/dhcp
33 endef
34
35 define 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
42 endef
43
44 define 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
51 endef
52
53 $(eval $(call BuildPackage,dnsmasq))
This page took 0.046982 seconds and 5 git commands to generate.