port ez-ipupdate to buildroot-ng
[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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
17 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/ez-ipupdate \
18 http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate
19 PKG_MD5SUM:=000211add4c4845ffa4211841bff4fb0
20 PKG_CAT:=zcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ez-ipupdate
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Dynamic DNS services client
28 DESCRIPTION:=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 define Build/Configure
37 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 ./configure \
41 --target=$(GNU_TARGET_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --build=$(GNU_HOST_NAME) \
44 --program-prefix="" \
45 --program-suffix="" \
46 --prefix=/usr \
47 --exec-prefix=/usr \
48 --bindir=/usr/bin \
49 --datadir=/usr/share \
50 --includedir=/usr/include \
51 --infodir=/usr/share/info \
52 --libdir=/usr/lib \
53 --libexecdir=/usr/lib \
54 --localstatedir=/var \
55 --mandir=/usr/share/man \
56 --sbindir=/usr/sbin \
57 --sysconfdir=/etc \
58 $(DISABLE_LARGEFILE) \
59 $(DISABLE_NLS) \
60 );
61 endef
62
63 define Build/Compile
64 $(MAKE) -C $(PKG_BUILD_DIR)
65 endef
66
67 define Package/ez-ipupdate/install
68 install -d -m0755 $(1)/etc
69 install -m0600 ./files/$(PKG_NAME).conf $(1)/etc/
70 install -d -m0755 $(1)/etc/hotplug.d/iface
71 install -m0755 ./files/$(PKG_NAME).hotplug $(1)/etc/hotplug.d/iface/10-$(PKG_NAME)
72 install -d -m0755 $(1)/usr/sbin
73 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
74 endef
75
76 $(eval $(call BuildPackage,ez-ipupdate))