[packages_10.03.2] ndyndns: merge r29064
[10.03/packages.git] / net / ndyndns / Makefile
1 #
2 # Copyright (C) 2008-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ndyndns
11 PKG_VERSION:=2.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://ndyndns.googlecode.com/files
16 PKG_MD5SUM:=0cdb4dcba5f8c1664f53884b3c2179e9
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 MAKE_FLAGS:=PLATFORM=linux
23
24 define Package/ndyndns
25   SECTION:=net
26   CATEGORY:=Network
27   SUBMENU:=IP Addresses and Names
28   TITLE:=DynDNS.com update daemon
29   URL:=http://ndyndns.googlecode.com/
30   DEPENDS:=+libcurl +libopenssl
31 endef
32
33 define Package/ndyndns/description
34         The ndyndns daemon is an update client for DynDNS.com. It
35         checks for an IP address change every two minutes, avoids
36         unnecessary updates, reports errors, logs to syslog, and
37         generally complies with everything required of a proper dyndns
38         client.
39 endef
40
41 define Package/ndyndns/conffiles
42 /etc/ndyndns/ndyndns.conf.sample
43 endef
44
45 define Package/ndyndns/install
46         $(INSTALL_DIR) $(1)/usr/sbin
47         $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndyndns $(1)/usr/sbin/
48         $(INSTALL_DIR) $(1)/etc/init.d/
49         $(INSTALL_BIN) files/ndyndns.init $(1)/etc/init.d/ndyndns
50         $(INSTALL_DIR) $(1)/etc/ndyndns
51         $(INSTALL_CONF) files/ndyndns.conf.sample $(1)/etc/ndyndns
52 endef
53
54 $(eval $(call BuildPackage,ndyndns))