proper error handling in package/Makefile
[openwrt.git] / openwrt / 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 $(eval $(call PKG_template,UPDATEDD,updatedd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 );
32 touch $@
33
34 $(PKG_BUILD_DIR)/.built:
35 rm -rf $(PKG_INSTALL_DIR)
36 mkdir -p $(PKG_INSTALL_DIR)
37 $(TARGET_CONFIGURE_OPTS) \
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 touch $@
43
44 $(IPKG_UPDATEDD):
45 install -d -m0755 $(IDIR_UPDATEDD)/usr/bin
46 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/updatedd $(IDIR_UPDATEDD)/usr/bin/updatedd
47
48 install -d -m0755 $(IDIR_UPDATEDD)/etc/init.d/
49 install -m0755 ./files/S55ddns $(IDIR_UPDATEDD)/etc/init.d/S55ddns
50
51 install -d -m0755 $(IDIR_UPDATEDD)/usr/lib/updatedd
52
53 ifeq ($(BR2_PACKAGE_UPDATEDD_CHANGEIP),y)
54 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/changeip.so $(IDIR_UPDATEDD)/usr/lib/updatedd/changeip.so
55 endif
56 ifeq ($(BR2_PACKAGE_UPDATEDD_DYNDNS),y)
57 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/dyndns.so $(IDIR_UPDATEDD)/usr/lib/updatedd/dyndns.so
58 endif
59 ifeq ($(BR2_PACKAGE_UPDATEDD_EURODYNDNS),y)
60 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/eurodyndns.so $(IDIR_UPDATEDD)/usr/lib/updatedd/eurodyndns.so
61 endif
62 ifeq ($(BR2_PACKAGE_UPDATEDD_HN),y)
63 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/hn.so $(IDIR_UPDATEDD)/usr/lib/updatedd/hn.so
64 endif
65 ifeq ($(BR2_PACKAGE_UPDATEDD_NOIP),y)
66 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/noip.so $(IDIR_UPDATEDD)/usr/lib/updatedd/noip.so
67 endif
68 ifeq ($(BR2_PACKAGE_UPDATEDD_ODS),y)
69 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/ods.so $(IDIR_UPDATEDD)/usr/lib/updatedd/ods.so
70 endif
71 ifeq ($(BR2_PACKAGE_UPDATEDD_OVH),y)
72 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/ovh.so $(IDIR_UPDATEDD)/usr/lib/updatedd/ovh.so
73 endif
74 ifeq ($(BR2_PACKAGE_UPDATEDD_REGFISH),y)
75 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/regfish.so $(IDIR_UPDATEDD)/usr/lib/updatedd/regfish.so
76 endif
77 ifeq ($(BR2_PACKAGE_UPDATEDD_TZO),y)
78 install -m0644 $(PKG_INSTALL_DIR)/usr/lib/updatedd/tzo.so $(IDIR_UPDATEDD)/usr/lib/updatedd/tzo.so
79 endif
80
81 $(RSTRIP) $(IDIR_UPDATEDD)
82 $(IPKG_BUILD) $(IDIR_UPDATEDD) $(PACKAGE_DIR)
This page took 0.048693 seconds and 5 git commands to generate.