9c2ec368041132a86b8d8ea68bf604afc8599c55
[openwrt/svn-archive/archive.git] / net / updatedd / Makefile
1 #
2 # Copyright (C) 2006 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.5
13 PKG_RELEASE:=3
14 PKG_MD5SUM:=2957496de0c8e08e9c6492fabf1a88be
15
16 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/updatedd/
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/updatedd
26 SECTION:=net
27 CATEGORY:=Network
28 MENU:=1
29 TITLE:=A tool to update dynamic dns services
30 DESCRIPTION:=Updatedd is a small tool that will update one of many dynamic\\\
31 dns services on boot.\\\
32 Please look at the /etc/init.d/ddns script for more info.\\\
33 URL:=http://www.philipp-benner.de/updatedd/
34 endef
35
36 define Package/updatedd-mod-changeip
37 SECTION:=net
38 CATEGORY:=Network
39 DEPENDS:=updatedd
40 TITLE:=changeip.com
41 endef
42
43 define Package/updatedd-mod-dyndns
44 SECTION:=net
45 CATEGORY:=Network
46 DEPENDS:=updatedd
47 TITLE:=dyndns.org
48 endef
49
50 define Package/updatedd-mod-eurodyndns
51 SECTION:=net
52 CATEGORY:=Network
53 DEPENDS:=updatedd
54 TITLE:=eurodyndns.org
55 endef
56
57 define Package/updatedd-mod-hn
58 SECTION:=net
59 CATEGORY:=Network
60 DEPENDS:=updatedd
61 TITLE:=hn.org
62 endef
63
64 define Package/updatedd-mod-noip
65 SECTION:=net
66 CATEGORY:=Network
67 DEPENDS:=updatedd
68 TITLE:=no-ip.com
69 endef
70
71 define Package/updatedd-mod-ods
72 SECTION:=net
73 CATEGORY:=Network
74 DEPENDS:=updatedd
75 TITLE:=ods.org
76 endef
77
78 define Package/updatedd-mod-ovh
79 SECTION:=net
80 CATEGORY:=Network
81 DEPENDS:=updatedd
82 TITLE:=ovh.com
83 endef
84
85 define Package/updatedd-mod-regfish
86 SECTION:=net
87 CATEGORY:=Network
88 DEPENDS:=updatedd
89 TITLE:=regfish.com
90 endef
91
92 define Package/updatedd-mod-tzo
93 SECTION:=net
94 CATEGORY:=Network
95 DEPENDS:=updatedd
96 TITLE:=tzo.com
97 endef
98
99 define Package/updatedd-mod-zoneedit
100 SECTION:=net
101 CATEGORY:=Network
102 DEPENDS:=updatedd
103 TITLE:=zoneedit.com
104 endef
105
106 define Build/Compile
107 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
108 all install)
109 endef
110
111 define BuildPlugin
112 define Package/$(1)/install
113 $(INSTALL_DIR) $$(1)/usr/lib/updatedd
114 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so $$(1)/usr/lib/updatedd/
115 endef
116
117 $$(eval $$(call BuildPackage,$(1)))
118 endef
119
120 define Package/updatedd/install
121 $(INSTALL_DIR) $(1)/etc/init.d
122 $(INSTALL_BIN) ./files/ddns.init $(1)/etc/init.d/ddns
123 $(INSTALL_DIR) $(1)/etc/config
124 $(INSTALL_DATA) ./files/ddns.config $(1)/etc/config/updatedd
125 $(INSTALL_DIR) $(1)/usr/bin
126 $(CP) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/
127 $(INSTALL_DIR) $(1)/usr/lib/updatedd
128 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
129 $(INSTALL_BIN) ./files/ddns.hotplug $(1)/etc/hotplug.d/iface/30-ddns
130 endef
131
132 $(eval $(call BuildPackage,updatedd))
133 $(eval $(call BuildPlugin,updatedd-mod-changeip,changeip))
134 $(eval $(call BuildPlugin,updatedd-mod-dyndns,dyndns))
135 $(eval $(call BuildPlugin,updatedd-mod-eurodyndns,eurodyndns))
136 $(eval $(call BuildPlugin,updatedd-mod-hn,hn))
137 $(eval $(call BuildPlugin,updatedd-mod-noip,noip))
138 $(eval $(call BuildPlugin,updatedd-mod-ods,ods))
139 $(eval $(call BuildPlugin,updatedd-mod-ovh,ovh))
140 $(eval $(call BuildPlugin,updatedd-mod-regfish,regfish))
141 $(eval $(call BuildPlugin,updatedd-mod-tzo,tzo))
142 $(eval $(call BuildPlugin,updatedd-mod-zoneedit,zoneedit))