2005-03-21 08:12:49 +00:00
|
|
|
# $Id$
|
|
|
|
|
2005-03-06 03:34:52 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-03-06 03:53:29 +00:00
|
|
|
PKG_NAME:=dnsmasq
|
2006-01-15 00:02:47 +00:00
|
|
|
PKG_VERSION:=2.25
|
2005-10-20 13:52:02 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-01-15 00:02:47 +00:00
|
|
|
PKG_MD5SUM:=a5a387aed551acf91990567a5e8e4fa4
|
2005-03-21 08:12:49 +00:00
|
|
|
|
2005-03-06 03:53:29 +00:00
|
|
|
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_CAT:=zcat
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2005-05-12 19:41:18 +00:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2005-05-12 19:41:18 +00:00
|
|
|
$(eval $(call PKG_template,DNSMASQ,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2005-05-19 20:56:21 +00:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
touch $@
|
|
|
|
|
2005-05-12 19:41:18 +00:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-05-19 20:56:21 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
BINDIR=/usr/sbin MANDIR=/usr/man
|
2005-05-12 19:54:17 +00:00
|
|
|
touch $@
|
2005-03-06 03:53:29 +00:00
|
|
|
|
2005-05-12 19:41:18 +00:00
|
|
|
$(IPKG_DNSMASQ):
|
2005-07-25 08:11:12 +00:00
|
|
|
install -d -m0755 $(IDIR_DNSMASQ)/usr/sbin
|
2005-05-12 19:41:18 +00:00
|
|
|
cp $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(IDIR_DNSMASQ)/usr/sbin/
|
|
|
|
$(STRIP) $(IDIR_DNSMASQ)/usr/sbin/*
|
2005-07-25 08:11:12 +00:00
|
|
|
install -d -m0755 $(IDIR_DNSMASQ)/etc/init.d/
|
|
|
|
install -m0644 ./files/dnsmasq.conf $(IDIR_DNSMASQ)/etc/dnsmasq.conf
|
|
|
|
install -m0755 ./files/S50dnsmasq $(IDIR_DNSMASQ)/etc/init.d/S50dnsmasq
|
2005-05-12 19:41:18 +00:00
|
|
|
$(IPKG_BUILD) $(IDIR_DNSMASQ) $(PACKAGE_DIR)
|
|
|
|
|