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