# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $

include $(TOPDIR)/rules.mk

PKG_NAME:=ez-ipupdate
PKG_VERSION:=3.0.11b8
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \
	http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate
PKG_MD5SUM:=000211add4c4845ffa4211841bff4fb0
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/ez-ipupdate
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Dynamic DNS services client
  URL:=http://ez-ipupdate.com/
endef

define Package/ez-ipupdate/conffiles
/etc/ez-ipupdate.conf
endef

# uses GNU configure

define Build/Compile
	$(MAKE) -C $(PKG_BUILD_DIR)
endef

define Package/ez-ipupdate/install
	mkdir -p $(1)/usr/sbin
	cp $(PKG_BUILD_DIR)/ez-ipupdate $(1)/usr/sbin/
	mkdir -p $(1)/etc
	install -m0600 ./files/ez-ipupdate.conf $(1)/etc/
	mkdir -p $(1)/etc/init.d
	install -m0755 ./files/S80ez-ipupdate $(1)/etc/init.d/
endef

$(eval $(call BuildPackage,ez-ipupdate))
