add package PTPd
[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-mod-changeip
39 SECTION:=net
40 CATEGORY:=Network
41 DEPENDS:=updatedd
42 TITLE:=changeip.com
43 endef
44
45 define Package/updatedd-mod-dyndns
46 SECTION:=net
47 CATEGORY:=Network
48 DEPENDS:=updatedd
49 TITLE:=dyndns.org
50 endef
51
52 define Package/updatedd-mod-eurodyndns
53 SECTION:=net
54 CATEGORY:=Network
55 DEPENDS:=updatedd
56 TITLE:=eurodyndns.org
57 endef
58
59 define Package/updatedd-mod-hn
60 SECTION:=net
61 CATEGORY:=Network
62 DEPENDS:=updatedd
63 TITLE:=hn.org
64 endef
65
66 define Package/updatedd-mod-noip
67 SECTION:=net
68 CATEGORY:=Network
69 DEPENDS:=updatedd
70 TITLE:=no-ip.com
71 endef
72
73 define Package/updatedd-mod-ods
74 SECTION:=net
75 CATEGORY:=Network
76 DEPENDS:=updatedd
77 TITLE:=ods.org
78 endef
79
80 define Package/updatedd-mod-ovh
81 SECTION:=net
82 CATEGORY:=Network
83 DEPENDS:=updatedd
84 TITLE:=ovh.com
85 endef
86
87 define Package/updatedd-mod-regfish
88 SECTION:=net
89 CATEGORY:=Network
90 DEPENDS:=updatedd
91 TITLE:=regfish.com
92 endef
93
94 define Package/updatedd-mod-tzo
95 SECTION:=net
96 CATEGORY:=Network
97 DEPENDS:=updatedd
98 TITLE:=tzo.com
99 endef
100
101 define Package/updatedd-mod-zoneedit
102 SECTION:=net
103 CATEGORY:=Network
104 DEPENDS:=updatedd
105 TITLE:=zoneedit.com
106 endef
107
108 define Build/Configure
109 (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake )
110 $(call Build/Configure/Default)
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))