28bda335c007f14d2625e7976d1e9aeac30c1423
[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:=4
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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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 DESCRIPTION:=Updatedd is a small tool that will update one of many dynamic\\\
30 dns services on boot.\\\
31 Please look at the /etc/init.d/ddns script for more info.\\\
32 URL:=http://www.philipp-benner.de/updatedd/
33 endef
34
35 define Package/updatedd-mod-changeip
36 SECTION:=net
37 CATEGORY:=Network
38 DEPENDS:=updatedd
39 TITLE:=changeip.com
40 endef
41
42 define Package/updatedd-mod-dyndns
43 SECTION:=net
44 CATEGORY:=Network
45 DEPENDS:=updatedd
46 TITLE:=dyndns.org
47 endef
48
49 define Package/updatedd-mod-eurodyndns
50 SECTION:=net
51 CATEGORY:=Network
52 DEPENDS:=updatedd
53 TITLE:=eurodyndns.org
54 endef
55
56 define Package/updatedd-mod-hn
57 SECTION:=net
58 CATEGORY:=Network
59 DEPENDS:=updatedd
60 TITLE:=hn.org
61 endef
62
63 define Package/updatedd-mod-noip
64 SECTION:=net
65 CATEGORY:=Network
66 DEPENDS:=updatedd
67 TITLE:=no-ip.com
68 endef
69
70 define Package/updatedd-mod-ods
71 SECTION:=net
72 CATEGORY:=Network
73 DEPENDS:=updatedd
74 TITLE:=ods.org
75 endef
76
77 define Package/updatedd-mod-ovh
78 SECTION:=net
79 CATEGORY:=Network
80 DEPENDS:=updatedd
81 TITLE:=ovh.com
82 endef
83
84 define Package/updatedd-mod-regfish
85 SECTION:=net
86 CATEGORY:=Network
87 DEPENDS:=updatedd
88 TITLE:=regfish.com
89 endef
90
91 define Package/updatedd-mod-tzo
92 SECTION:=net
93 CATEGORY:=Network
94 DEPENDS:=updatedd
95 TITLE:=tzo.com
96 endef
97
98 define Package/updatedd-mod-zoneedit
99 SECTION:=net
100 CATEGORY:=Network
101 DEPENDS:=updatedd
102 TITLE:=zoneedit.com
103 endef
104
105 MAKE_FLAGS += \
106 DESTDIR="$(PKG_INSTALL_DIR)" \
107 all install
108
109 define BuildPlugin
110 define Package/$(1)/install
111 $(INSTALL_DIR) $$(1)/usr/lib/updatedd
112 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so $$(1)/usr/lib/updatedd/
113 endef
114
115 $$(eval $$(call BuildPackage,$(1)))
116 endef
117
118 define Package/updatedd/install
119 $(INSTALL_DIR) $(1)/etc/init.d
120 $(INSTALL_BIN) ./files/updatedd.init $(1)/etc/init.d/updatedd
121 $(INSTALL_DIR) $(1)/etc/config
122 $(INSTALL_DATA) ./files/updatedd.config $(1)/etc/config/updatedd
123 $(INSTALL_DIR) $(1)/usr/bin
124 $(CP) $(PKG_INSTALL_DIR)/usr/bin/updatedd $(1)/usr/bin/
125 $(INSTALL_DIR) $(1)/usr/lib/updatedd
126 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
127 $(INSTALL_BIN) ./files/updatedd.hotplug $(1)/etc/hotplug.d/iface/30-updatedd
128 endef
129
130 $(eval $(call BuildPackage,updatedd))
131 $(eval $(call BuildPlugin,updatedd-mod-changeip,changeip))
132 $(eval $(call BuildPlugin,updatedd-mod-dyndns,dyndns))
133 $(eval $(call BuildPlugin,updatedd-mod-eurodyndns,eurodyndns))
134 $(eval $(call BuildPlugin,updatedd-mod-hn,hn))
135 $(eval $(call BuildPlugin,updatedd-mod-noip,noip))
136 $(eval $(call BuildPlugin,updatedd-mod-ods,ods))
137 $(eval $(call BuildPlugin,updatedd-mod-ovh,ovh))
138 $(eval $(call BuildPlugin,updatedd-mod-regfish,regfish))
139 $(eval $(call BuildPlugin,updatedd-mod-tzo,tzo))
140 $(eval $(call BuildPlugin,updatedd-mod-zoneedit,zoneedit))