2df2636a4636eed6409256e2a2df4534beb949f1
[openwrt/svn-archive/archive.git] / net / ez-ipupdate / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ez-ipupdate
12 PKG_VERSION:=3.0.11b8
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \
17 http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate
18 PKG_MD5SUM:=000211add4c4845ffa4211841bff4fb0
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ez-ipupdate
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Dynamic DNS services client
29 URL:=http://ez-ipupdate.com/
30 endef
31
32 define Package/ez-ipupdate/conffiles
33 /etc/ez-ipupdate.conf
34 endef
35
36 # uses GNU configure
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 endef
41
42 define Package/ez-ipupdate/install
43 install -d -m0755 $(1)/usr/sbin
44 install -m0755 $(PKG_BUILD_DIR)/ez-ipupdate $(1)/usr/sbin/
45 install -d -m0755 $(1)/etc
46 install -m0600 ./files/ez-ipupdate.conf $(1)/etc/
47 install -d -m0755 $(1)/etc/hotplug.d/iface
48 install -m0755 ./files/ez-ipupdate.hotplug $(1)/etc/hotplug.d/iface/10-ez-ipupdate
49 endef
50
51 $(eval $(call BuildPackage,ez-ipupdate))