[net] various: Fixed openser and updatedd modules appearing in main list instead...
[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 SUBMENU:=IP Addresses and Names
48 DEPENDS:=updatedd
49 TITLE:=changeip.com
50 endef
51
52 define Package/updatedd-mod-dyndns
53 SECTION:=net
54 CATEGORY:=Network
55 SUBMENU:=IP Addresses and Names
56 DEPENDS:=updatedd
57 TITLE:=dyndns.org
58 endef
59
60 define Package/updatedd-mod-eurodyndns
61 SECTION:=net
62 CATEGORY:=Network
63 SUBMENU:=IP Addresses and Names
64 DEPENDS:=updatedd
65 TITLE:=eurodyndns.org
66 endef
67
68 define Package/updatedd-mod-hn
69 SECTION:=net
70 CATEGORY:=Network
71 SUBMENU:=IP Addresses and Names
72 DEPENDS:=updatedd
73 TITLE:=hn.org
74 endef
75
76 define Package/updatedd-mod-noip
77 SECTION:=net
78 CATEGORY:=Network
79 SUBMENU:=IP Addresses and Names
80 DEPENDS:=updatedd
81 TITLE:=no-ip.com
82 endef
83
84 define Package/updatedd-mod-ods
85 SECTION:=net
86 CATEGORY:=Network
87 SUBMENU:=IP Addresses and Names
88 DEPENDS:=updatedd
89 TITLE:=ods.org
90 endef
91
92 define Package/updatedd-mod-ovh
93 SECTION:=net
94 CATEGORY:=Network
95 SUBMENU:=IP Addresses and Names
96 DEPENDS:=updatedd
97 TITLE:=ovh.com
98 endef
99
100 define Package/updatedd-mod-regfish
101 SECTION:=net
102 CATEGORY:=Network
103 SUBMENU:=IP Addresses and Names
104 DEPENDS:=updatedd
105 TITLE:=regfish.com
106 endef
107
108 define Package/updatedd-mod-tzo
109 SECTION:=net
110 CATEGORY:=Network
111 SUBMENU:=IP Addresses and Names
112 DEPENDS:=updatedd
113 TITLE:=tzo.com
114 endef
115
116 define Package/updatedd-mod-zoneedit
117 SECTION:=net
118 CATEGORY:=Network
119 SUBMENU:=IP Addresses and Names
120 DEPENDS:=updatedd
121 TITLE:=zoneedit.com
122 endef
123
124 define BuildPlugin
125 define Package/$(1)/install
126 $(INSTALL_DIR) $$(1)/usr/lib/updatedd
127 $(CP) $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so* $$(1)/usr/lib/updatedd/
128 endef
129
130 $$(eval $$(call BuildPackage,$(1)))
131 endef
132
133 define Package/updatedd/install
134 $(INSTALL_DIR) $(1)/etc/init.d
135 $(INSTALL_BIN) ./files/updatedd.init $(1)/etc/init.d/updatedd
136 $(INSTALL_DIR) $(1)/etc/config
137 $(INSTALL_DATA) ./files/updatedd.config $(1)/etc/config/updatedd
138 $(INSTALL_DIR) $(1)/usr/bin
139 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/
140 $(INSTALL_DIR) $(1)/usr/lib/updatedd
141 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
142 $(INSTALL_DATA) ./files/updatedd.hotplug $(1)/etc/hotplug.d/iface/30-updatedd
143 endef
144
145 $(eval $(call BuildPackage,updatedd))
146 $(eval $(call BuildPlugin,updatedd-mod-changeip,libchangeip))
147 $(eval $(call BuildPlugin,updatedd-mod-dyndns,libdyndns))
148 $(eval $(call BuildPlugin,updatedd-mod-eurodyndns,libeurodyndns))
149 $(eval $(call BuildPlugin,updatedd-mod-hn,libhn))
150 $(eval $(call BuildPlugin,updatedd-mod-noip,libnoip))
151 $(eval $(call BuildPlugin,updatedd-mod-ods,libods))
152 $(eval $(call BuildPlugin,updatedd-mod-ovh,libovh))
153 $(eval $(call BuildPlugin,updatedd-mod-regfish,libregfish))
154 $(eval $(call BuildPlugin,updatedd-mod-tzo,libtzo))
155 $(eval $(call BuildPlugin,updatedd-mod-zoneedit,libzoneedit))