[package] autossh: increase reliability of connection behavior
[openwrt/svn-archive/archive.git] / net / ipupdate / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ipupdate
11 PKG_VERSION:=1.1.1
12 PKG_RELEASE:=0
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/ipupdate
16 PKG_MD5SUM:=88ad3ac097190055db4ba816b9d26d13
17
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ipupdate
22 SECTION:=net
23 CATEGORY:=Network
24 SUBMENU:=IP Addresses and Names
25 TITLE:=IPUpdate-Daemon
26 URL:=http://ipupdate.sourceforge.net
27 endef
28
29 define Package/ipupdate/description
30 Lightweight remote DNS update-daemon which implements RFC 2136 dynamic updates.
31 Compatible with BIND, Simple DNS, and Microsoft DNS Server.
32 endef
33
34
35 define Build/Configure
36 $(call Build/Configure/Default,, \
37 UNAME_S="Linux" \
38 UNAME_R="$(LINUX_VERSION)" \
39 UNAME_M="$(ARCH)" \
40 )
41 endef
42
43 define Build/Compile
44 rm -rf $(PKG_INSTALL_DIR)
45 mkdir -p $(PKG_INSTALL_DIR)/usr
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 $(TARGET_CONFIGURE_OPTS) \
48 CC="$(TARGET_CC) $(TARGET_CFLAGS) -s" \
49 PRECOMPILED_FILTER=1 \
50 STAGING_DIR="$(STAGING_DIR)" \
51 DESTDIR="$(PKG_INSTALL_DIR)/usr" \
52 all
53 endef
54
55 define Package/ipupdate/install
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipupdate $(1)/usr/sbin/
58 $(INSTALL_DIR) $(1)/etc/ipupdate
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dollardns $(1)/etc/ipupdate/
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/failover $(1)/etc/ipupdate/
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifip $(1)/etc/ipupdate/
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/whatismyip $(1)/etc/ipupdate/
63 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ipupdate.conf $(1)/etc/
64 endef
65
66 $(eval $(call BuildPackage,ipupdate))