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