fix typo regarding vnc-reflector
[openwrt.git] / package / updatedd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=updatedd
6 PKG_VERSION:=2.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=2957496de0c8e08e9c6492fabf1a88be
9
10 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/updatedd/
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define PKG_mod_template
20
21 $$(IPKG_$(1)):
22 install -d -m0755 $$(IDIR_$(1))/usr/lib/updatedd
23 install -m0755 $(PKG_INSTALL_DIR)/usr/lib/updatedd/$(2).so $$(IDIR_$(1))/usr/lib/updatedd/
24 $(RSTRIP) $$(IDIR_$(1))
25 $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)
26
27 endef
28
29 $(eval $(call PKG_template,UPDATEDD,updatedd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
30 $(eval $(call PKG_template,UPDATEDD_MOD_CHANGEIP,updatedd-mod-changeip,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
31 $(eval $(call PKG_template,UPDATEDD_MOD_DYNDNS,updatedd-mod-dyndns,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
32 $(eval $(call PKG_template,UPDATEDD_MOD_EURODYNDNS,updatedd-mod-eurodyndns,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
33 $(eval $(call PKG_template,UPDATEDD_MOD_HN,updatedd-mod-hn,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
34 $(eval $(call PKG_template,UPDATEDD_MOD_NOIP,updatedd-mod-noip,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
35 $(eval $(call PKG_template,UPDATEDD_MOD_ODS,updatedd-mod-ods,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
36 $(eval $(call PKG_template,UPDATEDD_MOD_OVH,updatedd-mod-ovh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
37 $(eval $(call PKG_template,UPDATEDD_MOD_REGFISH,updatedd-mod-regfish,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
38 $(eval $(call PKG_template,UPDATEDD_MOD_TZO,updatedd-mod-tzo,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
39
40 $(eval $(call PKG_mod_template,UPDATEDD_MOD_CHANGEIP,changeip))
41 $(eval $(call PKG_mod_template,UPDATEDD_MOD_DYNDNS,dyndns))
42 $(eval $(call PKG_mod_template,UPDATEDD_MOD_EURODYNDNS,eurodyndns))
43 $(eval $(call PKG_mod_template,UPDATEDD_MOD_HN,hn))
44 $(eval $(call PKG_mod_template,UPDATEDD_MOD_NOIP,noip))
45 $(eval $(call PKG_mod_template,UPDATEDD_MOD_ODS,ods))
46 $(eval $(call PKG_mod_template,UPDATEDD_MOD_OVH,ovh))
47 $(eval $(call PKG_mod_template,UPDATEDD_MOD_REGFISH,regfish))
48 $(eval $(call PKG_mod_template,UPDATEDD_MOD_TZO,tzo))
49
50 $(PKG_BUILD_DIR)/.configured:
51 (cd $(PKG_BUILD_DIR); \
52 $(TARGET_CONFIGURE_OPTS) \
53 CFLAGS="$(TARGET_CFLAGS)" \
54 ./configure \
55 --target=$(GNU_TARGET_NAME) \
56 --host=$(GNU_TARGET_NAME) \
57 --build=$(GNU_HOST_NAME) \
58 --prefix=/usr \
59 --sysconfdir=/etc \
60 );
61 touch $@
62
63 $(PKG_BUILD_DIR)/.built:
64 rm -rf $(PKG_INSTALL_DIR)
65 mkdir -p $(PKG_INSTALL_DIR)
66 $(TARGET_CONFIGURE_OPTS) \
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 $(TARGET_CONFIGURE_OPTS) \
69 DESTDIR="$(PKG_INSTALL_DIR)" \
70 all install
71 touch $@
72
73 $(IPKG_UPDATEDD):
74 install -d -m0755 $(IDIR_UPDATEDD)/etc/init.d
75 install -m0755 ./files/S55ddns $(IDIR_UPDATEDD)/etc/init.d/
76 install -d -m0755 $(IDIR_UPDATEDD)/usr/bin
77 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/updatedd $(IDIR_UPDATEDD)/usr/bin/
78 install -d -m0755 $(IDIR_UPDATEDD)/usr/lib/updatedd
79 $(RSTRIP) $(IDIR_UPDATEDD)
80 $(IPKG_BUILD) $(IDIR_UPDATEDD) $(PACKAGE_DIR)
This page took 0.046336 seconds and 5 git commands to generate.