2007-11-28 19:29:42 +00:00
|
|
|
#
|
2011-11-16 20:02:41 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2007-11-28 19:29:42 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ipupdate
|
|
|
|
PKG_VERSION:=1.1.1
|
2011-11-16 20:02:41 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-11-28 19:29:42 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/ipupdate
|
|
|
|
PKG_MD5SUM:=88ad3ac097190055db4ba816b9d26d13
|
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/ipupdate
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 07:45:05 +00:00
|
|
|
SUBMENU:=IP Addresses and Names
|
2007-11-28 19:29:42 +00:00
|
|
|
TITLE:=IPUpdate-Daemon
|
|
|
|
URL:=http://ipupdate.sourceforge.net
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ipupdate/description
|
|
|
|
Lightweight remote DNS update-daemon which implements RFC 2136 dynamic updates.
|
|
|
|
Compatible with BIND, Simple DNS, and Microsoft DNS Server.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,, \
|
2007-11-28 19:33:45 +00:00
|
|
|
UNAME_S="Linux" \
|
|
|
|
UNAME_R="$(LINUX_VERSION)" \
|
|
|
|
UNAME_M="$(ARCH)" \
|
2007-11-28 19:29:42 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-11-28 19:33:45 +00:00
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)/usr
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) -s" \
|
|
|
|
PRECOMPILED_FILTER=1 \
|
|
|
|
STAGING_DIR="$(STAGING_DIR)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
all
|
2007-11-28 19:29:42 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ipupdate/install
|
2007-11-28 19:33:45 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ipupdate $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ipupdate
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dollardns $(1)/etc/ipupdate/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/failover $(1)/etc/ipupdate/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ifip $(1)/etc/ipupdate/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/whatismyip $(1)/etc/ipupdate/
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/ipupdate.conf $(1)/etc/
|
2007-11-28 19:29:42 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/ipupdate/conffiles
|
|
|
|
/etc/ipupdate.conf
|
|
|
|
endef
|
|
|
|
|
2007-11-28 19:29:42 +00:00
|
|
|
$(eval $(call BuildPackage,ipupdate))
|