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