Port of the dyndns.com update client ndyndns.
[openwrt/svn-archive/archive.git] / net / ndyndns / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ndyndns
4 PKG_VERSION:=1.12
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=ndyndns-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://ndyndns.googlecode.com/files
9 PKG_MD5SUM:=1ca356cf366cd617fe3fb5fad9eb961b
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12 PKG_FIXUP = libtool
13
14 include $(INCLUDE_DIR)/package.mk
15
16 MAKE_FLAGS:=PLATFORM=linux
17
18 define Package/ndyndns
19 SECTION:=net
20 CATEGORY:=Network
21 TITLE:=DynDNS.com update daemon
22 URL:=http://ndyndns.googlecode.com/
23 DEPENDS:=+libcurl +libopenssl
24 endef
25
26 define Package/ndyndns/description
27 The ndyndns daemon is an update client for DynDNS.com. It
28 checks for an IP address change every two minutes, avoids
29 unnecessary updates, reports errors, logs to syslog, and
30 generally complies with everything required of a proper dyndns
31 client.
32 endef
33
34 define Package/ndyndns/conffiles
35 /etc/ndyndns/ndyndns.conf.sample
36 /etc/default/ndyndns
37 endef
38
39 define Package/ndyndns/install
40 $(INSTALL_DIR) $(1)/usr/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndyndns $(1)/usr/sbin
42 $(INSTALL_DIR) $(1)/etc/default
43 $(INSTALL_BIN) files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME)
44 $(INSTALL_DIR) $(1)/etc/init.d/
45 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)
47 $(INSTALL_CONF) files/$(PKG_NAME).conf.sample $(1)/etc/$(PKG_NAME)
48 endef
49
50 $(eval $(call BuildPackage,ndyndns))