[packages] Use default templates instead of custom reimplementations where applicable
[openwrt/svn-archive/archive.git] / net / updatedd / Makefile
1 #
2 # Copyright (C) 2007-2008 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:=updatedd
11 PKG_VERSION:=2.6
12 PKG_RELEASE:=6
13
14 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2
16 PKG_MD5SUM:=f03446105ed043cd5dbd1ab95484d27f
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/updatedd
23 SECTION:=net
24 CATEGORY:=Network
25 MENU:=1
26 TITLE:=A tool to update dynamic dns services
27 URL:=http://savannah.nongnu.org/projects/updatedd/
28 endef
29
30 define Package/updatedd/description
31 Updatedd is a small tool that will update one of many dynamic
32 dns services on boot.
33 Please look at the /etc/init.d/ddns script for more info.
34
35 endef
36
37 define Package/updatedd-mod-changeip
38 SECTION:=net
39 CATEGORY:=Network
40 DEPENDS:=updatedd
41 TITLE:=changeip.com
42 endef
43
44 define Package/updatedd-mod-dyndns
45 SECTION:=net
46 CATEGORY:=Network
47 DEPENDS:=updatedd
48 TITLE:=dyndns.org
49 endef
50
51 define Package/updatedd-mod-eurodyndns
52 SECTION:=net
53 CATEGORY:=Network
54 DEPENDS:=updatedd
55 TITLE:=eurodyndns.org
56 endef
57
58 define Package/updatedd-mod-hn
59 SECTION:=net
60 CATEGORY:=Network
61 DEPENDS:=updatedd
62 TITLE:=hn.org
63 endef
64
65 define Package/updatedd-mod-noip
66 SECTION:=net
67 CATEGORY:=Network
68 DEPENDS:=updatedd
69 TITLE:=no-ip.com
70 endef
71
72 define Package/updatedd-mod-ods
73 SECTION:=net
74 CATEGORY:=Network
75 DEPENDS:=updatedd
76 TITLE:=ods.org
77 endef
78
79 define Package/updatedd-mod-ovh
80 SECTION:=net
81 CATEGORY:=Network
82 DEPENDS:=updatedd
83 TITLE:=ovh.com
84 endef
85
86 define Package/updatedd-mod-regfish
87 SECTION:=net
88 CATEGORY:=Network
89 DEPENDS:=updatedd
90 TITLE:=regfish.com
91 endef
92
93 define Package/updatedd-mod-tzo
94 SECTION:=net
95 CATEGORY:=Network
96 DEPENDS:=updatedd
97 TITLE:=tzo.com
98 endef
99
100 define Package/updatedd-mod-zoneedit
101 SECTION:=net
102 CATEGORY:=Network
103 DEPENDS:=updatedd
104 TITLE:=zoneedit.com
105 endef
106
107 define Build/Configure
108 (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake )
109 $(call Build/Configure/Default)
110 endef
111
112 define BuildPlugin
113 define Package/$(1)/install
114 $(INSTALL_DIR) $$(1)/usr/lib/updatedd
115 $(CP) $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so* $$(1)/usr/lib/updatedd/
116 endef
117
118 $$(eval $$(call BuildPackage,$(1)))
119 endef
120
121 define Package/updatedd/install
122 $(INSTALL_DIR) $(1)/etc/init.d
123 $(INSTALL_BIN) ./files/updatedd.init $(1)/etc/init.d/updatedd
124 $(INSTALL_DIR) $(1)/etc/config
125 $(INSTALL_DATA) ./files/updatedd.config $(1)/etc/config/updatedd
126 $(INSTALL_DIR) $(1)/usr/bin
127 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/
128 $(INSTALL_DIR) $(1)/usr/lib/updatedd
129 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
130 $(INSTALL_DATA) ./files/updatedd.hotplug $(1)/etc/hotplug.d/iface/30-updatedd
131 endef
132
133 $(eval $(call BuildPackage,updatedd))
134 $(eval $(call BuildPlugin,updatedd-mod-changeip,libchangeip))
135 $(eval $(call BuildPlugin,updatedd-mod-dyndns,libdyndns))
136 $(eval $(call BuildPlugin,updatedd-mod-eurodyndns,libeurodyndns))
137 $(eval $(call BuildPlugin,updatedd-mod-hn,libhn))
138 $(eval $(call BuildPlugin,updatedd-mod-noip,libnoip))
139 $(eval $(call BuildPlugin,updatedd-mod-ods,libods))
140 $(eval $(call BuildPlugin,updatedd-mod-ovh,libovh))
141 $(eval $(call BuildPlugin,updatedd-mod-regfish,libregfish))
142 $(eval $(call BuildPlugin,updatedd-mod-tzo,libtzo))
143 $(eval $(call BuildPlugin,updatedd-mod-zoneedit,libzoneedit))