fix build where host and target arches are abi compatible (closes: #2411)
[openwrt/svn-archive/archive.git] / net / updatedd / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=updatedd
12 PKG_VERSION:=2.6
13 PKG_RELEASE:=5
14
15 PKG_SOURCE_URL:=@openwrt/
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2
17 PKG_MD5SUM:=f03446105ed043cd5dbd1ab95484d27f
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/updatedd
22 SECTION:=net
23 CATEGORY:=Network
24 MENU:=1
25 TITLE:=A tool to update dynamic dns services
26 DESCRIPTION:=Updatedd is a small tool that will update one of many dynamic \\\
27 dns services on boot. \\\
28 Please look at the /etc/init.d/ddns script for more info. \\\
29 URL:=http://www.philipp-benner.de/updatedd/
30 endef
31
32 define Package/updatedd-mod-changeip
33 SECTION:=net
34 CATEGORY:=Network
35 DEPENDS:=updatedd
36 TITLE:=changeip.com
37 endef
38
39 define Package/updatedd-mod-dyndns
40 SECTION:=net
41 CATEGORY:=Network
42 DEPENDS:=updatedd
43 TITLE:=dyndns.org
44 endef
45
46 define Package/updatedd-mod-eurodyndns
47 SECTION:=net
48 CATEGORY:=Network
49 DEPENDS:=updatedd
50 TITLE:=eurodyndns.org
51 endef
52
53 define Package/updatedd-mod-hn
54 SECTION:=net
55 CATEGORY:=Network
56 DEPENDS:=updatedd
57 TITLE:=hn.org
58 endef
59
60 define Package/updatedd-mod-noip
61 SECTION:=net
62 CATEGORY:=Network
63 DEPENDS:=updatedd
64 TITLE:=no-ip.com
65 endef
66
67 define Package/updatedd-mod-ods
68 SECTION:=net
69 CATEGORY:=Network
70 DEPENDS:=updatedd
71 TITLE:=ods.org
72 endef
73
74 define Package/updatedd-mod-ovh
75 SECTION:=net
76 CATEGORY:=Network
77 DEPENDS:=updatedd
78 TITLE:=ovh.com
79 endef
80
81 define Package/updatedd-mod-regfish
82 SECTION:=net
83 CATEGORY:=Network
84 DEPENDS:=updatedd
85 TITLE:=regfish.com
86 endef
87
88 define Package/updatedd-mod-tzo
89 SECTION:=net
90 CATEGORY:=Network
91 DEPENDS:=updatedd
92 TITLE:=tzo.com
93 endef
94
95 define Package/updatedd-mod-zoneedit
96 SECTION:=net
97 CATEGORY:=Network
98 DEPENDS:=updatedd
99 TITLE:=zoneedit.com
100 endef
101
102 MAKE_FLAGS += \
103 DESTDIR="$(PKG_INSTALL_DIR)" \
104 all install
105
106 define BuildPlugin
107 define Package/$(1)/install
108 $(INSTALL_DIR) $$(1)/usr/lib/updatedd
109 $(CP) $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so* $$(1)/usr/lib/updatedd/
110 endef
111
112 $$(eval $$(call BuildPackage,$(1)))
113 endef
114
115 define Package/updatedd/install
116 $(INSTALL_DIR) $(1)/etc/init.d
117 $(INSTALL_BIN) ./files/updatedd.init $(1)/etc/init.d/updatedd
118 $(INSTALL_DIR) $(1)/etc/config
119 $(INSTALL_DATA) ./files/updatedd.config $(1)/etc/config/updatedd
120 $(INSTALL_DIR) $(1)/usr/bin
121 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/
122 $(INSTALL_DIR) $(1)/usr/lib/updatedd
123 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
124 $(INSTALL_DATA) ./files/updatedd.hotplug $(1)/etc/hotplug.d/iface/30-updatedd
125 endef
126
127 $(eval $(call BuildPackage,updatedd))
128 $(eval $(call BuildPlugin,updatedd-mod-changeip,libchangeip))
129 $(eval $(call BuildPlugin,updatedd-mod-dyndns,libdyndns))
130 $(eval $(call BuildPlugin,updatedd-mod-eurodyndns,libeurodyndns))
131 $(eval $(call BuildPlugin,updatedd-mod-hn,libhn))
132 $(eval $(call BuildPlugin,updatedd-mod-noip,libnoip))
133 $(eval $(call BuildPlugin,updatedd-mod-ods,libods))
134 $(eval $(call BuildPlugin,updatedd-mod-ovh,libovh))
135 $(eval $(call BuildPlugin,updatedd-mod-regfish,libregfish))
136 $(eval $(call BuildPlugin,updatedd-mod-tzo,libtzo))
137 $(eval $(call BuildPlugin,updatedd-mod-zoneedit,libzoneedit))